vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Will Keep Asking Until I Get An Answer... (https://vborg.vbsupport.ru/showthread.php?t=154043)

revlimiter 08-01-2007 08:31 PM

Will Keep Asking Until I Get An Answer...
 
Alright, here goes again:

I am looking to post a "Latest Topics" feed from my vBulletin 3.6 forum and show it on my non-VB homepage.
Code:

Example: www.fast-autos.net, left nav
Please advise,
Thanks

Opserty 08-01-2007 08:37 PM

http://www.vbulletin.com/forum/showthread.php?t=158895

Try that see if it works.

P.S. Google is your friend

revlimiter 08-02-2007 03:46 PM

Thanks for the reply, Opserty

However, I am still unable to connect my Top 10 Latest Topics on my homepage. The code just creates a single link called "Latest Active Threads" and links to a search on my vBulletin forum. What I am looking for is a dynamic feed much like the www.fast-autos.net leftnav

Opserty 08-02-2007 04:44 PM

Did you enable the external data provider?
Quote:

Admin Control Panel > vBulletin Options > External Data Provider > Enable External Javascript > Yes
I just tested it with 3.6.8 and it worked fine for me. Also make sure you have JS turned on in your browser.

markbolyard 08-02-2007 04:52 PM

Code:

<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 4; x++)
{
document.writeln("<strong><a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a></strong><br /> Posted By: "+threads[x].poster+"<br /><br />");
}
//-->
</script>

There is the striped down version without all the extra html tags. As mentioned above you will have to enable your external rss feeds.

revlimiter 08-02-2007 08:16 PM

Strange... Still not working...

Should I be adding a feed into my vBulletin RSS Feed Manager??

Opserty 08-02-2007 08:26 PM

Its not related to RSS.

Is your html page inside the same directory as your forum?

If not you need to change the src in the HTML code given on that page or by markbolyard to point to the external.php page in your forum directory.

revlimiter 08-02-2007 08:42 PM

My homepage is a .php file outside of the forum directory. My forum is located in /forum and my homepage is located in /

Any suggestions?

Opserty 08-02-2007 09:01 PM

Try changing:
HTML Code:

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

<script type="text/javascript" src="/forum/external.php?type=js"></script>

revlimiter 08-03-2007 02:33 PM

Excellent, thanks! It appears to be working, except I have a few issues with this code:

1.) The latest threads do not seem to update in real-time, takes a good 5-10 minutes. (How can I make the feed update as quick as New Posts in vBulletin?)
2.) It only shows the thread title and thread user. (How do I show posting time and posting date?)
3.) No character limit (how can I enable a character limit so that these thread titles do not break my site design?)
4.) And lastly, how do I ensure that Mod-Only posts do not show up on this feed?

Thanks very much!!!


All times are GMT. The time now is 05:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete