DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin






Request Support

Have an issue with one of our products? Want to suggest a new feature? Need help with configuration?
Loading...

User Tag List

Results 1 to 3 of 3

Thread: Disable editor Post-Template entry for groups without permission


Forum: vB Post Templates

Support / Suggestions for vB Post Templates.
Click here to download!

  1. #1
    Member
    Level 4 (2,798 Loyalty Points)
    angus's Avatar
    Total Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Aug 2011
    Posts
    69
    Points
    375
    Credits
    112
    Rep Power
    5

    Default Disable editor Post-Template entry for groups without permission

    I wonder why the Post Template button/popup/entry at the end of the editor toolbar is shown, if there is no permission for usergroups to use the function.

    I only want that moderators can use the templates. So itīs not necessery to show the function for all usergroups.
    How can I do this?

    Is there a possibilty to work with vb conditionals, and if so, where?
    http://www.dragonbyte-tech.com/signaturepics/sigpic4598_1.gif
    0 0 0
     
    Disable editor Post-Template entry for groups without permission Send PM  

  2. #2
    Founder
    Level 0 (0 Loyalty Points)
    Belazor's Avatar
    Total Downloaded
    1.57 MB
    Total Downloaded
    1.57 MB
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Dec 2009
    Location
    Glasgow, Scotland
    Age
    28
    Posts
    21,988
    Blog Entries
    13
    Points
    56,482
    Credits
    2,558,794
    Rep Power
    10

    Default

    Change the vB Post Templates: Add To CKEditor plugin to this code:
    PHP Code:
    if ((vB::$vbulletin->userinfo['permissions']['vbpt_permissions'] & vB::$vbulletin->bf_ugp_vbpt_permissions['vbpt_use']) OR (vB::$vbulletin->userinfo['permissions']['vbpt_permissions'] & vB::$vbulletin->bf_ugp_vbpt_permissions['vbpt_use_defined']))
    {
        
    $this->config['_extraPlugins'] .= ',PostTemplates';
        
    $this->config['toolbar'][count($this->config['toolbar']) - 1][] = 'PostTemplates';

    Fillip Hannisdal
    Founder & Programming Director
    DragonByte Technologies http://www.DragonByte-Tech.com


    Please do not Private Message me with support requests or product questions. PMs are only for exchanging sensitive information (like FTP / AdminCP logins).
    Please do not Private Message me with business related queries (refunds, complaints, feedback, etc). Decado is the person to PM for those issues.
    Please do not Private Message Decado with support requests or forum errors.

    When I say "Hotfix Released" it means you should re-download the product and re-upload the files.
    Like our products? Want to be notified on social media networks when we release updates or new products? Click the buttons below to Like us on Facebook, Follow us on Twitter and Follow us on Google+!
    1 0 0
     
    Disable editor Post-Template entry for groups without permission Send PM  

  3. #3
    Member
    Level 4 (2,798 Loyalty Points)
    angus's Avatar
    Total Downloaded
    0
    Total Downloaded
    0
    User InfoThanks / Tagging InfoGifts / Achievements / AwardsActivity Stats
    Join Date
    Aug 2011
    Posts
    69
    Points
    375
    Credits
    112
    Rep Power
    5

    Default

    Thank you very much!

    working great!
    http://www.dragonbyte-tech.com/signaturepics/sigpic4598_1.gif
    0 0 0
     
    Disable editor Post-Template entry for groups without permission Send PM  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Testing the Post Template for 4.1.1
    By cykelmyggen in forum Off-Topic
    Replies: 0
    Last Post: 23rd July 2011, 13:03
  2. Post templates
    By Smilie in forum Website / Company Feedback & Suggestions
    Replies: 2
    Last Post: 16th July 2010, 21:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.