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)
-   -   Online.php with colors (https://vborg.vbsupport.ru/showthread.php?t=45002)

LOD-squa 10-26-2002 11:23 PM

Good to hear! :)

LOD-squa 10-28-2002 01:15 AM

Edit members are blue now

Cyberhouse 10-28-2002 07:34 AM

Installed... ;)

LOD-squa 10-28-2002 08:23 PM

So no problems good!

Dark Jim 10-28-2002 09:27 PM

Tip: Use replacements instead of colors in online.php. That way you can use it with more themes. :)

LOD-squa 10-28-2002 10:05 PM

okay >_< you got me confused there.

Dark Jim 10-29-2002 07:27 AM

Instead of something like:
PHP Code:

        if ($user['usergroupid'] == and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<font color=red><b><i>$user[username]</i></b></font>";
        } else if ((
$user['usergroupid'] == 7)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<font color=green><b>$user[username]</b></font>"

Use:
PHP Code:

        if ($user['usergroupid'] == and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<font color={admincolor}><b><i>$user[username]</i></b></font>";
        } else if ((
$user['usergroupid'] == 7)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<font color={modcolor}><b>$user[username]</b></font>"

Then create replacements {admincolor} and {modcolor}. If you have a white or black theme for example, coloring the admin color red is fine but what if you add another theme that is red? In that case you'll set the {admincolor} to something else for that theme. ;)

LOD-squa 10-29-2002 06:00 PM

ah okay I'll be updating the file soon I just gotta test it on my own ^^

LOD-squa 10-30-2002 02:05 AM

Hack edited thanks for the suggestion Dark Jim :)

LOD-squa 10-30-2002 08:19 PM

anyone understand the file? About the replacements?


All times are GMT. The time now is 08:50 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.01186 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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