Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: feeble on January 22, 2008, 10:49:18 PM

Title: rateTopic
Post by: feeble on January 22, 2008, 10:49:18 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1066)

Description: Rate a Post based on your forums Message Icons. The Majority vote changes the message icon for the message at hand.

Aim: To replace the Applaud/Smite Feature of SMF. Based on the work done by Team Gary over at Facepunch Studios (http://www.facepunchstudios.com/)

Note: Also the message Icons are a little weird, they don't have any consistent size. At the moment its configured to 16px X 16px. Which makes a few of the icons cramped or misaligned
This can be fixed with appropriate images.
I recommend using something like Bitcons (http://www.somerandomdude.net/srd-projects/bitcons/) or Axialis Free Icons (http://www.axialis.com/free/icons), just upload the icons to your THEME/images/post/ and add them to your message icons list in SMF Admin

This mod requires Manual theme changes in Custom themes
Manual Theme Changes (http://www.leaderless.net/PackageParser/index.php?file=rateTopic.zip&show=theme)

Preview



If you require help, head over to SMF Helper (http://www.smfhelper.info/forum/index.php)
Title: Re: rateTopic
Post by: Hoochie Coochie Man on January 23, 2008, 05:33:34 AM
Thanks for the mod.
Can I see a live demo?
Title: Re: rateTopic
Post by: Apllicmz on January 23, 2008, 01:33:04 PM
nice Mod
Title: Re: rateTopic
Post by: myaicons on January 23, 2008, 02:23:07 PM
looks pretty cool...

ill  have to do a manual install.. and i saw there isnt many changes needed...

will this completely remove/disable the current Karma feature ?

Title: Re: rateTopic
Post by: feeble on January 23, 2008, 02:50:32 PM
Quote from: Hoochie Coochie Man on January 23, 2008, 05:33:34 AM<br />Thanks for the mod.<br />Can I see a live demo?<br />
Its being used at the moment over at SMF Helper (http://www.smfhelper.info/forum/index.php)

Quote from: myaicons on January 23, 2008, 02:23:07 PM<br />looks pretty cool...<br /><br />ill  have to do a manual install.. and i saw there isnt many changes needed... <br /><br />will this completely remove/disable the current Karma feature ?<br /><br /><br />
It will not disable the karma feature mod.
Title: Re: rateTopic
Post by: L.G.S on January 23, 2008, 03:18:15 PM
The title totally opposes the description. I clicked the title thinking that you could actually vote on the topic icon (seen when viewing forums) but when you begin to read the description you see it's actually a post that's being rated and not the topic..
Title: Re: rateTopic
Post by: Hoochie Coochie Man on January 24, 2008, 01:34:54 AM
Quote from: Feeble on January 23, 2008, 02:50:32 PM
Quote from: Hoochie Coochie Man on January 23, 2008, 05:33:34 AM<br />Thanks for the mod.<br />Can I see a live demo?<br />
Its being used at the moment over at [urk=http://www.smfhelper.info/forum/index.php]SMF Helper[/url]

Thanks for the demo
Title: Re: rateTopic
Post by: perro88 on January 24, 2008, 10:06:30 AM
Nice mod thanks, maybe you should try to add a option to disable it or enable it on the X board, or permissions by merbergroups
Title: Re: rateTopic
Post by: feeble on January 24, 2008, 03:57:13 PM
Quote from: perro88 on January 24, 2008, 10:06:30 AM
Nice mod thanks, maybe you should try to add a option to disable it or enable it on the X board, or permissions by merbergroups
Good ideas.
Ill probably introduce that in a future patch, just wanted to get something simple out to begin with.

Quote from: Hoochie Coochie Man on January 24, 2008, 01:34:54 AMThanks for the demo
No worries

Quote from: L.G.S on January 23, 2008, 03:18:15 PMThe title totally opposes the description. I clicked the title thinking that you could actually vote on the topic icon (seen when viewing forums) but when you begin to read the description you see it's actually a post that's being rated and not the topic.
I do apologise for this, initially it was only for the First post in a topic, but a couple of days before submission I extended it to all posts under a few recommendations.
The message Icon thou is changed, on the top vote.
Title: Re: rateTopic
Post by: diegolyanky on January 24, 2008, 09:31:33 PM
It will be very cool if put a list of rates ( autors ) like on this web:

http://forums.facepunchstudios.com/showthread.php?p=8816968#post8816968

I attached an image with what I mean ;)
Title: Re: rateTopic
Post by: 2pac on January 25, 2008, 04:02:23 AM
really cool mod! :D
Title: Re: rateTopic
Post by: falguni1 on January 25, 2008, 07:02:52 AM
can you make one more mod to only rate the topic and not post.
Title: Re: rateTopic
Post by: feeble on January 25, 2008, 03:35:51 PM
Quote from: diegolyanky on January 24, 2008, 09:31:33 PMIt will be very cool if put a list of rates ( autors )
I like this as well, Ill look into it, and see what I can do.

Quote from: falguni1 on January 25, 2008, 07:02:52 AMcan you make one more mod to only rate the topic and not post.
Ill put out a patch soon, which will include a backend. So you can choose this option.
Title: Re: rateTopic
Post by: falguni1 on January 26, 2008, 12:35:10 AM
ok.
Title: Re: rateTopic
Post by: ceewee on January 26, 2008, 07:06:19 AM
Does it need to be initilized, I've installed it, but it doesn't show in topics or posts?
Or does it only appear when replying/quoting messages?

Title: Re: rateTopic
Post by: perro88 on January 26, 2008, 07:51:46 AM
Quote from: ceewee on January 26, 2008, 07:06:19 AM
Does it need to be initilized, I've installed it, but it doesn't show in topics or posts?
Or does it only appear when replying/quoting messages?


I think you have to add news message icons or something but not sure
Title: Re: rateTopic
Post by: feeble on January 26, 2008, 03:19:04 PM
Quote from: ceewee on January 26, 2008, 07:06:19 AM
Does it need to be initilized, I've installed it, but it doesn't show in topics or posts?
Or does it only appear when replying/quoting messages?

Nothing to activate, this mod is very simple right now

Its probably because you are using a custom theme?
Manual Theme Changes can be seen here (http://www.leaderless.net/PackageParser/index.php?file=rateTopic.zip&show=theme)
Title: Re: rateTopic
Post by: 2pac on January 27, 2008, 01:42:25 AM
hey im using this mod and usign strictly the icons to show in the message index, like you can see here:

http://ninerskickass.com/forum/index.php/board,2.0.html

anyway, the only problem is, you cant really tell if a topic is locked... i was wondering if somebody can come up with some code so that when a topic is locked it displays a red lock icon instead?

it could probably be done with an if else statement i suppose, but im not sure what statements i would use to accomplish that. can someone help me out? thanks!
Title: Re: rateTopic
Post by: Qayyom Ashraf on January 27, 2008, 11:58:30 PM
I think only admin(s) can do this,

normal members are not viewing this option (mean they aren't able to Rate any topic)

how can I set permissions for all members

my forum url is www.JangForum.com
Title: Re: rateTopic
Post by: feeble on January 28, 2008, 02:19:15 PM
Sorry for the delayed reply

Quote from: 2pac on January 27, 2008, 01:42:25 AM
anyway, the only problem is, you cant really tell if a topic is locked... i was wondering if somebody can come up with some code so that when a topic is locked it displays a red lock icon instead?

it could probably be done with an if else statement i suppose, but im not sure what statements i would use to accomplish that. can someone help me out? thanks!
What did it use to do before you installed this mod?

Since the locked icon isn't a message icon, this mod shoudn't be affecting what you had before.

But I can show you how to do it anyways if you want?

Quote from: qayyom on January 27, 2008, 11:58:30 PM
I think only admin(s) can do this,

normal members are not viewing this option (mean they aren't able to Rate any topic)

how can I set permissions for all members

my forum url is www.JangForum.com
This mod doesn't use any permissions just yet.

I made an account, and it seems to be working just fine.
Title: Re: rateTopic
Post by: 2pac on January 29, 2008, 02:13:21 AM
before i installed this mod, i had just the regular status icons, like the "topic you have posted in", "sticky topic" and "locked topic"... etc. and i didnt even use the message icons

but i thought this mod was sort of fun to show what people think of the topics so i implemented it in place of the status icons

all i want to do is upload a similar red "lock" icon and have it appear in the message index when a topic is locked instead of the green ones i am currently using

i figure it may be possible with a simple if else statement but i dont know the argument code i would use in the statement for a locked topic

Title: Re: rateTopic
Post by: 2pac on January 29, 2008, 02:44:10 AM
nevermind, i figured it out, i used this:

     if(!$topic['is_locked'])
Title: Re: rateTopic
Post by: SuperTongue on February 01, 2008, 02:18:38 PM
Quote from: diegolyanky on January 24, 2008, 09:31:33 PM
It will be very cool if put a list of rates ( autors ) like on this web:

http://forums.facepunchstudios.com/showthread.php?p=8816968#post8816968

I attached an image with what I mean ;)

That would be very awesome! I love this little mod and on Facepunch, they have it nailed down. Like he said, you should try to have it to show who gave what ratings.
Title: Re: rateTopic
Post by: perro88 on February 08, 2008, 12:16:43 PM
Well I'll make anotehr suggestion :P. What about on the message icon option(of each icon) have a checkbox with something like "allow just for rating" so the icon appear on the rate topic but not when creating a topic. and then a "allow for rating checkbox". this way would be possible to add icons just for rate, for rate and as a option when creating a new topic or just as a option when creating a new topic. probably won't be hard to do. And again, great mod and nice coding there :P
Title: Re: rateTopic
Post by: perplexed on February 15, 2008, 06:42:24 AM
I had a look on SMF Helper but I just don't see how you rate a topic post.  I might be having a slow day today but how do you do it?  I can't see any examples.  *scratches head*
Title: Re: rateTopic
Post by: perro88 on February 15, 2008, 12:59:47 PM
Quote from: perplexed on February 15, 2008, 06:42:24 AM
I had a look on SMF Helper but I just don't see how you rate a topic post.  I might be having a slow day today but how do you do it?  I can't see any examples.  *scratches head*
it's on top of the sign, you probably might to be logged to see the rater
Title: Re: rateTopic
Post by: feeble on February 15, 2008, 01:10:43 PM
Quote from: perplexed on February 15, 2008, 06:42:24 AM
I had a look on SMF Helper but I just don't see how you rate a topic post.  I might be having a slow day today but how do you do it?  I can't see any examples.  *scratches head*
There isn't actually a preview site at the moment, due to the preview site I was using switched over to SMF 2
Sorry about that, image is still good thou
Title: Re: rateTopic
Post by: perplexed on February 15, 2008, 02:06:52 PM
Quote from: perro88 on February 15, 2008, 12:59:47 PM
Quote from: perplexed on February 15, 2008, 06:42:24 AM
I had a look on SMF Helper but I just don't see how you rate a topic post.  I might be having a slow day today but how do you do it?  I can't see any examples.  *scratches head*
it's on top of the sign, you probably might to be logged to see the rater

yeah I was logged in lol

Quote from: feeble on February 15, 2008, 01:10:43 PM
Quote from: perplexed on February 15, 2008, 06:42:24 AM
I had a look on SMF Helper but I just don't see how you rate a topic post.  I might be having a slow day today but how do you do it?  I can't see any examples.  *scratches head*
There isn't actually a preview site at the moment, due to the preview site I was using switched over to SMF 2
Sorry about that, image is still good thou

cheers feeble
Title: Re: rateTopic
Post by: Stargater59 on February 18, 2008, 02:02:38 PM
Well, first of all, cool mod. Exactly what I was looking for.  I love the little rating system at Facepunch.

But, I was wondering if there was anyway of separating the rating images from the message icons? I'm going to change all my message icons, and they're not going to work to well with this..

I don't know if there's a way to keep it all in the "Smileys and Message Icons" manager and call the two different image sets from two different locations or not..
Title: Re: rateTopic
Post by: Neo1607 on March 11, 2008, 02:24:22 PM
Quote from: Stargater59 on February 18, 2008, 02:02:38 PM
Well, first of all, cool mod. Exactly what I was looking for.  I love the little rating system at Facepunch.

But, I was wondering if there was anyway of separating the rating images from the message icons? I'm going to change all my message icons, and they're not going to work to well with this..

I don't know if there's a way to keep it all in the "Smileys and Message Icons" manager and call the two different image sets from two different locations or not..

I was wondering about separating the Message icons and the ratings images as well.  any help would be appreciated :)
Title: Re: rateTopic
Post by: feeble on March 12, 2008, 04:09:57 PM
apologies for my delayed response, I've been a little busy of late

To do what you are asking is simple enough, but just takes a little mysql knowledge
open
Source/Display.php
find
$request = db_query("
SELECT ID_ICON, title, filename
FROM {$db_prefix}message_icons
WHERE ID_BOARD IN (0, $board)", __FILE__, __LINE__);


now to limit the rate icons to say above message icon 4 add in
$request = db_query("
SELECT ID_ICON, title, filename
FROM {$db_prefix}message_icons
WHERE ID_BOARD IN (0, $board)
AND ID_ICON > 4", __FILE__, __LINE__);



and that's really it

it you need this more in depth let me know
Title: Re: rateTopic
Post by: 2pac on April 20, 2008, 09:32:02 PM
I notice in Firefox, and I think maybe Opera, the Icons dont line up

the icons on the right(the dimmed ones) are higher than the ones on the left(the ones that show up after a post has been rated)

is there any fix to that?
Title: Re: rateTopic
Post by: vivek on May 15, 2008, 06:09:15 AM
Is it compatible with SMF 1.1.5, I downloaded the new version but cant make it work, it does show "allow rating " in the "manage board" but does not show rating buttons / icons anywhere in the topic.

Please help
Title: Re: rateTopic
Post by: chippa on June 09, 2008, 09:46:23 AM
when i go to the link for people using a custom theme i get this message

Quotefile not found

any help please?

Title: Re: rateTopic
Post by: Snap_shot on August 11, 2008, 07:40:10 PM
I sent you a pm asking if this was possiable to make work with 1.1.5 is there any way to make it work? I would love it and so would all the members on my forum.
Title: Re: rateTopic
Post by: Snap_shot on August 11, 2008, 07:58:29 PM
Quote from: feeble on March 12, 2008, 04:09:57 PM
apologies for my delayed response, I've been a little busy of late

To do what you are asking is simple enough, but just takes a little mysql knowledge
open
Source/Display.php
find
$request = db_query("
SELECT ID_ICON, title, filename
FROM {$db_prefix}message_icons
WHERE ID_BOARD IN (0, $board)", __FILE__, __LINE__);


now to limit the rate icons to say above message icon 4 add in
$request = db_query("
SELECT ID_ICON, title, filename
FROM {$db_prefix}message_icons
WHERE ID_BOARD IN (0, $board)
AND ID_ICON > 4", __FILE__, __LINE__);



and that's really it

it you need this more in depth let me know

Ok i got the mod working but i can't seem to do this, i want to use seperate icons rather than my boards. and this is really confusing


EDIT: I have like ruined my smiles trying to get this to work i really need your help
Title: Re: rateTopic
Post by: brianjw on October 06, 2008, 04:44:24 PM
feeble,

If you update this to SMF 2.0 B4 then we at SMFhelper.info will be able to use it again. :)

It was a great mod and worked well. I look forward to seeing it at higher versions. ;)
Title: Re: rateTopic
Post by: SilverKnight on November 29, 2008, 10:53:12 PM
Feeble your work is great ! Please continue work on this project, it's quite basic but with a few more features, i could be one of the most used interactive content mods out there !

What it needs is:
Forum permissions (what ratings can be done per forum)
Gave and receive stats menu for profiles
Rollover effect which lights up the icon

Keep the good work up!

Title: Re: rateTopic
Post by: smldmr on December 05, 2008, 09:50:48 PM
I have a little problem. I installed this mod on my smf 1.1.7. With FF and Opera, everything is fine but with IE the siteloading abort with an errormessage. It say that the site can't be opened. What is the problem here?
Title: Re: rateTopic
Post by: SilverKnight on June 22, 2009, 11:11:10 AM
Would be nice for this mod to not use the topic images as a base.. i use topic bars..
Title: Re: rateTopic
Post by: Grindcore on March 05, 2011, 05:41:39 AM
I know this is a very old topic, but your Mod looks pretty cool and it seems to be just, what I was looking for.

Is there any chance that this modification will be available for SMF v2.0? Would be great!
Title: Re: rateTopic
Post by: SuperBrian91 on January 09, 2012, 09:38:58 AM
I apologize for bumping this old topic but I am wondering is this the same kind of rating system that is in this topic I created? http://www.simplemachines.org/community/index.php?topic=464638.msg3245214#msg3245214 

If it is, I have been looking for this mod for while now for my SMF 2.0 forum.

I also see it only compatible with SMF 1.1.4 what are the chances of getting it working for SMF 2.0 or converting it to work with SMF 2.0?

Thank and sorry about bumping the topic.
Title: Re: rateTopic
Post by: SilverKnight on March 18, 2012, 09:22:40 PM
Would like a smf 2.0 version.
Title: Re: rateTopic
Post by: busterone on March 18, 2012, 09:30:53 PM
I seriously doubt it. The mod author has not been active here since   October 20, 2008, 04:56:03 PM.