coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: laskos on June 11, 2005, 10:57:55 PM

Title: showing by birthday date
Post by: laskos on June 11, 2005, 10:57:55 PM
hi
can anyway tell me a way where i can display images on my fornt page by birth date ? for example when people  upload there images in the front page it will disply say 5 members whos birthday is today ??

Title: Re: showing by birthday date
Post by: Nibbler on June 12, 2005, 03:26:28 PM
Do you already have the birthday information in the database ?
Title: Re: showing by birthday date
Post by: havoc615 on June 13, 2005, 03:43:35 AM
Or do you have it bridged with a forum?
Title: Re: showing by birthday date
Post by: laskos on June 13, 2005, 10:17:44 PM
hi
i already have a database at the moment as i am using a ecard script. what i am looking for is to install the coppermine gallery to use this members database and then when people sign up on the site it will also allow them to post on the gallery.
Title: Re: showing by birthday date
Post by: havoc615 on June 13, 2005, 11:29:49 PM
Lol well thats slightly more complex then just the birthday thing :) I doubt it, but do you happen to have a sessions table setup?

We might be able to work it another way too.

Ok I think this might work  ???

Open up include/init.inc.php and find
$CONFIG['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";
Now...your gonna want to make a user_lastvisit and user_active column in your members table, actaully the best thing you could do would be to match the column names of coppermine and your thing, if you have additional fields thats ok. So long as the structre of the Coppermine users is the same as yours. Then you can tweak this little column to be.

$CONFIG['TABLE_USERS']                = "Your DB"."Your User Table";


Now I HIGHLY DOUBT, that this will work unless you match the fields to coppermine. Once you do that, we can add birthday stuff, etc. anything you'd want done with those auxillary columns.