[MODDB] Simple profile comments 1.6.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [BETA] Simple profile comments 1.5.0

Post by woipi90 »

hy,

first thx for this great mod....

but still i've got an idea how to make the mod even better.... it would be great if the profile comments field is only shown if you've already got a comment.... because now the field is also shown even if you don't have any comments....


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

I am loving the mod so far. THANKS.
Few things:

1st - can there be an option for old comments to delete like say after that users passes 50 comments, so no one person can store more then 50 comments?

2nd - the quick link does not work, it's just text?

3rd - Is there a way to edit the names? for example on top "( 0 { NEW_COMMENT } ) " I would like it to be no {} signs just New Comment - i tired to change it in overall header.html and it didnt work right? Also the header where you view the comments name is like "{ PROFILE_COMMENTS } " tjust change to ProFile Comments?


url to my forum is http://www.urbangaymer.com/forum/
user - ugtest
pass - ugtest

Thanks for any help.
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Simple profile comments 1.5.0

Post by autinhyeu »

phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
just_guy
Registered User
Posts: 21
Joined: Wed May 03, 2006 5:46 am

Re: [BETA] Simple profile comments 1.5.0

Post by just_guy »

My profile view comment is off...how do i go about making it look straight...you can see the screenshot below...I have made any changes tothe original code..and i don't know how to go about adjusting it..help is much appreciated...

Image

Code: Select all

<!-- IF SIMPLE_COMMENT_ENABLED -->
<!-- IF ALLOW_ALL_COMMENT -->
<!-- IF ALLOW_FRIEND_VIEW && not FRIEND -->
only friends
<!-- ELSE -->
	<ul class="linklist">
    <li class="rightside pagination">{TOTAL_COMMENT} &bull; <!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>

    <div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>
			<h3> {L_PROFILE_COMMENTS}  </h3>
<table class="tablebg" width="100%" cellspacing="0">
	<!-- BEGIN comment -->
	<tr>
		<td rowspan="3" width="23%" align="center">{comment.COMMENT_AUTHOR}<br /><a href="{comment.USER_URL}">{comment.COMMENT_AVATAR_THUMB}</a><br />{comment.COMMENT_DATE}
		</td>
	</tr>

	<tr align="right">
		<td colspan="2">
		{comment.COMMENT_DATE_TIME}&nbsp;
		</td>
	</tr>
	<tr align="center">
		<td width="85%" rowspan="2"> <p align="right" >&nbsp;</p>
  		<p>{comment.COMMENT_TEXT}</p>
  		</td>
	</tr>
	
	<tr>
	<!-- IF comment.CAN_DELETE or (U_MCP or U_ACP) -->
		<td width="23%" colspan="2"><ul class="profile-icons" ><li class="delete-icon"><a href="{comment.DELETE_URL}"><span>{DELETE_IMG}</span></a></li></ul>&nbsp;&nbsp;
		</td>
	<!-- ENDIF -->
	</tr>
	<tr>
		<td colspan="2">
		<hr style="border-top-style : dashed;" />
		</td>
	</tr>
<!-- END comment -->
</table>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<p>&nbsp;</p>
<!-- IF S_USER_LOGGED_IN -->
<!-- IF ALLOW_FRIEND_ONLY && not FRIEND  -->
<!-- ELSE  -->

<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>

<table class="tablebg" width="100%" cellspacing="0">
<th> {L_PROFILE_COMMENT_SUB} </th>
<form action="{NEW_COMMENT}" method="post" id="postform" name="comment">
<tr align="center">
<td>

</td>
</tr>
<tr align="center">

<td>
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Simple profile comments 1.5.0

Post by platinum_2007 »

just_guy wrote:My profile view comment is off...how do i go about making it look straight...you can see the screenshot below...I have made any changes tothe original code..and i don't know how to go about adjusting it..help is much appreciated...

Its a problem with your Style, try changing it to

Code: Select all

[code]<!-- IF SIMPLE_COMMENT_ENABLED -->
<!-- IF ALLOW_ALL_COMMENT -->
<!-- IF ALLOW_FRIEND_VIEW && not FRIEND -->
only friends
<!-- ELSE -->
	<ul class="linklist">
    <li class="rightside pagination">{TOTAL_COMMENT} &bull; <!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>

    <div class="panel">
			<div class="inner"><span class="corners-top"><span></span></span>
			<h3> {L_PROFILE_COMMENTS}  </h3>
<table class="tablebg" width="100%" cellspacing="0">
	<!-- BEGIN comment -->
	<tr>
		<td rowspan="3" width="23%" align="center">{comment.COMMENT_AUTHOR}<br /><a href="{comment.USER_URL}">{comment.COMMENT_AVATAR_THUMB}</a><br />{comment.COMMENT_DATE}
		</td>
	</tr>

	<tr align="right">
		<td colspan="2">
		{comment.COMMENT_DATE_TIME}&nbsp;
		</td>
	</tr>
	<tr align="center">
		<td width="85%" rowspan="2"> <p align="right" >&nbsp;</p>
  		<p>{comment.COMMENT_TEXT}</p>
  		</td>
	</tr>
	
	<tr>
	<!-- IF comment.CAN_DELETE or (U_MCP or U_ACP) -->
		<td width="23%" colspan="2"><ul class="profile-icons" ><li class="delete-icon"><a href="{comment.DELETE_URL}"><span>{DELETE_IMG}</span></a></li></ul>&nbsp;&nbsp;
		</td>
	<!-- ENDIF -->
	</tr>
	<tr>
		<td colspan="2">
		<hr style="border-top-style : dashed;" />
		</td>
	</tr>
<!-- END comment -->
</table>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<p>&nbsp;</p>
<!-- IF S_USER_LOGGED_IN -->
<!-- IF ALLOW_FRIEND_ONLY && not FRIEND  -->
<!-- ELSE  -->

<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>

<table class="tablebg" width="100%" cellspacing="0">
<th> {L_PROFILE_COMMENT_SUB} </th>
<form action="{NEW_COMMENT}" method="post" id="postform" name="comment">
<tr align="center">
<td>

</td>
</tr>
<tr align="center">

<td>
[/code]
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

2nd - the quick link does not work, it's just text? (in the view topic section under the avatar pic)


url to my forum is http://www.urbangaymer.com/forum/
user - ugtest
pass - ugtest
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Simple profile comments 1.5.0

Post by platinum_2007 »

IAMTROPHY wrote:2nd - the quick link does not work, it's just text? (in the view topic section under the avatar pic)


url to my forum is http://www.urbangaymer.com/forum/
user - ugtest
pass - ugtest
you are missing a edit in viewtopic_body.html and also language/en/viewtopic.php
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

platinum_2007 wrote:
IAMTROPHY wrote:2nd - the quick link does not work, it's just text? (in the view topic section under the avatar pic)


url to my forum is http://www.urbangaymer.com/forum/
user - ugtest
pass - ugtest
you are missing a edit in viewtopic_body.html and also language/en/viewtopic.php

which edit? or should I just redo all the steps for these 2 pages?
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Simple profile comments 1.5.0

Post by platinum_2007 »

The first edit for viewtopic_body.html and the only edit for language/en/viewtopic.php
User avatar
[o0]
Registered User
Posts: 23
Joined: Sat Apr 25, 2009 10:04 am
Location: Germany
Contact:

Re: [BETA] Simple profile comments 1.5.0

Post by [o0] »

Ashley.S. wrote:
40kforums wrote:Installed all this fine, and works well - great mod, thanks!

However, despite guests and bots not being able to physically see the comments (the comments themselves, the form, etc.) - I am still getting 1-2 bots commenting on users profiles per day (as "Anonymous" users). I have tested myself and guests do not see the comments system on the profile pages - is there somewhere else, or somehow that they could be submitting a comment regardless?
I just had the same problem, I had to set the permission role to "never" I hope it stops it, but originally it was set to no anyway, so how the heck did they bypass it anyway :? I hope it's not a bug in phpbb 3.0.5
Seems like I've this problem now too..

I found your solution and searched for this setting, but I can't find this permission in my ACP, where's it? Or am I just too stupid to find? o_0

Or has anybody a better solution? I thaught about blocking the IP ranges of this spambot, but it seems like these aren't saved in a logfile.
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Simple profile comments 1.5.0

Post by platinum_2007 »

[o0] wrote:
Ashley.S. wrote:
40kforums wrote:Installed all this fine, and works well - great mod, thanks!

However, despite guests and bots not being able to physically see the comments (the comments themselves, the form, etc.) - I am still getting 1-2 bots commenting on users profiles per day (as "Anonymous" users). I have tested myself and guests do not see the comments system on the profile pages - is there somewhere else, or somehow that they could be submitting a comment regardless?
I just had the same problem, I had to set the permission role to "never" I hope it stops it, but originally it was set to no anyway, so how the heck did they bypass it anyway :? I hope it's not a bug in phpbb 3.0.5
Seems like I've this problem now too..

I found your solution and searched for this setting, but I can't find this permission in my ACP, where's it? Or am I just too stupid to find? o_0

Or has anybody a better solution? I thaught about blocking the IP ranges of this spambot, but it seems like these aren't saved in a logfile.
this is the best solution as it is applied it 1.6.0

http://itmods.com/viewtopic.php?f=3&t=48
User avatar
[o0]
Registered User
Posts: 23
Joined: Sat Apr 25, 2009 10:04 am
Location: Germany
Contact:

Re: [BETA] Simple profile comments 1.5.0

Post by [o0] »

Okay thanks for your help.. I'm going to to use this patch :]
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

platinum_2007 wrote:The first edit for viewtopic_body.html and the only edit for language/en/viewtopic.php
yea I had viewtopic_body.html wrong - I had info AFTER not BEFORE
viewtopic.php was right?

There is a link now but you cant click on.

not sure what else?
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

Ok thanks IAN for the help, just one last thing if you dont mind. :)

Is there a way I can have it to after 50 comments the last ones auto delete, and like say past 6 months old the comments auto deleted?
User avatar
IAMTROPHY
Registered User
Posts: 29
Joined: Mon Jun 08, 2009 2:37 am

Re: [BETA] Simple profile comments 1.5.0

Post by IAMTROPHY »

Code: Select all

{ COMMENT_PRIV }
{ ALLOW_ALL_COMMENT }:
{ ALLOW_ALL_COMMENT_EXPLAIN }  Yes  No { ALLOW_FRIEND_ONLY }:
{ ALLOW_FRIEND_ONLY_EXPLAIN }  Yes  No { ALLOW_FRIEND_VIEW }:{ ALLOW_FRIEND_VIEW_EXPLAIN }  Yes  No 

Is what I see in the user control panel? Any ideas why?

url - http://www.urbangaymer.com/forum/

u - ugtest
p - ugtest
Locked

Return to “[3.0.x] MODs in Development”