Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 03-28-2009, 12:06 AM
lmallozzi Offline
forum loafer
 
Join Date: Mar 2009
Posts: 4
World in 35mm Template help.

Hello!

I just wanted to start off first by giving my apologies.

I attempted to search the forum for some info in relation to my problem regarding this template but I didn't quite find what I was looking for. I will say, that there is one part to the mod that I have not yet done, and that I am slightly confused about.

INSTALLATION

Copy addons/theworldin35mm.php to the addons/ directory in your pixelpost installation.

Edit addons/theworldin35mm.php, if using Google Analytics enter site number, fill in values for SITE_AUTHOR, SITE_EMAIL, etc.

Activate theworldin35mm addon in Pixelpost ADMIN page (In the Addons Section)

Copy addons/paged_archive.php to the addons/ directory in your pixelpost installation. (be sure to backup your original one)

Activate Paged Archive addon in Pixelpost ADMIN page (In the Addons Section)

Copy the theworldin35mm folder in your templates directory in the Pixelpost installation.

Choose theworldin35mm template in options menu in the Pixelpost ADMIN pages.

Create a file called ".htaccess" (without quotes) in the base of your Pixelpost installation.

Modify your .htaccess file with rewrite rules shown below

(NOTE: .htaccess file starts with a dot!!! and RewriteBase needs to the path in the URL, e.g. if your website is http://example.com/pixelpost/, then RewriteBase should be "RewriteBase /pixelpost", not "RewriteBase /")


I've done the bolded part, but I don't know that that last part means.

If you go to my site www.lui-mallozzi.com you can see the site is up and looking good. However, if you click browse or downloads or about, the screen just goes blank.

How do I fix this? I'm not technically-inclined and I need all the help I can get. I'm really not too good at this stuff, but I'm willing to learn.

Can anyone help?
Reply With Quote
  #2  
Old 03-29-2009, 04:41 AM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
you need to put the put the rewrite rules in the file you created.

so, create a file called .htaccess in the base of your pixelpost installation. then put the rewrite rules, copy-and-paste from the README.txt file included with the download into the .htaccess file.

Just be sure your .htaccess filename starts with a DOT.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #3  
Old 03-29-2009, 04:43 AM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Of course, your Apache or IIS webserver installation needs to have mod_rewrite support also. You have to ask your HOSTING company if they support that. Almost all do.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #4  
Old 03-30-2009, 08:57 PM
lmallozzi Offline
forum loafer
 
Join Date: Mar 2009
Posts: 4
By creating the .htaccess file I'm basically making a text file, adding the coding and then renaming it as .htaccess correct? When I log via FTP I see this folder system:

>cgi-bin
>error_docs
>httpdocs
>httpsdocs

My pixel post installation is installed in my httpdocs folder. That is where I'm uploading this .htaccess file correct?

My .htaccess file looks like this:

RewriteEngine on
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5
RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1

I just don't understand the modification part. What and where do I modify it?
Reply With Quote
  #5  
Old 03-30-2009, 09:11 PM
lmallozzi Offline
forum loafer
 
Join Date: Mar 2009
Posts: 4
Never mind!

Thank you for the help guys!
Reply With Quote
  #6  
Old 04-01-2009, 07:48 PM
MikeyTampa Offline
forum loafer
 
Join Date: Apr 2009
Posts: 6
Quote:
Originally Posted by robackja View Post
you need to put the put the rewrite rules in the file you created.

so, create a file called .htaccess in the base of your pixelpost installation. then put the rewrite rules, copy-and-paste from the README.txt file included with the download into the .htaccess file.

Just be sure your .htaccess filename starts with a DOT.
What exactly is a "Base" I am assuming its the orignal folder so something like...

root/pixelpost/.htaccess

Or is it something else that is considered the "base" of your installation.
Reply With Quote
  #7  
Old 04-01-2009, 07:51 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by MikeyTampa View Post
What exactly is a "Base" I am assuming its the orignal folder so something like...

root/pixelpost/.htaccess

Or is it something else that is considered the "base" of your installation.
Correct, its the base of the pixelpost installation, the same directory that contains pixelpost's index.php file.

See a short, non-edited, no sound video @ http://theworldin35mm.org/downloads. I am going to try and edit something in the future, but hopefully this is enough to clear people's confusion.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #8  
Old 04-01-2009, 08:18 PM
MikeyTampa Offline
forum loafer
 
Join Date: Apr 2009
Posts: 6
Quote:
Originally Posted by robackja View Post
Correct, its the base of the pixelpost installation, the same directory that contains pixelpost's index.php file.

See a short, non-edited, no sound video @ http://theworldin35mm.org/downloads. I am going to try and edit something in the future, but hopefully this is enough to clear people's confusion.
Thanks but for some reason it gives me an internal server error when I add .htaccess to my pixelpost folder . My folder is called Portfolio and I added that to the place where the directions said. Hmmm Can't see anything I did wrong.

Here are my files...







Reply With Quote
  #9  
Old 04-01-2009, 08:27 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Error 500 in this case points to your Apache configuration was not setup with mod_rewrite support.

You can try wrapping the rewrite rules with this

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
...
</IfModule>
If you no longer get the internal server error, but rewrite rules are still not working, then you don't have mod_rewrite support in your version of Apache.

You can still use the template, but you have to manually change the links back to the old style, stuff like
HTML Code:
<a href="<SITE_URL>about">...</a>
would have to be changed to this
HTML Code:
<a href="<SITE_URL>?x=about">...</a>
. Links to the images, next, prev, etc would all need to be changed.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #10  
Old 04-01-2009, 08:29 PM
MikeyTampa Offline
forum loafer
 
Join Date: Apr 2009
Posts: 6
Quote:
Originally Posted by robackja View Post
Error 500 in this case points to your Apache configuration was not setup with mod_rewrite support.

You can try wrapping the rewrite rules with this

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
...
</IfModule>
If you no longer get the internal server error, but rewrite rules are still not working, then you don't have mod_rewrite support in your version of Apache.
Will go check. I use Godaddy so I am hoping they support it because that is my question elsewhere because I hate hate hate the fact my url has index.php=about in it ugh.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:32 PM.

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