vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do you added images next to User name (https://vborg.vbsupport.ru/showthread.php?t=41626)

kau 07-28-2002 04:09 PM

How do you added images next to User name
 
If a member is in a certain Group I created I want them to have a little image next to there name like this site:

http://www.pirate4x4.com/forum/showt...threadid=70173

Notice the little red star next to a few names?

How do I do this?

Dean C 07-28-2002 08:09 PM

huh... that site has nothing special... its normal default vbulletin :)

kau 07-28-2002 08:45 PM

See how the user DRM has a little star next to his name? I want to be able to do that to a certain group.

Xenon 07-28-2002 09:02 PM

open functions.php

find:
PHP Code:

if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];
            }
        } else {
            
$post[signature] = "";
        } 

in getpostbit fucntion

after it add:
PHP Code:

if($post[usergroupid]==xx$post[username]="<img src='...'>".$post[username]; 


kau 08-23-2002 05:37 AM

That puts the image on the left of their name. How do I get it so it's:

Name <space> Image

g-force2k2 08-23-2002 06:25 AM

just change Xenon's code around...

And swap the image and the $post[username] ;)

g-force2k2

kau 08-23-2002 06:55 AM

Such as:

if($post[usergroupid]==9) $post[username].$post[username]="<img src=jeep.gif>";

That just adds the image and does not show the username.

g-force2k2 08-23-2002 06:58 AM

try

PHP Code:

$post[username]=$post[username]&nbsp;."<img src=jeep.gif>"

regards...

g-force2k2

Xenon 08-23-2002 10:07 AM

you mean:

PHP Code:

$post[username]=$post[username]."&nbsp;<img src=jeep.gif>"


GCPrez 01-15-2003 05:11 AM

Newbie Q: How do I find the user group ID #?


All times are GMT. The time now is 06:37 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.17356 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
  • (4)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