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   Go Down

Author Topic: Improvement plugin rewrite 1.4.2  (Read 20707 times)

0 Members and 1 Guest are viewing this topic.

claude

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Voyagez avant de partir
Improvement plugin rewrite 1.4.2
« 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/ or here 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

« Last Edit: January 18, 2006, 11:41:35 pm by GauGau »
Logged
Claude

Voyagevirtuel.info
Voyagez avant de partir

ejgladwin

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Edward Gladwin's Photo Gallery
Re: Improvement plugin rewrite 1.4.2
« Reply #1 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/ )
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Improvement plugin rewrite 1.4.2
« Reply #2 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.
Logged

ejgladwin

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Edward Gladwin's Photo Gallery
Re: Improvement plugin rewrite 1.4.2
« Reply #3 on: January 04, 2006, 11:53:55 am »

Thanks for your help, I'll give it a try :)
Logged

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Improvement plugin rewrite 1.4.2
« Reply #4 on: January 17, 2006, 12:46:20 pm »

it is giving me Error 500 's too...

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Improvement plugin rewrite 1.4.2
« Reply #5 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.
Logged

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Improvement plugin rewrite 1.4.2
« Reply #6 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

farhan

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: Improvement plugin rewrite 1.4.2
« Reply #7 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 ?
Logged

sguler

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Improvement plugin rewrite 1.4.2
« Reply #8 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?
Logged

john_d

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Improvement plugin rewrite 1.4.2
« Reply #9 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
Logged

ktwenrick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Improvement plugin rewrite 1.4.2
« Reply #10 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Improvement plugin rewrite 1.4.2
« Reply #11 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.
Logged

whats_up_skip

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Improvement plugin rewrite 1.4.2
« Reply #12 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
Logged

Nibbler

  • Guest
Logged

tom03

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Improvement plugin rewrite 1.4.2
« Reply #14 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
Logged

mehyaa

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
  • Saladin the Just
    • Best of Anime
Re: Improvement plugin rewrite 1.4.2
« Reply #15 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 : ))
« Last Edit: August 16, 2006, 02:05:16 pm by mehyaa »
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: Improvement plugin rewrite 1.4.2
« Reply #16 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.
Logged

-Zverik-

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Improvement plugin rewrite 1.4.2
« Reply #17 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! :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Improvement plugin rewrite 1.4.2
« Reply #18 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.
Logged

-Zverik-

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Improvement plugin rewrite 1.4.2
« Reply #19 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....
Logged
Pages: [1] 2   Go Up
 

Page created in 0.037 seconds with 20 queries.