Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.8.4] THX - Hack for VB. 3.8.4
    By: bluedog
  • [vB 3.8.4] Cyb - Chatbox V.2.3
    By: bluedog
  • [vB 4.0.x] PHPKD - Advanced Quick...
    By: PHPKD
  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat

Latest Template Mods

  • [vB 4.0.x] Remove My Profile Link...
    By: Ak Worm
  • [vB 3.8.x] Images DownloadBox...
    By: cRs!MP
  • [vB 3.8.x] Adviertise Mod On Forum...
    By: MG4
  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm

Latest Styles

  • [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
    By: Belon
  • [vB 4.0.x] [4.0.3] vbdesigns.de...
    By: Belon
  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » Support Center » vBulletin Support » Modification Coding » Miscellaneous Hacks - HTML email using vB: problem with a javascript file
Reply
Page 1 of 2 1 2 >

 

  • Thread Tools
Old 07-03-2009, 01:05 PM   #1
Norman
Coder

Norman's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 ssssss242
Location: [Italy]
Norman is on a distinguished road
Send a message via MSN to Norman
Status: Offline Default Miscellaneous Hacks - HTML email using vB: problem with a javascript file
Hey there, in my HTML code I am calling a javascript code like this:

Code:
<div class="smallfont">

<script type="text/javascript" src="http://www.site.org/external.php?forumids=73,74&type=js"></script> 

<script language="" type="text/javascript">

<!--

for (x = 0; x < 6; x++)

{

document.writeln("<img class=\"inlineimg\" style=\"vertical-align: middle\" src=\"http://www.site.org/skin/buttons/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"http://www.site.org/showthread.php?t="+threads[x].threadid+"\">"+(threads[x].title.length > 56 ? threads[x].title.substr(0, 56) + '..' : threads[x].title)+"</a><br />");

}

//-->

</script></div>
The problem is: this code in a mail reader it is not displayed. Any advice?
Reply With Quote
Old 07-03-2009, 02:38 PM   #2
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
what "mail reader" are you reffering to ?

In general i would say that if client side scripting (such as javascript) fails, you can always do this on server side, and serve output from a given php script instead...

Please give more information as to where it's used and what's displayed exactly - then i might be able to help you more...
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here
Reply With Quote
Old 07-04-2009, 05:54 PM   #3
Norman
Coder

Norman's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 ssssss242
Location: [Italy]
Norman is on a distinguished road
Send a message via MSN to Norman
Status: Offline Default
Thank you for your reply Idan. I'm referring to Yahoo! Mail, Gmail, and all the others. I'm using it on as a HTML mail sent from the admincp using this hack: Send HTML email via adminCP - vBulletin.org Forum.
Can you please help me with the PHP part?
Reply With Quote
Old 07-04-2009, 06:23 PM   #4
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
sure, lemme look into this, few minutes.
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 07-04-2009 at 06:35 PM.
Reply With Quote
Old 07-04-2009, 06:34 PM   #5
Norman
Coder

Norman's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 ssssss242
Location: [Italy]
Norman is on a distinguished road
Send a message via MSN to Norman
Status: Offline Default
Thank you!
Reply With Quote
Old 07-04-2009, 06:35 PM   #6
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
I see plugin use textarea box on admincp and you place the text onto it.

We could create phpscript that generates & fills the html for you, then only left to paste it on your admincp textbox.

To "port" javascript to php, i'll need to see current JS files files.
in code you've mentioned 2, one of them external.
Upload them here please & i'll see what i can do to help ypu with it.
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here
Reply With Quote
Old 07-04-2009, 06:43 PM   #7
Norman
Coder

Norman's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 ssssss242
Location: [Italy]
Norman is on a distinguished road
Send a message via MSN to Norman
Status: Offline Default
That's the vBulletin one. The external.php provided by vBulletin.
And the javascript code I'm using is taken from the Floris thread on vB.com:

HowTo Display Latest Active Threads on ANY normal HTML page - vBulletin Community Forum

Also, the HTML code I paste on the box is the one I have here:

http://www.vb-italy.org/newsletter/
Reply With Quote
Old 07-04-2009, 06:56 PM   #8
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
gimme me a day or two, i'll take a look into this.
basically the code we need for php already exists in the external.php, the other JS you did is simply looping it to generate html from it.

Not sure if i'll make it tonight or not, as i might be going out soon, and currently in middle of something involving vbhackers new design/layout.
Gimme till tomorrow night, will check it tomorrow evening when i'm back from work. i'll find you some php workaround to inject html for mailer usage on admincp

solution will be adding button on admincp, near textbox, that generate the html for you & place it onto textbox.
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 07-04-2009 at 07:01 PM.
Reply With Quote
Old 07-04-2009, 07:23 PM   #9
Norman
Coder

Norman's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 ssssss242
Location: [Italy]
Norman is on a distinguished road
Send a message via MSN to Norman
Status: Offline Default
Don't worry, I can wait! I really appreciate your help, Idan.
Reply With Quote
Old 07-05-2009, 07:34 PM   #10
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
i need your feedback - got some idea.
can you paste the echo of this script on your site
for given url:
external.php?forumids=73,74&type-rss
?
(Just remember to enable the rss on the admincp)

With it i'll code you php that process the rss xml t& build up your html page
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here

Last edited by Idan; 07-09-2009 at 03:59 PM.
Reply With Quote

Reply
Page 1 of 2 1 2 >

« Help edit this layout please | Rss Feeds from another forum? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Rules



All times are GMT. The time now is 05:19 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!