Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Show latest threads on showthread Details »»
Show latest threads on showthread
Version: 1.00, by ThorstenA ThorstenA is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 01-23-2008 Last Update: Never Installs: 53
Template Edits
 
No support by the author.

Do you ever wanted to show latest threads on showthread ? You can do that without products. All you need is to use build-in RSS feed. Here you will be presented all topics within actual forum and all subforums. It's working great!
  1. admincp > vbulletin options > External Data Provider > set yes all
  2. Place this code into template ad_showthread_beforeqr
    Code:
    <!-- show latest active threads -->
    <br />
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
    align="center">
    <tbody><tr><td class="tcat">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_external')"><img 
    id="collapseimg_forumhome_external" 
    src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_external].gif" alt="" border="0" /></a>
    <a href="forumdisplay.php?f=$foruminfo[forumid]">New topics in $foruminfo[title]</a>
    </td></tr></tbody>
    
    <tbody id="collapseobj_forumhome_external" style="$vbcollapse[collapseobj_forumhome_external]">
    
    <tr><td class="alt1" width="100%" valign="top">
     
    <div class="smallfont">
    
    <script type="text/javascript" src="external.php?forumids=$foruminfo[childlist]&type=js"></script>
    <script language="" type="text/javascript">
    <!--
    for (var x in threads)
    {
    document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/firstnew.gif\" alt=\"\" border=\"0\" /></a> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br />");
    }
    //-->
    </script>
    
    </div>
     
    </td>
    
    </tr></tbody>
    </table>
    
    <!-- / show latest active threads -->
  3. Done

Optional
If you want to change time frame of your refreshing threads, go to
AdminCP > vBulletin Settings > External Data Provider
Change the value of Cache Lifespan to for example "1 Minute"

Hope that works great for you, too. I'd be glad to hear from you via pm.


9.2.2008 Fixed an error. Upgrade instruction: Please just copy this new code here into the template. Done.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-03-2008, 10:29 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job,you know i put this hack on main forum and you can get more out of it.

1.it shows the new threads from different forums on the main forum

2.it shows new threads made in show threads of that forum.

hope its ok with you
Reply With Quote
  #33  
Old 10-03-2008, 10:46 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for some reason its not updating the info
Reply With Quote
  #34  
Old 10-04-2008, 07:50 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apiasto View Post
for some reason its not updating the info
Sorry I do not understand completely. Could you tell me which information are not updated? Thank you.
Reply With Quote
  #35  
Old 10-05-2008, 11:23 AM
punjabi.king punjabi.king is offline
 
Join Date: May 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

threads are not being updated can u help???
Reply With Quote
  #36  
Old 10-05-2008, 11:55 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when user makes a thread,it does not show in the panel,even after refresh
Reply With Quote
  #37  
Old 10-05-2008, 12:04 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punjabi.king View Post
threads are not being updated can u help???
Please let me some time to answer within this thread. You wrote me a pm less than one hour after you wrote your post. It usually takes some days until I response.

This modification fetches vbulletin RSS for showing threads. RSS is updated every 15 minutes or every hour. This is built into vbulletin. It maybe possible to change that in vbulletin admincp > change schedules, but I do not know how to do this.
Quote:
Originally Posted by apiasto View Post
when user makes a thread,it does not show in the panel,even after refresh
This modification fetches vbulletin RSS for showing threads. RSS is updated every 15 minutes or every hour. This is built into vbulletin. It maybe possible to change that in vbulletin admincp > change schedules, but I do not know how to do this.
Reply With Quote
  #38  
Old 10-05-2008, 01:53 PM
punjabi.king punjabi.king is offline
 
Join Date: May 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ thanks for that bro and sorry for the pm, only reason i pm'ed you is because it was urgent!!
i first replied to the thread and then i thought that you could be busy so i sent you the pm...

anywayz here is the solution for you apiasto

AdminCP---->vBulletin Settings---->External Data Proider

Change the value of Cache Lifespan to 1

^ by doing this vBulletin will fetch the threads data in a minute and latest threads will be updated soon....
Reply With Quote
  #39  
Old 10-05-2008, 02:10 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I will put these information in #1 post.
Reply With Quote
  #40  
Old 10-05-2008, 10:31 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punjabi.king View Post
^^ thanks for that bro and sorry for the pm, only reason i pm'ed you is because it was urgent!!
i first replied to the thread and then i thought that you could be busy so i sent you the pm...

anywayz here is the solution for you apiasto

AdminCP---->vBulletin Settings---->External Data Proider

Change the value of Cache Lifespan to 1

^ by doing this vBulletin will fetch the threads data in a minute and latest threads will be updated soon....
thnx punjabi i appreciate it.i will try later :up:
Reply With Quote
  #41  
Old 06-04-2009, 01:37 PM
molleeb molleeb is offline
 
Join Date: Oct 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works really neatly, I have it here: http://www.pregnancy.org/bulletinboa...x_original.php check it out Now, is there a way to modify this so that it can be between the breadcrumb header and the listing of posts?
Reply With Quote
Reply

Thread Tools

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 12:02 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.09103 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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