Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   06-13-2007, 04:27 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,992 Location: Topeka, KS
Display your active threads on any html page


This will put your latest X threads on any html page as long as you have your external RSS on for JavaScript.. You should have this enabled anyways if you care about SEO.

This is how you enabled or check your settings if you are unsure.


Admin Control Panel > vBulletin Options > vBulletin Options > Admin Control Panel Options > Use External Data Provider:
YES - type = JavaScript


Add this code to any html page you want. I've added it in our sidecolumn.
This code will show who posted and the time and a little icon. I've edited this code some to cleans things up.

PHP Code:
<!-- show latest active threads -->
<
table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
tbody>
<
tr>
<
td colspan="2">
<
a href="search.php?do=getnew">Latest Active Threads</a>
</
td>
</
tr>
</
tbody>
<
tbody>
<
tr>
 
<
td width="100%">
 
<
div>
<
script type="text/javascript" src="external.php?type=js"></script> 
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script></div>
 
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br /> 
This is what I've used on the side panel.

if you would like to limit the # of threads
find:
PHP Code:
for (var x in threads
and change to

PHP Code:
for (010x++) 
change the 10 to w/e you want.

to limit this to selected forums
look for:

PHP Code:
<script type="text/javascript" src="external.php?type=js"></script> 
and change to:

PHP Code:
<script type="text/javascript" src="external.php?forumids=95,96,97,98&type=js"></script> 
change the 95,96,97.. to the forumID's that you want.

Enjoy
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#2   06-14-2007, 04:26 AM
Send a message via AIM to cajunboy2208 cajunboy2208 has a spectacular aura about Join Date: May 2007 Posts: 267 Location: Central, Louisiana
Re: Display your active threads on any html page


I do not have this...

Admin Control Panel > vBulletin Options > vBulletin Options > Admin Control Panel Options > Use External Data Provider:
YES - type = JavaScript


Found it. It isn't under Admin Control Panel Options... it is under External Data Provider for me on 3.6.7 PL1


Enable External Javascript
This setting allows you to enable/disable the Javascript content syndication system that allows you to embed vBulletin data in HTML pages.

Mine is set to no. Guess I need it to be yes for more search?

Another thing.

Enable RSS Syndication
This setting allows you to enable/disable the RSS content syndication system.

That is set to no....


Enable Podcasting (RSS Enclosure)
This option includes the first attachment of each thread as an enclosure within RSS2 feeds. This is the method by which Podcasting is enabled for your forums. iTunes specific settings are configured per forum in the Forum Manager.

set to yes...


and lastly

Enable XML Syndication
This setting allows you to enable/disable the XML content syndication system.

Set to no...


What are the reccomended? All to yes? Or just the java and podcasting?
--------------------
Owner of www.bleepd.com

Last edited by cajunboy2208; 06-14-2007 at 04:30 AM.
Quote   |  



#3   06-14-2007, 09:17 AM
Send a message via AIM to James Send a message via MSN to James James is a jewel in the rough Join Date: Mar 2007 Posts: 306 Location: Kent, WA
Re: Display your active threads on any html page


Cool thanks for sharing!
--------------------
My Updated Blog
Quote   |  



#4   06-14-2007, 10:10 AM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,992 Location: Topeka, KS
Re: Display your active threads on any html page


set all to yes cajunboy

one note James, if you are using vbseo, this will show the old url structure.

I'll update the post with info for vbseo users also
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#5   06-14-2007, 12:37 PM
Send a message via AIM to James Send a message via MSN to James James is a jewel in the rough Join Date: Mar 2007 Posts: 306 Location: Kent, WA
Re: Display your active threads on any html page


Okay Thanks! So noted
--------------------
My Updated Blog
Quote   |  



#6   06-15-2007, 12:49 AM
Send a message via AIM to cajunboy2208 cajunboy2208 has a spectacular aura about Join Date: May 2007 Posts: 267 Location: Central, Louisiana
Re: Display your active threads on any html page


Where did the damn thanks button go to? Thank you Brandon
--------------------
Owner of www.bleepd.com
Quote   |  



#7   06-19-2007, 11:38 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,992 Location: Topeka, KS
Re: Display your active threads on any html page


Quote:
Originally Posted by cajunboy2208 View Post
Where did the damn thanks button go to? Thank you Brandon
http://forum.vbulletinsetup.com/f4/i...html#post14029

you're welcome
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#8   08-11-2007, 12:27 AM
Yogesh Sarkar is just really niceYogesh Sarkar is just really niceYogesh Sarkar is just really nice Join Date: Feb 2007 Posts: 858 Location: New Delhi, India
Re: Display your active threads on any html page


In case you want to display threads that have received new posts (that would also include latest posted topics), instead of just displaying newest posted topics, do the following:

Find:
Code:
<script type="text/javascript" src="external.php?type=js"></script>
Replace with:
Code:
<script type="text/javascript" src="external.php?type=js&lastpost=1"></script>
Quote   |  



#9   09-20-2007, 09:35 PM
frostyIntrepid will become famous soon enough Join Date: Sep 2007 Posts: 1
Re: Display your active threads on any html page


Works great!

Is there any way I can have it display thread posts and view counts as well?
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send emails with HTML as HTML [3.6.4] Brandon vBulletin Questions 2 09-26-2008 10:55 AM
How to display xml feeds on a static html page? Yogesh Sarkar vBulletin Questions 6 11-06-2007 05:54 PM
NEED HELP ViewPosts -- View unanswered threads, threads you've started, HotRodGyrl vBulletin Questions 3 08-31-2007 08:30 AM
RSS feed with *all* active threads in a forum? Ville vBulletin Questions 9 08-06-2007 12:45 PM
Removing threads display from a forum to create a hybrid "sub-forum container" Ville vBulletin Questions 0 07-25-2007 01:55 PM


All times are GMT -6. The time now is 09:27 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory