Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 01-18-2014, 07:56 AM
Snuddo Snuddo is offline
 
Join Date: Aug 2013
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What modules is this? Are they available for download somewhere?

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.
Reply With Quote
  #2  
Old 01-18-2014, 02:36 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-18-2014, 02:59 PM
Snuddo Snuddo is offline
 
Join Date: Aug 2013
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
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.
Reply With Quote
  #4  
Old 01-18-2014, 06:17 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/showthr...=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

Code:
$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.

Code:
<!-- 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,scrollbars=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.

Code:
<!-- 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
Reply With Quote
3 благодарности(ей) от:
Brandon Sheley, Lynne, Simon Lloyd
  #5  
Old 01-29-2014, 01:51 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Code:
</if>
All done.....
Reply With Quote
Благодарность от:
Lynne
  #6  
Old 01-31-2014, 12:05 AM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there be anything different to do this for vb 4.2?
Reply With Quote
  #7  
Old 01-31-2014, 12:13 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe you would need to change $profilefield[profilefieldid] to $post[profilefieldid] and both if to vb:if
Reply With Quote
Благодарность от:
CharlieDelta
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04230 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (5)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete