MyBB Community Forums

Full Version: How to show individual Post ID?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
Right under the "IP Address: Logged" link in every post, I would like to display the post ID number (pid). When I open up postbit, here is my code:
<tr>
<td class="$altbg" width="155" valign="top" nowrap="nowrap" align="center"><a name="pid$post[pid]"></a>
<strong><span class="largetext">$post[profilelink]</span></strong><br />
<span class="smalltext">
$post[usertitle]<br />
$post[userstars]
$post[groupimage]<br />
$post[useravatar]<br />
$lang->postbit_posts $post[postnum]<br />
$lang->postbit_group $usergroup[title]<br />
$lang->postbit_joined $post[userregdate]<br />
$lang->postbit_status $post[onlinestatus]$post[replink]<br />
</span>
</td>
<td class="$altbg" width="100%" valign="top">
<table width="100%">
<tr><td class="trow">$post[posturl]$post[icon]<span class="smalltext"><strong> $post[subject]</strong></span>
<p>$post[message]</p>
$post[attachments]
$post[signature]
<div style="text-align: right; vertical-align: bottom;">
$post[editedmsg]
$post[iplogged]
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="$altbg" height="18" nowrap="nowrap" align="center"><span class="smalltext">$post[postdate] $post[posttime]</span></td>
<td class="$altbg" width="100%" valign="middle" height="18">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr valign="bottom">
		<td align="left" ><span class="smalltext">$post[button_email]$post[button_pm]$post[button_www]$post[button_find]</span></td>
		<td align="right" nowrap="nowrap"><span class="smalltext">$post[button_edit]$post[button_quickdelete]$post[button_quote]$post[button_report]</span></td>
	</tr>
	</table>
</td>
</tr>
$seperator

When I try to enter $pid under $post[iplogged], nothing seems to show up under the "IP Address: Logged" link in each post.

What am I doing wrong, and how can I fix it? Thanks a bunch!
Try this:
<br />PID: $post[pid]
Thanks, that worked!

Out of curiosity, why doesn't $pid work in that case?
There's no $pid variable.
Ahh...that'll explain it Toungue! Thanks again!
You're welcome

Long bump Toungue