You need to use the <a> tag for links - http://www.w3schools.com/tags/tag_a.asp and please use double-quotes in the tag, not single-quotes since the single-quotes are being used in the equation.
|
i am just very new to all this so i have no idea how to do it ...
isn't there a way you can put a form in the pluginconfiguration where the plugin-user could type in or choose the fieldID ? but well if needed i will probably finishing my community first and after i went live i can look into this again ... still having headaches over other things in VBB ... have to learn alot ;) |
I already have it in a form where all you have to do is change the field id. This is an article, not a modification. If you don't know how to do it, then I suggest you try it out on your test site.
|
okay thank you very much :D
it all looks very complicated if you are new to vbulletin ... but after some time it gets more simple ... nice work you done here :D |
I'm sorry if this is inappropriate to ask here, but reading through this guide it looks like the same method could be used to put custom profile fields into the user's signature. Which templates would I need to edit to force a custom field to always be displayed in a user's signature?
EDIT: Nevermind, please disregard. I found what I needed in the postbit_legacy template! Thank you! |
Quote:
Join Date: Posts: Character Profile Even if its the whole Character Profile is the hyperlink that will take member directly to the character profile will work. I believe you said that I would have to use the <a> tag, but I'm not sure how to insert it into the code you already have. |
Something like:
PHP Code:
|
That didn't work, I got this error at the top of my board. I tried just doing the regular method two you have posted, but the profile field didn't show up under the post count either.
|
And what was the error? And what was the *exact* code you entered into the plugin?
|
1 Attachment(s)
Sorry, I tried it again and it worked perfectly. I must have not posted something right. I got the error because I left out the:
if ($post['fieldx']) { I thought I added it when I tried a second time, but I didn't get an error message nor did anything show up. But here's the completed code for Method 2 that works perfectly: Code:
if ($post['fieldx']) I also adjusted the code so that it fits Method 1 and I tested it and it works great to. It still goes in the same place you said. Code:
<vb:if condition="$post['fieldx']"><dt>My fieldX</dt> <dd><a href="{vb:raw post.fieldx}">My Link</a></dd></vb:if> |
All times are GMT. The time now is 01:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|