Improvement plugin rewrite 1.4.2 Improvement plugin rewrite 1.4.2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Improvement plugin rewrite 1.4.2

Started by claude, December 17, 2005, 08:49:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

claude

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:

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

<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

Claude

Voyagevirtuel.info
Voyagez avant de partir

ejgladwin

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/ )

Joachim Müller

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.

ejgladwin

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

freesouljah


Joachim Müller

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.

freesouljah

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

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 ?

sguler

Quote from: 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 ?
I got the same error.. can someone help us?

john_d

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

ktwenrick

i'm sorry but what does this mod do exactly? sorry if im the last to know hehe

;D

Joachim Müller

it's meant to improve the search-engine-friendly URLs plugin. Don't use it if you don't need it.

whats_up_skip

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


tom03

i tried the plugin to my website and it works..... i checked all the links and everything works fine.  ;D thanks claude

mehyaa

#15
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 : ))

n3n

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.

-Zverik-

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! :)

Joachim Müller

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.

-Zverik-

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