Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #21  
Old 06-10-2005, 02:53 PM
bexpress Offline
forum loafer
 
Join Date: Jun 2005
Location: Thunder Bay, ON, Canada
Posts: 7
Hello! Is it possible to modify this slightly, so that an email is sent to me whenever a photo is rated, so that I don't have to check my admin panel? And also tell me which one was rated in the email? I'm guessing it would act similarly to the way it works with comments?

ie. ________ was rated with __ stars on ______ .

Any advice would be awesome!
Reply With Quote
  #22  
Old 06-29-2005, 01:43 PM
davidm Offline
forum loafer
 
Join Date: Jun 2005
Posts: 4
noobie question

I am new to pixelpost, and I love the idea of the rating addon, but I fail to understand what I need to do for it to work...

Here is what I did :
- I copied ratings.php in the /addons folder
- I copied the overlib folder at the root (then, tried to place it in /includes)
- I copied the img folder at the root (not sure there)

If I understand the way pixelpost works, I probably need to call the addon with a tag I have to insert in my template (or some code, maybe). That's the thing, I don't know what I am supposed to add for this to work. There's no text file explaining this, and it's the first addon I am installing.

Please bear with me and give me some help !
Thanks,

David
Reply With Quote
  #23  
Old 06-29-2005, 09:44 PM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
just insert, in your image_template.html file, the following code:
Code:
<div>rate this image:<IMAGE_RATING_STARS></div>
cheers
Reply With Quote
  #24  
Old 06-29-2005, 09:55 PM
davidm Offline
forum loafer
 
Join Date: Jun 2005
Posts: 4
Thanks Steff !
Works like a charm.

PixelPost is really great, and this rating addon is really cool, but how was I supposed to find the info ?

If I want to find out the same thing for other addons... I might have missed something, but I didnt find the info where I usually get them (though I know quite a bit about CMS's...).

Is there some place this is documented ???
Reply With Quote
  #25  
Old 06-30-2005, 07:37 PM
reflejandome Offline
pixelpost guru
 
Join Date: Mar 2005
Posts: 124
Send a message via MSN to reflejandome Send a message via Yahoo to reflejandome
download

i cann't dowload the addon, is there another alternate site ?? thx
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
  #26  
Old 07-01-2005, 01:10 PM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
Quote:
Originally Posted by davidm
Is there some place this is documented ???
yes, in the ratings.txt file which is into the zip file of the addon

you can add more tags, ie:

Quote:
4. Add the template tag <IMAGE_RATING_STARS> to your image_template.html where you want the 5 stars to appear. You can also use the tags <IMAGE_RATING> for the rating as a number and <IMAGE_VOTES> for the number of votes.
Reply With Quote
  #27  
Old 07-01-2005, 01:22 PM
davidm Offline
forum loafer
 
Join Date: Jun 2005
Posts: 4
?

Well I had no ratings.txt in the zip file, just checked it...

Would have noticed a txt file, since I was looking for one
Reply With Quote
  #28  
Old 07-01-2005, 01:46 PM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
I swear i had it! :P

here it is:

Code:
Ratings Addon v1.2
------------------

Rob Prouse - rob@prouse.org
http://www.shiftedexposure.com

History
-------

1.0 - Initial Release
1.1 - Changed rating to 'Unrated' from '-' for unrated photos
    - When you mouse over a star, all stars to the left change
      to the mouseover state to indicate what you will be voting.
    - Removed the need to modify the <body> tag and the need for
      the javascript file.
    - Added circular stars as an option.  PSD is included if you
      want to modify it.
1.2 - Fixed HTML to make it compliant
    - Added the overlib library for better mouse-overs.  For more
      information on the overlib library, go to 
      http://www.bosrup.com/web/overlib/
    - You can now vote more than once for a photo, but now only
      your last vote counts.
    - Improved the stars images and included the PSD file so that
      you can change the background colour.

About
-----

Gives each of your photos a 5 star rating.  Users just have to click on
a star to rate your photo.  It only allows one rating per person per
picture.  Hovering over any of the stars will give the current rating
for that photo.

TODO
----

I want to add tags to display links to the top rated and most voted on
photos.  If you have other ideas, let me know.

Install
-------

1. Unzip everything which I assume you did because you are reading this :D
2. Copy the img/ directory with the photos to the root of your pixelpost
   install.  There are three images that look best on a white or light
   background.  Feel free to replace them with other 12x12 images that work
   better for your site.  I have included stars in the shape of dots in
   img/dots along with the PSD file if you want to modify it for your background 
   colours.  You will also find the PSD for the default stars in img/stars. If you 
   create other stars, please email them to me at rob@prouse.org to include in 
   future releases.
3. Copy addons/ratings.php to your addons directory.
4. Add the template tag <IMAGE_RATING_STARS> to your image_template.html where you want
   the 5 stars to appear.  You can also use the tags <IMAGE_RATING> for the rating as
   a number and <IMAGE_VOTES> for the number of votes.
   
You are done unless you want to use the overlib library for rollovers.  If you do,
continue reading;

5. Copy the directory overlib/ to the root of your pixelpost install.  This is the
   javascript for the image rollovers.   
6. If you want to use overlib, edit your image_template.html and add the following
   line in the <head> section of the template;

   <script type="text/javascript" src="overlib/overlib.js"></script>

7. Now add the following line right after the <body> tag;

   <div id="overDiv" align="left" style="position:absolute; visibility:hidden; z-index:1000;"></div>

8. Now edit addons/rating.php and remove the // from the front of the following line;

   //$use_overlib = true;
   
The database table will be created the first time you access the addon.
Reply With Quote
  #29  
Old 07-01-2005, 03:09 PM
davidm Offline
forum loafer
 
Join Date: Jun 2005
Posts: 4
Thanks a lot for this.
The download link is dead now, so it helps...

I notice one thing : your txt reads "Ratings Addon v1.2", maybe it was omitted in v1.3 which I downloaded...
Reply With Quote
  #30  
Old 07-02-2005, 08:08 PM
reflejandome Offline
pixelpost guru
 
Join Date: Mar 2005
Posts: 124
Send a message via MSN to reflejandome Send a message via Yahoo to reflejandome
i posted the same problem but noone help me
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:28 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs