Announcement

Collapse
No announcement yet.

Exclude groupid X from the time limit for editing option

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exclude groupid X from the time limit for editing option

    I need to exclude a certain usergroup from the options that limits the time in which users can edit their posts. How can this be accomplished?
    In the editpost.php I tried this:

    Code:
    // check for time limits
     if ($postinfo['dateline'] < (TIMENOW - ($vbulletin->options['edittimelimit'] * 60)) AND $vbulletin->options['edittimelimit'] != 0 AND $vbulletin->userinfo['usergroupid'] != X)
     {
    eval(standard_error(fetch_error('edittimelimit', $vbulletin->options['edittimelimit'], $vbulletin->options['contactuslink'])));
     }
    But it didn't work... Any idea?

    Thanks to all of you!!!
    If you are italian send me a pm!

    (Se sei italiano contattami in privato!)

  • #2
    There's no function to do this, it'd require code modification.
    Please search or ask on www.vbulletin.org for help with code modification.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      Originally posted by Colin F View Post
      There's no function to do this, it'd require code modification.
      Please search or ask on www.vbulletin.org for help with code modification.
      Thanks, sorry if asked in the wrong place!


      Kindest Regards
      If you are italian send me a pm!

      (Se sei italiano contattami in privato!)

      Comment


      • #4
        Here is an example of how you would do this using a plugin. This example restricts all but the admin from editing posts older then 1 year.

        Click image for larger version

Name:	Untitled-1.jpg
Views:	1
Size:	84.3 KB
ID:	3669053

        Comment

        Related Topics

        Collapse

        Working...
        X