DTO vBulletin Product Support


Go Back   Drive Thru Online - Support | Drive Thru Online vBulletin Products > Pre-Sales Questions > DTO Vendor Tools

DTO Vendor Tools Questions regarding our Vendor Tools product.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2011, 03:55 PM
joeycuccaro joeycuccaro is offline
 
Join Date: Jul 2010
Posts: 6
Default Link to Vendor CP missing from bottom of page

How can i easily add this link back on the bottom of the forum near the "Contact Us" and "Admin Panel" links? It is also missing from the Navtab drop down...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-10-2011, 07:44 AM
Nathan Nathan is offline
Director - Product Support
 
Join Date: Jan 2009
Location: Ohio
Posts: 537
Default

These were custom created for you at the time.

In the footer template you will want to add a link to the vendorcp wrapped in a conditional only to allow the the usergroup(s) that have VendorCP permissions.

The navbar template would require the same.

Code would be such as this with the number being the usergroup that have VendorCP access. If multiple groups have access separate with a comma.

PHP Code:
<if condition="is_member_of($bbuserinfo, 16)">
   <
a href="$vboptions[bburl]/vendorcp">Vendor CP</a>
</if> 
__________________
-----
Nathan Freedenberg
Director - Product Support
Drive Thru Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-10-2011, 02:59 PM
joeycuccaro joeycuccaro is offline
 
Join Date: Jul 2010
Posts: 6
Default

Quote:
Originally Posted by Nathan View Post
These were custom created for you at the time.

In the footer template you will want to add a link to the vendorcp wrapped in a conditional only to allow the the usergroup(s) that have VendorCP permissions.

The navbar template would require the same.

Code would be such as this with the number being the usergroup that have VendorCP access. If multiple groups have access separate with a comma.

PHP Code:
<if condition="is_member_of($bbuserinfo, 16)">
   <
a href="$vboptions[bburl]/vendorcp">Vendor CP</a>
</if> 
Thanks Nathan,

Didn't seem to work though as i got this error:

The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

That code didn't seem like the links for the admin cp, etc:

<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-10-2011, 03:28 PM
Nathan Nathan is offline
Director - Product Support
 
Join Date: Jan 2009
Location: Ohio
Posts: 537
Default

Joey,

Mark must have created a custom bit of code for you then. I went back and looked over your tickets and found the one where we did that. To bad we didn't include the code for future reference. Please open a ticket and I'll bump it over to Mark again. This time I'll make sure we add the code to the ticket for future reference.

Thanks
__________________
-----
Nathan Freedenberg
Director - Product Support
Drive Thru Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-10-2011, 10:03 PM
Mark's Avatar
Mark Mark is offline
Administrator
 
Join Date: Nov 2008
Posts: 1,108
Default

The syntax is slightly different with vB4:

The general format is as follows:
PHP Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Show this to user group 12, and 3</vb:if> 
For the vendorcp example it would be (given that 16 is the id of the vendor rep usergroup):

PHP Code:
<vb:if condition="is_member_of($bbuserinfo, 16)"
   <
a href="{vb:raw vboptions.bburl}/vendorcp">Vendor CP</a
</
vb:if> 
__________________
Mark Ferguson
President - Drive Thru Online, Inc.
Drive Thru Online Helping Turn Your Passion into Profit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-11-2011, 07:31 AM
joeycuccaro joeycuccaro is offline
 
Join Date: Jul 2010
Posts: 6
Default

All situated now. Thanks fellas!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 11:24 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2021, vBulletin Solutions, Inc.