PDA

View Full Version : Latest vBulletin Threads on HTML Pages with Javascript


Pages : [1] 2 3

Greg
09-22-2005, 11:17 AM
This code is to allow other sites to display your vBulletin Forum's latest theads on their own websites on HTML pages using javascript. This code requires no server side coding. A few simple copy a pastes are all that is needed for a webmaster to display your latest threads on their site. This could result in more traffic for your forum.

For this code to operate, you must enable the Javascript option of external.php in your vBulletin ACP. Then you make two edits to the code before posting it for public use. The webmaster using it can display from one to fifteen threads on their site with one simple edit. By editing the CSS they can make the display integrate perfectly into their sites style and colors.

Detailed use and installation instructions are in the attached .txt file.

This code is protected by copyright and the package may not be redistributed. The copyright notice must stay intact in the code when distributed for use and when in use.

This code development was funded by John at TheMouthPiece.com (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=john%40themouthpiece%2ecom&no_shipping=0&no_note=1&tax=0&currency_code=GBP&bn=PP%2dDonationsBF&charset=UTF%2d8) and coded by me,
noppid (http://www.lakecs.com). If you would like to make a donation to offset our time and expenses, we would appreciate it. Please click the appropriate link above to donate to John or myself. This is optional and not required to download the code.

Thank you.

beddoe
03-13-2006, 03:07 PM
This works great!
How about if we want to add poster and posted date next to the link for each recent thread?

Thank you!

Greg
03-14-2006, 08:35 AM
The RSS Spec doen not call for that info apparently. I guess ya could modify external.php to pull it off though if ya wanted in this case.

lethal
06-08-2006, 06:59 AM
thats mint works a dream
anyway to doit with posts,latest members
or to feed whosonline

Greg
06-08-2006, 07:02 PM
thats mint works a dream
anyway to doit with posts,latest members
or to feed whosonline

You can manipuate what posts you get a little. But nothing is provided for members or whois online.

There are hooks in external.php and that functionality could be added with a plugin.

lethal
06-09-2006, 09:20 AM
you no where icud get this plugin?
or if sum1 could create it

Greg
06-09-2006, 11:21 AM
This is not a plugin. This code goes on any html or non vB page to pull RSS feeds from your vB to display them.

lethal
06-09-2006, 01:00 PM
ah ok
well anyway to pull latest posts,whos online aswell

Greg
06-09-2006, 02:43 PM
Latest posts you can do with

http://www.example.com/forums/external.php and this hack.

To get whois online, you would need to add a modification to external.php. But it can be done. I have modded external.php to put out RSS for our vBPicGallery photo gallery for vBulletin software.

lethal
06-09-2006, 10:33 PM
only prob is im no coder:(

daisukey
07-12-2006, 02:15 AM
hi there, thanks for the code. any way I can add a name of posters next to the thread titles?

and more importantly can I get "recent threads(with newer posts)" instead of "active threads"?

Greg
07-12-2006, 09:58 AM
You can get anything that external.php is capable of. But I don't think ya can get usernames.

daisukey
07-12-2006, 05:52 PM
You can get anything that external.php is capable of. But I don't think ya can get usernames.

and how do i do that?

Greg
07-12-2006, 05:57 PM
See if this helps. http://www.vbulletin.com/docs/search?q=external

daisukey
07-12-2006, 06:01 PM
hi noppid, thanks. With help by vbulletin team I could view poster's name. however I just dunno how to display the latest threads with the latest posts not the latest thread with older posts.

Greg
07-12-2006, 07:28 PM
hi noppid, thanks. With help by vbulletin team I could view poster's name. however I just dunno how to display the latest threads with the latest posts not the latest thread with older posts.

Ok, I'm not sure what they told you. I assume they showed you how to form the url to external.php? If so, show me and I'll show you how to put it in the javascript.

kalinka
09-10-2006, 05:22 AM
is there a screenshot about this ?

Greg
09-10-2006, 11:21 AM
Here is an example site. Look toward the bottom. But this add on is not about the layout or look, you can do whatever you want with that. This hack is about getting forum posts on an HTML page with JavaScript.

vBulletin Support Services (http://www.lakecs.com/)

The example is modified to fit that page size wise and color wise.

All4Data
10-31-2006, 10:22 AM
interesting

noppid, only thing which would be even greater would be if search engines could index the links

this is why I have been looking to try achieve this very same thing with XML, as I am under the impression that then the links will be indexed?

What are your thoughts on this, please?

Greg
10-31-2006, 03:48 PM
That is a short coming of using JavaScript. It is certainly better to use server side parsed XML or RSS for search engine purposes.

Some folks use this mearly for the traffic. But the search engines never see it as far as I know since they ignore javascript.