1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

custom user field value in php

Discussion in 'XenForo Development Discussions' started by Alteredd, Dec 4, 2013.

  1. Alteredd

    Alteredd Member

    Using a page node, i have a template html which is calling a php file.I'm trying to pass the customfield value through as a param.. It is not working as i would have hoped.. Any ideas?

    Template HTML:
    <xen:callback class="Stamps_Installer" method="getHtml" params="{$visitor.customFields.Stamp}"></xen:callback>

    PHP File:
    PHP:
    <?php
    class Stamps_Installer
    {
        public static function 
    getHtml($params)
        {
          echo 
    'test';
        echo 
    $params;
        }
    }
    ?>
     

Share This Page