Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
"Click to view latest posts in this category" -- Similar to vBulletin.org. Details »»
"Click to view latest posts in this category" -- Similar to vBulletin.org.
Version: 1.00, by DataHero DataHero is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 08-13-2010 Last Update: Never Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

Well, here goes my first super-minor modification!

Used the search function, but couldn't seem to find anything like it, so decided to do a quick one myself. It's a mere minor modification, which serves the same purpose as here on vBulletin.org.

Description:
This minor modification allows you to click a link below the category name in order to view the latest topics in XX category. It won't serve as a replacement for the forum description, so if you'd like to add a description as well, it (probably) won't interfere.

Instructions:
Go to your Style Manager in AdminCP and navigate to the following template: forumhome_forumbit_level1_nopost. Once there, you'll come across the following bit of code:
Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
Between the first and second line, add the following:
Code:
<br />
<span class="smallfont"><a href="search.php?do=getdaily&amp;forumid=$forum[forumid]&amp;childforums=<if condition="$childforumbits">1</if>&amp;saveprefs=false">Click here to view the latest topics in this category</a></span>
You can change the text accordingly. The if conditional is to check whether your category contains childforums or not, and sets it to 0 if the latter.

There goes my first modification! If you like it, don't mind to click install!

Download Now

File Type: txt readme.txt (1.2 KB, 25 views)

Screenshots

File Type: png Capture.PNG (10.0 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 08-19-2010, 01:43 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just put mine in the forum description.

Quote:
<a href="search.php?do=getdaily&forumid=110[forumid]&childforums=8&saveprefs=false">Click here to view the latest Teryx topics</a>
Reply With Quote
  #3  
Old 08-19-2010, 03:47 PM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But why do that if you can do it globally?
Reply With Quote
  #4  
Old 08-19-2010, 03:59 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the difference between viewing the latest topics in a forum and simply viewing a forum the regular way, since posts are sorted by the most recent on top anyway?
Reply With Quote
  #5  
Old 08-19-2010, 04:37 PM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess it's merely a matter of preference - appearance and whatnot. Plus, it'd be easier to view topics in a specific category if you have a reason to do so while having other categories collapsed or whatsoever.

But as said, I see it only as a matter of preference.
Reply With Quote
  #6  
Old 11-25-2012, 07:01 PM
al2thero al2thero is offline
 
Join Date: Aug 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
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 11:16 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.04007 seconds
  • Memory Usage 2,263KB
  • Queries Executed 20 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete