News Ratings

Download plugins, language packs and stuff.

News Ratings

Postby SwiZZeR » Sat Dec 31, 2005 12:41 pm

UPD:

- Works with txtSQL and MySQL (0.3)

- columns 'rating' and 'votes' create automatically now (0.5)

- Printing in templates a little changed: (0.5)


    {rating-short} - Use in short-story, printing only rating

    {rating-full} - Use in full-story, printing rating form if didn't rated or rating

    {rating-total} - Use in full-story, printing total votes



- I add style.css which contains styles of rating form, put this styles into your CSS file on server and edit as you like :) (0.5)

- Code corrected (0.6)

- You CANNOT rate more than on time. Bug was killed! (0.7)

- No dropdown menu, radio-boxes rulezz imho :) (0.7)

- Styles changed and images renamed (0.7)

- Pagination added by FI-DD (taken from images.mdu) ( 0.8 )

- If you didn't install this plugin, after swithing on plugin on admin-panel, you must goto plugin menu in Options and push "Add table" button ( 0.8 )

- Changed all structure of plugin => reduced db-queries (0.9)

- Added {rating-middle} template-variable. It can print middle-value of rating! (0.9)

- Fixed problem when yoã redirect after vote and total-views of full-story not changed (0.9)

- Now you can use all template-variables ({rating}, {rating-middle}, {rating-total}) in short-story except {rating-form}, it must be only in full-story! (0.9)

- Changed structure of plugin (1.0)

- Fixed problems with cache (1.0)

- Added button "Delete table!" in admin-panel. If you don't want use plugin anymore, first you must push this button, then after delete base you must switch off plugin (1.0)

- Fixed bug when you can't rate and can't see results (1.0)

- That's all! Huh :)





Installation:

- file rating.php to the plugins/

- folder rating/ to the plugins/

- rating.ini to the inc/lang/en/plugins/

- Switch on plugin in admin-panel

- Goto plugin menu in admin-panel and push "Create table!"

- Edit your templates

- Edit styles



Enjoy with SwiZZeR :)
Attachments
rating.zip
News ratings plugin 1.0 by SwiZZeR
(5.66 KiB) Downloaded 1150 times
Last edited by SwiZZeR on Fri Jan 13, 2006 1:55 pm, edited 12 times in total.
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby Tom » Sat Dec 31, 2005 2:36 pm

No writing rating.
Tom
 
Posts: 13
Joined: Thu Dec 22, 2005 6:02 pm

Postby SwiZZeR » Sat Dec 31, 2005 3:47 pm

No writing rating.




What? No write to the base?
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby Tom » Sat Dec 31, 2005 3:55 pm

SwiZZeR wrote:What? No write to the base?




Yes - no write to the base...Cache?
Tom
 
Posts: 13
Joined: Thu Dec 22, 2005 6:02 pm

Postby SwiZZeR » Sat Dec 31, 2005 3:59 pm

Did you make two columns rating and votes?

Are you use MySQL?

Maybe cache, it's all ok on my localcomputer with this plugin... hm, beta....
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby Tom » Sat Dec 31, 2005 4:31 pm

Yes. Of cute_news is RATING and VOTES. Of MySQL database is automatic new CUTE_RATING - (id, post_id and ip)...
Tom
 
Posts: 13
Joined: Thu Dec 22, 2005 6:02 pm

Postby SwiZZeR » Sat Dec 31, 2005 6:08 pm

hm. I'll check it. It's all right at me... strange..
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby FI-DD » Sun Jan 01, 2006 6:16 pm

It's working great on my localhost. I really like it.



You could add a title to each of the rating images.



Else:

You need add 2 new columns in the _news table:

`rating` tinyint(3) default '0'

`votes` tinyint(5) default '0'



PHPMyAdmin help you to do it!

I apologize for this unconfortable thing, but it's only beta!!!


Why don't you let the script create these columns when the new table is created?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby SwiZZeR » Sun Jan 01, 2006 6:21 pm

Coz i think, maybe put it in one table _rating or not??????
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby SwiZZeR » Sun Jan 01, 2006 6:24 pm

You could add a title to each of the rating images.




Without problems...
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

This BUG

Postby Tom » Sun Jan 01, 2006 6:51 pm

Sorry - bug on CACHE...
Last edited by Tom on Sun Jan 01, 2006 9:15 pm, edited 1 time in total.
Tom
 
Posts: 13
Joined: Thu Dec 22, 2005 6:02 pm

Postby SwiZZeR » Sun Jan 01, 2006 8:40 pm

Bug in cache? I don't understand you, Tom...
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby SwiZZeR » Mon Jan 02, 2006 4:49 pm

News rating plugin updated!
SwiZZeR
Moderator
 
Posts: 71
Joined: Mon Oct 24, 2005 9:15 am

Postby PepeT » Mon Jan 02, 2006 9:29 pm

Does anyone have a working version of this in somewhere? I would like to see.



Will this work with version CuteNews.RU 2.4.1?



Thanks
PepeT
 
Posts: 115
Joined: Fri Nov 11, 2005 11:26 am
Location: Finland

Postby FI-DD » Tue Jan 03, 2006 1:02 am

@PepeT

http://english.cutenews.ru/cuteru/example/



@SwiZZeR

I tabified your code, added the double quotes to the form and fixed the self.location.href thing. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron