SEF_URLs plugin for cpg1.5.x - Page 5 SEF_URLs plugin for cpg1.5.x - Page 5
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

SEF_URLs plugin for cpg1.5.x

Started by Joachim Müller, March 26, 2007, 06:56:46 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Αndré

You have to edit codebase.php. But you always need information you can process by the htaccess rewrite rules. So it would be the best to just add some more stuff to the url, but not remove anything.

Bobses

It is too hard for me... :( Thanks anyway.

profili

Timo you have done e great job with the Speaking URL functionality!
But would like to see a few things more.
Would be great if each file have unique urls.
E.g. instead of an url like this: http://pics.timos-welt.de/bild-neueste-0-1108-_Dresdner_Frauenkirche_.html to have only this http://pics.timos-welt.de/bild-1108-_Dresdner_Frauenkirche_.html
I mean permalinks everywhere in the gallery, no matter if we are viewing a photo from the Last viewed, Last additions or Last comments, etc. The same thing for the photos in the film strip and previous and next file. In the moment we have multiple urls for the same photo and you know this is not good at all.
I hope you will take into consideration this post.

Cheers

Αndré

Quote from: profili on August 20, 2010, 10:29:02 AM
I mean permalinks everywhere in the gallery, no matter if we are viewing a photo from the Last viewed, Last additions or Last comments, etc. The same thing for the photos in the film strip and previous and next file. In the moment we have multiple urls for the same photo and you know this is not good at all.
The additional information is required to use the meta albums. If you drop that information, you always get the regular album view.

Timos-Welt

Hm it could be possible if I would take the site referer into account and/or would save the current meta album in a cookie. But that would make it even more risky to use this plugin, so I tend not to do it.

profili

Quote from: Timos-Welt on August 20, 2010, 01:35:01 PM
Hm it could be possible if I would take the site referer into account and/or would save the current meta album in a cookie. But that would make it even more risky to use this plugin, so I tend not to do it.

I understand.
Than this situation can be solved using the canonical tag. Every file has an unique url, as well every album and every category. Adding them the canonical tag would solve the problem with the multiple urls. Can you do this? Please.
Regards.

profili


papukaija

Quote from: profili on August 20, 2010, 04:46:32 PM
Adding them the canonical tag would solve the problem with the multiple urls. Can you do this? Please.
There's already a plugin which adds <link rel="canonical ... /> to meta type pictures (lastup, most viewed, search, last comment, top rated).

wbnp

I'm having trouble with the installation of this plugin.

The button that would allow me to configure does not show up, it looks like it is missing a bit of code.  Please see attached photo.

I've downloaded the files a couple of times so I'm not sure if there is a problem with the download, the extract or???

Thanks!

www.whyboysneedparents.com/Coppermine

papukaija

That's possibly a bug in the svn version (v2.1). Is the link working in the latest stable (and supported) version which is currently v.1.8?

wbnp

HI papukaija,

Is there supposed to be a configure link in 1.8 - if so, no it doesn't show up.  If you mean the link to download 1.8 yes that works.

Αndré

As far I can see there's currently no configuration in the latest svn version.

wbnp

Hi Αndré,

Thanks for clearing that up - when I saw what looked like a broken link to "Configure Search Engine Friendly URLs" in the screen shot above I thought I had hosed something up.

I've gone back through the posts and found that you just change the code.

I did notice on page 4 of this thread you said, "Please read the docs and look at the example files that are in the package."

I didn't notice anything like that when I downloaded the v1.8.zip or the latest SVN snapshot can you point me to where they are located as I've hunted around and am unable to find them.

As always, thanks for your help!

papukaija

Quote from: Αndré on September 08, 2010, 05:48:19 PM
As far I can see there's currently no configuration in the latest svn version.
Actually, there's one (as a placeholder) since rev 7752, but due to coding mistake that link is visible and not invisible.

To fix it, change line 38 of codebase.php from $configuration_link = 'a href="">' . sprintf($lang_plugin_sef_urls['configure_x'], $lang_plugin_sef_urls['name']) . '</a>'; to $configuration_link = '<a href="">' . sprintf($lang_plugin_sef_urls['configure_x'], $lang_plugin_sef_urls['name']) . '</a>';

Αndré

I just wanted to clarify, that there is no configuration code in the plugin. If you correct that link it will do exactly the same as before: nothing.

Quote from: wbnp on September 08, 2010, 06:26:17 PM
you just change the code
I never contributed code to this plugin. My post was an answer at Timo.

Quote from: wbnp on September 08, 2010, 06:26:17 PM
I did notice on page 4 of this thread you said, "Please read the docs and look at the example files that are in the package."

I didn't notice anything like that
The 'documentation' is the .htaccess stuff.


Please read the posts carefully (and in context to the whole thread) to not draw wrong conclusions.

wbnp

Hi Αndré,

Quote from: Αndré on September 08, 2010, 06:42:12 PM
I just wanted to clarify, that there is no configuration code in the plugin. If you correct that link it will do exactly the same as before: nothing.

It might help so that some users don't conclude that there is a missing configuration page so that is at least a little something.

Quote from: Αndré
I never contributed code to this plugin. My post was an answer at Timo.

I wasn't suggesting that you personally did any coding rather the "you" (the end user) change (edit) the code to configure the plugin.

Quote from: Αndré
The 'documentation' is the .htaccess stuff.


Please read the posts carefully (and in context to the whole thread) to not draw wrong conclusions.

No matter how carefully I read the posts I doubt I would ever conclude that "Please read the docs and look at the example files that are in the package" meant look at the .htaccess file.  :)

Anyway, thanks for your help you have cleared up the issues I was having!!!

Αndré

Quote from: wbnp on September 08, 2010, 07:57:20 PM
I wasn't suggesting that you personally did any coding rather the "you" (the end user) change (edit) the code to configure the plugin.
Sorry, I misread that sentence.

Quote from: wbnp on September 08, 2010, 07:57:20 PM
thanks for your help you have cleared up the issues I was having!!!
That pleases me :)

wbnp

Quote from: Αndré on September 08, 2010, 08:04:05 PM
Sorry, I misread that sentence.

No problem!

Quote
That pleases me :)

You are way too easy to please LOL!

nickelas

Trying to get around to do the swedish translation and got stuck on two terms. $str_topn? It's not toprated or most viewed? And $1top_display_media$2?
Thanks

Quote from: Timos-Welt on July 26, 2010, 11:40:38 PM
Give me a swedish language file / codebase snip, a swedish replacement list for special characters, a swedish htaccess.txt, and I will add it to the plugin. Give me complaints, and I will ignore them. It's really that easy. I don't speak swedish (although I wish I did with respect to your royal princesses).  ;D
Human

nickelas

Swedish translation:

   $str_thumbnails = 'miniatyrer';
        $str_displayimage = 'bild';
        $str_toprated = 'topplista';
        $str_topn = 'mestvisade';
        $str_lastcomby = 'kommenteradeav';
        $str_lastcom = 'kommenterade';
        $str_page = 'sida';
        $str_profile = 'anvaendare';
        $str_lastupby = 'senasteav';
        $str_lastup = 'senaste';
        $str_search = 'soek';
        $str_contact = 'kontakt';
        $str_tdm = 'upp';
        $str_usermgr = 'anvaendarlista';


.htaccess

RewriteRule soek.html(.*) search.php$1 [NC]

RewriteRule kontakt.html(.*) contact.php$1 [NC]

RewriteRule (.*)topplista(.*) $1toprated$2 [NC]

RewriteRule (.*)mestvisade(.*) $1topn$2 [NC]

RewriteRule (.*)kommenteradeav(.*) $1lastcomby$2 [NC]

RewriteRule (.*)kommenterade(.*) $1lastcom$2 [NC]

RewriteRule (.*)sida(.*) $1page$2 [NC]

RewriteRule (.*)anvaendarlista(.*) $1usermgr$2 [NC]

RewriteRule (.*)anvaendare(.*) $1profile$2 [NC]

RewriteRule (.*)oeverblick(.*) $1thumbnails$2 [NC]

RewriteRule (.*)bild(.*) $1displayimage$2 [NC]

RewriteRule (.*)senasteav(.*) $1lastupby$2 [NC]

RewriteRule (.*)senaste(.*) $1lastup$2 [NC]

RewriteRule (.*)soek(.*) $1search$2 [NC]

RewriteRule (.*)upp(.*) $1top_display_media$2 [NC]


Replacement characters here:
http://forum.coppermine-gallery.net/index.php/topic,42568.msg329207.html#msg329207

Did I post it the right way? Would be great if it could be added any time soon
Cheers
Human