The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to insert content below a bbcode?
Hi, I would like to insert an advertisement under a bbcode. Is it possible?
I tried editing the bbcode and adding below: Code:
<vb:if condition="is_member_of($bbuserinfo, 1)"> advertisement </vb:if> Code:
{vb:raw my_template} |
#2
|
||||
|
||||
Edited Post!
Try this: Code:
<div> <vb:if condition="$show['guest']"> advertisement </vb:if><br /> </div> |
#3
|
|||
|
|||
Thanks ozzy47, but not working. Displays "advertisement" to all groups.
|
#4
|
||||
|
||||
Which one, my revised code above with the <vb:if condition="$show['guest']">?
|
#5
|
|||
|
|||
yes, the same.
|
#6
|
||||
|
||||
That's virtually impossible, I tested this out and it is only showing for guests.
Did you add that code to the bbcode template directly? |
#7
|
|||
|
|||
Quote:
Title: Spoiler Replacement: Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"><u>Spoiler</u>: <input type="button" value="Mostrar" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Ocultar'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar'; }"> </div> <div style="margin: 0px; padding: 6px; border: 0px inset;"> <div style="display: none;">{param} </div> </div> </div> <div> <vb:if condition="$show['guest']"> Advertisement </vb:if> </div> |
#8
|
||||
|
||||
Well I did not try with a custom bbcode like the spoiler, I tried it with default bbcodes.
Try it with a default one such as bbcode_code which is the code bbcode in the post, # in the editor, and see if it works there. |
#9
|
|||
|
|||
Quote:
Would it be possible to do the same with a custom bbcode? |
#10
|
||||
|
||||
Not sure, you will have to ask in the thread where you got the mod from.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|