| Author |
Message |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
News Ratings |
|
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 
| Description: |
| News ratings plugin 1.0 by SwiZZeR |
|
 Download |
| Filename: |
rating.zip |
| Filesize: |
5.66 KB |
| Downloaded: |
918 Time(s) |
Last edited by SwiZZeR on Fri Jan 13, 2006 1:55 pm; edited 12 times in total |
|
| Sat Dec 31, 2005 12:41 pm |
 |
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Tom
Joined: 22 Dec 2005 Posts: 13
|
|
|
|
No writing rating.
|
|
| Sat Dec 31, 2005 2:36 pm |
|
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
 |  | No writing rating. |
What? No write to the base?
|
|
| Sat Dec 31, 2005 3:47 pm |
 |
 |
Tom
Joined: 22 Dec 2005 Posts: 13
|
|
|
|
 |  | What? No write to the base? |
Yes - no write to the base...Cache?
|
|
| Sat Dec 31, 2005 3:55 pm |
|
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
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....
|
|
| Sat Dec 31, 2005 3:59 pm |
 |
 |
Tom
Joined: 22 Dec 2005 Posts: 13
|
|
|
|
Yes. Of cute_news is RATING and VOTES. Of MySQL database is automatic new CUTE_RATING - (id, post_id and ip)...
|
|
| Sat Dec 31, 2005 4:31 pm |
|
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
hm. I'll check it. It's all right at me... strange..
|
|
| Sat Dec 31, 2005 6:08 pm |
 |
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
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?
|
|
| Sun Jan 01, 2006 6:16 pm |
|
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
Coz i think, maybe put it in one table _rating or not??????
|
|
| Sun Jan 01, 2006 6:21 pm |
 |
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
 |  | You could add a title to each of the rating images. |
Without problems...
|
|
| Sun Jan 01, 2006 6:24 pm |
 |
 |
Tom
Joined: 22 Dec 2005 Posts: 13
|
|
This BUG |
|
Sorry - bug on CACHE...
Last edited by Tom on Sun Jan 01, 2006 9:15 pm; edited 1 time in total |
|
| Sun Jan 01, 2006 6:51 pm |
|
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
Bug in cache? I don't understand you, Tom...
|
|
| Sun Jan 01, 2006 8:40 pm |
 |
 |
SwiZZeR
Moderator
Joined: 24 Oct 2005 Posts: 71
|
|
|
|
News rating plugin updated!
|
|
| Mon Jan 02, 2006 4:49 pm |
 |
 |
PepeT
Joined: 11 Nov 2005 Posts: 92 Location: Finland |
|
|
|
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
|
|
| Mon Jan 02, 2006 9:29 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
| Tue Jan 03, 2006 1:02 am |
|
 |
|