Current time: 05-23-2012, 01:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Usergroup Displayed?
02-16-2009, 08:16 AM (This post was last modified: 02-16-2009 08:17 AM by Yumi.)
Post: #11
RE: Multiple Usergroup Displayed?
Sorry, I sped read the posts.

To use the usergroup image instead, in the file, replace both instances of:
PHP Code:
format_name($ug['title'], $ug['gid'], 0
with
PHP Code:
'<img src="'.strtr($ug['image'], array('{lang}' => (empty($GLOBALS['mybb']->user['language'])?$GLOBALS['mybb']->settings['bblanguage']:$GLOBALS['mybb']->user['language']), '{theme}' => $GLOBALS['theme']['imgdir'])).'" alt="'.$ug['title'].'" title="'.$ug['title'].'" />' 

You might also want to remove the comma separators - just edit this:
PHP Code:
$comma ', '

Untested, so tell me if it works. Thanks.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2009, 11:31 AM
Post: #12
RE: Multiple Usergroup Displayed?
Hi, Nope that code doesn't work, as I've changed the code in the file, uploaded it and it doesn't let me access the plugins section, but without the plugin there it does.



-Ashley
Find all posts by this user
Quote this message in a reply
02-17-2009, 01:20 PM
Post: #13
RE: Multiple Usergroup Displayed?
Works for me. Maybe edited wrong?

Anyway, give this a try. Note, it assumes you've got group images for each group.


Attached File(s)
.php  grpinprof.php (Size: 1.67 KB / Downloads: 63)
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2009, 03:38 PM
Post: #14
RE: Multiple Usergroup Displayed?
Hello,
It shows correctly on the Member Profile Smile

If there anyway to make the images show up on the thread under there normal groups?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication