PDA

View Full Version : What modules is this? Are they available for download somewhere?


Snuddo
01-18-2014, 07:56 AM
Does anyone know where to download these modules, I am after a module where it lets me write whatever I want for example, as in the picture "Vendor Of: Blabla" and then it redirects to that sales thread when you click on the text.

And I am also after that reputation module, you can give either positive, neutral or negative reputation.

Does anyone know if they are publicly available or if they are custom made?

Please let me know.
https://vborg.vbsupport.ru/external/2014/01/32.png

blind-eddie
01-18-2014, 02:36 PM
vb 3.8 or vb 4?

The Vendor of: can be created by creating two custom profile fields that only admin can see and edit.
One profile field for the link name and one profile field for the URL. You will be able to add link name and url via acp /member profile, your members will not be able to edit this.
You will then need to add code to postbit/postbit_legacy for it to show.

If you need this for vb 3.8 board, I will give you the code needed to accomplish this.

Snuddo
01-18-2014, 02:59 PM
vb 3.8 or vb 4?

The Vendor of: can be created by creating two custom profile fields that only admin can see and edit.
One profile field for the link name and one profile field for the URL. You will be able to add link name and url via acp /member profile, your members will not be able to edit this.
You will then need to add code to postbit/postbit_legacy for it to show.

If you need this for vb 3.8 board, I will give you the code needed to accomplish this.

vb 3.8

I would love if you could help out with making that vendor of: module. Would I also be able to change the color of the text? I will donate you some bitcoins as thanks for help.

blind-eddie
01-18-2014, 06:17 PM
No donation needed....
First, make two new profile fields.
One for link name and one for link URL.
Remember each new profile field number, you will need it to edit the code below with your new profile field numbers.


DEMO: http://blind-eddie.com/forum/showthread.php?p=1869#post1869

CREATE A BACK UP OF ANY TEMPLATE BEFORE YOU EDIT IT, YOU WILL NEED IT IF YOU HAVE ISSUES.


In your postbit and/or postbit_legacy template search for

$vbphrase[posts]: $post[posts]

Add below:

Don't forget to edit the profile field numbers

Use the following if you want the link to open in a large adjustable popup.

<!-- Start Vendor-->
<div class="smallfont" align="left">
<if condition="$post[field43]"><br><font color="red">Vendor of:</font>
<br><a href="#" onclick="window.open('$post[field44]','vendor1','statusbar=no,menubar=no,toolbar=no,sc rollbars=yes,resizable=yes,width=950,height=450'); return false;"><font color="green">$post[field43]</font></a><br>
</if></div>
<!-- End Vendor-->


OR


Don't forget to edit the profile field numbers

Use the following code if you want the link to open in the same window.

<!-- Start Vendor-->
<div class="smallfont" align="left">
<if condition="$post[field46]"><br><font color="red">Vendor of:</font>
<br>
<a href="$post[field46]"><font color="yellow">$post[field45]</font></a>
</if></div>
<!-- End Vendor-->


Happy Editing

blind-eddie
01-29-2014, 01:51 PM
Hello Snuddo, instead of chating via pm, I would rather post info here.
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:

<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: </if>

All done.....

CharlieDelta
01-31-2014, 12:05 AM
Would there be anything different to do this for vb 4.2?

ozzy47
01-31-2014, 12:13 AM
I believe you would need to change $profilefield[profilefieldid] to $post[profilefieldid] and both if to vb:if