View Full Version : "Own post" condition to use in postbit?
Bundle
01-16-2011, 11:06 AM
Is there a condition for "if this post was made by me"? I'm sure there must be! Someone help, please :(
Sarteck
01-16-2011, 12:10 PM
In a Plugin:if ($post['userid'] == $vbulletin->userinfo['userid']) {/* POST WAS MADE BY ME */}(Er, may or may not have to declare $vbulletin as a global variable there, not sure.)
In a Template:<vb:if condition="$bbuserinfo['userid'] == $post['userid']"><!-- POST WAS MADE BY ME --></vb:if>
(I think that's what ya want.)
EDITED: Forgot a quote. >.>
Bundle
01-16-2011, 01:34 PM
In a Plugin:if ($post['userid'] == $vbulletin->userinfo['userid']) {/* POST WAS MADE BY ME */}(Er, may or may not have to declare $vbulletin as a global variable there, not sure.)
In a Template:<vb:if condition="$bbuserinfo['userid'] == $post['userid']"><!-- POST WAS MADE BY ME --></vb:if>
(I think that's what ya want.)
EDITED: Forgot a quote. >.>
Works perfectly, just what I was looking for thanks :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.