MyBB Hacks

Full Version: Edit button on portal page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey I'm trying to add the edit button to my portal page but I can't seem to find the correct link variable for the thread ID...
Here is the code I'm trying and I get "http://postbomb.net/forums/editpost.php?pid="

PHP Code:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(4,8)) then> 
<span class="smalltext" style="float: right;">
<a href="{$mybb->settings['bburl']}/editpost.php?pid={$post['pid']}"><img src="{$mybb->settings['bburl']}/images/psbliss/english/postbit_edit.gif" alt="Full Edit" /></a>
</span>
</if>

(01-18-2011 06:58 AM)Skiilz Wrote: [ -> ]Hey I'm trying to add the edit button to my portal page but I can't seem to find the correct link variable for the thread ID...
Here is the code I'm trying and I get "http://postbomb.net/forums/editpost.php?pid="

PHP Code:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(4,8)) then> 
<span class="smalltext" style="float: right;">
<a href="{$mybb->settings['bburl']}/editpost.php?pid={$post['pid']}"><img src="{$mybb->settings['bburl']}/images/psbliss/english/postbit_edit.gif" alt="Full Edit" /></a>
</span>
</if>


Try using {$announcement['pid']}
Thank you. It worked.
Reference URL's