[ABD] (Topic &) Post Rating System (with Karma module)

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
RickieIzfazt
Registered User
Posts: 115
Joined: Mon Feb 04, 2008 12:21 pm
Contact:

Re: [DEV]Post Rating System

Post by RickieIzfazt »

for which now I'm thinking of reinstalling phpbb from scratch.

Code: Select all

http://www.modphpbb3.com
try this one of you do, saves a lot of time.....

included:
Announcements
Last Posts Titles
Phpbb Arcade
Phpbb Gallery
More BBCodes
Advertisement Mod
Welcome PM on First Login
Quick Reply
Who Was Here
Prime Notify PM
Notify Admin on Registration
Ajax Chat
ACP PM Read
Running PHPbb3 canverPORTAL, SEO advanced URL MOD, SEO dynamic metatags, BRIDGED Ajax Chat & Coppermine, various small mods, Cutenews, Crawltrack (check http://www.crawltrack.fr if you don't now) SEO & crawler tracking on all scripts. Running phpBB Arcade and posts rating system.

have a look at http://tjoogle.com
Maniii
Registered User
Posts: 26
Joined: Thu Feb 07, 2008 1:51 am
Location: France
Contact:

Re: [DEV]Post Rating System

Post by Maniii »

Alfatrion wrote: Could you please post "styles/prosilver/template/viewtopic_body.html" here?

Code: Select all

	<!-- IF PAGINATION or TOTAL_POSTS  or S_POSTS_RATINGS_ENABLED-->

		<div class="pagination">
			<!-- IF S_POSTS_RATINGS_ENABLED -->
				{POSTS_RATINGS_EXTRA_TOPICS_RATINGS}: {POSTS_RATINGS_STARS}
				<!-- IF PAGINATION or TOTAL_POSTS -->
					&bull;
				<!-- ENDIF -->
			<!-- ENDIF -->
			{TOTAL_POSTS}
			<!-- IF PAGE_NUMBER --><!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF --><!-- ENDIF -->
		</div>
	<!-- ENDIF -->
{POSTS_RATINGS_EXTRA_TOPICS_RATINGS} is not defined and it possible to rate all posts

Twices
I don't speak english, i try only :)
Crew
Registered User
Posts: 35
Joined: Tue Mar 11, 2008 7:52 pm

Re: [DEV]Post Rating System

Post by Crew »

I have SQL error after sql-query from install.xml:

Code: Select all

INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES
(NULL, 'posts_ratings_star_s_0', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_1', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_2', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_3', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_4', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_5', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_6', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_7', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_8', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_9', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_10', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_v_0', 'posts_ratings_star_v_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_1', 'posts_ratings_star_v_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_2', 'posts_ratings_star_v_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_3', 'posts_ratings_star_v_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_4', 'posts_ratings_star_v_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_5', 'posts_ratings_star_v_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_6', 'posts_ratings_star_v_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_7', 'posts_ratings_star_v_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_8', 'posts_ratings_star_v_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_9', 'posts_ratings_star_v_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_10', 'posts_ratings_star_v_10.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_0', 'posts_ratings_star_uv_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_1', 'posts_ratings_star_uv_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_2', 'posts_ratings_star_uv_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_3', 'posts_ratings_star_uv_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_4', 'posts_ratings_star_uv_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_5', 'posts_ratings_star_uv_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_6', 'posts_ratings_star_uv_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_7', 'posts_ratings_star_uv_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_8', 'posts_ratings_star_uv_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_9', 'posts_ratings_star_uv_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_10', 'posts_ratings_star_uv_10.gif', '', '20', '17', '1');

CREATE TABLE phpbb_posts_ratings_votes (
user_id MEDIUMINT UNSIGNED NOT NULL,
user_ip VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
post_id MEDIUMINT UNSIGNED NOT NULL,
score TINYINT UNSIGNED NOT NULL DEFAULT '0',
standard_diviation SMALLINT UNSIGNED NOT NULL DEFAULT '0',
shadow BOOL NOT NULL DEFAULT '0',
time INT UNSIGNED NOT NULL,
PRIMARY KEY (user_id, post_id),
INDEX (post_id)
) TYPE = MYISAM CHARACTER SET utf8 COLLATE utf8_bin;

CREATE TABLE phpbb_posts_ratings_votes_chi (
user1_id MEDIUMINT UNSIGNED NOT NULL,
user2_id MEDIUMINT UNSIGNED NOT NULL,
time INT UNSIGNED NOT NULL,
chi TINYINT UNSIGNED NOT NULL,
diff TINYINT NOT NULL,
num TINYINT UNSIGNED NOT NULL,
PRIMARY KEY (user1_id, user2_id),
INDEX (time, num)
) TYPE = MYISAM CHARACTER SET utf8 COLLATE utf8_bin;

CREATE TABLE phpbb_posts_ratings_penalty (
user_id MEDIUMINT UNSIGNED NOT NULL,
poster_id MEDIUMINT UNSIGNED NOT NULL,
penalty TINYINT UNSIGNED NOT NULL,
PRIMARY KEY (user_id, poster_id)
) TYPE = MYISAM CHARACTER SET utf8 COLLATE utf8_bin;

CREATE TABLE phpbb_posts_ratings_modpoints (
time INT UNSIGNED NOT NULL,
user_id MEDIUMINT UNSIGNED NOT NULL,
post_id MEDIUMINT UNSIGNED NOT NULL,
points TINYINT UNSIGNED NOT NULL,
PRIMARY KEY (time, user_id),
INDEX (post_id)
) TYPE = MYISAM CHARACTER SET utf8 COLLATE utf8_bin;

ALTER TABLE phpbb_posts
ADD posts_ratings_score TINYINT UNSIGNED NOT NULL DEFAULT 0,
ADD posts_ratings_standard_diviation SMALLINT UNSIGNED NOT NULL DEFAULT 0,
ADD posts_ratings_shadowed BOOL NOT NULL DEFAULT 0,
ADD posts_ratings_penaltized BOOL NOT NULL DEFAULT 0,
ADD INDEX (posts_ratings_score, posts_ratings_shadowed);

ALTER TABLE `phpbb_posts_ratings_modpoints` ADD `post_id` MEDIUMINT UNSIGNED NOT NULL AFTER `user_id` ;

ALTER TABLE `phpbb_posts_ratings_modpoints` ADD INDEX ( `post_id` ) ;
Error

SQL-запрос:

ALTER TABLE `phpbb_posts_ratings_modpoints` ADD `post_id` MEDIUMINT UNSIGNED NOT NULL AFTER `user_id` ;

Ответ MySQL: Документация
#1060 - Duplicate column name 'post_id'
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

The last two queries got in there by exident. You can continue just as if you have had no SQL error.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
grawat
Registered User
Posts: 33
Joined: Wed Jan 30, 2008 5:10 am

Re: [DEV]Post Rating System

Post by grawat »

Ok so I was trying to install this mod on a fresh install of phpbb 3.0.1 on my PC using wampserver.... after I copied the included files I tried to run the SQL command in phpmyadmin but I get an error saying

import.php: Missing parameter: import_type (FAQ 2.8)
import.php: Missing parameter: format (FAQ 2.8)

I'm not sure if this is a problem with wampserver but I just wanted to know in the SQL command

INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES

does this need a table called phpbb_styles_imageset_data to already exist from before ?
BeautyGal
Registered User
Posts: 249
Joined: Sun Jul 01, 2007 4:44 pm
Contact:

Re: [DEV]Post Rating System

Post by BeautyGal »

I get this error after the update:
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
and
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3556: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3558: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3559: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3560: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

Version 0.3.13 fixed:
- First post / average post label broken.
- Users can vote for all post even when users are only allowed to vote on the first post.
- Users can see the PRS interface even when users are only allowed to vote on the first post.
- There might be a problem with the karma calculation

Common for all updates: Don't forget to copy all the files from root/.

Changed edits:
styles/prosilver/template/viewtopic_body.html
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

@BeautyGal: please remove the trailing newlines after '?>' at the end in the reported files.
grawat wrote:INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES

does this need a table called phpbb_styles_imageset_data to already exist from before ?
yes, it existed for 3.0.0. With the new code, you should be able to skip these imageset data sql and refresh the imageset thougth the interface instead.
Last edited by Alfatrion on Sat Apr 19, 2008 11:22 am, edited 1 time in total.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
Crew
Registered User
Posts: 35
Joined: Tue Mar 11, 2008 7:52 pm

Re: [DEV]Post Rating System

Post by Crew »

Again from install.xml

Code: Select all

Open: includes/mcp/mcp_forum.php
Find

Tip: This may be a partial find and not the whole line.
Code: Select All

foreach ($topic_rows as $topic_id => $row)
I have no such line in my includes/mcp/mcp_forum.php

foreach ($topic_rows as $topic_id => $row)
grawat
Registered User
Posts: 33
Joined: Wed Jan 30, 2008 5:10 am

Re: [DEV]Post Rating System

Post by grawat »

Alfatrion wrote:@BeautyGal: please remove the trailing newlines after '?>' at the end in the reported files, its not a PRS bug.
grawat wrote:INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES

does this need a table called phpbb_styles_imageset_data to already exist from before ?
yes, it existed for 3.0.0. With the new code, you should be able to skip these imageset data sql and refresh the imageset thougth the interface instead.
so if I'm installing this mod (0_3_13) on phpbb 3.0.1 I dont need to execute this part of the SQL query ?

Code: Select all

INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES
(NULL, 'posts_ratings_star_s_0', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_1', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_2', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_3', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_4', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_5', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_6', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_7', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_8', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_9', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_10', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_v_0', 'posts_ratings_star_v_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_1', 'posts_ratings_star_v_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_2', 'posts_ratings_star_v_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_3', 'posts_ratings_star_v_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_4', 'posts_ratings_star_v_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_5', 'posts_ratings_star_v_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_6', 'posts_ratings_star_v_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_7', 'posts_ratings_star_v_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_8', 'posts_ratings_star_v_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_9', 'posts_ratings_star_v_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_10', 'posts_ratings_star_v_10.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_0', 'posts_ratings_star_uv_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_1', 'posts_ratings_star_uv_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_2', 'posts_ratings_star_uv_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_3', 'posts_ratings_star_uv_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_4', 'posts_ratings_star_uv_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_5', 'posts_ratings_star_uv_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_6', 'posts_ratings_star_uv_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_7', 'posts_ratings_star_uv_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_8', 'posts_ratings_star_uv_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_9', 'posts_ratings_star_uv_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_10', 'posts_ratings_star_uv_10.gif', '', '20', '17', '1');
and will this work with 3.0.1 ?
Maniii
Registered User
Posts: 26
Joined: Thu Feb 07, 2008 1:51 am
Location: France
Contact:

Re: [DEV]Post Rating System

Post by Maniii »

styles/prosilver/template/viewtopic_body.html
Find

Code: Select all

					<!-- IF S_POSTS_RATINGS_ENABLED -->
						<li class="{postrow.POSTS_RATINGS_STAR1}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR1}" title="{L_POSTS_RATINGS_STAR1_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR1}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR2}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR2}" title="{L_POSTS_RATINGS_STAR2_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR2}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR3}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR3}" title="{L_POSTS_RATINGS_STAR3_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR3}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR4}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR4}" title="{L_POSTS_RATINGS_STAR4_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR4}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR5}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR5}" title="{L_POSTS_RATINGS_STAR5_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR5}</span></a></li>
					<!-- ENDIF -->
Change by :

Code: Select all

					<!-- IF postrow.S_POSTS_RATINGS_ENABLED -->
						<li class="{postrow.POSTS_RATINGS_STAR1}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR1}" title="{L_POSTS_RATINGS_STAR1_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR1}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR2}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR2}" title="{L_POSTS_RATINGS_STAR2_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR2}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR3}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR3}" title="{L_POSTS_RATINGS_STAR3_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR3}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR4}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR4}" title="{L_POSTS_RATINGS_STAR4_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR4}</span></a></li>
						<li class="{postrow.POSTS_RATINGS_STAR5}"><!-- IF postrow.S_POSTS_RATINGS_VOTABLE --><a href="{postrow.U_POSTS_RATINGS_STAR5}" title="{L_POSTS_RATINGS_STAR5_EXPLAIN}"><!-- ELSE --><a title="{postrow.POSTS_RATINGS_VOTEROUND_CLOSED_SCORE}"><!-- ENDIF --><span>{L_POSTS_RATINGS_STAR5}</span></a></li>
					<!-- ENDIF -->
<!-- IF S_POSTS_RATINGS_ENABLED -->

And new problem, rate's first post don't true :

Image
Last edited by Maniii on Sat Apr 19, 2008 2:31 am, edited 1 time in total.
I don't speak english, i try only :)
BeautyGal
Registered User
Posts: 249
Joined: Sun Jul 01, 2007 4:44 pm
Contact:

Re: [DEV]Post Rating System

Post by BeautyGal »

BeautyGal wrote:I get this error after the update:
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
and
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3556: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3558: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3559: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3560: Cannot modify header information - headers already sent by (output started at /language/en/mods/posts_ratings.php:125)
But how do you fix this specific problem?
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

Crew wrote:Again from install.xml

Code: Select all

Open: includes/mcp/mcp_forum.php
Find

Tip: This may be a partial find and not the whole line.
Code: Select All

foreach ($topic_rows as $topic_id => $row)
I have no such line in my includes/mcp/mcp_forum.php

foreach ($topic_rows as $topic_id => $row)
It important that you give background information, like what version you are using. I suppect that you are using phpbb version 3.0.1 instead of 3.0.0. I apears that the changed the line foreach ($topic_rows as $topic_id => $row) into foreach ($topic_list as $topic_id). To speed this process a bit up: you can find a preedited files in the contrib directy and check against these if you run in more problems like this. But don't forget to report them here.
grawat wrote:so if I'm installing this mod (0_3_13) on phpbb 3.0.1 I dont need to execute this part of the SQL query ?

Code: Select all

INSERT INTO `phpbb_styles_imageset_data` ( `image_id`, `image_name`, `image_filename`, `image_lang`, `image_height`, `image_width`, `imageset_id` )
VALUES
(NULL, 'posts_ratings_star_s_0', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_1', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_2', 'posts_ratings_star_s_00.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_3', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_4', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_5', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_6', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_7', 'posts_ratings_star_s_05.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_8', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_9', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_s_10', 'posts_ratings_star_s_10.gif', '', '9', '8', '1'),
(NULL, 'posts_ratings_star_v_0', 'posts_ratings_star_v_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_1', 'posts_ratings_star_v_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_2', 'posts_ratings_star_v_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_3', 'posts_ratings_star_v_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_4', 'posts_ratings_star_v_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_5', 'posts_ratings_star_v_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_6', 'posts_ratings_star_v_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_7', 'posts_ratings_star_v_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_8', 'posts_ratings_star_v_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_9', 'posts_ratings_star_v_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_v_10', 'posts_ratings_star_v_10.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_0', 'posts_ratings_star_uv_00.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_1', 'posts_ratings_star_uv_01.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_2', 'posts_ratings_star_uv_02.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_3', 'posts_ratings_star_uv_03.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_4', 'posts_ratings_star_uv_04.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_5', 'posts_ratings_star_uv_05.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_6', 'posts_ratings_star_uv_06.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_7', 'posts_ratings_star_uv_07.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_8', 'posts_ratings_star_uv_08.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_9', 'posts_ratings_star_uv_09.gif', '', '20', '17', '1'),
(NULL, 'posts_ratings_star_uv_10', 'posts_ratings_star_uv_10.gif', '', '20', '17', '1');
and will this work with 3.0.1 ?
It should, but you may have to refresh the imageset. You can always add this sql later.
BeautyGal wrote:
BeautyGal wrote:I get this error after the update:

<SNIP>

But how do you fix this specific problem?
Find the end of the file and remove the trailing newline.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
RickieIzfazt
Registered User
Posts: 115
Joined: Mon Feb 04, 2008 12:21 pm
Contact:

Re: [DEV]Post Rating System

Post by RickieIzfazt »

Alfatrion wrote:Version 0.3.13 fixed:
- First post / average post label broken.
- Users can vote for all post even when users are only allowed to vote on the first post.
- Users can see the PRS interface even when users are only allowed to vote on the first post.
- There might be a problem with the karma calculation

Common for all updates: Don't forget to copy all the files from root/.

Changed edits:
styles/prosilver/template/viewtopic_body.html
hello, it seems you have a lot of work with this as I get all emails involving this topic. Is it possible you add a file in 3.13 wuth updates for 3.12 if you already run this live? I don't want to give you more work but it is really difficult to analyse 3.12 and 3.13 and find all changes , you are likely to miss some in this way. Thnxs for your effort and reply.
Running PHPbb3 canverPORTAL, SEO advanced URL MOD, SEO dynamic metatags, BRIDGED Ajax Chat & Coppermine, various small mods, Cutenews, Crawltrack (check http://www.crawltrack.fr if you don't now) SEO & crawler tracking on all scripts. Running phpBB Arcade and posts rating system.

have a look at http://tjoogle.com
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

Maniii already did this.
Maniii wrote:And new problem, rate's first post don't true :

Image
Shoot, I missed that one.
Last edited by Alfatrion on Sat Apr 19, 2008 3:00 pm, edited 1 time in total.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
Locked

Return to “[3.0.x] Abandoned MODs”