The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2007, 01:07 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default showthread conditional

I added the New Thread button in my showthread, but for Gars enabled forums I'd like to display it only for mods. Is there a conditional I could use? Like

<if condition="this_is_a_gars_forum">

thanks.
Reply With Quote
  #2  
Old 04-29-2007, 07:12 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

How about:

<if condition="is_object($vbulletin->gars)">

HTHs!
Reply With Quote
  #3  
Old 04-29-2007, 07:25 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

I had tried that earlier and it said

The following template conditional expression contains function calls:

<if condition="is_object($vbulletin->gars) AND !$show['modcplink']">

Function Name Usage in Expression
is_object is_object($vbulletin->gars)

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.
Reply With Quote
  #4  
Old 04-29-2007, 07:55 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Then how about:

<if condition="$vbulletin->gars->settings">

</if>
Reply With Quote
  #5  
Old 04-29-2007, 08:09 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

PHP Code:
<if condition="$vbulletin->gars->settings AND !$show['modcplink']">(dont show to regular members)
<else />(
you can show it)
<
a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img
src
="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></if> 
that seems to think that all forums are using Gars settings and not dislaying it to regular users in non gars forums
Reply With Quote
  #6  
Old 04-30-2007, 07:06 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

It is an odd conditional prone to some problems. Try this one:

<if condition="$vbulletin->gars->type['title'] AND $show['modcplink']">
<--SHOW LINK -->
</if>
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Turn ads off field in a conditional Tigratrus Geek Advertising Banner System 1 06-24-2008 04:46 PM
Get rid of a few thing on showthread DMH Geek Article and Review System 1 08-06-2007 02:43 PM
Border in showthread not looking right nymyth Geek Article and Review System 15 07-03-2007 09:07 PM
Showthread module size rlpartida Geek Article and Review System 7 05-22-2007 07:18 PM
conditional doesnt allow GAL kafi Geek Auto-Linker 6 01-23-2007 02:17 PM


All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.