Edit button on portal page
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Edit button on portal page
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>


[Image: 468x602b.png]
01-18-2011 06:58 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Edit button on portal page
(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']}

01-18-2011 07:13 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Edit button on portal page
Thank you. It worked.

[Image: 468x602b.png]
01-19-2011 04:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: