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 02-11-2008, 09:33 PM
pkallberg21 pkallberg21 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Geek Article and Review System License Holder 
Default Help with Permissions

Hello,
I would like to limit the use of the "new tutorial" or "new guide" buttons to a certain usergroup, how would I go about doing that?

I have looked through the templates but I cannot find the correct link to put this permission on. Any help very appreciated!

Thanks.
Reply With Quote
  #2  
Old 02-11-2008, 10:48 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
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

Buttons are changes on the fly, depending on whether you set a 'New thread button' and/or 'New reply button' for the term set.

There is one change located in the gars_class_list.php file:
Code:
            if ($this->terms['new_button'])
            {
                  $this->vb->templatecache['FORUMDISPLAY'] = str_replace("newthread.gif", $this->terms['new_button'], $this->vb->templatecache['FORUMDISPLAY']);
            }
There is another change located in the gars_class_page.php file:
Code:
                        if ($this->terms['reply_button'])
                        {
                                $this->vb->templatecache['SHOWTHREAD'] = str_replace("reply.gif", $this->terms['reply_button'], $this->vb->templatecache['SHOWTHREAD']);
                        }
You'll need to make code edits if you want certain buttons to show based on usergroup.

Alternatively, you could leave 'New thread button' and/or 'New reply button' blank and then use template conditionals in whatever templates you are using for the type.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 02-12-2008, 04:47 PM
pkallberg21 pkallberg21 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Geek Article and Review System License Holder 
Default

Thanks for your response. Could you tell me specifically what code changes need to be made?

Preferably you could give me some code and tell me what to replace

Thanks again!
Reply With Quote
  #4  
Old 02-13-2008, 09:44 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
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

You might want to try the alternative method and use is_member_of in the template conditional, but sorry, I'm not offering individual customizations as part of support. Here are a couple of links that explain is_member_of usage in templates:
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
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
Permissions problem? rockinaway Geek Article and Review System 4 04-06-2009 03:47 PM
Permissions Bug Or Maybe Not azn_romeo_4u Geek Article and Review System 4 07-01-2006 07:39 PM
Permissions HELP! tommy Geek Article and Review System 1 05-30-2006 04:46 PM
Permissions Seeker Geek Advertising Banner System 2 03-05-2006 10:13 PM
admin permissions FD929 GeekMart 0 11-22-2005 03:13 AM


All times are GMT. The time now is 10:47 AM.


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