vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Handy link to search for "New Posts in Only This Forum" (https://vborg.vbsupport.ru/showthread.php?t=142360)

Tralala 03-17-2007 10:00 PM

Handy link to search for "New Posts in Only This Forum"
 
Not a blockbuster by any means. Just a simple (yet effective) little link, makes it easy to find the new posts in that particular forum. (If there are NO new posts in a forum, the text link on forumhome says "old" instead.)


In FORUMDISPLAY template, find:
Code:

        <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td>
Replace with:
Code:

<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title] <a href="search.php?do=getnew&include=$foruminfo[forumid]">(new in <b>bold</b>)</a></span></td>


In forumhome_forumbit_level1_post template, find:
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Replace with:
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <span class="smallfont"><a href="search.php?do=getnew&include=$forum[forumid]">$forum[statusicon]</a></span>



...done. :o




Screenshot/attachment shows what it looks like.

Tralala 03-18-2007 04:42 AM

Reserved.

rjmjr69 03-18-2007 05:15 AM

Dont work for me

Tralala 03-18-2007 05:17 AM

Doesn't work, how? Does the link not show up at all? Or does clicking it not result in showing that forum's new posts?

rjmjr69 03-18-2007 05:38 AM

Sorry for being so vague. No it does not appear at all. I have VB 3.6.5 checked the edit multiple times still not displaying.

Tralala 03-18-2007 05:41 AM

Check both screenshots. Neither of those show up?

rjmjr69 03-18-2007 06:25 AM

Nope neither show. And I made multiple new post's

www.binarytechzone.com

Tralala 03-18-2007 07:39 AM

I suspect it's an issue with your unique skin. Can you try in another skin, like the vBulletin default, just to confirm? By no means am I an advanced coder... but this is a real simple one, and it works for me with two skins.

-shrug-

rjmjr69 03-18-2007 09:09 AM

I tried the default still nothing. does OLD show up instead of new? lol Cause I have that showing on some threads....lol

WhaLberg 03-18-2007 09:34 AM

rjmjr69, you are doing something wrong. I checked whether there's something wrong in the codes or not, but there is nothing wrong.

Congratulations and thanks Tralala.


All times are GMT. The time now is 06:11 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.01526 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete