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)

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 01:04 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.01023 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_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
  • (7)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