The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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")) { eval("\$post[editpost] = \"".gettemplate("postbit_editpost")."\";"); } else { $post[editpost]=""; } Code:
if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="6" or !ismoderator($threadinfo[forumid],"caneditposts"))) { eval("\$post[editpost] = \"".gettemplate("postbit_editpost")."\";"); } else { $post[editpost]=""; } |
#2
|
||||
|
||||
![]()
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 |
#3
|
||||
|
||||
![]()
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.
|
#4
|
||||
|
||||
![]()
I meant the second snippet hehe :P
|
#5
|
||||
|
||||
![]()
Oops! Sorry.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|