News:

Wondering if this will always be free?  See why free is better.

Main Menu

Rate That Topic

Started by slinouille, August 20, 2008, 02:57:44 PM

Previous topic - Next topic

[SiNaN]

Mod haven't died yet, but I don't have time anymore to update this mod.

http://www.simplemachines.org/community/index.php?topic=269092.0

People still requiring support; can you collect your problems in a post? I'll check them all tomorrow.
Former SMF Core Developer | My Mods | SimplePortal

MarkS

#141
Hi [SiNaN] 
thanks the mod is fine but for me i would love it to be taken to the next level
things i would like it to do

1, give permistions to mods to see the rateAdmin panel

2, People cannot vote themeselves

3,Stats most rated in a week/month/year

why i need this is i have this set in my gallery part of the forum so we use it to rate photos as my forum is photography
we want to put the top 10 voted threads/photos in to a weekly poll as a competetion we run

so some stats for this would be good as at the mo i have to manualy check every rated post, even cooler if it could do this and give me a rate table

NOTE the below image is not from my forum but is like how i would want it




For Wajalot  this is how to remove the no voted stars

Quote from: NIBOGO on August 28, 2008, 10:04:19 PM
Easy Way:

You can delete or change your "tr0.png" in your images dir

PHP Way:

Search in MessageIndex.template:

FIND:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])))
REPLACE:
Quoteif(!empty($context['show_rate']) && !$topic['is_locked'] && !empty($modSettings['rate_showMessageIndex']) && ($modSettings['rate_showMessageIndex'] == 2 || ($modSettings['rate_showMessageIndex'] == 1 && !$topic['is_sticky'])) && (!($topic['rating_average'] == 0)))



thanks mark

Wajalot

Quote from: [SiNaN] on October 22, 2008, 11:46:43 AM
Mod haven't died yet, but I don't have time anymore to update this mod.

http://www.simplemachines.org/community/index.php?topic=269092.0

People still requiring support; can you collect your problems in a post? I'll check them all tomorrow.

Ohh..., it´s very sad to hear that. I´m not good enough with php to handle a mod and also give support. This mod could be one of the greatest, but it's not finished. With the points mentioned by Marks inthe previous post could be done.... Hopefully someone take over the mod. As i said, even i'd pay for those improvements.

[SiNaN]

Quote1, give permistions to mods to see the rateAdmin panel
Create a new permission. (Related doc here).

RateAdmin.php

Find:

isAllowedTo('admin_forum');

Replace:

isAllowedTo('your_permission');

If you mean the log, then you should change this:

isAllowedTo('moderate_forum');

Quote2, People cannot vote themeselves

Subs-Rating.php

Find:

if(!empty($check['lock']))
return false;


Replace:

if(!empty($check['lock']))
return false;

$request = db_query("
SELECT ID_MEMBER_STARTED
FROM {$db_prefix}topics
WHERE ID_TOPIC = $topic_id
LIMIT 1", __FILE__, __LINE__);
list ($check['started']) = mysql_fetch_row($request);
mysql_free_result($request);

if($check['started'] == $ID_MEMBER)
return false;


Quote3,Stats most rated in a week/month/year

This needs time, that's what I don't have.
Former SMF Core Developer | My Mods | SimplePortal

MarkS

thank you i have had a look at the link that you posted and it the mo its beond my skills
i have read it and better read it

i got stuck on the New language entries

i will give it another go soon but my heads massed in now.........

genieuk

Hi,

I had this error when i just installed and tried to rate:

Fix for "unable to load the 'rateadmin' template" error:

I noticed the fix and changed it in RateAdmin.php

i got another problem now.

When i go to a post and click the stars it takes me to the ratelog page, problem is it actually does not rate anything for some reason. nothing changes, no stars to show topic was rated or anything and nothing in the rate log.

Also when i hover mouse over the stars on the topic page they show as if they were one image, i mean i hover mouse over say the first star but it seems as it is the 5 stars is one image not seperate stars.

I am using SMF 1.1.6 installed via packaged manager with no errors, i changed rateadmin to RateAdmin as describe on the fix you provided, any solution to this?


MarkS

sounds like it working fine to me as you need to rate a topic here


[SiNaN]

Quote from: MarkS on October 28, 2008, 09:17:35 AM
sounds like it working fine to me as you need to rate a topic here

So everything is okay, or you have a problem?
Former SMF Core Developer | My Mods | SimplePortal

genieuk

#148
Rite i did not notice that i thought i had to click on the stars lol, i notice clicking on the stars takes you to the rate log page.

But i do have a problem thou, The message index that shows all the topics, after rating a topic i went to the message index and it does not display the stars on the topic message index?

Mathew

[SiNaN]

Check the mod settings if they are correctly set.
Former SMF Core Developer | My Mods | SimplePortal

genieuk

Quote from: [SiNaN] on October 28, 2008, 09:29:46 AM
Check the mod settings if they are correctly set.

Works perfectly thank you :)

My fault i did not realise my custom theme has it own messageindex.template.php file.

Thanks for another great mod ;)

Mathew

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

MarkS

cool glad you got it working m8....


now [SiNaN] 
how about them stats i have put a payed request in the mod forum fancy it...?

[SiNaN]

Quote from: MarkS on October 28, 2008, 10:00:38 AM
now [SiNaN] 
how about them stats i have put a payed request in the mod forum fancy it...?

Moved it to Help Wanted (not for support) board.

As I said, I don't have time unfortunately. If I had any, I'd have done it for public use.
Former SMF Core Developer | My Mods | SimplePortal

madman71

#154
Sinan,

What would keep the stars from being displayed?
It will not display on my theme or on the default theme.  The mod only displays number 0-5.
I have added the png files to almost every image directory out of frustration trying to get them to display. LOL
Everything else works.  I can pm you ftp details if you like.








[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal


imno007

Seems to be running proper with 1.1.7 but is every post suppose to start with a 5-star rating by default? Because mine do....

MarkS

#158
they all have a dull five star as some one rate the stars come brighter....... or you can remove the stars till some one votes

like so http://custom.simplemachines.org/mods/index.php?action-download;mod=1313;id=63409;image

KahneFan

Any chance this may be upgraded for 2.0? It appears to be an excellent mod.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Advertisement: