[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.
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV] Post Rating System

Post by Alfatrion »

This is normal for the present moment. Please open the file with a text editor.

I found a couple of bugs and removed them in 0.3.3. The bugs where in includes/functions_posts_ratings.php and posts_ratings.php, so all that is needed is to copy this file.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
Libor
Registered User
Posts: 33
Joined: Tue Jul 03, 2007 8:12 pm

Re: [DEV] Post Rating System

Post by Libor »

Work this mod with SEO URLS (http://www.phpbb.com/community/viewtopi ... &sk=t&sd=a)? Because I have a problem with no post. When I click on some post, it shows error 404 File not found. Thanks for help
My czech forum about mp3 players: http://www.mujprehravac.cz/forum/
I use many of items here in forum. Thanks all for help and mods.
User avatar
Libor
Registered User
Posts: 33
Joined: Tue Jul 03, 2007 8:12 pm

Re: [DEV] Post Rating System

Post by Libor »

Ok, there is no problem in SEO URLs because viewtopic.php?f=x&t=x doesn´t work too, know someone where I do mistake?
My czech forum about mp3 players: http://www.mujprehravac.cz/forum/
I use many of items here in forum. Thanks all for help and mods.
User avatar
Libor
Registered User
Posts: 33
Joined: Tue Jul 03, 2007 8:12 pm

Re: [DEV] Post Rating System

Post by Libor »

Oh, I am stupid, server close connection and file viewtopic was erase in server but it didn´t replace by new one. Now I have a new problem:

Code: Select all

Parse error: parse error, unexpected '=' in /home/www/html/www.mujprehravac.cz/forum/viewtopic.php on line 1273
It´s line with code:

Code: Select all

posts_ratings_data =& posts_ratings_fetch_votes_topic(array($topic_id), $rowset);
My czech forum about mp3 players: http://www.mujprehravac.cz/forum/
I use many of items here in forum. Thanks all for help and mods.
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV] Post Rating System

Post by Alfatrion »

There is a missing $ That line should look like this.

Code: Select all

$posts_ratings_data =& posts_ratings_fetch_votes_topic(array($topic_id), $rowset);
I found more bugs and removed them in 0.3.4. The bugs where in includes/functions_posts_ratings.php and posts_ratings.php, so all that is needed is to copy these files.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: [DEV]Post Rating System

Post by ipollesion »

I can't get the install file to show correctly.
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

If you can view this then please download the 0.3.4. again and else please open it in a (unix compatible) text editor.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [DEV]Post Rating System

Post by iyeru42 »

Alfatrion wrote:If you can view this then please download the 0.3.4. again and else please open it in a (unix compatible) text editor.
And if people don't know a UNIX-Compatible editor, get WinMerge. Dreamweaver, Notepad, WordPad, OpenOffice, Microsoft Word, Microsoft frontpage are all not UNIX-Compatible.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [DEV]Post Rating System

Post by tupeu »

it would be fantastic if the topics(rated) would autoarrange themselves by their ratings !
can you do this ? :)
User avatar
Libor
Registered User
Posts: 33
Joined: Tue Jul 03, 2007 8:12 pm

Re: [DEV]Post Rating System

Post by Libor »

Is this mod working now? Has anyone this mod in his forum?
My czech forum about mp3 players: http://www.mujprehravac.cz/forum/
I use many of items here in forum. Thanks all for help and mods.
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

@tupeu: I'll put that on my todo list.

@libor:

I'll advise making a copy of your forum to a new location. Here you can change the code without risking to disturbing your users.

This mod runs on my test forum that has apache2 php5 and mysql 4.1. I think it also works on php4 but that hasn't bin tested. The changes the mod requires has not bin checked, but I included all edited files in the state where they work for me. When the second digit changes of the version number then new features are included, thus new bugs are introduced. I only remove bug for the latest stable version and the current version.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
Mostajz
Registered User
Posts: 32
Joined: Sun Jan 13, 2008 1:48 pm

Re: [DEV]Post Rating System

Post by Mostajz »

Can anyone help me?

I installed this module. I've overwritten all files, add SQL to the database and when I'm trying to post anything:

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Field 'posts_ratings_score' doesn't have a default value [1364]

SQL

INSERT INTO phpbb3_posts (forum_id, poster_id, icon_id, poster_ip, post_time, post_approved, enable_bbcode, enable_smilies, enable_magic_url, enable_sig, post_username, post_subject, post_text, post_checksum, post_attachment, bbcode_bitfield, bbcode_uid, post_postcount, post_edit_locked, topic_id) VALUES (3, 1834, 0, '88.103.233.50', 1200231992, 1, 1, 1, 1, 1, '', 'Re: fora - changelog', 'Bla bla', '3bdc425722d4b0984d4c794a2eddb85d', 0, '', '1g4gbb37', 1, 0, 11)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1830
CALL: dbal_mysql->sql_query()

FILE: posting.php
LINE: 1007
CALL: submit_post()
Any idea?
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

This SQL command should fix that.

Code: Select all

ALTER TABLE phpbb_posts
CHANGE posts_ratings_score TINYINT UNSIGNED NOT NULL DEFAULT 0,
CHANGE posts_ratings_standard_diviation SMALLINT UNSIGNED NOT NULL DEFAULT 0,
CHANGE posts_ratings_shadowed BOOL NOT NULL DEFAULT 0,
CHANGE posts_ratings_penaltized BOOL NOT NULL DEFAULT 0;
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [DEV]Post Rating System

Post by tupeu »

MOD version : 0.3.5 :shock:

Gr3at !
Mod updated today, what are the good news?
f.palagiano
Registered User
Posts: 5
Joined: Tue Jan 15, 2008 3:24 pm

Re: [DEV]Post Rating System

Post by f.palagiano »

Hello!
First of all, thanks for this mod: it's a great idea! :)

Second: I've translated the two lang files included with the installation in italian. If you'd like to add them to the zip package I will send them to you.

Third: I've installed the mod, but when i try to access a post, it seems it looses the post id (see the error below)
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 'LIMIT 1' at line 4 [1064]

SQL

SELECT * FROM phpbb_posts WHERE post_id = LIMIT 1

BACKTRACE


FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/db/mysql.php
LINE: 205
CALL: dbal_mysql->sql_query()

FILE: includes/db/dbal.php
LINE: 157
CALL: dbal_mysql->_sql_query_limit()

FILE: includes/functions_posts_ratings.php
LINE: 531
CALL: dbal->sql_query_limit()

FILE: includes/functions_posts_ratings.php
LINE: 816
CALL: sql_select_post()

FILE: includes/functions_posts_ratings.php
LINE: 590
CALL: is_voteround_open_basis()

FILE: includes/functions_posts_ratings.php
LINE: 1420
CALL: is_voteround_open()

FILE: viewtopic.php
LINE: 1314
CALL: posts_ratings_display_rating_topics()
I'm using version 0.3.4.

Forth (I know, it's a lot of things :P): in the xml with the instructions, it says to add the following lines to viewtopic.php:
// POSTS_RATINGS
$user->setup('mods/posts_ratings');
$template->assign_vars(posts_ratings_switches());
$posts_ratings_data =& posts_ratings_fetch_votes_topic(array($topic_id), $rowset);
$template->assign_vars(posts_ratings_display_rating_topic($topic_info, $posts_ratings_data));
$posts_ratings_data =& posts_ratings_fetch_votes_posts($post_list, $rowset);
but the functions in bold in functions_posts_ratings.php are named:
- posts_ratings_fetch_votes_topics
- posts_ratings_display_rating_topics
there's a missing "s".

Thanks again.
Locked

Return to “[3.0.x] Abandoned MODs”