[ABD] Reputation System

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
J.S. Coolen
Registered User
Posts: 97
Joined: Tue Feb 15, 2005 9:53 pm
Location: Den Haag, Nederland

Re: [RC] Reputation System

Post by J.S. Coolen »

both.

But I think I found the problem.


I gave a user a point trough my database and now it is showing the thunbs up and down.

Maybe this info can help someone to solve the problem.

(and I Admit the pictures of the thumbs are very ugly ;), time to find some others.)


So it's working for me now.

I got some idea's for some add to this mod, if it is still developed.

-----
Minimum posts before you can give rep points and a option to exclude a forum for the counting of the minimum posts (like chat forum)

-----
Option to show the message/reason for the bad/good reputation point in the post (something like soemthing you see in the menu of this website.)
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: [RC] Reputation System

Post by Don Vito »

J.S. Coolen wrote:both.

But I think I found the problem.


I gave a user a point trough my database and now it is showing the thunbs up and down.

Maybe this info can help someone to solve the problem.

(and I Admit the pictures of the thumbs are very ugly ;), time to find some others.)


So it's working for me now.

I got some idea's for some add to this mod, if it is still developed.

-----
Minimum posts before you can give rep points and a option to exclude a forum for the counting of the minimum posts (like chat forum)

-----
Option to show the message/reason for the bad/good reputation point in the post (something like soemthing you see in the menu of this website.)
I have read some of your replies and can you confirm that im correct in saying you still cant see the thumb pictures?

If so, then this is most likely a style problem and you can see how it worked for some by reading the messages from me around page 6 or 7.
User avatar
J.S. Coolen
Registered User
Posts: 97
Joined: Tue Feb 15, 2005 9:53 pm
Location: Den Haag, Nederland

Re: [RC] Reputation System

Post by J.S. Coolen »

No it is working for me now. It was solved bij aan manual add of rep points in the database. When the first point whas added, everything showed up.

Thank you for wanting to help me!
jwtexas
Registered User
Posts: 5
Joined: Tue Mar 20, 2012 9:07 pm

Re: [RC] Reputation System

Post by jwtexas »

evepowr wrote:We have it setup so there is no negative rep. This makes positive rep a currency to a degree as you can buy stuff with it. Can we have viewtopic to just show positive points such as something like {postrow.U_POSITIVE_COUNT}.

Also is there a way to limit the amount of reps a user can do per day. So maybe limit total given reps per day to 5 or something. So you can receive an unlimited amount just you cant find someone you like and rep all their posts.
I like this idea.


BTW great Mod!
evepowr
Registered User
Posts: 85
Joined: Sun Jan 04, 2004 6:54 pm
Contact:

Re: [RC] Reputation System

Post by evepowr »

Yea it shouldnt be too hard to implement and would help my board so much :)

PS this is a great mod, awesome work.
jwtexas
Registered User
Posts: 5
Joined: Tue Mar 20, 2012 9:07 pm

Re: [RC] Reputation System

Post by jwtexas »

kmakoto wrote:in viewtopic_body.html

reemplaze code for

Code: Select all

<!-- IF S_REPUTATION -->
		<div class="right">
			<ul class="profile-icons">
				<!-- IF postrow.S_GIVE_REPUTATION -->
				<li class="rate-good-icon">
				<a href="{postrow.U_ADD_POS}" title="{L_RS_ADD_POINTS} {L_RS_TO} {postrow.POST_AUTHOR}"><span>{L_RS_ADD_POINTS}</span>
				</a>
				</li>
				<!-- IF postrow.S_GIVE_NEGATIVE-->
				<li class="rate-bad-icon">
				<a href="{postrow.U_ADD_NEG}" title="{L_RS_SUBTRACT_POINTS} {L_RS_TO} {postrow.POST_AUTHOR}"><span>{L_RS_SUBTRACT_POINTS}</span>
				</a>
				</li>
				<!-- ENDIF -->
				<!-- ENDIF -->
			</ul>
			<div class="reputation {postrow.REPUTATION_BOX}" title="{L_REPUTATION}"><!-- IF postrow.U_VIEW_REP --><a href="{postrow.U_VIEW_REP}" onclick="popup(this.href, 780, 550); return false;"><!-- ENDIF -->{postrow.POST_REP}<!-- IF postrow.U_VIEW_REP --></a><!-- ENDIF --></div>
		</div>
			<!-- ENDIF -->
reemplace all reputation.css for

Code: Select all

.phpbb .reputation.positive a,.phpbb  .reputation.negative a {
	color: white;
	text-decoration: none;
	cursor: pointer;
}
.phpbb .reputation.positive {
	background: #6F8F52;
	color: white;
}

.phpbb .reputation.negative {
	background: #B82929;
	color: white;
}

.phpbb .reputation.zero {
	background: #FFF;
	color: #6E6E6E;
}

.phpbb .reputation.span {
	color: #FFF;
}

.phpbb .reputation {
	font-weight: bold;
	padding: 3px 8px;
	display: inline-block;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	border: 1px solid #e8e8e8;
	font-size: 10px;
	background-image: none;
	/*height: 14px;*/
	/*padding: 2px 10px !important;*/
}

.phpbb .positive {
	color: #6F8F52;
}

.phpbb .negative {
	color: #B82929;
}

.phpbb .profile-icons .rate-good-icon a {
	width: {IMG_ICON_RATE_GOOD_WIDTH}px;
}
.phpbb .profile-icons .rate-good-icon a {
	background-image: url("{IMG_ICON_RATE_GOOD_SRC}");
}
.phpbb .profile-icons .rate-bad-icon a {
	width: {IMG_ICON_RATE_BAD_WIDTH}px;
}
.phpbb .profile-icons .rate-bad-icon a {
	background-image: url("{IMG_ICON_RATE_BAD_SRC}");
}
Thanks for this!

When I used it the upvote downvote thumbs appeared, but the rating in each post is still an "X". I'm not sure what I'm doing wrong.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] Reputation System

Post by Pico88 »

Ok, I will add new function in next release:
- anty-abuse behaviour - by this you can limit how much reps user can give to others in a specified period of time ex. 5 reps/24hours (maybe with option to choose between - same user or everyone) - done
- new UCP tab - some basic option as default rep power, default comment
- new function - fast post rating (if user set default rep power and default comment (if neccessary), he/she can turn it on, so the rep point will be given without loading reputation page.
Please do not PM me for support.
mattfacegamers
Registered User
Posts: 20
Joined: Thu May 26, 2011 1:18 pm

Re: [RC] Reputation System

Post by mattfacegamers »

Looking forward to the finished MOD.

There is only one thing i'd like to see. A reputation bar underneath the users avatar rather than digits. Reputation bars look much better.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] Reputation System

Post by Pico88 »

@mattfacegamers, I'm not plan any reputation bar anywhere. For me, it isn't necessary.
Please do not PM me for support.
mattfacegamers
Registered User
Posts: 20
Joined: Thu May 26, 2011 1:18 pm

Re: [RC] Reputation System

Post by mattfacegamers »

Pico88 wrote:@mattfacegamers, I'm not plan any reputation bar anywhere. For me, it isn't necessary.
Oh, that kinda sucks :/
User avatar
J.S. Coolen
Registered User
Posts: 97
Joined: Tue Feb 15, 2005 9:53 pm
Location: Den Haag, Nederland

Re: [RC] Reputation System

Post by J.S. Coolen »

Do you feel anything for the ideas I posted?
-----
Minimum posts before you can give rep points and a option to exclude a forum for the counting of the minimum posts (like chat forum)

-----
Option to show the message/reason for the bad/good reputation point in the post (something like soemthing you see in the menu of this website.)
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] Reputation System

Post by Pico88 »

J.S. Coolen wrote:Do you feel anything for the ideas I posted?
-----
Minimum posts before you can give rep points and a option to exclude a forum for the counting of the minimum posts (like chat forum)

-----
Option to show the message/reason for the bad/good reputation point in the post (something like soemthing you see in the menu of this website.)
I thought about first one. The first part of it would be added, but the second - I will see.

Second suggestion requires additonal sql query, so it may generate some load, so I will not add such option (now).
Please do not PM me for support.
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [RC] Reputation System

Post by blossom10 »

Hi i have a little SQL problem, if more than two users give a positiv or negativ vote in the same post, i get a backend error if i will resynchronise.

SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4261 WHERE post_id = 4956' at line 2 [1064]

SQL

UPDATE neu_posts SET post_rep_positive = 2,4261 WHERE post_id = 4956

BACKTRACE

FILE: [ROOT]/includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: [ROOT]/includes/acp/acp_reputation.php
LINE: 755
CALL: dbal_mysql->sql_query()

FILE: [ROOT]/includes/acp/acp_reputation.php
LINE: 359
CALL: acp_reputation->sync_post_positive()

FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: acp_reputation->main()

FILE: [ROOT]/adm/index.php
LINE: 86
CALL: p_master->load_active()
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] Reputation System

Post by Pico88 »

Open: includes/acp/acp_reputation.php
Find (line 752):

Code: Select all

		$sql = 'UPDATE ' . POSTS_TABLE . "
			SET post_rep_positive = $users  
			WHERE post_id = $post_id";
		$db->sql_query($sql);
Replace with:

Code: Select all

$sql = 'UPDATE ' . POSTS_TABLE . "
			SET post_rep_positive = '$users'  
			WHERE post_id = $post_id";
		$db->sql_query($sql);
Find (line 781):

Code: Select all

		$sql = 'UPDATE ' . POSTS_TABLE . "
			SET post_rep_negative = $users  
			WHERE post_id = $post_id";
		$db->sql_query($sql);
Replace with:

Code: Select all

[code]		$sql = 'UPDATE ' . POSTS_TABLE . "
			SET post_rep_negative = '$users'
			WHERE post_id = $post_id";
		$db->sql_query($sql);
[/code]
Please do not PM me for support.
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [RC] Reputation System

Post by blossom10 »

Thanks, perfekt it works.
Locked

Return to “[3.0.x] Abandoned MODs”