phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Problem with Report post basic MOD


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Slackervaara
Board Member



Joined: 01 Jan 2009

Posts: 70



PostPosted: Tue Jan 06, 2009 5:47 am 
Post subject: Problem with Report post basic MOD

I have installed Report post basic MOD, which makes that a mailto: link to moderator is created down right in each post. The problem is that the position varies between different members somewhat (see picture). Mostly it is down right, but for certain users it is in the middle, which is disturbing. I have been using Subsilver style. Explorer 7 and Firefox 3 behaves identically. Is it possible to change the mod so it is always down right?

Image link

Here is the MOD:

Code:
#-----[ Open ]------------------------------------------
#
/template/viewtopic_body.tpl
#
#-----[ Find ]------------------------------------------
#
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
#
#-----[Edit Email Details & URL Details Below] then [ Replace With ]--------------------------
#
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span><p align="right">
<font face="Verdana" size="1">
<a href="mailto:your_admin_email@address.com?subject=Your_Site_Name.com Offending Post&body=Posted By: {postrow.POSTER_NAME} {postrow.POST_DATE} http://www.forumURL/viewtopic.php?p={postrow.U_POST_ID}#{postrow.U_POST_ID}">
Report Post To Administrator</a></font></p>

</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 663
Location: Texas


flag
PostPosted: Tue Jan 06, 2009 5:56 am 
Post subject: Re: Problem with Report post basic MOD

They're putting the message (the mailto link) in the body of the post. If you want it on the bottom with the profile buttons and whatnot, you need to add the code in a different place. I would find this code:
Code:
{postrow.ICQ_IMG}</noscript>

and immediately after include your mailto link like this:
Code:
{postrow.ICQ_IMG}</noscript>&nbsp;<a href="mailto:your_admin_email@address.com?subject=Your_Site_Name.com Offending Post&body=Posted By: {postrow.POSTER_NAME} {postrow.POST_DATE} http://www.forumURL/viewtopic.php?p={postrow.U_POST_ID}#{postrow.U_POST_ID}">
Report Post To Administrator</a>

That will move the text down to the "profile" row where all of the buttons are.

_________________
phpBBDoctor Blog
Back to top
Slackervaara
Board Member



Joined: 01 Jan 2009

Posts: 70



PostPosted: Tue Jan 06, 2009 7:02 am 
Post subject: Re: Problem with Report post basic MOD

Many thanks. It is a much better alternative IMHO.
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 663
Location: Texas


flag
PostPosted: Tue Jan 06, 2009 7:12 am 
Post subject: Re: Problem with Report post basic MOD

So I take it the suggestion worked for you then? icon_smile.gif

For what it's worth, I don't like putting "mailto" links out there for public aka spammer bots to harvest. If you want to make the link only available for logged in users, there is an easy addition that should take care of that. You wrap the code starting with <a href and going to the end with
Code:
<!-- BEGIN switch_user_logged_in -->
and
Code:
<!-- END switch_user_logged_in -->
and the link will only show up for logged in users. Bots or guests won't see the link, and therefore won't be able to get your admin email account.

You have to put those tags on a line by themselves in your template file; the tags cannot appear inline with the rest of the code.

_________________
phpBBDoctor Blog
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0276 seconds using 15 queries. (SQL 0.0020 Parse 0.0008 Other 0.0247)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo