i can't get this code to work im trying to have a link to the user facebook everywhere the MemberAction Dropdown is located
Hook Location: parse_templates
PHP Code:
$fblinks = $vbulletin->db->query_first("
SELECT field12
FROM " . TABLE_PREFIX . "userfield AS uf
WHERE uf.userid = '" . $memberinfo['userid'] . "'
");
vB_Template::preRegister('memberaction_dropdown', array('fblinks' => $fblinks['field12']));
Template: memberaction_dropdown
PHP Code:
<!-- Facebook -->
<vb:if condition="$fblinks['field12']">
<li class="right">
<a href="http://facebook.com/{vb:raw fblinks}" TARGET="_blank" class="siteicon_facebook">Facebook
</a>
</li>
</vb:if>
--------------- Added [DATE]1351466312[/DATE] at [TIME]1351466312[/TIME] ---------------
never mind i figured it out i will post a link to a mod when i make it