vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New Posts on Forumtitle-Link (https://vborg.vbsupport.ru/showthread.php?t=52801)

Kars10 05-10-2003 10:00 PM

New Posts on Forumtitle-Link
 
Hello Hackers!
This little Hack allows you to show "new Posts" directly on the Forumtitle of the Forumhome. So if you want you can remove your ON/OFF Icon (like i did). ;) Screenshot in the next Post (the black Forum is read "no new Posts", the green Forum is unread "new Posts").


Files to edit: 1 (index.php)
Templates to edit: 2 (forumhome_forumbit_level1_post, forumhome_forumbit_level1_post)
Templates to add: 0
Replacements to add: 1

Time to Install: max. 5 min

Note: If you want the same thing on your Forumdisplay,
do the same changes to the forumdisplay.php, and the forumdisplay_forumbit_level1_post
and forumdisplay_forumbit_level2_post-Templates.

Have fun and please klick, lick or kick Install
Kars :)

Kars10 05-11-2003 12:41 PM

Screenshot: :)

Boofo 05-11-2003 12:50 PM

I still don't follow. Can you do a bigger screenshot? ;)

Kars10 05-11-2003 12:58 PM

@ Boofo, it marks unread forums on the forumtitle-Link. The black Forum is read (no new Posts), the green Forum is unread (new Posts).
Kars :)

Boofo 05-11-2003 01:00 PM

Does it still do the link color on mouseover? ;)

Robink 05-11-2003 01:01 PM

I understand now...

Good idea.. I'll try it now..

Kars10 05-11-2003 01:01 PM

Quote:

Today at 16:00 Boofo said this in Post #5
Does it still do the link color on mouseover? ;)
Yes, on read Forums is the Linkcolor (and Hovercolor by Mouseover), and on unread Forums is the marking color. :)

Kars

FFArmageddon 05-11-2003 04:40 PM

nice idea, but alot of my members are new to VB so they may get confused,

ethics 05-12-2003 12:16 AM

I like it, Kriek, but the instructions for forumdisplay templates has got to be wrong. I am assuming the replacement is the same for forumhome as it is for forumdisplay?

thamyeuvn 05-12-2003 05:46 AM

Nice idea.

thamyeuvn 05-12-2003 05:48 AM

but i can't install this back because the instructions is wrong :p

Can i release another instructions ?

Kars10 05-12-2003 06:59 AM

Quote:

Today at 08:48 thamyeuvn said this in Post #11
but i can't install this back because the instructions is wrong :p

Can i release another instructions ?

For me its working fine. :) What Problems do you have with this hack?

Kars

Boofo 05-12-2003 08:46 AM

you could cut out editing the templates by doing this:

Change this:

PHP Code:

 if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        } 

To this:

PHP Code:

 if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
            
$forum[title] = "<font color=\"{newpostscolor}\"><i>$forum[title]</i></font>";
      } else {
            
$forum['onoff']='off';
      }
        } 


Chris M 05-12-2003 10:50 AM

^^ Don't you mean:
Code:

if ($userlastvisit<$forum['lastpost']) {
            $forum['onoff']='on';
            $forum[title] = "<font color=\"{newpostscolor}\"><i>$forum[title]</i></font>";
      } else {
            $forum['onoff']='off';
      }
}

a.) Why include code to confirm the name of the forum title if it isn't changing?;)
b.) You forgot a closing [high]>[/high] in the first part of the [high]<font>[/high] tag;)
c.) You forgot to parse the code correctly;)

[high]Edit:[/high] Nice hack Karsten;):)

;)

Satan

Boofo 05-12-2003 12:01 PM

Ok, I changed it. I use:

PHP Code:

 $forum[title] = "<i>$forum[title]</i>"

myself, so I just added the color part for anyone wanting color.

Also, the reason I included the "code to confirm the name of the forum title if it isn't changing'' in the original code was for any newbies that do it that way and to avoid any of the "what about if there aren't any new posts in the forum?" questions. ;)

Chris M 05-12-2003 12:27 PM

I suppose, but you could alternatively just state that if there are no changes to the forum title, there is no need to include it in the code;):)

:)

Satan

Boofo 05-12-2003 01:11 PM

Whatever, Chris. ;)


All times are GMT. The time now is 11:05 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.01158 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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