The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Profile Fields in a Postbit Dropdown Details »» | |||||||||||||||||||||||||
If you use this mod please hit INSTALL!
This is an evolution of my Additional Section within Profile and Dropdown within Posts mod from 3.6.x. If you have a pre-3.7.x version installed: UNINSTALL the old product and reverse the edits. Don't forget to revert those templates ----------------------------------------------------------------------- With this mod you can allow profile fields to show up in a dropdown below a user's name and user's title under each post. There are two ways to use this product, and each has its own plugin (and template): Dropdown - Manual (enabled by default), and Dropdown - Automated (disabled by default). NOTE: The dropdown's title shows up as [username]'s [dropdown_title]. Yes, the 's is hardcoded into the mod. If you'd like this not to be hard coded, simply mention it after hitting install, and if enough of the users want it, I'll change it. Figured if I didn't hardcode it, someone wouldn't figure out how to add it To edit the title: Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save! The dropdown is dependent on Profile Field 5 being filled. If the user does not have this profile field filled out, then the dropdown will not show. To edit or remove this restriction: Go to the Dropdown Call Template. Find and edit, or remove these 2 lines of code (so that the dropdown will always show): Code:
<if condition="$post['field5']"> ... </if> The Plugin "Dropdown - Manual" is just like the 3.6.x version, all manual edits, but now they're in a template. No more files to manually edit Some examples of how to do this are already provided within the template. Go to AdminCP -> Styles & Templates -> Style Manager -> [STYLE NAME] Edit Style: Dropdown Information - Manual To use the automated dropdown, DISABLE Plugin "Dropdown - Manual" and ENABLE Plugin "Dropdown - Automated". Simple! "Dropdown - Automated" will automatically create the dropdown for ALL custom fields (it will skip the first 4 default ones). To sum it up: Plugin: Dropdown - Manual PRO: You select which fields, what descriptions, and in what order you want the fields to show up. CON: Lots of typing Plugin: Dropdown - Automatic PRO: Automatic! CON: no real control, Profile fields 5 and up will show up in order. NOTE: if it is a HIDDEN profile field, apparently only the DATA is hidden, not the field name, so the field name will show up as well. To block a profile field from showing up in the Automatic Dropdown, check out this post. Version History: 3.0.0 - Initial Release 3.0.1 - Added plugin to cache templates, courtesy of ssslippy. If you use this mod please hit INSTALL! Show Your Support
|
Благодарность от: | ||
livenetc |
Comments |
#52
|
|||
|
|||
Hi Wired,
Remember I had a rogue set of fields that I thought were from the last install? Well, I went through the installation instructions for the old version and removed the code and files. I thought it was woring well, but then I noticed that new users didn't have a dropdown, and it turns out that I have a second set of input fields in the user profile page within the adminCP (see pic). The extra fields look like the old fields from the old hack. If I have the manual plugin enabled, when new members add their info, the dropdown doesn't appear, until I go into their profile in the admincp and add something to the first field. Once that is done, it all works as it should. With the plugin set to auto, the dropdown appears, but there are two lots of system specs, one on top of the other. I have a feeling that if I can get rid of the extra set of fields from the user profile in admincp, this will fix itself, and thats the problem...I can't find any duplicates. I've searched the templates, searched phrases, but can't find anywhere that these extra fields live. I've also added all new style templates. #image here Any ideas? Thanks Dave. |
#53
|
||||
|
||||
The etra profile fields page is still partially in there, at least the manual edits are. When you go to the admincp and look at the User Profile Field Manager, do you see both pairs of system specs? If not, you need to do the manual edits for them. Install the 3.7.x version of it, do the 2 manual edits (1 template 1 php). You'll see the extra ones, remove them, then undo the edits and uninstall the product. Check my profile for the link to the 3.7.x Extr Profile Fields Page mod.
|
#54
|
|||
|
|||
Yep, I have the 2 sets of system specs, see image in link above
I have installed the new extra profile fields mod, and the drop down doesn't appear until I enter anything into the "extra options" fields, but any info that is entered, doesnt show in the dropdown, what shows is the old info that is in the top set of fields in this pic. I'm baffled, and don't mind admitting it |
#55
|
||||
|
||||
Go to User Profile Field Manager, and delete the profiles you want to get rid of. For the manual edit, make sure you are using the correct field #s.
|
#56
|
|||
|
|||
Im running in debug mode and its showing your template as red which If im correct means its not cached. Please cache your templates.
|
#57
|
|||
|
|||
That worked thanks Wired1
|
#58
|
||||
|
||||
It's funny that in 3 years, NO ONE has ever asked about caching the template
|
#59
|
|||
|
|||
I just noticed this while testing another mod. it appears that the users name is not included in the drop down box on the Private message template
Anyone else noticing this? |
#60
|
||||
|
||||
PM template? The product should not show up on that template. Not on my test vB install, nor on my live board.
|
#61
|
|||
|
|||
Hey all - quick question.
Has anyone else run into an issue on their PM screen? Like when you're reading a PM and that user has their information filled out? This is what I'm getting: http://www.mj-garage.com/pics/pm.PNG The users name isn't showing up...also, when you click on it, none of their info comes up either. Anyone experiencing this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|