personal galleries into subdomains personal galleries into subdomains
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

personal galleries into subdomains

Started by vraagje, May 09, 2008, 06:31:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vraagje

Hello,

I'd like to have personal galleries which go into subdomains. The reason behind this is that I want to be able to have statistics over individual albums (bandwith used and views).

I want to be able to show the last uploads&most popular uploads on a central page (so I can't install coppermine on each subdomain, right?)


Is this possible and if so, how? I'm quite a php newbie, sorry... any help would be greatly appreciated!

Thanks in advance.

Joe

just_some_guy

Use Mod Rewrite in a .htaccess to forward the dynamic url to a ("fake") subdomain. There will be plenty solutions on the net, search Google.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

vraagje

hello, thanks for replying.

I'm sorry but I don't know what mod rewrite in a .htaccess means. I've used google and it lead me to this forum...

could you please expand on your answer? You'd help me a great deal. It's not lazyness, it's poor technical knowledge which makes me post here...

Thanks in advance.

just_some_guy

mod_rewrite is an Apache module - http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
.htaccess is an Apache configuration file - http://httpd.apache.org/docs/1.3/howto/htaccess.html

You can rewite a url in many different ways, what you are looking to do is rewrite something like - user.website.tld to website.tld/file.php?query=user, correct? However, CPG interprets the user id to generate the user gallery and not user name so you would also need to find away to convert the given user name to the users id. Have a look in include/functions.inc.php and look at the get_id() (i think its called that) function.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums