Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Pixelpost Help (http://www.pixelpost.org/forum/forumdisplay.php?f=10)
-   -   World in 35mm Template help. (http://www.pixelpost.org/forum/showthread.php?t=10348)

lmallozzi 03-28-2009 12:06 AM

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?

robackja 03-29-2009 04:41 AM

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.

robackja 03-29-2009 04:43 AM

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.

lmallozzi 03-30-2009 08:57 PM

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?

lmallozzi 03-30-2009 09:11 PM

Never mind!

Thank you for the help guys!

MikeyTampa 04-01-2009 07:48 PM

Quote:

Originally Posted by robackja (Post 65302)
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.

robackja 04-01-2009 07:51 PM

Quote:

Originally Posted by MikeyTampa (Post 65357)
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.

MikeyTampa 04-01-2009 08:18 PM

Quote:

Originally Posted by robackja (Post 65360)
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...

http://www.michael-antoine.net/image...5d2f00cf64.png

http://www.michael-antoine.net/image...fdfed77861.png

http://www.michael-antoine.net/image...0b95d1f0cf.png

http://www.michael-antoine.net/image...57992f233a.png

robackja 04-01-2009 08:27 PM

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.

MikeyTampa 04-01-2009 08:29 PM

Quote:

Originally Posted by robackja (Post 65363)
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.


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

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.