Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #41  
Old 12-08-2008, 07:36 PM
hicks0r Offline
pp regular
 
Join Date: May 2005
Posts: 38
Quote:
Originally Posted by robackja View Post
unfortunately, mod_rewrite is a giant hack currently in Pixelpost. Proper support needs to be added in future releases. To make those links use mod_write URLs, you have to modify index.php. You need to replace this line:

PHP Code:
$image_category_all       .= "<a href='".PHP_SELF."?x=browse&amp;category=$cat_id'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> &nbsp;";
$image_category_all_paged .= "<a href='".PHP_SELF."?x=browse&amp;category=$cat_id&amp;pagenum=1'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> &nbsp;"
with this

PHP Code:
$image_category_all       .= "<a href='".PHP_SELF."browse/category/$cat_id'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> &nbsp;";
$image_category_all_paged .= "<a href='".PHP_SELF."/browse/category/$cat_id/1'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> &nbsp;"
Also I noticed on your site, that the 'browse' page is not using mod_rewrite URLs. You need to replace your paged_archive.php addon with the one provided in the ZIP file. And then make sure using ADMIN interface that mod_rewrite URLs are enabled in the ADDON section.
Don't worry about hack index.php I just reuploaded the paged_archive.php and enabled the mod_rewrite and ALL IS OK, I don't need to hack the index.php.

I was using the first version of your template

Many thanks for your quickly answer
__________________
ENRICMORENO dot COM | my pblog
Reply With Quote
  #42  
Old 12-21-2008, 07:53 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by amysaurusrex View Post
So yeah, I'm incredibly confused and looking for any ounce of help anyone could offer. I think this template is a reeaaallly nice looking one and I'd love to get it to work if possible.
usually the problem you are describing has nothing to do with the .htaccess file. that usually happens if you have your SITE URL in the ADMIN options set incorrectly.

but without a link to your blog, its impossible to guess what the problem might be...
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #43  
Old 12-21-2008, 08:53 PM
amysaurusrex Offline
forum loafer
 
Join Date: Feb 2008
Posts: 2
Apologies, my mistake.
Site is here.
Got the template working for the front page, but the other pages aren't. The addon is installed and on, so I'm not sure why it's not working correctly.
Reply With Quote
  #44  
Old 12-21-2008, 08:58 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by amysaurusrex View Post
Apologies, my mistake.
Site is here.
Got the template working for the front page, but the other pages aren't. The addon is installed and on, so I'm not sure why it's not working correctly.
When you receive a 404 error on a mod_rewrite URL, its because the htaccess file is not working.

the file starts with a dot `.htaccess` and should placed in the root of the pixelpost installation.

if the pixelpost document root was /home/ppuser/htdocs/photoblog, the file should be /home/ppuser/htdocs/photoblog/.htaccess

Also in order to use .htaccess files, Apache has to be configured "AccessFileName" option (apache 2.0 docs) and have mod_rewrite installed. You will have to verify with your hosting company if they allow htaccess files and mod_rewrite. (almost all do)
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #45  
Old 12-21-2008, 09:02 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Also the template is designed for photos sized 720px width max, if you want to use larger sizes, you need to replace all occurrences of 720px in the CSS file with whatever size you want to use.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:28 PM.

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