Results 1 to 4 of 4

Thread: Edit button on News module always visible

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    4

    Default Edit button on News module always visible

    I just downloaded and installed CMPS V2.0.0 last night (and purchased vBa gallery also ), and everything with CMPS is working fine except for one thing.

    I can't get rid of the edit buttons on the News Module on the index page. They don't show up when I'm in my forum. The only fix I came up with is editing the modules/news.php source code, but this disables editing for everyone including myself.
    Code:
    $show['editbutton'] = false;
    
    	if ((($newsforumperms["$news[forumid]"] & $vbulletin->bf_ugp_forumpermissions['caneditpost']) AND $vbulletin->userinfo['userid'] == $news['userid']) OR can_moderate($news['forumid'], 'caneditposts'))
    	{
    		$show['editbutton'] = true;
    	}
    Did I bork my permissions or something?

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,463

    Default Re: Edit button on News module always visible

    Which version of vBulletin are you running? Does the edit button show up for guests and other groups that don't have permission to edit posts?

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    4

    Default Re: Edit button on News module always visible

    VB: Version 3.5.0
    CMPS v2.0.0 (vB 3.5)

    I did a little more digging. When I'm logged in as another user, I don't see the edit button which is fine because one user should not have permission to edit another user's thread (unless they're admins of course).

    But, when I'm not logged in, I do see the edit button. When I click the edit button, I then get prompted to log in. Do I need to change my "unregistered users" permissions or something?

  4. #4
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,463

    Default Re: Edit button on News module always visible

    Strange... Yes, double check your unregistered usergroup and make sure they don't have permissions to edit threads.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vBa CMPS edit news threads in news options
    By SNW in forum Troubleshooting & Problems
    Replies: 4
    Last Post: 11-03-2005, 05:27 PM
  2. Custom Field visible/edit to specific group only
    By libertate in forum "How Do I..." Questions
    Replies: 1
    Last Post: 07-04-2005, 11:16 AM
  3. Edit button removal?
    By jrcart in forum Bugs From 2.0 RC1
    Replies: 13
    Last Post: 06-29-2005, 09:51 PM
  4. Lost Edit button :(
    By Merjawy in forum Bugs & Other Issues
    Replies: 5
    Last Post: 07-09-2004, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •