Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #31  
Old 07-21-2006, 10:40 AM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
I added it and it works, but I have 2 problems:
http://www.dikkieburger.nl/photo/14
The thums work and their links too, but the dimensions from the thumbnails don't show up.

http://www.dikkieburger.nl/browse/category/3
This also doen'st work it's looking for thumbnails in
http://www.dikkieburger.nl/browse/ca...6_dscf2647.jpg
that should be http://www.dikkieburger.nl/thumbnail...6_dscf2647.jpg
What should I change in index.php to fix it?

Please help

Last edited by DikkieBurger; 07-21-2006 at 11:25 AM.
Reply With Quote
  #32  
Old 07-21-2006, 01:21 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
For starters, you can try putting the following code inside the <header> section of your template.

HTML Code:
<base href="http://www.dikkieburger.nl/">
If that doesn't fix it, you can always open up index.php and modify the image paths so they start with a "/".

CURRENT:
HTML Code:
<img src="thumbnails/thumb_20060711222228_dscf2748.jpg" alt="Butterfly" title="Butterfly" class="thumbnails" />
MODIFIED:
HTML Code:
<img src="/thumbnails/thumb_20060711222228_dscf2748.jpg" alt="Butterfly" title="Butterfly" class="thumbnails" />
__________________
Jay Williams | A Different View
Reply With Quote
  #33  
Old 07-21-2006, 02:17 PM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Ok, thanks problem solved, but still have the first problem:


http://www.dikkieburger.nl/photo/14
The thumbs work and their links too, but the dimensions of the thumbnails don't show up.
Reply With Quote
  #34  
Old 07-21-2006, 02:26 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Wow that's a strange problem there.

What you could do to at least get it working would be to edit the index.php file and make it so it doesn't add the 'width' or the 'height' attributes.

Current:
HTML Code:
[<img src='../thumbnails/thumb_20060708114723_oostblok2006_0510(085).jpg' alt='Water organ' title='Water organ' class='thumbnails' width='' height='' />
Modified:
HTML Code:
<img src='../thumbnails/thumb_20060708114723_oostblok2006_0510(085).jpg' alt='Water organ' title='Water organ' class='thumbnails'  />
__________________
Jay Williams | A Different View
Reply With Quote
  #35  
Old 07-21-2006, 02:51 PM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Mmm, width='$local_width' height='$local_height, the local/width and height are not working

Code:
$thumbnail_extra = getimagesize("/thumbnails/thumb_$image_name");
	$image_extra = getimagesize("/images/$image_name");
	$image_width = $image_extra['0'];
	$image_height = $image_extra['1'];
	$tpl = str_replace("<IMAGE_WIDTH>",$image_width,$tpl);
	$tpl = str_replace("<IMAGE_HEIGHT>",$image_height,$tpl);
	$local_width = $thumbnail_extra['0'];
	$local_height = $thumbnail_extra['1'];
Reply With Quote
  #36  
Old 07-21-2006, 02:56 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Just a hunch, but you might want to remove the "/" at the beginning of getimagesize.

PHP Code:
$thumbnail_extra getimagesize("thumbnails/thumb_$image_name");
    
$image_extra getimagesize("images/$image_name"); 
__________________
Jay Williams | A Different View
Reply With Quote
  #37  
Old 07-21-2006, 03:01 PM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Thanks! Fixed!
Reply With Quote
  #38  
Old 07-21-2006, 03:08 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Oh, your RSS feed needs some tweaking.

All your links have two "//". So you always get a 404 error when trying to view the page.

HTML Code:
<link>http://www.dikkieburger.nl//photo/17</link>
should be:

HTML Code:
<link>http://www.dikkieburger.nl/photo/17</link>
As usual, index.php is the place to look to modify the rss.
__________________
Jay Williams | A Different View
Reply With Quote
  #39  
Old 07-21-2006, 03:16 PM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Thanks, also fixed!
Reply With Quote
  #40  
Old 07-21-2006, 03:22 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Well since I'm on such a bug finding spree...
Here is something else for you to fix.

On the Galleries page, you need to change the option for "All".

This is the current code:

HTML Code:
<option value='index.php?x=browse&amp;category='>All</option>
It should be:

HTML Code:
<option value='/browse'>All</option>
And you know, you can easily change the .htaccess file if you want to rename /browse to /galleries.

Just replace any text that says "browse" with whatever you wish. :-)
__________________
Jay Williams | A Different View
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:39 AM.

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