News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Good Post/Bad Post Mod

Started by OutofOrder, June 17, 2009, 10:08:41 AM

Previous topic - Next topic

TheListener

Have a read of the Mod Emulate link in my signature.

CheeseHead05

I re-installed this mod and now I cant get rid of the "Respect" that shows in the post area under my name..(Even after I unchecked the box and hit save). Any suggestions?

Skaty

How can i show the votes seperately ? Minus and plus seperately. Not like -1,+1 = 0, but seperately to show like id it is -1,+1 it will show both.

Thank you.

CheeseHead05

Is it possible that I can have only the arrows on the very first post and that's it? Or once I install this mod, the arrows are on all posts?

Skaty

How can i see the most good post of all time ?

i have 3 questions now :D

Skaty

aand 4 question :D  how  can i bereave member to give vote ?

Ventic

#506
What  about a option for a limit vote?

Wilz

When I try to install this mod it says

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

My SMF version is 2.0.5 and I've downloaded 2.0.4a mod from this version.

Already checked this http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version but it isn't working. Any help?

Ventic

Open packageinfo.xml find smf versions and change all of them to 2.0.5.It works fine.
I uploaded mine,which works fine.

Wilz

I can only  view it, not edit. Any other solution/s?

margarett

Version emulation doesn't work?! Any errors?
Quote from: Wilz on September 24, 2013, 02:45:29 PM
I can only  view it, not edit. Any other solution/s?
That's a zip file with text files inside, how come you can't edit it?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Ventic

Quote from: Wilz on September 24, 2013, 02:45:29 PM
I can only  view it, not edit. Any other solution/s?
download my attach.its ready for you

Wilz

I have a problem with this. After I installed this mod (with help above) I always get double arrows and I don't know why. I mean I get four arrows and I can vote twice. Is there any way to disable this? So I can vote only one time (up or down)?

DeVIL-I386


Bodom

Is there anything else like this, but maybe newer and updated?
Also, it doesn't seem to be displaying for forum admins and mods.. Just has a 0 with no arrows.


And can you hide the "Respect: 0" from under Karama?

dand

#515
Hi guys,
I installed this mod before for version 1.1.x and it worked fine.
Now I upgraded my forum to 2.0.7 and installed this mod again (emulated 2.0 RC4). It installed fine, but now the problem: when I click the up or down arrows - it doesn't increase the count.

I checked permissions. I also tried logged in as admin. Still doesn't work.


I found the error log says:
Database error: Unknown column 'log_time' in 'field list'
FIle: /var/www/vhosts/mydomain.com/httpdocs/forum/Sources/GoodPostBadPost.php
Line: 181

Here is the line 181:

else
{
// Wipe out empty scores.
$amount = $_REQUEST['sa'] == 'up' ? 1 : -1;
$success = $_REQUEST['sa'] == 'up' ? 'up' : 'down';
$opposite = 0;
$smcFunc['db_insert']('insert',
'{db_prefix}log_gpbp',
array(
'id_msg' => 'int', 'id_member' => 'int', 'score' => 'int', 'id_poster' => 'int', 'log_time' => 'int'
),
array(
$message, $context['user']['id'], $amount, $id_poster, time()
),
array()
);
}



And here is the same peace of code in previous versino that I used in smf 1.1.x:

else
{
// Wipe out empty scores.
$amount = $_REQUEST['sa'] == 'up' ? 1 : -1;
$success = $_REQUEST['sa'] == 'up' ? 'up' : 'down';
$opposite = 0;
db_query("
INSERT INTO {$db_prefix}log_gpbp
(ID_MSG, ID_MEMBER, score, ID_POSTER)
VALUES
(" . $message . ", " . $context['user']['id'] . ", " . $amount . ", " . $id_poster . ")",__FILE__,__LINE__);
}


What could have gone wrong?

dand

OK, resolved it by adding "log_time" column to SMF database table "smf_log_gpbp".


After starting command line "mysql" tool I selected my SMF database like so:

mysql -u "admin" -p
show databases;
use my_smf_database;
show tables;
show columns from smf_log_gpbp;



and I used the following command to add the missing column to "gpbp" table:


ALTER TABLE smf_log_gpbp ADD log_time INTEGER;


I hope I nailed it.
Now it works.

Biology Forums

Thanks for posting the fix. I might change my forum to 2.x sometime later. I'm sure this will help.

rik300

Any plans to  make it work on 2.0.7 ?

CedarMill

rik300, this module works on SMF 2.0.7 8)
SMF 2.0.7

Advertisement: