PDA

View Full Version : How to change the report post button location?


techweb
12-22-2011, 07:19 AM
I'm trying to add a "Report Post" link next to the post # count on the right side of Post title bar.

I copied the "report post" coding and replaced the button.gif with text. I then added this in the Postbit template. For some odd reason nothing is changing on the forums. Here is what I have:


$template_hook[postbit_start]
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $post[scrolltothis]>
<div class="normal" style="float:$stylevar[right]">
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">Report This Post</a> &nbsp;</if>
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>



The idea is to have text stating "report this post" in the upper right hand corner of each post. See image below:
https://vborg.vbsupport.ru/external/2011/12/19.jpg

I would think this is a simple task but could be wrong. Any help would be greatly appreciated.

techweb
12-23-2011, 11:20 PM
Looks like we already have this feature working when the user info display is at the top (like here at vb.org). Any ideas?

kh99
12-24-2011, 01:37 AM
When the user info is on the left side it's using the postbit_legacy template, so you probably have to modify that one as well.

techweb
12-27-2011, 07:13 AM
When the user info is on the left side it's using the postbit_legacy template, so you probably have to modify that one as well.

Thanks Kh99!

Here is the final product: