[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 »

I'm currently working some bugs in the mod instrunctions. The mod instruction contains some spaces where it should contains tabs or newlines where it shouldn't because of my terminal setup. This can make it hard to find the strings. The contrib directory contains the edited files for a checkup. If you have no other mods installed then you can simply copy these files.
Also, I realize you're one busy puppy but if you ever get a chance and it's not too much of a coding nightmare could you see if you could make it so we can set if so only the FIRST posing in a thread can receive a rating?
Feature request will not likly be added before 1.0. But as luck have it, this option is already available though the ACP. Check out the first post for all the features.
his mod work with phpbb3 3 gold and silver 2 ?
Please check the first post for that.
Last edited by Alfatrion on Mon Jan 28, 2008 12:40 pm, edited 1 time in total.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
electricx
Registered User
Posts: 46
Joined: Mon Oct 15, 2007 2:01 pm

Re: [DEV]Post Rating System

Post by electricx »

hi :) the mod is nice but i need him to the silver 2 :P how you do this ? :P

and

Someone has to post it to operate in the subsivel 2?

help me :P
XFXexpert111
Registered User
Posts: 1
Joined: Tue Jan 29, 2008 12:49 am

Re: [DEV]Post Rating System

Post by XFXexpert111 »

Hi the mod look nice but i have one problem every i try to rate post i have this information :cry:
Vote isn't recorded.
PLEASE HELP i worked on
Post_Rating_System_0_3_6
electricx
Registered User
Posts: 46
Joined: Mon Oct 15, 2007 2:01 pm

Re: [DEV]Post Rating System

Post by electricx »

plz can you mod the subsiver 2 to ? :s

tanks
319
Registered User
Posts: 144
Joined: Fri Dec 21, 2007 12:47 am

Re: [DEV]Post Rating System

Post by 319 »

Whe we could see the final release?
User avatar
dlt123
Registered User
Posts: 127
Joined: Wed Aug 29, 2007 6:46 am

Re: [DEV]Post Rating System

Post by dlt123 »

Alfatrion wrote:I'm currently working some bugs in the mod instrunctions. The mod instruction contains some spaces where it should contains tabs or newlines where it shouldn't because of my terminal setup. This can make it hard to find the strings. The contrib directory contains the edited files for a checkup. If you have no other mods installed then you can simply copy these files.
Hi Alfatrion, I know that you are very busy and hope everything is going well. Do you have a time frame for the release of your new instructions? I know that when I first tried to install the MOD, I had a few problems locating some strings in the instructions.

I am now using MySql and want to try installing your mod again but will wait till you release the updated instructions. But like they say, "Like a good wine, it won't be released before its time" :lol:
----
Also, I'm confused about the contrib files. Are these files phpBB3 Gold files you edited and does it mean we can simply just copy them over to their respective positions instead of editing our own Gold files? I have no other MODs installed on my system.

Thanks again for making this MOD available.
Dennis
Belief has no effect on Reality
Image
User avatar
dlt123
Registered User
Posts: 127
Joined: Wed Aug 29, 2007 6:46 am

Re: [DEV]Post Rating System

Post by dlt123 »

XFXexpert111 wrote:Hi the mod look nice but i have one problem every i try to rate post i have this information :cry:
Vote isn't recorded.
I got the same message when I logged onto the Demo Board with the username demo and demo2. When I tried to vote I got the same message on his test board. Looks like something is possibly broken.

Dennis
Belief has no effect on Reality
Image
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

I'll look in to the bug. You could try an earlier version in the mean time or wait until the next version. I don't have any preset release dates, but a fix is coming as soon as possible.
I had a few problems locating some strings in the instructions.
I'm working on that to.
Also, I'm confused about the contrib files. Are these files phpBB3 Gold files you edited and does it mean we can simply just copy them over to their respective positions instead of editing our own Gold files? I have no other MODs installed on my system.
Yes
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 »

This is fix:

open includes/functions_posts_ratings.php
find: function is_votable_basis($post_id, $trigger = FALSE)
change it into: function is_votable_basis($post_id, $score, $trigger = FALSE)
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 »

I have this problem:
SQL ERROR [ mysql4 ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: includes/db/dbal.php
LINE: 376
CALL: dbal_mysql->sql_error()

FILE: includes/functions_posts_ratings.php
LINE: 1340
CALL: dbal_mysql->sql_in_set()

FILE: viewforum.php
LINE: 1059
CALL: posts_ratings_fetch_votes_topics()
when I tried view some forum. Any help? Thanks
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.
319
Registered User
Posts: 144
Joined: Fri Dec 21, 2007 12:47 am

Re: [DEV]Post Rating System

Post by 319 »

Alfatrion wrote:This is fix:

open includes/functions_posts_ratings.php
find: function is_votable_basis($post_id, $trigger = FALSE)
change it into: function is_votable_basis($post_id, $score, $trigger = FALSE)
Can you include this change in the first pots's archieve of the MOD?
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

Libor,

It works oke for me. What version are you useing?

Please open viewforum.php,
find posts_ratings_fetch_votes_topics
add before:
print "<br />Topic_list='$topic_list' ";
foreach ($topic_list as $x)
print "Topic='$x' ";
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 »

Subsilver2 will be only supported in 1.0 if someone else create the instructions and contact me though pm. I just don't have the time for this, sorry. Else it may be included in 2.0
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 »

PHPBB version: 3.0.0 GOLD
PRS: 0.3.7 (because 0.3.8 can´t download, it isn´t on server)
You can look on my forum: http://mujprehravac.cz/forum2/
When I tried:

Code: Select all

Please open viewforum.php,
find posts_ratings_fetch_votes_topics
add before:
print "<br />Topic_list='$topic_list' ";
foreach ($topic_list as $x)
print "Topic='$x' ";
It says:

Code: Select all

Parse error: parse error, unexpected T_PRINT, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/www/html/www.mujprehravac.cz/forum2/viewforum.php on line 1059
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 »

0.3.7 is good. What apache / php version are you using?

The code I gave you works for me. Please quote the relevant lines out of viewforum.php with line numbers in front of a couple lines so I have an idea.

I have this:

Code: Select all

$topic_list = ($store_reverse) ? array_merge($announcement_list, array_reverse($
topic_list)) : array_merge($announcement_list, $topic_list);
$topic_tracking_info = $tracking_topics = array();

// POSTS_RATINGS
$user->setup('mods/posts_ratings');   
$template->assign_vars(posts_ratings_switches());
print "<br />Topic_list='$topic_list' ";
foreach ($topic_list as $x)
print "Topic='$x' ";
$posts_ratings_data =& posts_ratings_fetch_votes_topics($topic_list, $rowset);

// Okay, lets dump out the page ...
if (sizeof($topic_list))
{
        $mark_forum_read = true;
        $mark_time_forum = 0;
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

Return to “[3.0.x] Abandoned MODs”