Hello Snuddo, instead of chating via pm, I would rather post info here.
Quote:
These tags will be shown on all user profiles? Because I only want them to be shown on users who is in the "Vendor" usergroup. And all vendors will not have the same "Vendor Of:" as each vendor does not offer same services.
Is there a easier way to do it like a module of some sort? I could pay for it.
|
Sorry there is no addon for this that I am aware of. And again, no money needed.
You will have to first create two new profile fields.
ACP/User Profile Fields/Add New User Profile Field, Select: Single-Line Text Box
Title: Vendor Name
Description: Add what ever you want.
Leave all other settings as they are.
Down in the Display Page Section select "Options Other" (Selecting this will show the fields at the bottom of the Edit Options page.) Save
Repeat this for the second profile field but change the Title to "Vendor URL"
Remember the profile field number for each.
Please remember to copy any templates and save them to your desk top before you edit them, incase you have an issue.
Follow the steps, using one of options I posted above.
================================================== ====
To allow these profile fields to be used by a specific usergroup you will need to add some code to the userfield_wrapper template.
ACP/Styles & Templates/Search in Templates/Select your style.
Add
userfield_wrapper in the text box.
Search Titles Only, select Yes
At the very top of the userfield_wrapper template add the following code:
Code:
<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(43,44)) OR is_member_of($bbuserinfo, 6))">
Change 43,44 to the two profile field numbers of the Vendors, Name & URL profile fields you created.
Change 6 to the Usergroup you wish to see and use these profile fields.
At the very bottom of the userfield_wrapper template add:
All done.....