Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2002, 04:09 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 07-28-2002, 08:09 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

huh... that site has nothing special... its normal default vbulletin
Reply With Quote
  #3  
Old 07-28-2002, 08:45 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-28-2002, 09:02 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]; 
Reply With Quote
  #5  
Old 08-23-2002, 05:37 AM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Name <space> Image
Reply With Quote
  #6  
Old 08-23-2002, 06:25 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just change Xenon's code around...

And swap the image and the $post[username]

g-force2k2
Reply With Quote
  #7  
Old 08-23-2002, 06:55 AM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-23-2002, 06:58 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try

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

g-force2k2
Reply With Quote
  #9  
Old 08-23-2002, 10:07 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you mean:

PHP Code:
$post[username]=$post[username]."&nbsp;<img src=jeep.gif>"
Reply With Quote
  #10  
Old 01-15-2003, 05:11 AM
GCPrez GCPrez is offline
 
Join Date: Dec 2002
Location: OTown
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Newbie Q: How do I find the user group ID #?
Reply With Quote
  #11  
Old 01-15-2003, 05:48 AM
GCPrez GCPrez is offline
 
Join Date: Dec 2002
Location: OTown
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get this to work....

PHP Code:
if($post[usergroupid] = "6";) $post[username] = $post[username]."&nbsp;<BR><a title="Premium Member" href="http://www.glaciercomics.com/"><img src="http://www.glaciercomics.com/images/premium.gif" width="20" height="20"></a>"; 
Anything I try I get:

Parse error: parse error, unexpected ';' in /home/virtual/site116/fst/var/www/html/forums/admin/functions.php on line 226

Fatal error: Call to undefined function: getuserinfo() in /home/virtual/site116/fst/var/www/html/forums/admin/sessions.php on line 366
Reply With Quote
  #12  
Old 01-15-2003, 05:50 AM
rY rY rY rY is offline
 
Join Date: Jul 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yo Prez can u help me with my problem
Reply With Quote
  #13  
Old 01-15-2003, 07:02 AM
GCPrez GCPrez is offline
 
Join Date: Dec 2002
Location: OTown
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I'm lost on this one myself.
Reply With Quote
  #14  
Old 01-15-2003, 11:00 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Prez: this can't work, use this instead:
PHP Code:
if($post[usergroupid] == 6$post[username] = $post[username].'&nbsp;<BR><a title="Premium Member" href="http://www.glaciercomics.com/"><img src="http://www.glaciercomics.com/images/premium.gif" width="20" height="20"></a>'
the usergroupid you get in your acp, when you highlight the link to edit a usergroup
Reply With Quote
  #15  
Old 04-27-2004, 09:21 PM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to use this hack, but I can't get the icon where I would like it.

I want it to be like this:
USERNAME HERE
Usertitle Here(or Custom User title)
Donating Member Icon Here

How would I go about getting this done? I got it working where it puts it above the usertitle. Any help is greatly appreciated!!!

Thanks much!
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:36 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.05031 seconds
  • Memory Usage 2,321KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (15)post_thanks_box
  • (15)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (15)post_thanks_postbit_info
  • (15)postbit
  • (15)postbit_onlinestatus
  • (15)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete