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.

rjmjr69 03-18-2007 11:09 AM

Must be me usually is. But I have gone over this a million times and cleared all cache and everything oh well was worth a shot. Thank you though.

rjmjr69 03-18-2007 11:27 AM

I do not know what the heck is happening now. Here are the two templates to edit I can't figure out what I did

Attachment 62009


Attachment 62010

Tralala 03-18-2007 02:37 PM

Quote:

Originally Posted by rjmjr69 (Post 1206281)
I do not know what the heck is happening now. Here are the two templates to edit I can't figure out what I did


For starters, you didn't add the code to the FORUMDISPLAY template.

(I searched for "search.php?do=getnew&include=$foruminfo[forumid]" -- the important bit -- and found nothing.



You have a heavily modified skin, so with mods like this you'll often have to figure things out on your own. In your case, at least for FORUMDISPLAY, find:

Code:

<td class="tcat" width="100%" align="left"><span class="smallfont"><strong>$vbphrase[threads_in_forum]:</strong> $foruminfo[title]</span></td>
and replace it with:
Code:

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

harlita 03-18-2007 09:00 PM

Ah! Good! I was looking for where to add the span class.

You rock. thanks so much! Yeap - works great and I'm running 3.6.5

LisaD1 03-18-2007 09:20 PM

Installed on my forum and works great! :up: Thanks :D

Atakan KOC 03-26-2007 06:46 AM

Thanks........

Darat 04-09-2007 06:40 PM

What a nice little mod that is really useful for members, the best kind - thanks!

rotti 04-10-2007 07:18 AM

Hi where I can this chance from old to neu. i have a german board and old was in englisch am spent.

old >> alt
new >> neu

thanks

harlita 12-20-2007 07:24 AM

Installed again on 3.6.8 and works exactly as indicated. Thanks dude

ringleader 11-01-2008 07:16 PM

Still works on 3.7.3 PL1 - Thanks for the awesome and handy template edit.


All times are GMT. The time now is 07:32 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.01723 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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