Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Simon Moon Simon Moon is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-05-2002 Last Update: Never Installs: 0
 
No support by the author.

I am trying to recolor the user online links. For this i need to edit index.php 2 times before this comes in place:
PHP Code:
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";"); 
I make the coloring depending on status. The higher rank you have, the stronger is your color. Anyways, thats not my problem at all. The real bummer is, that i cant seem to change the links color. I wanted to define an CSS style in the head part, for each of the levels, and then assign the CSS to the links.
This is how my forumhome_loggedinuser template looks like now
Code:
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid"
 class="$usercolor_class">$username</a>$invisibleuser
now in the code in index.php i define $usercolor_class to be the name of the class.
if these are my styles:
.level_1 {
COLOR: #666666;
}
.level_2 {
COLOR: #888888;
}
i would assign "level_1" or "leve_2" to the $usercolor_class variable. It wont change the color at all, no matter what i do. So anyone got an idea what i could be doing wrong? I am sure its something simple, but i cant find the error.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-05-2002, 04:50 PM
Gimp Gimp is offline
 
Join Date: Nov 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
      if ($loggedin['usergroupid'] == and $highlightadmin) {
          
$username "<b><i>$loggedin[username]</i></b>";
      } else if ((
$mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
          
$username "<b>$loggedin[username]</b>";
      } else {
        
$username $loggedin['username'];
      } 
look in the index.php file for this and change it as like it fits ur needs no need to change the CSS or anything like that only the code
Reply With Quote
  #3  
Old 01-05-2002, 04:56 PM
Gimp Gimp is offline
 
Join Date: Nov 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think there was a hack like this though
Reply With Quote
  #4  
Old 01-05-2002, 10:28 PM
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

This is standard in 2.2.1, but this is now what i am looking for. I want to recolor the links, but they DONT accept my recoloring at all. I want to recolor certain levels and the code is celar, but the CSS doesn seem to work. I checked it, my code works, so far, that it gets assigned to the links, but then my CSS doesnt work on those things. I have no clue why, so please, can anyone help me?
Reply With Quote
  #5  
Old 01-09-2002, 04:45 PM
Gimp Gimp is offline
 
Join Date: Nov 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well u need a CSS program to do the job for you
Reply With Quote
  #6  
Old 01-09-2002, 04:48 PM
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but teh solution is much simpler. make a variable for the color, and let it change in the index.php to an hex value you want it to have. Then change the "loggedinuser" template, by packing around the username a <font color="$user_color">username</font> and that will do the trick. Its not the nicest way, but at least one that works
Reply With Quote
  #7  
Old 01-09-2002, 05:39 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to check out the hack at https://vborg.vbsupport.ru/showthrea...hreadid=32149, it might help point you in the right direction, if it isn't the solution you need.

Kathi
Reply With Quote
  #8  
Old 01-09-2002, 08:55 PM
Dade's Avatar
Dade Dade is offline
 
Join Date: Jan 2002
Location: California
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Wolf
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04884 seconds
  • Memory Usage 2,269KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete