Advanced search  

News:

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

Pages: 1 2 3 4 [5] 6 7 8 9 ... 11   Go Down

Author Topic: SEF_URLs plugin for cpg1.5.x  (Read 131536 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: SEF_URLs plugin for cpg1.5.x
« Reply #80 on: August 14, 2010, 09:16:43 pm »

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.
Logged

Bobses

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: SEF_URLs plugin for cpg1.5.x
« Reply #81 on: August 14, 2010, 09:20:56 pm »

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

profili

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 113
Re: SEF_URLs plugin for cpg1.5.x
« Reply #82 on: August 20, 2010, 10:29:02 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: SEF_URLs plugin for cpg1.5.x
« Reply #83 on: August 20, 2010, 10:57:52 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.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: SEF_URLs plugin for cpg1.5.x
« Reply #84 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.
Logged

profili

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 113
Re: SEF_URLs plugin for cpg1.5.x
« Reply #85 on: August 20, 2010, 04:46:32 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.
Logged

profili

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 113
Re: SEF_URLs plugin for cpg1.5.x
« Reply #86 on: August 20, 2010, 04:48:54 pm »

Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: SEF_URLs plugin for cpg1.5.x
« Reply #87 on: August 20, 2010, 06:35:50 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).
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: SEF_URLs plugin for cpg1.5.x
« Reply #88 on: September 07, 2010, 10:43:14 pm »

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
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: SEF_URLs plugin for cpg1.5.x
« Reply #89 on: September 08, 2010, 12:12:13 pm »

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?
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: SEF_URLs plugin for cpg1.5.x
« Reply #90 on: September 08, 2010, 05:39:02 pm »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: SEF_URLs plugin for cpg1.5.x
« Reply #91 on: September 08, 2010, 05:48:19 pm »

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

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: SEF_URLs plugin for cpg1.5.x
« Reply #92 on: September 08, 2010, 06:26:17 pm »

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!
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: SEF_URLs plugin for cpg1.5.x
« Reply #93 on: September 08, 2010, 06:36:31 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
Code: [Select]
$configuration_link = 'a href="">' . sprintf($lang_plugin_sef_urls['configure_x'], $lang_plugin_sef_urls['name']) . '</a>'; to
Code: [Select]
$configuration_link = '<a href="">' . sprintf($lang_plugin_sef_urls['configure_x'], $lang_plugin_sef_urls['name']) . '</a>';
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: SEF_URLs plugin for cpg1.5.x
« Reply #94 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.

you just change the code
I never contributed code to this plugin. My post was an answer at Timo.

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.
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: SEF_URLs plugin for cpg1.5.x
« Reply #95 on: September 08, 2010, 07:57:20 pm »

Hi Α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.

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!!!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: SEF_URLs plugin for cpg1.5.x
« Reply #96 on: September 08, 2010, 08:04:05 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.

thanks for your help you have cleared up the issues I was having!!!
That pleases me :)
Logged

wbnp

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: SEF_URLs plugin for cpg1.5.x
« Reply #97 on: September 08, 2010, 08:08:11 pm »

Sorry, I misread that sentence.

No problem!

Quote
That pleases me :)

You are way too easy to please LOL!
Logged

nickelas

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 112
Re: SEF_URLs plugin for cpg1.5.x
« Reply #98 on: September 14, 2010, 12:58:49 pm »

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

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
Logged
Human

nickelas

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 112
Re: SEF_URLs plugin for cpg1.5.x
« Reply #99 on: September 19, 2010, 12:00:08 pm »

Swedish translation:

Code: [Select]
   $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

Code: [Select]
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
Logged
Human
Pages: 1 2 3 4 [5] 6 7 8 9 ... 11   Go Up
 

Page created in 0.036 seconds with 23 queries.