Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 09-08-2006, 10:33 AM
SnowScan Offline
pp regular
 
Join Date: Aug 2005
Posts: 42
Hi Jay,

I have one question before I installe your postslug addon

in the readme you write:
To load a image via a Post Slug, you can use the following link:
index.php?photoslug=post-slug-title

but... can I still access the images via the original image ID both for images previously uploaded and uploaded af the installed addon.
I dont want to loose references and link
__________________
Regards,
Peter Hestbæk
www.snowscan.dk
Reply With Quote
  #12  
Old 09-08-2006, 02:23 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
I can't seem to get this addon to patch the index.php file like it's supposed to. When I run the install, it says that it's INSTALLING DATABASE and INSTALLING FILE PATCH, but no changes get made to the index.php file. When I reload the addons page, it tells me the Database is Ok, but the patch is not installed. I have tried this multiple times and ensured my index.php was writeable, but can't seem to get it patched.

Since this is beta, you may want to consider putting some error handling in the addon, so we can get an idea of where the patch is failing.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #13  
Old 09-08-2006, 03:12 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
Quote:
Originally Posted by SnowScan
in the readme you write:
To load a image via a Post Slug, you can use the following link:
index.php?photoslug=post-slug-title

but... can I still access the images via the original image ID both for images previously uploaded and uploaded af the installed addon.
I dont want to loose references and link
Yes, you can still access your images using the traditional ?showimage=123 method. All this addon does is add an additional means of loading an image, it doesn't remove any of the current functionality.

Once you have uploaded that addon to Pixelpost, make sure you press the "Install Post Slug" button located on the addons page.

Then once it says:
Quote:
Post Slug Patch: OK
Post Slug Database: OK
You are setup.

You can then go into each image individually, to specify a post slug for that image, or if you want to do it the quick way, you can click on the link "Auto Generate Post Slug". This will create a post slug for each image based off the image title.

Then it's just a matter of modifying your template to use Post slugs instead of image IDs for a reference. But remember, this step is optional, and the image IDs will still work.
__________________
Jay Williams | A Different View
Reply With Quote
  #14  
Old 09-08-2006, 03:17 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
Quote:
Originally Posted by dakwegmo
When I run the install, it says that it's INSTALLING DATABASE and INSTALLING FILE PATCH, but no changes get made to the index.php file. When I reload the addons page, it tells me the Database is Ok, but the patch is not installed. I have tried this multiple times and ensured my index.php was writeable, but can't seem to get it patched.
Well, I figured something would happen like this, as everyone's server is different.
So, I have compiled two alternative methods to patch the index.php file.

You can download it from here:
http://members.atlantic.net/~john195...beta_PATCH.zip

Basically, the easiest way to get it up and running is to upload the included pre-patched index.php file. And the alternate way is to manually copy-paste the changed lines of code to edit the index.php file.

I hope one of the two methods work out for you. :-)
Let me know if you experience any other issues, as you stated, this is beta, and I DO want to work out any bugs that people encounter.
__________________
Jay Williams | A Different View
Reply With Quote
  #15  
Old 09-08-2006, 04:45 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
When I checked the addon code to see that there was a lot of find and replace in there, I suspected you might have a copy of the modified index.php. I will try that this weekend and let you know if it works.

Thanks.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #16  
Old 09-27-2006, 05:45 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Post Slug Patch: NOT INSTALLED
Post Slug Database: OK

error on line 541

more i don't Know.

When post slug work google_sitemap - version 1.0 built sitemap with Post Slug url

thx
bye
Reply With Quote
  #17  
Old 09-27-2006, 05:53 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
Quote:
Originally Posted by Giuseppe View Post
Post Slug Patch: NOT INSTALLED
Post Slug Database: OK

error on line 541
You may want to try uploading my already patched index.php file.
That should fix the problem.

You can get it here: admin_PostSlug_1_beta_PATCH.zip

If you need any other help, feel free to contact me.
__________________
Jay Williams | A Different View
Reply With Quote
  #18  
Old 09-27-2006, 09:04 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Thxs for quick response.
patch installed an addons work fine.
add <IMAGE_NEXT_LINK_SLUG> in image_template.php and the url of the page is:
.../fotoblog/index.php?photoslug=liberty intead of:
/fotoblog/liberty

where is my mestake?
Reply With Quote
  #19  
Old 09-28-2006, 05:27 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Guiseppe,

You need to add a .htaccess file with rewrite rules in them. The url .../fotoblog/liberty will have to be rewritten to .../fotoblog/index.php?photoslug=liberty

Quote:
Originally Posted by jaywilliams View Post
Well, you can easily create a .htaccess file with the following text to do that.
Code:
RewriteEngine On

RewriteRule ^photo/(.*)$ index.php?photoslug=$1
But you will need to modify the script and your template so all the links reference the photos that way. So it would take a little effort on the users end. And as you noticed, this is a beta, so better integration with mod_rewrite will probably be something that will be added in the future.

And thanks for your comment!
Reply With Quote
  #20  
Old 09-28-2006, 10:30 AM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
I try, but don't work.
this is all i tried:

RewriteEngine On
RewriteRule ^/home//fotoblog/(.*)$ index.php?photoslug=$1


RewriteEngine On
RewriteRule ^/fotoblog/(.*)$ index.php?photoslug=$1

RewriteEngine On
RewriteRule ^home//fotoblog/(.*)$ index.php?photoslug=$1

RewriteEngine On
RewriteRule ^fotoblog/(.*)$ index.php?photoslug=$1

.htaccess in the root of my space

the server:
PHP-version 4.4.1 (Requisiti minimi di Pixelpost: versione PHP: 4.3.0 )

Session save path /tmp

MySQL version 5.0.24-standard-log (Requisiti minimi di Pixelpost: MySQL: 3.23.58 )

GD-lib bundled (2.0.28 compatible) con supporto JPEG

Gli Upload al sito Pixelpost sono possible.

Server Software Apache/2.0

Thanks schonhose & jaywilliams
Reply With Quote
Post Reply


Thread Tools




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

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