Need Help With Creating a Custom Birthday Notice

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vpcarrocci
    Member
    • Mar 2011
    • 45
    • 4.2.x

    Need Help With Creating a Custom Birthday Notice

    I am running vB 4.2.3_PL2.

    I would like to create a custom notice that appears to my Users when they visit the site on their birthday. I have custom fields for first and last name and would like to use the first name field in the greeting instead of the username field. The problem I am having is determining the correct code to use in the notice in place of {username}. FWIW, I have identified the custom first name field to be "field5". The particular line of code I currently have that includes the name is:

    Happy Birthday {username}!

    What should I use inside the curly brackets instead of username so that I get the information contained in field5?

    Thanks in advance for any help!
    Ladies & Gentleman, take my advice:
    Pull down your pants and slide on the ice!
    www.grandcanyonstatebbq.com
  • vpcarrocci
    Member
    • Mar 2011
    • 45
    • 4.2.x

    #2
    Here's a little more info I was able to find using AdminCP > Languages & Phrases > Search in Phrases. I discovered that the variable name for my first name custom field is "field5_title". I have tried inserting the following into the notice template and none of them have worked:

    {$vbphrase[field5_title]}
    $vbphrase[field5_title]
    {vbhrase [field5_title]}
    {vbhrase field5_title}

    I think I'm on the right track but I just can't figure out the correct syntax necessary to insert the variable.
    Ladies & Gentleman, take my advice:
    Pull down your pants and slide on the ice!
    www.grandcanyonstatebbq.com

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24286
      • 6.0.X

      #3
      Those variables are not going to be globally available.
      You'll need a plugin to achieve that.
      Best place to ask for assistance will be www.vbulletin.org.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • vpcarrocci
        Member
        • Mar 2011
        • 45
        • 4.2.x

        #4
        Thanks Mark. I'll ask over there. I always like to try here first because I'm never sure what is available without needing a mod or add-on.
        Ladies & Gentleman, take my advice:
        Pull down your pants and slide on the ice!
        www.grandcanyonstatebbq.com

        Comment

        • vpcarrocci
          Member
          • Mar 2011
          • 45
          • 4.2.x

          #5
          The problem I had was solved quickly with the help of some plugin code and direction given to me by MarkFL over at www.vbulletin.org.

          For anyone who is interested, here is a link to the thread over there: http://www.vbulletin.org/forum/showthread.php?t=324386
          Ladies & Gentleman, take my advice:
          Pull down your pants and slide on the ice!
          www.grandcanyonstatebbq.com

          Comment

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