showing by birthday date showing by birthday date
 

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

showing by birthday date

Started by laskos, June 11, 2005, 10:57:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

laskos

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


Nibbler

Do you already have the birthday information in the database ?

havoc615

Or do you have it bridged with a forum?

laskos

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.

havoc615

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