The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Actually you want to use $bbuserinfo['fieldX'] instead of $post[fieldX] for forumhome.
|
#12
|
|||
|
|||
Using $bbuserinfo['fieldX'] will use your fieldX for every user.
I think this can be done everywhere with a plugin using hook fetch_musername and code like this: Code:
if (is_member_of($user, 27)) { $user[musername] = '<span style="color:'.$user['field9'].'">'.$username.'</span>'; } |
#13
|
|||
|
|||
Yeah, that's not going to work in the "who's online" because of missing field9 for those users. A few other people have asked about similar things over the past few years, and I looked at the threads quickly but didn't find a complete answer. I'll look at it a little more tomorrow if you haven't worked it out by then.
|
#14
|
|||
|
|||
Quote:
I've seen several sites use it, but non are prepared to share the code. |
#15
|
|||
|
|||
OK, I made you a product xml that you should be able to import, and attached it. In case you don't know already, to do that you go to Plugins & Products > Manage Products and click on the "Add/Import Products" link at the bottom. Then press the "Choose File" button and find the xml file (you would have saved to your computer already), then press "Import".
I did try this but I'm not 100% certain it will add the color everywhere you need (some places just don't have it at all even if you set it in the usergroup manager). But you should be able to remove the edits you made in the postbit template, if you want. Hopefully this is what you wanted. Otherwise, let me know. |
#16
|
|||
|
|||
Quote:
|
#17
|
|||
|
|||
I thought it would work for users online. Sorry if this is a stupid question, but what part are you talking about exactly? Is it "Currently Active Users" on index.php? Maybe I'm thinking of a different section.
|
#18
|
|||
|
|||
Yep that lil bit at the bottom of index.php, and also the members visited today box which is a mod. I tried modifyin that div but it's different coding to the postbit and only shows up as $activeusers
|
#19
|
|||
|
|||
Hmm...it's working for me in "Currently Active Users" (which was kind of the point of it). I don't think I can help you with the mod, I don't know anything about it.
Your VIP group is 27, and the profile field is 9, right? I hard-coded those in that plugin. If you right click one of the user names and "Inspect Element" (or whatever it is for your browser), do you see the <span style="... tags around the user name? |
#20
|
|||
|
|||
Quote:
Just one more thing, how do I bold the usernames? as I currently have <b> </b> in the usergroup manager for that user, but isn't showing as bold? I'm guessing I need to modify the plugin you gave? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|