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

Author Topic: SEF_URLs plugin for cpg1.4.x  (Read 109392 times)

0 Members and 1 Guest are viewing this topic.

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: SEF_URLs plugin for cpg1.4.x
« Reply #40 on: October 25, 2008, 09:44:53 am »

Thanks Makc666 that's work fine if we add "l;" to the end of line ...$html;  ;)

Code: [Select]
// Rewrite thumbnails.php?album=search&search=[searchterm] URLs to search-thumbnails-[searchterm].html
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','search-thumbnails-$2.html',$html;

that will be hard to rewrite minicms url? index.php?file=minicms/cms&id=8  ???
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: SEF_URLs plugin for cpg1.4.x
« Reply #41 on: October 26, 2008, 11:42:36 pm »

Thanks Makc666 that's work fine if we add "l;" to the end of line ...$html;  ;)
Yes. This is my fault.  :-\

Download v1.43

Quote
History

v1.43 (2008.10.27) (Makc666)

- Fixed two misprints in codebase.php lines:
*** FROM ***
---------------------------------
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','thumbnails-search-$2.html',$htm
---------------------------------
*** TO ***
---------------------------------
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','thumbnails-search-$2.html',$html);
---------------------------------
*** FROM ***
---------------------------------
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','search-thumbnails-$2.html',$htm
---------------------------------
*** TO ***
---------------------------------
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','search-thumbnails-$2.html',$html);
---------------------------------

How to Update:
  • Backup your Galleries .htaccess file
  • Delete Old Version via Config
  • Re-apload plugin's files with new one
  • Update manually .htaccess if you have your own lines there, or you can update in automatically via plugin's install if you don't have such lines
  • Install New Vesion via Config with overwriting .htaccess if you don't have your own lines there

UPDATED: Search for the latest version in this thread.
« Last Edit: November 19, 2008, 12:51:51 pm by Makc666 »
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: SEF_URLs plugin for cpg1.4.x
« Reply #42 on: October 26, 2008, 11:53:42 pm »

Code: [Select]
// Rewrite thumbnails.php?album=search&search=[searchterm] URLs to search-thumbnails-[searchterm].html
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','search-thumbnails-$2.html',$html;

that will be hard to rewrite minicms url? index.php?file=minicms/cms&id=8  ???

For codebase.php it will be smth like:
Code: [Select]
$html = preg_replace('/index\.php\?minicms/cms=([0-9]+)/i','minicms-index-$1.html',$html);
For ht.txt it will be smth like:
Code: [Select]
RewriteRule minicms-index-([0-9]+)\.html index.php?file=minicms/cms&id=$1 [NC]
« Last Edit: October 27, 2008, 09:08:01 pm by Makc666 »
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: SEF_URLs plugin for cpg1.4.x
« Reply #43 on: October 27, 2008, 06:38:24 pm »

i try it but it don't work  ???
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: SEF_URLs plugin for cpg1.4.x
« Reply #44 on: October 27, 2008, 09:10:36 pm »

i try it but it don't work  ???
1st, I corrected the second line. There were two "==" there.
2nd, which one didn't work?
3rd, give me the url to that plugin you are talking about.

I think it didn't work because that plugin is not the part of Coppermine and that is why the code for it will be different.
Also I think that codebase.php can not be able to help with this plugin.
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: SEF_URLs plugin for cpg1.4.x
« Reply #45 on: October 28, 2008, 09:31:10 am »

I corrected the second line. There were two "==" there but that's don't work, i've a white page with nothing, no links!

when i put the new ligne in codebase.php to coment all links work but not index.php?file=minicms/cms&id=2
Code: [Select]
//$html = preg_replace('/index\.php\?minicms/cms=([0-9]+)/i','minicms-index-$1.html',$html);
i've actually my photo gallery in localhost
but you can find this plugin to the plugin pack on source fourge it's called minicms
and you can see this url whose use minicms

http://ceconn.com/photo_gallery/index.php?file=minicms/cms&id=2

thanks for your help
( :-[ sorry for my little english i'm french )
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: SEF_URLs plugin for cpg1.4.x
« Reply #46 on: October 30, 2008, 09:17:54 am »

i've found another problem

with SEF URLs plugin you can change the language (of coppermine) only on the first gallerie's page.
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: SEF_URLs plugin for cpg1.4.x
« Reply #47 on: November 02, 2008, 04:59:38 pm »

i've found another problem

with SEF URLs plugin you can change the language (of coppermine) only on the first gallerie's page.

cl9m, I was trying to make this one.
With the current URLs like "http://coppermine-gallery.net/demo/cpg14x/test.hml" where we have ".html" at the end there is no way to change languages on pages not like index.html
Sorry, but there is really nothing we can do about this one.

If we change the URL to snth like "http://coppermine-gallery.net/demo/cpg14x/test/" with out any ".html" at the end then I think we will be able to change language on any page.
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: SEF_URLs plugin for cpg1.4.x
« Reply #48 on: November 02, 2008, 05:26:00 pm »

i've try this but I can see just the text, my page search all pictures design and photos to

http://www.nomdusite.com/thumbnails-lastup/images/imagename.jpg
or
http://www.nomdusite.com/thumbnails-lastup/albums/userpics/10001/photoname.jpg
Logged

Joachim Mller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: SEF_URLs plugin for cpg1.4.x
« Reply #49 on: November 02, 2008, 10:34:58 pm »

Post real links instead of dummy placeholders.
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
SEF_URLs plugin for cpg1.4.x - Version 1.44
« Reply #50 on: November 19, 2008, 12:50:52 pm »

SEF_URLs plugin for cpg1.4.x
LATEST VERSION IS IN THIS POST


Quote
History

v1.44 (2008.11.19) (Makc666)

- Fixed a misprint in History description for v1.43

- Fixed a misprint in ht.txt lines:
*** FROM ***
---------------------------------
RewriteRule thumbnails-search-(.*)\.html thumbnails.php?album=search&search=$1 [NC]
---------------------------------
*** TO ***
---------------------------------
RewriteRule search-thumbnails-(.*)\.html thumbnails.php?album=search&search=$1 [NC]
---------------------------------

How to Update:
  • Backup your Galleries .htaccess file
  • Delete Old Version via Config
  • Re-apload plugin's files with new one
  • Update manually .htaccess if you have your own lines there, or you can update in automatically via plugin's install if you don't have such lines
  • Install New Vesion via Config with overwriting .htaccess if you don't have your own lines there
Logged

mreider

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: SEF_URLs plugin for cpg1.4.x
« Reply #51 on: December 16, 2008, 08:00:24 pm »

Heya,

Thanks for all your work on this!

I've managed to install it with partial success - It will rewrite the links accordingly, however when I click on any of them, it generates a 404 error. The URL's and links all look correct though.

I'm using cpg 1.4.5, and your latest download.

Any ideas what could be causing the 404's? I'm thinking it's something to do with the codebase.php, since it appears the mod_rewrite rules are all working correctly.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4453
    • Windsurf.me
Re: SEF_URLs plugin for cpg1.4.x
« Reply #52 on: December 16, 2008, 09:05:03 pm »



I'm using cpg 1.4.5, and your latest download.


You mean you have upgraded to 1.4.19 I hope and are not using 1.4.5?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

mreider

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: SEF_URLs plugin for cpg1.4.x
« Reply #53 on: December 16, 2008, 09:07:03 pm »

Lol - yes, I always get the version numbers mixed up. I've upgraded to that latest one - 1.4.19 :)
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
Re: SEF_URLs plugin for cpg1.4.x
« Reply #54 on: December 18, 2008, 04:38:31 pm »

I've managed to install it with partial success - It will rewrite the links accordingly, however when I click on any of them, it generates a 404 error. The URL's and links all look correct though.
You didn't install .htaccess file or there is no mod_rewrite support on your server.
Logged

mreider

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: SEF_URLs plugin for cpg1.4.x
« Reply #55 on: December 19, 2008, 02:13:00 am »

Thanks for replying - the mod_rewrite is enabled, and I use it on various other sections on my site.

I'm going to play around with the paths, maybe that's the issue.
Logged

mreider

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: SEF_URLs plugin for cpg1.4.x
« Reply #56 on: December 19, 2008, 02:30:09 am »

Success! I had to change:

Options FollowSymLinks SymLinksIfOwnerMatch

to:
Options +FollowSymlinks -Indexes
Logged

mohamedimran

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Celebrities Foto Collection
Re: SEF_URLs plugin for cpg1.4.x
« Reply #57 on: March 18, 2009, 10:12:58 am »

Dear Friends,

Help me to solve this problem...

Recently, I changed my coppermine gallery from One Hosting to Another Hosting.....
In the old hosting, i installed the SEF_URLs Plugin and it worked well. Now in New Hosting, if i tried to install the SEF_URLs Plugin means, i'm getting the "Internal Server Error", so i deleted the plugin.... But the problem is, upto the day i used to change the hosting, i submitted the site URLs (SEF_URLs) in many sites, now if i refer that old links i got error page.

Old URL : http://funnyimgs.co.cc/displayimage-134.html

New URL : http://funnyimgs.co.cc/displayimage.php?pos=-134

Please help me.... site losing it's traffic
Logged

Nibbler

  • Guest
Re: SEF_URLs plugin for cpg1.4.x
« Reply #58 on: March 18, 2009, 12:17:49 pm »

Ask your host about mod_rewrite support.
Logged

mohamedimran

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • Celebrities Foto Collection
Re: SEF_URLs plugin for cpg1.4.x
« Reply #59 on: March 18, 2009, 05:31:06 pm »

I contacted the host about mod_rewrite support and got replied that,

Quote
You may use mod_rewrite with no problems via an .htaccess file in your account with us. Unfortunately we do not offer third party scripts support and we will not be able to assist you properly in this situation.

Please let me know, how is this useful to give solution for my problem.....
Logged
Pages: 1 2 [3] 4   Go Up
 

Page created in 0.026 seconds with 20 queries.