The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
It may also be possible to accomplish what you want using a hidden custom profile field, and is editable only by certain groups (who along with the user are the only ones who can see the this field). Then, based on the value in that field, a conditional statement in the postbit template (or in a plugin) can be used to display the correct badge.
|
#12
|
||||
|
||||
So sorry you took my answer as rude. Can't be helped, though, be my guest.
Your answer now just tells me that you did not bother to read (or understand) my answer, and that indeed you have not fully understood how permissions work in vB. Of course, its entirely up to you to ignore my advice and replicate complete permission sets (see, that's what I was talking about). Of course you will have to create those 42 usergroups, I never said otherwise. If you replicate permission sets, I just hope you never decide to change anything with those permissions. Because then you'll realize that you may have to replicate that change in 42 secondary usergroups, too. But since my advice is clearly not wanted, I'm out of here. |
#13
|
||||
|
||||
It sounds like you just want to be able to give individuals some 'ranks'/'titles' that you pick and that they really have nothing to do with 'ranks' themselves? If so, you may want to create a new Profile Field that is not editable by the user and is private. Then enter some image name - image.png - into the field for those that deserve this new image. Then just put in the postbit something like"
HTML Code:
<vb:if condition="$post['fieldx']"><img src="path/to/images/{vb:raw post.field2}" alt="something" height="yyy" width="zzz" ></vb:if> |
#14
|
||||
|
||||
Quote:
Code:
$template_hook['postbit_userinfo_left'] The custom profile field will only be editable in the AdminCP. |
Благодарность от: | ||
Lynne |
#15
|
|||
|
|||
Yes, Mark has been very helpful and we are working to get a solution to this. At first it seemed we were going to attempt it via numbers but since the images are actually named (and so we won't have to remember what number applies to what) it looks like we're going to go with the approach where it calls the image by name.
I was at the doctors as I told him but now that I'm back and will have a remarkable amount of free time being ill, I am going to start inserting what Mark has suggested so far. 42 ranks; it's a lot of typing but it seems it will be worth it in the end as it will ease the burden for people who need the administrate the ranks to this one usergroup. |
#16
|
||||
|
||||
Okay, here's what I did:
1.) Edit the custom profile field so that its length can contain multiple file names (I like powers of 2 so I used 2^7 = 128) 2.) On my dev site, I went to a random user's profile in the User Manage within the AdminCP and entered the names of two image files I created for testing (separated by a comma): Note: The add-on assumes the images have the extension "jpg" and are located off the root directory at "static/ranks". The images are stacked from top to bottom in the order in which they are entered into the profile field. 3.) Then I went to a thread where that user has posts, and made sure the images show up in the postbit: So, please download the attached XML file and install it by following: AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product. Click on "Choose File" and browse to the product xml file that you downloaded. Click "Import" Let me know about any changes you would like or if something doesn't work as expected. |
2 благодарности(ей) от: | ||
Guardian Hope, Lynne |
#17
|
|||
|
|||
This appears accurate; allowing for the rank badge and the appropriate wings to appear.
To clarify one thing from our correspondences, you had me create a radio selection as opposed to a single line text box. I assume I should convert the radio selection to single line? After that, all one will have to do is type "admiral,redwings" to get badge 1 as Admiral and Badge 2 as the Red Wings so as long as the images are in /static/ranks (with jpg extensions of course) |
Благодарность от: | ||
MarkFL |
#18
|
||||
|
||||
This was what I originally sent:
Title: User Rank Level Description: Used to determine which rank badge to display in user postbits. Profile Field Category: Ranking (radio button option) Default Value: 0 Max length of allowed user input: 2 Field Length: 2 Profile Field Type: Single-Line Text Box Display Order: 5 Field Required: No Field Editable by User: No Private Field: Yes Field Searchable on Members List: No Show on Members List: No Regular Expression: (leave blank) Display Page: Options: Other But, yes it should be: Profile Field Type: Single-Line Text Box And then change the following: Max length of allowed user input: 128 Field Length: 128 Everything else is correct. |
#19
|
|||
|
|||
Excellent. I will get this installed this evening and let you know if everything is working.
And again, I do appreciate the effort you've gone through to create this for me. --------------- Added [DATE]1432094459[/DATE] at [TIME]1432094459[/TIME] --------------- Hey Mark, I got your plugin installed and working though I did have to make two modifications to the XML file:
However, I was wondering if there was a way to get it to display directly under the username and above the user title. Right now it displays like this: The only reason you don't see the wings yet is I didn't specify them as I haven't pulled them from the phpBB forums yet. This however is an excellent modification and will make the lives of so many people on our board easier once we make the switch to vBulletin in June. (Yes, I got to be that person who double posts; I feel so ashamed; that's always bad forum etiquette. --------------- Added [DATE]1432106733[/DATE] at [TIME]1432106733[/TIME] --------------- One final post which will be merged with the one above it. Mark has been excellent in helping me get this setup. I even built on his extension to separate the wings since it looked nicer below the user title. Here's the final result: |
#20
|
||||
|
||||
Do you mean something like this :
I setup my forum with custom ranks based on post count, but instead of ranks they are Levels. The first image is the Usergroup image, the image at the bottom is the user Rank Level. I custom coded my postbit legacy just for my forum though, so that feature its not in vBulletin by default. But if you need help with the code, I could help you. Just let me know. In your case you could change the levels with your own images. I am not sure what you mean by you don't want the ranks to be based on Post Count. How do you want them to work or increase in rank? If you just want only a few people in a usergroup to have a specific rank/badge image, I think the only way to do that is to edit the users rank yourself via AdminCP. As far as I know anyway, but I could be wrong. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|