View Full Version : Addon: Clean URLs (Search Engine Friendly URLs)
Name:
Clean URLs (Search Engine Friendly URLs)
Desc:
This addon gives you possibility to overwrite image navigation links (previous, current, next, permalink) with Clean URLs (Search Engine Friendly URLs).
To work properly it needs in head section code with your blog URL:
<base href="http://your_blog_url/" />
I.e. you can have links like this: http://blog.piotrgalas.com/archive.php/143/Peacock/2005_09_03_01:26:58
PS In all my "fresh" addons there is always Paypal button thanks to which you can donate process of creating next releases of it. The amount of money doesnt matter - the most important for me is to see its worth to sleep less, to read about new technologies, to search new solutions and think about new ideas.
PS Live demo:
http://geos.wzzone.com/
Addon details:
Version: 0.3
Added: 2005-09-03 05:44:12
Updated: 2005-09-04 08:59:57
Category: addon
Addon page:
http://pixelpost.org/v1/index.php?x=downloads&details=106
Download:
http://pixelpost.org/v1/devfiles/?id=106
raminia
09-03-2005, 10:52 AM
hehe:D greaT!
It was good time to make it public ;)
raminia
09-03-2005, 11:01 AM
nice timing;)
one Question:
when the address is http://geos.wzzone.com/show.php/143/2005-09-03_01_26_58
and 143 is the photo id, why there is a need for that long date string in url?
isn't
http://geos.wzzone.com/show.php/143/
enough? it works though try http://geos.wzzone.com/show.php/143/
raminia
09-03-2005, 11:12 AM
and another question :>
why http://geos.wzzone.com/143/ is not enough?
Hmmmmm, that good question :)
So there will be next release at todays evening/night ;)
premii
09-03-2005, 01:35 PM
Could you mention in description that this addon requires Pixelpost version 1.5 or newer !!!
I have working addon for 1.4+, it is little different. it generates clean search friendly urls with image title.
http://domain/<image_title>/<image_id>/
example: http://blog.premii.com/reckless-driver/45/
Joe[y]
09-03-2005, 07:11 PM
Could you mention in description that this addon requires Pixelpost version 1.5 or newer !!!
I have working addon for 1.4+, it is little different. it generates clean search friendly urls with image title.
http://domain/<image_title>/<image_id>/
example: http://blog.premii.com/reckless-driver/45/
hey! i want that one! looks better!
raminia
09-03-2005, 07:25 PM
image title has problem with UTF-8 caracter inside URL
Joe[y]
09-03-2005, 09:16 PM
image title has problem with UTF-8 caracter inside URL
so that sucks! no image-title then?
premii
09-03-2005, 10:00 PM
if your blog is in English or only uses ascii characters, then I don't see any problem.
also I remove all other characters except [a-z|A-Z|0-9] from image-title when generating clean URL.
Could you mention in description that this addon requires Pixelpost version 1.5 or newer !!!
True. At morning/afternoon it would be version independent. Now Im going sleep.
raminia
09-04-2005, 08:42 AM
if your blog is in English or only uses ascii characters, then I don't see any problem.
also I remove all other characters except [a-z|A-Z|0-9] from image-title when generating clean URL.
yeah but that's a big if.
raminia
09-04-2005, 08:43 AM
image title should be an option.
I suggest 2 type of clean urls
1) image title
2) image id.
@raminia: Now there are both. I think that I have solved UTF8 problem (maybe not in 100% but more or less) ;)
Now this addon also is PP 1.4+ friendly (maybe even 1.3+ or less).
PS There wont be http://blabla.com/123/title/date coz I dont want to make big mess in index.php and dont want to slow down PP.
-okapi-
09-04-2005, 03:12 PM
just one question...
do i have to put the archive.php at the root?
unfortunately it doesn't work for me at the moment (no images, no styles, just text is displayed).
i think, a little bit more of documentation would be very helpful...
Yeap - you must or you should change the one variable to old:
$showprefix = 'show.php/';
Addons always need all what is in their packs (if it isnt rule it should be) :)
-okapi-
09-04-2005, 04:28 PM
i changed it that way, but now i get a "file not found" by clicking the previous or next link.
btw, in fact there is no "show.php" - why should the variable be changed?
show.php was in previous version.
If you had this file (show.php) in root directory then variable must be:
$showprefix = 'show.php/';
else you must upload to root dir archive.php and left variable as it is:
$showprefix = 'archive.php/';
-okapi-
09-04-2005, 04:43 PM
now i uploaded archive.php to the root, and the links returned the image page with clean url, but only with text, without css and without images.
I forgot. You must have in head section of image template:
<base href="http://your_blog_url/" />
-okapi-
09-04-2005, 06:18 PM
well... ;)
ahh... and now: clean url!
but look at the example url it returns:
...://www.a-visual-notebook.at/archive.php/577/august_10__2005/2005_08_10_20:24:09
it's clean, but is it ok? (double underscores?)
anyway, i'm beginning to love it...
raminia
09-04-2005, 07:36 PM
is it really clean ??
-okapi-
09-04-2005, 07:41 PM
;)
is it 'clean' enough?
ramina, what would you say?
Joe[y]
09-04-2005, 07:50 PM
i'd say it's too darn long.
premii
09-04-2005, 08:59 PM
I wouldnt call this clean.
why do you have a date in url? and why time?
-okapi-
09-04-2005, 09:55 PM
I wouldnt call this clean.
why do you have a date in url? and why time?
btw, how come that you have clean url's with your photoblog??
;)
premii
09-05-2005, 01:08 AM
I wrote my own addon for cleanURL.
-okapi-
09-05-2005, 05:38 AM
i modified it a little bit, because i don't need the title in the url (actually i have dates as titles), now it's "clean" and short, and i like it!
thank you, GeoS!
1) double underscores - they are OK.
2) Too long - some of you said that URLs without title are missunderstood, so now there are also titles
3) Why date? - My question is: Why not?
It is enough easy to modify that all of you can handle with it and get what they want :)
-okapi-
09-05-2005, 11:00 AM
yes, it is!
if one has minimal skills in php, and mine are in fact minimal ;)
Im thinking about adding to PP table with addons configurations.
When it be Ill add some switcher between few variants of clean URLs.
Jan Jelinek
09-10-2005, 10:45 AM
image title has problem with UTF-8 caracter inside URL
This can be solved by replacing nonstandard characters with "-" :)
Yeap,
all non a-zA-Z0-9_ and space chars are removed or changed to _.
It can be small problem in reading it (by users) but it would work in all conditions (and mainly would work with search engine BOTs).
Freycheur
03-05-2006, 07:09 AM
Hello,
I've just installed a photoblog and I wanted those nice URLs.
I took your addon and made some modifications. I've rewritten the browse section and the feeds. I've made used of the htaccess RewriteEngine.
Now you have access to your pictures with /path/to/pixelpost/id-title. I'm French and I put a function which converts a title like "Cliché d'un soir" into cliche-dun-soir.
The browse section is available with /browse, a category with /browse/id-title.
Feeds are reached by /rss.xml and /atom.xml.
If you want to have a look, here is a download link : http://www.une-goutte.net/wiki/_media/projet-portail/rewrite_urls-0.1.zip
My photoblog with 2 little photos (see the addon in action) : http://www.une-goutte.net/cliche/
There's some functionalities of Pixelpost I don't use, so this work may be incomplete for some of you. On top of that if you want to tweak the URL format (eg add dates) it won't be as easy as I'd like. A further step would be to add a fieldbox in administration which let the user choose these settings.
Nice work.
Anyway in some free time I must go back to this topic and get some new idea how to solve it in the best way for all.
blinking8s
03-05-2006, 10:41 PM
very nice addition here...
Hello
Anyone and IDEA what I must edit to work with Search friendly URLS when I use the template lightwhitetwo ?
There is a browse page and a imgage page... I work very much hours on it but my programming is not good enough.
I test it with this addon and with http://forum.pixelpost.org/showthread.php?t=2317&highlight=mod_rewrite
(http://forum.pixelpost.org/showthread.php?t=2317&highlight=mod_rewrite)
but all times no chance :-(
plz help
greets
Sepp
First of all - does your server support Apache's module mod_rewrite?
Second - does your server works with PHP in CGI mode or as Apache's module?
greentraveler
05-10-2006, 12:49 AM
Geos, is there a way to use Clean URLS while using your Show Category add-on as well? Since both use alternative navigation tags, I'm 99.9% sure that it's one or the other. But I really want those clean urls and had to ask. :D
Hello
Yes mod_rewrite is supportet!
second. I think as appache module!
The problem is that I must edit some links etc in the image_template.php
and the browse_template.php
but i donīt now which links etc.....
with your pixelpost-dark it works excellent!!! but I have the lightwithtwo template....
with this http://forum.pixelpost.org/showthread.php?t=2317&highlight=mod_rewrite
I have it on work, but i canīt see the thumbnails and I canīt put on commentīs.
thank you very much
greets
sepp
Please give us a link to your test site with mod_rewrite. It will help us to help you :P
virgohippy
07-08-2006, 06:00 PM
Is there an accompanying htaccess file which is supposed to be bundled with this addon? I haven't been able to find one. :confused:
There wasnt such file if I good remember. It was stuff for a little more advanced users. As there were better solutions this addon wont be developed any more.
dritidet
09-09-2006, 08:45 PM
I installed pixelpost today and I want to use it for a webpage I'm making for a painter. He has done 3 exhibitions. I've uploaded 30 pictures into 3 different categories (representing the exhibitions). On a page (wordpress) I wan't to link to each of the categories where the user start viewing pictures within that category...
So, I installed "GeoS Show Category ADDON" which should be able to do this for me. Well, not so... When pressing next or previous the browser won't fin archive.php. So, I copied index.php and renamed it into archive.php. That messed it up. I tried base href="http://localhost/pictures/ in head-section in archive.php with no luck.
I'm stuck, and that's likely because I'm not into PHP at all...
Can someone help me?
Dritidet
Connie
09-10-2006, 08:17 AM
it is not a good idea to rename basic scripts ...
the call for a category would be for example
yoururl?x=browse&category=1
"x=browse" is connected to functionality of index.php so you cannot use this with "archive.php" or whatever filename..
Why don't you start with simple links to the categories?
http://www.yoururlgoeshere.xx/index.php?x=browse&category=1&pagenum=1
http://www.yoururlgoeshere.xx/index.php?x=browse&category=2&pagenum=1
http://www.yoururlgoeshere.xx/index.php?x=browse&category=3&pagenum=1
when that works you can think about refining the URLS by using addons
On a page (wordpress) I wan't to link to each of the categories where the user start viewing pictures within that category...
1. You posted in wrong topic.
2. It should be enough to link to http;//url/index.php?category=ID_of_Cat&showimage=
question. does this addon works only on the dark template? i use the suffocate one and doesn't recognize it (i probably have to do a lot of editing in the templates and add the tags)
also, i was thinking about a string like this:
myblogurl.com/archive/id/image-name.html (where image name is in small caps)
All is possible. Just put proper tags and few rules to .htaccess (mod_rewrite rules) and it should be fine :D
PS In all my "fresh" addons there is always Paypal button thanks to which you can donate process of creating next releases of it. The amount of money doesnt matter - the most important for me is to see its worth to sleep less, to read about new technologies, to search new solutions and think about new ideas.
Dennis
11-02-2007, 03:29 PM
I'm with GeoS on this all the way!
Dkozikowski
11-02-2007, 04:16 PM
Aren't we all?!? ;) :)
kiev_photographer
11-09-2007, 02:58 PM
The browse section is available with /browse, a category with /browse/id-title.
Feeds are reached by /rss.xml and /atom.xml.
If you want to have a look, here is a download link : http://www.une-goutte.net/wiki/_media/projet-portail/rewrite_urls-0.1.zip
My photoblog with 2 little photos (see the addon in action) : http://www.une-goutte.net/cliche/
Who can help me with this device?:)
i try replace tags in image_template ( i use tags from rewrite_urls-0.1 addon)
but this dont work for me :(
where needed put this tags?
for addon work when i click on photo not to the text link
iHamad
11-11-2007, 10:31 AM
does this addon work with PP1.7 ... ???
As you can see at my blog - it works. In a second Ill take a look on kiev_photographer's blog.
EDIT Kiev... - I dont see archive.php script in your root photoblog folder so it wont work without it.
When you upload it then you can check some example link like:
http://www.fotoart.kiev.ua/archive.php/4/test_description
Tiestoo
11-24-2007, 12:16 PM
I really like this addon, thx alot Geos+!
My URL's now look like: myblog.com/archive.php/8/IMAGE_TITLE (I modified clearlink.php a little bit to remove the date in the URL's). I like this al lot more, but is it also possible to change the URL's to myblog.com/IMAGE_TITLE. These would be the cleanest URL's I can imagine :-)
I.e. if you have mod_rewrite at your box then it is possible. All other solutions need hack of Pixelpost core files. PP must know image ID (if dont want to hack PP for getting other way of working).
Tiestoo
02-06-2008, 02:17 PM
Hmm, that seems a little to complicated for me :-) Other question: is this addon also working for <IMAGE_PREVIOUS_ID> and <IMAGE_NEXT_ID> (seems not)? In other words: is it in any way compatible with Simplicious (http://www.pixelpost.org/extend/templates/simplicious/)?
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.