Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
News Ratings
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
News Ratings
Author Message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post News Ratings Reply with quote
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 Smile (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 Smile (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 Smile





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 Smile



rating.zip
 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 View user's profile Send private message Visit poster's website ICQ Number
Guest








Please login to hide the ads.

Tom



Joined: 22 Dec 2005
Posts: 13

Post Reply with quote
No writing rating.
Sat Dec 31, 2005 2:36 pm View user's profile Send private message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
Quote:
No writing rating.




What? No write to the base?
Sat Dec 31, 2005 3:47 pm View user's profile Send private message Visit poster's website ICQ Number
Tom



Joined: 22 Dec 2005
Posts: 13

Post Reply with quote
SwiZZeR wrote:
What? No write to the base?




Yes - no write to the base...Cache?
Sat Dec 31, 2005 3:55 pm View user's profile Send private message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
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 View user's profile Send private message Visit poster's website ICQ Number
Tom



Joined: 22 Dec 2005
Posts: 13

Post Reply with quote
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 View user's profile Send private message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
hm. I'll check it. It's all right at me... strange..
Sat Dec 31, 2005 6:08 pm View user's profile Send private message Visit poster's website ICQ Number
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
It's working great on my localhost. I really like it.



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



Quote:
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 View user's profile Send private message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
Coz i think, maybe put it in one table _rating or not??????
Sun Jan 01, 2006 6:21 pm View user's profile Send private message Visit poster's website ICQ Number
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
Quote:
You could add a title to each of the rating images.




Without problems...
Sun Jan 01, 2006 6:24 pm View user's profile Send private message Visit poster's website ICQ Number
Tom



Joined: 22 Dec 2005
Posts: 13

Post This BUG Reply with quote
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 View user's profile Send private message
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
Bug in cache? I don't understand you, Tom...
Sun Jan 01, 2006 8:40 pm View user's profile Send private message Visit poster's website ICQ Number
SwiZZeR
Moderator


Joined: 24 Oct 2005
Posts: 71

Post Reply with quote
News rating plugin updated!
Mon Jan 02, 2006 4:49 pm View user's profile Send private message Visit poster's website ICQ Number
PepeT



Joined: 11 Nov 2005
Posts: 92
Location: Finland

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
@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. Smile
Tue Jan 03, 2006 1:02 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.