![]() |
Edit post error
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:
|
Label me crazy but isn't the global permissions variable $permissions and not $getperms?
|
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.
|
filburt, your suggestion seemed to fix it. I changed all of the $getperms to $permissions and now I can edit the post. Thank you. ;)
|
hmm, wiered, AFAIK it has worked when i released it....
|
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. ;)
|
You could be lazy and do (IIRC):
PHP Code:
|
yes it's possible to use them both, as i use it on my board ;)
hmm, maybe i defined getperms there somewhere ;) |
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?
|
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 :) |
I have this:
PHP Code:
But the error didn't go away until I changed the getperms to permissions in yours. That is strange. It should have worked, shouldn't it? |
it should have worked, and as i can see on my board it also does work :)
i cant say more, sorry ;) |
I can pm you the code block for Logician's and your hack if it will help figure it out at all. ;)
|
ok, maybe i can find something :)
|
On it's way. Thank you. ;)
|
All times are GMT. The time now is 10:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|