![]() |
Not Show Edit Post Button
I want to be able to only have the "Edit Post" button show up for anyone who is able to edit posts. I troed the caneditposts variable and I can't get it to work. the button still shows up for those who are not able to edit posts. this is the code I started with:
Code:
if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) { Code:
if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="6" or !ismoderator($threadinfo[forumid],"caneditposts"))) { |
Lol your trying to do the same as me :P
I'm still working on this little hack you know! Both myself and Xenon couldn't get it to work.. But that code snippet there ^ I think it looks wrong but xmas so i can't be bothered to look thru showthread.php hehe - miSt |
That first code snippet is not wrong. It is from Firefly and it is the same code he uses here. The second piece of code is definately wrong. That's what I changed it to.
|
I meant the second snippet hehe :P
|
Oops! Sorry. :o
|
All times are GMT. The time now is 09:13 PM. |
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:
|