View Full Version : Usergroup image
King Justice
01-17-2009, 02:29 AM
Hello...
Where/what template do I edit to move a usergroup image ?
Like a usergroup image right now is above the rank image and I want it below, please help, thank you.
Lynne
01-17-2009, 02:56 AM
If you are talking about in a thread, then most likely the postbit or postbit_legacy template. You may find the template by doing this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
King Justice
01-17-2009, 03:02 AM
Yes I see it but I don't know what the hook is for usergroup image display...this is an icon we're using for our paid membership program but I do not see where it is placed or what the code is, please help.
Lynne
01-17-2009, 03:23 AM
I'm not sure what usergroup image you are talking about, but I do know the rank code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
So, find that code and since you say the usergroup code is above there, take the code above that line and move it to below that line. (My postbit code shows the usertitle being above that line, so I'm guessing you have custom code.)
King Justice
01-17-2009, 04:50 PM
I don't have any custom code...just an image for the paid usergroup...and I cannot find the hook for it. :o :(
Lynne
01-17-2009, 04:54 PM
What do you mean find the hook? Post your code around the rank line I posted above. You said this image is right above the rank image, so is the code there or not? Maybe post an image of what you have and then post your template code lines for it.
King Justice
01-17-2009, 11:14 PM
Here's a screenshot of the problem:
Complication with Image Thumbnail on vBulletin.org (http://www.imagespace.us/viewer.php?file=1uxpm3qykt31zjfmd5z.gif)
Free Fast Image Hosting by ImageSpace.us (http://www.imagespace.us/)
I'm sorry Lynne but I don't understand the rest of what you're asking me...I can't find the code(s)...ugh this is so frustrating. :(
For some reason you can see in the above image one usergroup has the usergroup image below their rank but the other usergroup (which are mods, super mods, and admin) have the image above their rank...I want it below the rank image. :'(
Lynne
01-17-2009, 11:26 PM
You are talking about the blue bar or the thing that says Subscriber? Are you sure they aren't both ranks of some sort?
Did you look in your postbit for the code I posted? It would be helpful if you could find it and then post about five lines above it to five lines below it.
King Justice
01-17-2009, 11:50 PM
The subscriber image is obviously the paid usergroup image.. :p
I'll try and look at the code but I'm not sure what I'm supposed to find. :( *cry*
King Justice
01-20-2009, 11:12 PM
Please help me find what code I'm looking for..? :o
Lynne
01-20-2009, 11:35 PM
I don't know what else to tell you. I've asked you to post the lines from your postbit (or postbit_legacy) template around the line I quoted in post 4. I can't help if you don't post that.
King Justice
01-30-2009, 07:05 PM
Here's postbit template code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
and here's postbit_legacy code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
Please help. :o
Vaupell
01-30-2009, 09:47 PM
well you see the problem is both locatations are store in one line
so i doubt just editing the template will work..
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Is containing both rank and usergroup img.
to prove this you can add <!-- infront and --> after then look at you posts.
they are both gone.
im not sure where to edit, searching around a little though interesting.
Lynne
01-31-2009, 01:08 AM
As said in the post above, it looks like you are using the rank system for both the rank and the usergroup image. It seems like what you want is to put an order to the rank images so the usergroup one is always on the bottom. I have seen threads where users ask about this, but don't know if an answer was posted. Do a search on "rank" and you should find the thread(s).
DragonBlade has figured a way out.
https://vborg.vbsupport.ru/showthread.php?t=109292&page=2
Vaupell
01-31-2009, 12:54 PM
DragonBlade has figured a way out.
https://vborg.vbsupport.ru/showthread.php?t=109292&page=2
lol yeah i see. well there you go. :p:up:
King Justice
02-05-2009, 05:11 AM
There's no easy way to put the usergroup image below the rank image..?
Lynne
02-05-2009, 03:00 PM
Since you are using the Ranks system for both the usergroup image and the rank image, there is no easy way. You may install a mod that allows you to 'order' your ranks and then it should do what you want.
Dismounted
02-06-2009, 08:22 AM
If you are not really using User Titles, you can use a user title and user rank together.
King Justice
02-07-2009, 04:51 AM
Is it possible to assign images for specific usergroups somehow instead of using the rank system then..?
Dismounted
02-07-2009, 04:55 AM
The usergroup title can be HTML, AFAIK.
King Justice
02-11-2009, 09:28 PM
The usergroup title can be HTML, AFAIK.
That'll still make the image above teh rank image and I want it below.
Lynne
02-11-2009, 10:14 PM
That'll still make the image above teh rank image and I want it below.
Then simply swap the order of the two lines:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
King Justice
02-12-2009, 02:15 AM
Apparently you can't put HTML code, or an image, in user title for usergroups...I tried and it didn't work.
TigerC10
02-12-2009, 12:40 PM
Yes you can, you just have to get the image location correct. I'm running the latest vB and I have images in the user titles for the forum staff.
Haltech
02-13-2009, 08:20 PM
How did you use it? On 3.6, i had a custom user title i was able to use with the addition of their user title. Migrating to 3.7.x killed this mod and i would like to have a user image rank for donators and staff.
TigerC10
02-13-2009, 09:17 PM
Once you make the change to the usergroup title, you have to update everyone's titles and ranks.
AdminCP > Maintenance > Update Counters > Update User Titles and Ranks
Once you've done that you just need to remove the custom title of whoever's in that usergroup. Alternatively, you can just include the HTML for the image in the custom usertitle.
Or you could set a rank for the usergroup such that everyone is awarded the rank.
@Haltech - I'm not sure what mod you're talking about, but I think that if you make your own plugin, you can fix that problem of yours...
Product: [whatever, vBulletin or something else or make your own, doesn't matter)
Hook Location: fetch_musername
Plugin Title: Put group titles and user titles together
$user['usertitle'] = $user['displayusertitle'].'<br />'.htmlspecialchars_uni($user['usertitle']);
That should display the group title above the custom user titles. In theory. I haven't tried it. If you point me to the mod that broke I might be a little more helpful.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.