Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine :: Archives ⇒ coppermine changing folder path names :: Archived


coppermine changing folder path names :: Archived
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives

Topic Archived View previous topic :: View next topic  
Author Message
kevingpo
Nice poster
Nice poster

Offline Offline
Joined: Dec 19, 2004
Posts: 115
Location: Edinburgh
PostPosted: Sun Oct 23, 2005 1:53 pm
Post subject: coppermine changing folder path names

Anyone know about the SQL database code for coppermine storage of photos?

In my "public_html/modules/coppermine/albums/" folder I have:

031114charity
03DinnerAtOutsider
03afs
040128cny
041005_SocialNight_CandyCam
041005socialnight
041111asianfoodfair
041111asianfoodfair2
041126gamesnight
04_LeonDinner
050208_CNYB_CandyCam
050208_CNYB_PeggyCam
050421_PInThePark_LucasCam
051015_AFF_LucasCam
051015_AFF_SimonCam
051015_AFF_WinnieCam
userpics

It's a bit messy. At first I started with the

(YYMMDD)(name) naming convention.

Now I prefer if all folders followed:

(YYMMDD)_(acronym for event)_(name of person's camera photos)

I guess I cannot change the folder names directly. I must also change the folder path names in the database aswell. Can someone direct me to the right coppermine tables? Even better is a SQL script of commands to change them all at once - with no mistakes... otherwise the gallery will fail.


kevingpo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
WinXP/2.0.52/4.1.7/4.3.9/9.01
Back to top
View user's profile Visit poster's website
kevingpo
Nice poster
Nice poster

Offline Offline
Joined: Dec 19, 2004
Posts: 115
Location: Edinburgh
PostPosted: Sun Oct 23, 2005 2:00 pm
Post subject: Re: coppermine SQL database

Can an admin/mod change the topic of this thread to:

"changing folder path names"


as it's better than coppermine SQL database


kevingpo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
WinXP/2.0.52/4.1.7/4.3.9/9.01
Back to top
View user's profile Visit poster's website
Biggles
Debugger
Debugger

Offline Offline
Joined: Aug 03, 2005
Posts: 637
Location: St. Louis, MO
PostPosted: Sun Oct 23, 2005 4:18 pm
Post subject: Re: coppermine SQL database

The table you want to change is cms_cpg_pictures. This is the table that contains all of the individual picture information. If you browse that table, you will find a filepath column that contains the path to the picture, minus the filename. You will want to update those columns with a query for each album, like this:

PHP:
update cms_cpg_pictures set filepath = 'modules/coppermine/albums/new_album_name_goes_here/' where filepath = 'modules/coppermine/albums/old_album_name_goes_here/'

Of course, back your database up first. I would suggest running the query on one album first to test it. After the qurey, rename the folder in modules/coppermine/albums to your new_album_name_goes_here value.


Biggles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Win, Linux/1.3.34/4.0.26, 5.0.19/4.3.10, 5.1.2, 8.1.4(PostgresSQL)/9.0.6.1, CVS
Back to top
View user's profile Visit poster's website ICQ Number AIM Address MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy