vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - "Click to view latest posts in this category" -- Similar to vBulletin.org. (https://vborg.vbsupport.ru/showthread.php?t=248616)

DataHero 08-13-2010 10:00 PM

"Click to view latest posts in this category" -- Similar to vBulletin.org.
 
1 Attachment(s)
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! :p

kjsmith84 08-19-2010 01:43 PM

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>

DataHero 08-19-2010 03:47 PM

But why do that if you can do it globally? ;)

BirdOPrey5 08-19-2010 03:59 PM

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?

DataHero 08-19-2010 04:37 PM

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.

al2thero 11-25-2012 07:01 PM

thank you


All times are GMT. The time now is 06:39 AM.

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.01012 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete