vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Username Glow Problem. (https://vborg.vbsupport.ru/showthread.php?t=34956)

Ambex Net 02-10-2002 10:58 PM

Ok in admin/functions.php

find:
PHP Code:

    // user
    
global $bbuserinfo,$session,$ignore,$cookietimeout;
    
// showthread
    
global $counter,$firstnew,$sigcache,$highlight,$postid,$forum;
    
// global options
    
global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages

after I have

PHP Code:

// begin glowing admin 
    
$post[specialusername] = $post[username];

    
$usergroupid=$post[usergroupid];
    if (
$usergroupid == 6) { $post[specialusername] = "<table style=\"filter:glow(color=#0066CC, strength=6)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }

    if (
$usergroupid == 5) { $post[specialusername] = "<table style=\"filter:glow(color=orange, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }

    if (
$usergroupid == 7) { $post[specialusername] = "<table style=\"filter:glow(color=#669999, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; }
// end glowing admins 

What do I have to add in there to make registered users or anyone who isn't a mod, supermod, or admin glow a certain color? Anyone know????

okrogius 02-11-2002 10:54 AM

You also have to change $post[username] to $post[specialusername] in postbit template...

Ambex Net 02-12-2002 12:22 AM

I have that added.

Ambex Net 02-12-2002 07:50 PM

^bump^

traekwon 06-02-2002 03:48 AM

After

PHP Code:

 if ($usergroupid == 5) { $post[specialusername] = "<table style=\"filter:glow(color=orange, strength=8)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; } 

Immediately add

PHP Code:

 if ($usergroupid == 2) { $post[specialusername] = "<table style=\"filter:glow(color=red, strength=6)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"; } 

This will make all registered (normal) users names glow red. Change 'red' to whatever color you like.

asweetdeal 06-10-2002 12:18 AM

hey guys where can I find this hack? I've been looking and there are references all over but no luck on the original hack. Thanks!

ASweetDeal

Medivith 12-05-2002 04:08 AM

Also if you want to add glow for only one or two users, and to add glow by userid this is the code to do that.

In addition to the above:
PHP Code:

$userid=$post[userid];
if (
$userid== XXXX) { $post[specialusername] = "<table style=\"filter:glow(color=#0066CC, strength=4)\"><tr><td><font size='-1' color='white'><b>$post[username]</b></font></td></tr></table>"


Replace XXXX with the userid of the person who should have the glow in thier username.

Pretty simple edit, but I found it useful and figured I should post it.

stan111 01-25-2007 11:25 PM

is there a code for only one username to be glow?

DuyNguyen 02-05-2007 03:28 AM

which php file should I add? I had searched for the phrase but it's not exist in all php files

Bratz-Designs 02-05-2007 03:57 PM

note that it wont work in firefox, just in Ie ;)


All times are GMT. The time now is 01:41 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.01173 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_php_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
  • (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