Announcement

Collapse
No announcement yet.

Adding users ages to postbit.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding users ages to postbit.

    I've been playing around with vb trying to get the users age to display in the postbit by using the birthdate the enter. I'm having a little bit of trobule -- hopefully someone can help me..

    I have added the following code to admin/functions.php and it's displaying the age on the postbit BUT if the persons birthday hasn't come up yet it displays their age as +1 year. How would I check if the users birthdate has/hasn't come up yet? like some sort of if statemet or something to do it. But if what? heh

    unset($age);
    if($year > $userday[0] && $userday[0] != '0000') {
    $age = $year-$userday[0];
    } else {
    $age = "N/A";
    }

    I put that right above
    eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";");

    in functions.php

    plz help! i'm stumped.

  • #2
    You will need to ask about this in the vBulletin.org forums. Try the "Help Me Finish" Forum.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      okie

      thanx

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X