The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin help
I have the Edit Time Limit setting turned on but have an exemption set so that not all usergroups have to deal with it. Here's the code:
Code:
if (is_member_of($vbulletin->userinfo, 5, 6, 7, 10, 11, 109)) { $vbulletin->options['edittimelimit'] = '0'; } |
#2
|
|||
|
|||
You could do this:
Code:
if (is_member_of($vbulletin->userinfo, 5, 6, 7, 10, 11, 109) OR in_array($GLOBALS[forumid], array(1, 2, 3))) { $vbulletin->options['edittimelimit'] = '0'; } This will change the edit limit for everyone in forums 1, 2, and 3. If you wanted the limit changed only for certain usergroups in certain forums, then you'd change OR to AND. |
#3
|
|||
|
|||
I get syntax errors up at the top of the page when I use that code. Maybe I should have mentioned this is for 3.8?
|
#4
|
|||
|
|||
I don't think the version is the issue. But which hook are you using?
Edit: actually I think I was just missing a closing paren, which I've now added to the code above. Sorry about that. |
#5
|
|||
|
|||
fetch_foruminfo
Should I change that? |
#6
|
|||
|
|||
I'm not sure offhand. If it's worked for you so far then it's probably OK. But just in case you missed my edit above, I think the problem was a missing closing paren.
|
#7
|
|||
|
|||
Yeah, that looked like the issue. Thanks for that, I probably could have looked closer and saw that myself. Much appreciated.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|