PDA

View Full Version : coding help in MemberAction Dropdown


elite360
10-28-2012, 05:22 AM
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
$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
<!-- 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 1351466312 at 1351466312 ---------------

never mind i figured it out i will post a link to a mod when i make it

Elite_360_
11-05-2012, 05:24 AM
--------------- Added 1351466312 at 1351466312 ---------------

never mind i figured it out i will post a link to a mod when i make it
here is that link to this mod https://vborg.vbsupport.ru/showthread.php?t=290163