DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin





DragonByte Tech Proudly Hosted By Hivelocity.net
Custom Fitted Forum Hosting from Hivelocity

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
    Gil
    340 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Aug 2011
    Posts
    74
    Points
    340
    Credits
    112
    Rep Power
    4

    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

  2. #2
    Founder
    Level 0 (0 Loyalty Points)
    Belazor's Avatar
    Gil
    46,388 (460,361 Banked)
    Total Downloaded
    1.57 MB
    Total Downloaded
    1.57 MB
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Dec 2009
    Location
    Glasgow, Scotland
    Age
    27
    Posts
    18,745
    Blog Entries
    13
    Points
    46,388
    Credits
    1,600,946
    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.
    Thanks angus thanked for this post
    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+!

  3. #3
    Member
    Level 4 (2,798 Loyalty Points)
    angus's Avatar
    Gil
    340 (0 Banked)
    Total Downloaded
    0
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Aug 2011
    Posts
    74
    Points
    340
    Credits
    112
    Rep Power
    4

    Default

    Thank you very much!

    working great!
    http://www.dragonbyte-tech.com/signaturepics/sigpic4598_1.gif

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
  •