PDA

View Full Version : report own post


sabret00the
07-01-2004, 04:28 PM
the code for this was on vb.com somewhere but can't remember where :(

Zachery
07-01-2004, 04:28 PM
uncomment the <if condition> around the report button ;)

sabret00the
07-01-2004, 10:08 PM
you sure? i remember being told to change some thing that was set to false to true and that was hardcoded

Zachery
07-01-2004, 10:11 PM
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>


Just remove the if condition around the report link :p it works fine

Xenon
07-01-2004, 10:16 PM
the hardcoded thing, was outcommented in 301 iirc :)

sabret00the
07-01-2004, 10:29 PM
found it

find in "functions_showthread.php":
$show['reportlink'] = iif($bbuserinfo['userid'] AND $bbuserinfo['userid'] != $post['userid'], true, false);

and replace it with
$show['reportlink'] = iif($bbuserinfo['userid'] AND $bbuserinfo['userid'] != $post['userid'], true, true);

Xenon
07-01-2004, 10:32 PM
actually you should replace it with:

$show['reportlink'] = iif($bbuserinfo['userid'], true, false);

sabret00the
07-01-2004, 10:39 PM
what's the difference

/me sports the dunce hat

Xenon
07-01-2004, 10:40 PM
on your change you could also do a $show['reportlink'] = true;

my change shows the link to the poster, but not for not logged in ones ;)

sabret00the
07-01-2004, 10:58 PM
thank you, and thank you even more for the explanation )

Xenon
07-02-2004, 11:06 AM
you're welcome :)

Zachery
07-02-2004, 02:18 PM
..... why not just uncomment the if condition now?