Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #41  
Old 08-13-2007, 03:32 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
With the new code I get:
--------

string(0) ""

NULL

--------
In the top of the page
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote
  #42  
Old 08-13-2007, 04:20 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Ok, thanks. Thats a huge help. Dose the rating system still work though? It should but if not I'll keep working on it.

Just so you can see for yourself, using the "newer" code, place the original template tag within your image_template.html file:

Code:
<AJAX_RATE stars="5" img_width="30px" rateinfo="on" thankyou="on">
Now, refresh your page and you should see something like this:

Code:
string(54) "stars="5" img_width="30px" rateinfo="on" thankyou="on""
array(4) {
  ["stars"]=>
  string(1) "5"
  ["img_width"]=>
  string(4) "30px"
  ["rateinfo"]=>
  string(2) "on"
  ["thankyou"]=>
  string(2) "on"
}
If you do and the rating system continues to function, we've fixed the problem!

If it's fixed, continue to use the code until i release a patched version. You may remove the following 2 code blocks so the output does not show on your page.

Find and delete:
Code:
    echo '<pre>'; 
    var_dump($arg_string); 
    echo '</pre>';
and
Code:
     echo '<pre>'; 
     var_dump($args); 
     echo '</pre>';
But, if it does not work, please create a file called info.php and inside place the following:

PHP Code:
<?php phpinfo(); ?>
Upload this to your server and point your browser to this file.

Do a search for PCRE on this page and paste the results here.

Once you have done this, remove the info.php file from your web server.

Last edited by Dkozikowski; 08-13-2007 at 05:06 PM.
Reply With Quote
  #43  
Old 08-15-2007, 12:44 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
works fine
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote
  #44  
Old 08-15-2007, 04:21 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Quote:
Originally Posted by Ubbe View Post
works fine
I am relieved! I'll be updating all my addons that use the old regex.

Thank you for all your help. It's been invaluable.

Cheers!
Reply With Quote
  #45  
Old 08-15-2007, 09:18 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
Quote:
Originally Posted by dwilkinsjr View Post
I am relieved! I'll be updating all my addons that use the old regex.

Thank you for all your help. It's been invaluable.

Cheers!
Thank you for your addon
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote
  #46  
Old 08-16-2007, 03:59 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski


AJAX RATINGS v0.7

Last updated on: August 16th, 2007

VERSION HISTORY
  • Key:
    • [!]Important
    • [+]New
    • [-]Fixed error
    • [*]Changes
  • Version 0.7
    • [-]Fixed the regular expression that was causing some people's photoblogs to cease proper functionality.
    • [*]Updated the javascript functions to help avoid conflict between mootools and prototype packages.
    • [+]Added function to admin_ajax_ratings.php that removes the rating info from the database upon image deletion.
    • [*]Updated User Guide

DOWNLOAD
Reply With Quote
  #47  
Old 08-19-2007, 09:45 AM
Josef Renklint Offline
forum loafer
 
Join Date: May 2007
Posts: 19
Strange behaviour

My javascript behaves very oddly...

the rating works fine, it saves the rating data and everything, but somethings wrong with the javascript or something. The stars "jump" whenever I move the mouse over the stars. Unfortunately I can't upload a screenshot of how it looks, but if someone could help me I would be very thankful.

Thanks,

Josef
Reply With Quote
  #48  
Old 08-19-2007, 10:57 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
This is not a javascript issue.

It's most likely a CSS issue where you have changed the default stars for something else or something smaller.

Please provide me with a link so I can see for myself.
Reply With Quote
  #49  
Old 08-20-2007, 05:52 PM
Josef Renklint Offline
forum loafer
 
Join Date: May 2007
Posts: 19
URL

Here's a link showing the error.

http://www.fotografiker.se/test/
Reply With Quote
  #50  
Old 08-21-2007, 04:23 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
OK. It's definitely a CSS issue. First try placing the template tag outside the div it's in right now.

This is your current code:
Code:
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>">
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" />
</a>

<div id="image-navigate">
<span class="image-previous"><IMAGE_PREVIOUS_LINK></span>
<AJAX_RATE stars="5" img_width="30px" rateinfo="on" thankyou="on">
<span class="image-next"><IMAGE_NEXT_LINK></span>
</div>
try:

Code:
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>">
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" />
</a>

<AJAX_RATE stars="5" img_width="30px" rateinfo="on" thankyou="on">

<div id="image-navigate">
<span class="image-previous"><IMAGE_PREVIOUS_LINK></span>
<span class="image-next"><IMAGE_NEXT_LINK></span>
</div>
If this works and the placement is not where you want it. You'll have to play with the CSS file(s) to get the positioning right.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:10 AM.

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