Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 02-09-2008, 08:32 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vwdforum View Post
Although it works I get the following error message

The conditional on line 33 appears to be missing its beginning tag (<if>). This may cause unexpected behavior. I deleted the </if> and it still works and has no errors.

Is it possible to get it vbseo link friendly? Will the search engines be able to read these posts?
Unfortunately it's not going to be vbseo friendly as it is working via javascript now, and there is no javascript > vbseo integration possible until now. Search engines will not read javascript, so I think it will not be seen by them. The only workaround to make it vbseo friendly is to write a "real" product using plugins. If I have time, maybe I'll do it. If you or someone else like to do it, I'd be very glad

Thank you for mentioning the</if> error, I have updated the code and sent out a message for all members who clicked "installed" for this modification.
Reply With Quote
  #13  
Old 03-15-2008, 02:55 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to get this to work on top of showthread? I tried copying it to ad_showthread_firstpost but nothing happened.

Thanks for this mod though - it works great as described!

Jim
Reply With Quote
  #14  
Old 05-11-2008, 03:57 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It also works in the HEADER template. I use it on my left side column that is coded into my header.

www.euphoricarythmia.com
Reply With Quote
  #15  
Old 05-11-2008, 05:45 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack, work perfectly on vB 3.7 Gold

Click Install *
Reply With Quote
  #16  
Old 05-11-2008, 06:04 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you all. Please rate this mod, if you like
Reply With Quote
  #17  
Old 05-11-2008, 08:26 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You think you can make a mod like this, but for NEWEST POSTS instead??
Reply With Quote
  #18  
Old 05-12-2008, 10:59 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed something

it doesn't work with [you] hack..

it shows the name of member which is supposed to be the member's name [you]

I mean instead of showing the member's name as if you calling him, it shows the word [you]

so I had to remove the code till you fix this issue if you can

BTW, it's a great one, and I like it.. and I replace it as soon as the issue with [you] hack gone

thank...

Reply With Quote
  #19  
Old 05-12-2008, 11:05 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two more suggestions if possible

if you can limit the number of new threads which be shown as new topic because it shows more than the desired number

and if you can make it show all the new topics of all forum instead of only in one part of the forum

thanks for the nice job
Reply With Quote
  #20  
Old 05-16-2008, 01:11 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not supported or what?
Reply With Quote
  #21  
Old 05-16-2008, 07:41 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Super Jinni View Post
not supported or what?
Not Supported

on the top ^^
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 09:39 AM.


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.07481 seconds
  • Memory Usage 2,311KB
  • 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
  • (2)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