Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2007, 08:31 PM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-01-2007, 08:37 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Try that see if it works.

P.S. Google is your friend
Reply With Quote
  #3  
Old 08-02-2007, 03:46 PM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-02-2007, 04:44 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-02-2007, 04:52 PM
markbolyard's Avatar
markbolyard markbolyard is offline
 
Join Date: Apr 2005
Location: Maryland
Posts: 629
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-02-2007, 08:16 PM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange... Still not working...

Should I be adding a feed into my vBulletin RSS Feed Manager??
Reply With Quote
  #7  
Old 08-02-2007, 08:26 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-02-2007, 08:42 PM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 08-02-2007, 09:01 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #10  
Old 08-03-2007, 02:33 PM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04576 seconds
  • Memory Usage 2,253KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete