forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: claude on December 17, 2005, 08:49:23 pm

Title: Improvement plugin rewrite 1.4.2
Post by: claude on December 17, 2005, 08:49:23 pm
Hi,

I tried to improve the plugin rewrite.
If you want to see : http://en.voyagevirtuel.info/photo-de-france/ (http://en.voyagevirtuel.info/photo-de-france/) or here http://en.voyagevirtuel.info/concoursphoto/ (http://en.voyagevirtuel.info/concoursphoto/).

To take again the name of the galleries, seek in index.php and modify:

Code: [Select]
<a href=\"index.php?cat={$subcat['cid']}\">" . $user_thumb . "</a>"
in

Code: [Select]
<a href=\"index.php?cat={$subcat['cid']}&nam={$subcat['name']}\">" . $user_thumb . "</a>"
Test with the joined files and say to me if it is ok.

Cordially

Title: Re: Improvement plugin rewrite 1.4.2
Post by: ejgladwin on January 03, 2006, 03:10:09 pm
Hi,

I'm very interested in using your upgrade but I can't seem to get it to install properly.  I kept getting Error 500 Internal Server Errors whenever I tried to load my site.  Could you perhaps give a step by step guide as to how to install your upgrade?

Many thanks,

Edward Gladwin ( http://photos.edgladwin.com/ )
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Joachim Müller on January 03, 2006, 03:15:28 pm
disable the existing plugin, then upload the contributed plugin into your plugin folder (into a separate folder, e.g. "custom_sef"), then go to plugin manager and enable it there.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: ejgladwin on January 04, 2006, 11:53:55 am
Thanks for your help, I'll give it a try :)
Title: Re: Improvement plugin rewrite 1.4.2
Post by: freesouljah on January 17, 2006, 12:46:20 pm
it is giving me Error 500 's too...
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Joachim Müller on January 18, 2006, 12:10:20 am
does your webhost allow you using mod_rewrite? If they don't, you can't use any SEF plugin, neither the packaged one nor this modified version. I suggest asking your webhost for support.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: freesouljah on January 20, 2006, 01:06:57 am
yeah..I am allowed to use mod_rewrite...the normal plugin one works...but when I use the .htaccess file that comes with this one it causes the 500s...when I switch back the .htaccess file the errors don't happen anymore...here is my gallery:

http://www.staticfiends.com/photos/index.php
Title: Re: Improvement plugin rewrite 1.4.2
Post by: farhan on February 27, 2006, 05:01:51 am
I tried it , does'nt work :(

i get this error

RewriteRule: cannot compile regular expression 'thumbnails-([a-z0-9]*)-([a-zA-z0-9_-\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xd2\xd3\xd4\xd5\xd6\xd8\xf2\xf3\xf4\xf5\xf6\xf8\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\xc7\xe7\xcc\xcd\xce\xcf\xec\xed\xee\xef\xd9\xda\xdb\xdc\xf9\xfa\xfb\xfc\xff\xd1\xf1@\xb0-]*)\\.html'\n

any suggestions ?
Title: Re: Improvement plugin rewrite 1.4.2
Post by: sguler on March 18, 2006, 07:48:19 pm
I tried it , does'nt work :(

i get this error

RewriteRule: cannot compile regular expression 'thumbnails-([a-z0-9]*)-([a-zA-z0-9_-\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xd2\xd3\xd4\xd5\xd6\xd8\xf2\xf3\xf4\xf5\xf6\xf8\xc8\xc9\xca\xcb\xe8\xe9\xea\xeb\xc7\xe7\xcc\xcd\xce\xcf\xec\xed\xee\xef\xd9\xda\xdb\xdc\xf9\xfa\xfb\xfc\xff\xd1\xf1@\xb0-]*)\\.html'\n

any suggestions ?
I got the same error.. can someone help us?
Title: Re: Improvement plugin rewrite 1.4.2
Post by: john_d on April 05, 2006, 01:47:11 pm
im working on something similar.. only doing it a few minutes a day though.. not really a priority for me... as of the moment...

but if u wanna see my progress...

http://photo.johnd.org
Title: Re: Improvement plugin rewrite 1.4.2
Post by: ktwenrick on May 05, 2006, 09:23:11 pm
i'm sorry but what does this mod do exactly? sorry if im the last to know hehe

 ;D
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Joachim Müller on May 05, 2006, 09:40:37 pm
it's meant to improve the search-engine-friendly URLs plugin. Don't use it if you don't need it.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: whats_up_skip on June 08, 2006, 11:09:51 am
Can someone give a little bit more detail on what has to be done to install this?

At the moment I have gathered is that there are two text files and we are supposed to make a new directory under the plugins directory.

Thanks
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Nibbler on June 08, 2006, 02:24:58 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin
Title: Re: Improvement plugin rewrite 1.4.2
Post by: tom03 on July 13, 2006, 11:46:05 pm
i tried the plugin to my website and it works..... i checked all the links and everything works fine.  ;D thanks claude
Title: Re: Improvement plugin rewrite 1.4.2
Post by: mehyaa on August 06, 2006, 10:04:21 pm
I've modified (actually rewrited : )) the plugin and it is nearly complete and working. Only the links in two pages linked from user profile page are absent but i'll copmlete it after because i have a terrible headache :S.

After install check the source of .htaccess file in the root of gallery folder with the htaccess.txt file in the plugin's folder, because sometimes it can be corrupted while copying. If it is corrupted you have "500 Server Internal Error" so you can understand it is corrupted : )

If you have problems don't hesitate to contact me: myabase-public [@] yahoo [.] com


Addition


I've mostly completed the plugin, there is two or three links that are not rewrited. And i don't think to rewrite them because they are not necessary a lot. These form of the plugin is enough to use (and for Google indexing)

If you want to see the script working, visit: http [://] www [.] bestofanime [.] net   (correct the address first : ))
Title: Re: Improvement plugin rewrite 1.4.2
Post by: n3n on September 04, 2006, 11:13:23 pm
Works very nice mehyaa, tnx alot.

One thing though, the filename isnt visible in the browser window. Don't know how much of a problem this
could cause when indexing in goooogle.

Tnx again.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: -Zverik- on September 06, 2006, 04:53:43 am
Hi. Would it be possible to include Russian album names being correctly rewritten into a directory name as well?
(Russian => translit)
(plus, it would be great if picture names were rewritten too.. simular to picture-id-nameintranslit.html)

something like this very general rus2lat function

function ru2Lat($string)
  {
    $rus = array(' ', 'ъ', 'ь', 'ё',  'ж',   'ц',  'ч',  'ш',  'щ',  'ю',  'я');
    $lat = array('',  '',   '', 'yo', 'zh', 'ts', 'ch', 'sh', 'sh', 'yu', 'ya');
    $string = str_replace($rus, $lat, strtolower($string));
    $string = strtr($string,
              "абвгдезийклмнопрстуфхыэ",
              "abvgdezijklmnoprstufhye");

    return preg_replace("/[^a-z0-9._-]/", "", $string);
  }

Макс?

Thank you in advance! :)
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Joachim Müller on September 06, 2006, 06:37:20 am
Please don't request additional features on existing plugins, especially since this contribution is very old already. Your request is valid though imo - please start a new thread on the feature requests board instead.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: -Zverik- on September 08, 2006, 10:30:59 pm
Ok. Thank you. I wasn't sure whether it was ok for me to start a new thread.

Since this forum had a discussion about album names already (in this topic), and my request dealt with practically the same feature (it just had to support Russian lang), this is the reason I didn't start a new thread but instead posted in here.

Guys, what's with the carma being lowered on every 'wrongful' move? Seriously?
Well, if giving negative points to newbies makes you feel better or superior....
Title: Re: Improvement plugin rewrite 1.4.2
Post by: Joachim Müller on September 09, 2006, 05:16:44 am
Please don't clutter this thread with yet another karma discussion (http://forum.coppermine-gallery.net/index.php?topic=26826.0). You have 10 postings so far - there's no telling what you got that negative karma for, but after all I wouldn't care if I were you. Karma is a tool that is being used by supporters to track "misbehaviour", but a negative karma score of -2 is nothing to be worried about.
Title: Re: Improvement plugin rewrite 1.4.2
Post by: NevilleX on September 13, 2006, 10:50:11 pm
I've modified (actually rewrited : )) the plugin and it is nearly complete and working. Only the links in two pages linked from user profile page are absent but i'll copmlete it after because i have a terrible headache :S.

After install check the source of .htaccess file in the root of gallery folder with the htaccess.txt file in the plugin's folder, because sometimes it can be corrupted while copying. If it is corrupted you have "500 Server Internal Error" so you can understand it is corrupted : )

If you have problems don't hesitate to contact me: myabase-public [@] yahoo [.] com


Addition


I've mostly completed the plugin, there is two or three links that are not rewrited. And i don't think to rewrite them because they are not necessary a lot. These form of the plugin is enough to use (and for Google indexing)

If you want to see the script working, visit: http [://] www [.] bestofanime [.] net   (correct the address first : ))

Thanks for your great work.
Will this work with a bridged gallery?
Title: A little problem with slideshow -please,help
Post by: natalina on November 03, 2006, 11:50:56 am
Hi:) I have a little problem with this plagin, when I try to see slideshow from album/ lastup etc. For example: displayimage.php?album=lastup&cat=-x&pid=x&slideshow=5000 rewrites to slideshow-album-lastup-cat--x-pid-241-delay-5000.html. Maybe, someone can help me with this?:)