Archive for howtodoit.myfastforum.org Walkthough guides for myfreeforum phpbb 2 forums
 


       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Symon

New Report Post Hack

This guide is for Report Post Hack

Any member can click on the report post link/image on a post that they feel is inappropriate, this will then send a pm to the board Admin.

Please remember to use the Editor account before making any template changes

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT


1. Goto  admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the top in the area marked Choose Forum template/javascript/css File to Edit use the drop down bar and find

Viewtopic_body.tpl

Now find a line of code that may look like this, (please remember that all templates are different, so my example code may not be the exact code you see)

Code:
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}
</td></tr>


You now need to place this code

Code:
<a class="gensmall" href="javascript:void(0)" onclick="window.open('/action.php?action=REPORT&popup=1&p={postrow.POST_ID}','report','height = 300, width = 300')">Report Post</a>


after the

Code:
{postrow.IP_IMG}


So the final code may look like this

Code:
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}  <a class="gensmall" href="javascript:void(0)" onclick="window.open('/action.php?action=REPORT&popup=1&p={postrow.POST_ID}','report','height = 300, width = 300')">Report Post</a>
</td></tr>


If you want an image instead of the line of text then place this code,

Code:
<a class="gensmall" href="javascript:void(0)" onclick="window.open('/action.php?action=REPORT&popup=1&p={postrow.POST_ID}','report','height = 300, width = 300')"><img src="/templates/myff_facebookappchat1/images/icon_report.gif" border="0"></a>


after

Code:
 {postrow.IP_IMG}


Tips

To use an image you must first upload an image.

1. Goto  admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look in the middle in the area marked

Upload Image (make sure the filename does not contain spaces, brackets etc)

Click on browse then upload you image.

Now change the line of code

Code:
<img src="/templates/myff_facebookappchat1/images/icon_report.gif"


To match that of your template name and your image name, so for example if i uploaded an image called postreport to my number 4 template the code would look like this

Code:
<img src="/templates/myff_facebookappchat4/images/postreport.gif"



When a users clicks on the report post link or image, a popup will appear like below



Here they can decide how to report the post. When they have done that they will see a screen like below




It is at this point the Admin should receive a PM which may look something  like this





You may use this button, kindly made by Nick(NR) (right click and save as)


And That`s HOWTODOIT

       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum