![]() |
Usergroup image
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. |
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.
|
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.
|
I'm not sure what usergroup image you are talking about, but I do know the rank code:
HTML Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> |
I don't have any custom code...just an image for the paid usergroup...and I cannot find the hook for it. :o :(
|
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.
|
Here's a screenshot of the problem:
Complication with Image Thumbnail on vBulletin.org Free Fast Image Hosting by 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. :'( |
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. |
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* |
Please help me find what code I'm looking for..? :o
|
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.
|
Here's postbit template code:
Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> |
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. |
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).
|
|
Quote:
|
There's no easy way to put the usergroup image below the rank image..?
|
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.
|
If you are not really using User Titles, you can use a user title and user rank together.
|
Is it possible to assign images for specific usergroups somehow instead of using the rank system then..?
|
The usergroup title can be HTML, AFAIK.
|
Quote:
|
Quote:
HTML Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> |
Apparently you can't put HTML code, or an image, in user title for usergroups...I tried and it didn't work.
|
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.
|
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.
|
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 Code:
$user['usertitle'] = $user['displayusertitle'].'<br />'.htmlspecialchars_uni($user['usertitle']); |
All times are GMT. The time now is 07:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|