Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #21  
Old 03-23-2005, 02:56 AM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Quote:
Originally Posted by mark
where is the javascript program??
It is not needed with version 1.1. I made the javascript much smaller, so it is included in the html that is generated.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #22  
Old 03-23-2005, 04:07 AM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
works like a charm! thanks!....
Reply With Quote
  #23  
Old 03-30-2005, 05:28 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
Re: XHMTL compliant changes

Quote:
Originally Posted by macdamoose
cryfreeman,

The most common cause of this error is unencoded ampersands in URLs and attributes in XML and XHTML have to be lower case. These are the changes I made to the addon to make it XHTML compliant:

Around Line 73 in ratings.php:
Code:
// Preload image
$ratings_html = "<script language='javascript' type='text/javascript'>image1 = new Image();image1.src = 'img/star_over.gif';function replace(img_name,img_src){document[img_name].src=img_src;}</script>";
//$ratings_html .= "<table width='60'  border='0' cellspacing='0' cellpadding='0' class='ratings'><tr>\n";
and around Line 93 in ratings.php:

Code:
  $ratings_html .= "<a href='?showimage=$image_id&rating=$i' title='Rate this photo $i/5 ($votes)' rel='nofollow' onmouseout=\"$mouse_out\" onmouseover=\"$mouse_in\"><img src='$star_image' alt='$rating' name='star$i' width='12' height='12' border='0' style='vertical-align: middle;' /></a>\n";
}
// $ratings_html .= "</tr></table>\n";
Please note that I commented out/removed the table code as I am not using it. I'm not sure if I made any other changes or not, but this should get you closer.

Good luck!

JB
http://eleventwentysix.com/
thx for the information
in line 94 aprox the attribute name is not valid in xhtml strict. if i change name noone can vote the image, i tried to change it with id attribute but it dont work
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
  #24  
Old 03-31-2005, 03:19 AM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Just so everyone knows. This addon has been tested with PixelPost version 1.4 and works fine.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #25  
Old 04-01-2005, 12:01 AM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
why do my stars have grey boxes around them... any ideas?
Reply With Quote
  #26  
Old 04-01-2005, 09:34 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
Quote:
Originally Posted by cryfreeman
A great addon!! I think it usefull to people who dont want post a comment but can rate your job.
Only a question. My page 'was' XHMTL compliant , but i use this addon and i want to modificate it to be XHTML again, any idea ??

(i have problems with javascript and preload )

thanks
post the errors you get, ill take a look over the weekend
__________________
i should say more clever stuff
Reply With Quote
  #27  
Old 04-01-2005, 05:00 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Quote:
Originally Posted by spyder
why do my stars have grey boxes around them... any ideas?
Grey boxes? As the readme states, the stars have a white background and are intended to go on a white page. If you want to modify the background, I have the photoshop file available that you can work with. It will be released in the next version. Just browse to this directory. It is a layered file, you just need to change the background colour, turn on/off layers for the different stars then save for web...

EDIT: Removed link, the PSD files are now available in the download.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #28  
Old 04-02-2005, 09:11 AM
reflejandome Offline
pixelpost guru
 
Join Date: Mar 2005
Posts: 124
Send a message via MSN to reflejandome Send a message via Yahoo to reflejandome
The error is

Line 39, column 401: there is no attribute "name"

...rc='img/star_on.gif' alt='2.00' name='star1' width='12' height='12' style='v

correspond to line 93 of rating.php

i delete line of mm_preload but it is another error...

thx

Quote:
Originally Posted by blinking8s
Quote:
Originally Posted by cryfreeman
A great addon!! I think it usefull to people who dont want post a comment but can rate your job.
Only a question. My page 'was' XHMTL compliant , but i use this addon and i want to modificate it to be XHTML again, any idea ??

(i have problems with javascript and preload )

thanks
post the errors you get, ill take a look over the weekend
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
  #29  
Old 04-13-2005, 10:42 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
Sorry to be tiresome wit hxhtml compliant, but i validate the web site with it and i get the same error

Line 61, column 354: there is no attribute "name"

...rc='img/star_on.gif' alt='3.00' name='star1' width='12' height='12' style='bo ..

how can i change attribute name??
thx.
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
  #30  
Old 04-15-2005, 08:55 AM
Joris Offline
forum loafer
 
Join Date: Apr 2005
Posts: 13
Don't you get crawlers rating your pictures this way? Because the stars are just links with images and any crawler will follow those links..

EDIT: I just saw the rel="nofollow". I know this means the link will not be counted for pagerank, but I think it doesn't prevent crawlers from crawling the link, because I had two ratings from Yahoo! Slurp tonight (it has good taste though ).
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:41 PM.

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