stoute
08-31-2012, 03:33 AM
I originally posted this here (https://vborg.vbsupport.ru/showthread.php?p=2361366#post2361366).
I made this and got it to work for all of a couple minutes then all of a sudden it stopped showing up...
https://vborg.vbsupport.ru/showthread.php?t=287287
Here is the code and modifications etc. Please help. I can't figure out where I went wrong.
It stopped working when I deleted an unused profile field (unrelated to this).
------
I wrote it all and it worked perfect. Only until after I posted the tutorial did it start NOT working. Showed the links in postbit and everything. Now it doesn't show anything.
I'll look at removing the extra space and see if that fixes it.
--------------- Added 30 Aug 2012 at 20:05 ---------------
Originally Posted by ForceHSS
{vb:raw post.B}" TARGET="_blank"
At b and c you seem to have an extra space just before TARGET not sure if that is the main problem have not checked all coding yet if I notice anything else wil post unless someone else points it out
No joy. I removed the extra space and updated the code and it still doesn't pull up. I even removed the
<vb:if condition="is_member_of($bbuserinfo, X, Y)">
option to see if maybe it wasn't pulling up the usergroup info properly.
I have also pulled the: <vb:if condition="$post['A']"> to see if it would at least show up. It does show up the links, but only the base link. ie. http://twitter.com/
so it doesn't seem to be recognizing the profile field name...
for example the code below should show up IF the user has a twitter username (or anything) in field5 in their user profile.
<!-- Twitter -->
<vb:if condition="$post['field5']">
<li class="left">
<a href="http://twitter.com/{vb:raw post.field5}" TARGET="_blank" class="siteicon_twitter">Twitter</a>
</li>
</vb:if>
The link that would show up would be [http://twitter.com/[what ever the user put into that field]. However even when I remove the first <vb:if condition..> it still only gives me the link of http://twitter.com/
Is the code actually incorrect or am I looking at this incorrectly? All the other mods that use similar code or <vb:if...> statements all seem to work... even one using the same field name works. Proven that the fieldname works the below code placed inside the postbit_legacy template works perfect...
<!-- Twitter -->
<vb:if condition="$post['field5']">
<center><a href="http://twitter.com/{vb:raw post.field5}" class="twitter-follow-button">Follow @{vb:raw post.field5}</a></center>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
</vb:if>
<!-- Twitter -->
Obiwan your my only hope! :)
I made this and got it to work for all of a couple minutes then all of a sudden it stopped showing up...
https://vborg.vbsupport.ru/showthread.php?t=287287
Here is the code and modifications etc. Please help. I can't figure out where I went wrong.
It stopped working when I deleted an unused profile field (unrelated to this).
------
I wrote it all and it worked perfect. Only until after I posted the tutorial did it start NOT working. Showed the links in postbit and everything. Now it doesn't show anything.
I'll look at removing the extra space and see if that fixes it.
--------------- Added 30 Aug 2012 at 20:05 ---------------
Originally Posted by ForceHSS
{vb:raw post.B}" TARGET="_blank"
At b and c you seem to have an extra space just before TARGET not sure if that is the main problem have not checked all coding yet if I notice anything else wil post unless someone else points it out
No joy. I removed the extra space and updated the code and it still doesn't pull up. I even removed the
<vb:if condition="is_member_of($bbuserinfo, X, Y)">
option to see if maybe it wasn't pulling up the usergroup info properly.
I have also pulled the: <vb:if condition="$post['A']"> to see if it would at least show up. It does show up the links, but only the base link. ie. http://twitter.com/
so it doesn't seem to be recognizing the profile field name...
for example the code below should show up IF the user has a twitter username (or anything) in field5 in their user profile.
<!-- Twitter -->
<vb:if condition="$post['field5']">
<li class="left">
<a href="http://twitter.com/{vb:raw post.field5}" TARGET="_blank" class="siteicon_twitter">Twitter</a>
</li>
</vb:if>
The link that would show up would be [http://twitter.com/[what ever the user put into that field]. However even when I remove the first <vb:if condition..> it still only gives me the link of http://twitter.com/
Is the code actually incorrect or am I looking at this incorrectly? All the other mods that use similar code or <vb:if...> statements all seem to work... even one using the same field name works. Proven that the fieldname works the below code placed inside the postbit_legacy template works perfect...
<!-- Twitter -->
<vb:if condition="$post['field5']">
<center><a href="http://twitter.com/{vb:raw post.field5}" class="twitter-follow-button">Follow @{vb:raw post.field5}</a></center>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
</vb:if>
<!-- Twitter -->
Obiwan your my only hope! :)