![]() |
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"> Thoughts? Thanks, Scott |
Try this:
HTML Code:
<li class="left"> |
that worked... now, I need to make this an if based on the post field
Thanks Mark! |
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:
|
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)? |
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. :)
|
|
All times are GMT. The time now is 04:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|