birthday on main oage coding plz

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

11 replies · 940 views · started 16 years ago · 1 min read

6 participants
justme101 Junior · 11 posts #1

Hi, has anyone got the coding for the "happy birthday .member." on the main page, where it automatically puts a message up on main page saying who's birthday it is. please post it here. thnx.

khan Lead · 681 posts #2

justme101 wrote: Hi, has anyone got the coding for the "happy birthday .member." on the main page, where it automatically puts a message up on main page saying who's birthday it is. please post it here. thnx.

If you add automatically do that, You can see every day got some ones birthday.....Coz So many fake members on a site that are only regd for a day or flood reason, giving the birthday fake. I recommend to use A panel on Owner Cp that pm you automatically that a users birthday on tommorrow and you can easily update your page regarding that pm.

justme101 Junior · 11 posts #3

I would still like the coding. Has anyone got it plz?

something else Fellow · 2,296 posts #4

this is from lava with slight modification to select 1 order by rand

    $sql = "SELECT id, name, birthday  FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY RAND LIMIT 1";
   $items = mysql_query($sql);
    while ($item = mysql_fetch_array($items))
    {
      $uage = getage($item[2]);
      $lnk = "<a href=\"index.php?action=viewuser&who=$item[0]&sid=$sid\">$item[1]</a> Age: $uage";
      echo "$lnk<br/>";
    }
justme101 Junior · 11 posts #5

I added it, but it doesnt show on main page who's bday it is, i created a test account and it didnt show up. I'm using a wapdesire V2 script. Does that code work on wapdesire V2? Where do I put the code?

justme101 Junior · 11 posts #6

?????????????????????????????????????????????????????????

srecnica Developer · 174 posts #7

try this code

$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(birthday) = month(curdate()) and dayofmonth(birthday) = dayofmonth(curdate());")); if($noi[0]!=0){ $sql = mysql_fetch_array(mysql_query("SELECT id, name, birthday FROM ibwf_users where month(birthday) = month(curdate()) and dayofmonth(birthday) = dayofmonth(curdate()) ORDER BY RAND() LIMIT 1")); $uage = getage($sql[2]); $lnk = "Happy $uage birthday <a href="index.php?action=viewuser&who=$sql[0]&sid=$sid">$sql[1]</a>"; echo "$lnk ";

something else Fellow · 2,296 posts #8

justme101 wrote: I added it, but it doesnt show on main page who's bday it is, i created a test account and it didnt show up. I'm using a wapdesire V2 script. Does that code work on wapdesire V2? Where do I put the code?

if your using wapdesire v2 then you will have to change the sql i cant remember wapdesire v2 sql

crazydemon Junior · 12 posts #9

i kept getting errors wen adding that to my v2 script

centi Developer · 159 posts #10

just delete ibwf_ from that code

😳 .................................... http://photomag.lk/ .................................... 🤨

centi Developer · 159 posts #12

post ya users table pls

😳 .................................... http://photomag.lk/ .................................... 🤨

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close