vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I cant find! Help Please! (https://vborg.vbsupport.ru/showthread.php?t=44112)

user360 09-30-2002 01:35 AM

I cant find! Help Please!
 
I've looked over and over and could not find this mod..

Description: On a board, I've seen, when the admin posted, the alt color changed to a color specified by that admin. I was asking where Could I find that mod, please help me.

user360 09-30-2002 03:56 AM

1 Attachment(s)
if you need an example, heres one...

Logician 09-30-2002 07:43 AM

edit functions.php, find:
PHP Code:

if ($counter%2==0) {
        
$post[backcolor]="{firstaltcolor}";
        
$post[bgclass] = "alt1";
    } else {
        
$post[backcolor]="{secondaltcolor}";
        
$post[bgclass] = "alt2";
    } 

Replace it as:

PHP Code:

if ($post[usergroupid]==6
{
$post[backcolor]="XXX";
$post[bgclass] = "YYY";
}
elseif (
$counter%2==0) {
        
$post[backcolor]="{firstaltcolor}";
        
$post[bgclass] = "alt1";
    } else {
        
$post[backcolor]="{secondaltcolor}";
        
$post[bgclass] = "alt2";
    } 

Replace XXX with the custom color and YYY with your custom CSS class.

I'm sure someone will ask so here is the code that would make it work for Mods and S.Mods too: :)

PHP Code:

if ($post[usergroupid]==OR $post[usergroupid]==OR $post[usergroupid]==7
{
$post[backcolor]="XXX";
$post[bgclass] = "YYY";
}
elseif (
$counter%2==0) {
        
$post[backcolor]="{firstaltcolor}";
        
$post[bgclass] = "alt1";
    } else {
        
$post[backcolor]="{secondaltcolor}";
        
$post[bgclass] = "alt2";
    } 

If you want different colors for Admins, Mods and S.Mods, ask..

BTW. I want to remind you that this will overwrite the default sytle colors so make sure to choose colors that doesnt clash with other styles if you have more than 1.

Enjoy..

user360 09-30-2002 07:17 PM

Thanks man

Merjawy 10-01-2002 06:09 AM

can't he just do that form editing style? alt. color line? I think thats how I did it

Logician 10-01-2002 08:06 AM

Quote:

Originally posted by Merjawy
can't he just do that form editing style? alt. color line? I think thats how I did it
If you are trying to change postbit background color, yes it would work. But he is trying to have a special color if the poster is an admin and default switching colors if he is a regular user. I dont think you can do it with style editing only..

user360 10-01-2002 09:39 PM

yea, it works perfect... Makes me look special :D


All times are GMT. The time now is 05:36 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.01090 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete