The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Can anyone please tell me why the following code will give me the error_editpriority template whenever I go to edit a post in only 1 certain forum? It tells me I have to be an Admin to edit the post and won't let me in to edit it.
![]() PHP Code:
|
|
#2
|
|||
|
|||
|
Label me crazy but isn't the global permissions variable $permissions and not $getperms?
|
|
#3
|
||||
|
||||
|
I think so. But (are you ready for this?), Xenon wrote that code for his edit heiarchy hack.
He knows way more about this stuff than I do.
|
|
#4
|
||||
|
||||
|
filburt, your suggestion seemed to fix it. I changed all of the $getperms to $permissions and now I can edit the post. Thank you.
|
|
#5
|
||||
|
||||
|
hmm, wiered, AFAIK it has worked when i released it....
|
|
#6
|
||||
|
||||
|
I'm not sure. I had Logician's edit Hierarchy hack right above this code when I put it in. They are both still there. Is there a way to combine the two into one? By the way, changing the getperms to permissions seems to work now.
|
|
#7
|
|||
|
|||
|
You could be lazy and do (IIRC):
PHP Code:
|
|
#8
|
||||
|
||||
|
yes it's possible to use them both, as i use it on my board
![]() hmm, maybe i defined getperms there somewhere
|
|
#9
|
||||
|
||||
|
When I use them both, I always end up with the template from Logician's hack being called. The only time it called yours is when I had the problem with it.
I didn't see getperms defined anywhere in your code. Maybe I missed something?
|
|
#10
|
||||
|
||||
|
line 36 in a unhacked editpost.php:
PHP Code:
![]() if this doesnt exists on your file, you should readd it again ![]() also be sure the if block of logicians/mine hack is BELOW that
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|