Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: showing by birthday date  (Read 3151 times)

0 Members and 1 Guest are viewing this topic.

laskos

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
    • http://www.birthday.co.uk
showing by birthday date
« 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 ??

« Last Edit: June 13, 2005, 10:32:39 pm by laskos »
Logged

Nibbler

  • Guest
Re: showing by birthday date
« Reply #1 on: June 12, 2005, 03:26:28 pm »

Do you already have the birthday information in the database ?
Logged

havoc615

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Cheat Commandos Clan Site
Re: showing by birthday date
« Reply #2 on: June 13, 2005, 03:43:35 am »

Or do you have it bridged with a forum?
Logged

laskos

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
    • http://www.birthday.co.uk
Re: showing by birthday date
« Reply #3 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.

havoc615

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Cheat Commandos Clan Site
Re: showing by birthday date
« Reply #4 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
Code: [Select]
$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.
Code: [Select]
$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.
« Last Edit: June 13, 2005, 11:45:49 pm by havoc615 »
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.