The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
working on a new template modification - need help
I am working on modification that will allow members to link their Facebook Messenger Account to their user profile. I already have the postbit and profile fields set, that was not much of a lift. However, when I try to add information to the memberaction_dropdown, I can't get this to link right
Postbit - Works Code:
<vb:if condition="$post['fieldxx']"><a href="https://m.me/{vb:raw post.fieldxx}" target="_blank"><img src="images/postbit_social/messenger.png" alt="Contact {vb:raw post.fieldxx} on Messenger" border="" /></a></vb:if> Code:
<li class="left"> <a href="https://m.me/{vb:raw post.fieldxx}" target="_blank" class="siteicon_profile"> Contact me on Messenger </a> </li> Thoughts? Thanks, Scott |
#2
|
||||
|
||||
Try this:
HTML Code:
<li class="left"> <a href="https://m.me/{vb:raw memberinfo.fieldxx}" target="_blank" class="siteicon_profile"> Contact me on Messenger </a> </li> |
#3
|
|||
|
|||
that worked... now, I need to make this an if based on the post field
Thanks Mark! |
#4
|
||||
|
||||
I would recommend doing this with a plugin rather than hacking your templates. Create a plugin hooked at "memberaction_dropdown" with the PHP code:
PHP Code:
|
#5
|
|||
|
|||
I have a number of hacks already added to the memberaction_dropdown from the past leadership of the site I run now
I probably should look at adding them all as plug-ins at some point. when I write-up the modificaiton, can I add the plug-in to the details (with you as a co-author)? |
#6
|
||||
|
||||
Sure, anything I post as a suggestion in a thread can be used freely. While I appreciate the citation as co-author, it's not necessary.
|
Благодарность от: | ||
CAG CheechDogg |
#7
|
|||
|
|||
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|