2015-01-17, 02:39 PM
Hi Guys,
Im working in a plugin but I can't do this plugin only works in the first post I was thinking in use:
But Im not sure where put it or if I need to call another global variable this is a part of the code
Its working now but affect all the post of a thread, my idea its only limit to the first post only.-
Thanks!
Im working in a plugin but I can't do this plugin only works in the first post I was thinking in use:
if $post['pid'] == 1 then
But Im not sure where put it or if I need to call another global variable this is a part of the code
global $mybb,$lang,$templates,$thread;
// Will run only if it's being called from newthread.php.
if((THIS_SCRIPT == "showthread.php" || THIS_SCRIPT == "newreply.php" || THIS_SCRIPT == "syndication.php") && ($mybb->settings['hide_link_enabled'] || $mybb->settings['hide_lock_enabled']) && hide_validate($thread['fid']) && !is_moderator($thread['fid']))
{
Its working now but affect all the post of a thread, my idea its only limit to the first post only.-
Thanks!