The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with Code
I am trying to achieve something, that i know is possible, but i am unsure how to do it.
I have a special sponsors group. They are allowed to add a link/title and text to their sig. However, i dont' really want it using up their signature space, so i was trying to do this. I added in user profile fields for link/title/text and now i'm trying to put this in the postbit - but i cna't get it working. Can someone help please? <if condition="in_array($post[membergroupids],array(82))"> <div class="vBadvertisement">Signature Sponsor <br /><a href="$post[field24]">$post[field25]</a> <br />$post[field26] </div> </if> Just to clarify - i want this ad to show to everyone on the site, but i only want it to show if the poster is in the sponsor group. |
#2
|
||||
|
||||
Didn't someone come up with a fix for this already?
|
#3
|
|||
|
|||
I am asking if there are any other ways of doing it.
The person who answered that other thread hasn't answered what it does, and i don't use code that i dont' understand to soms degree |
#4
|
||||
|
||||
What is the result of using your code? Are you sure that the variable "$post[membergroupids]" is available (try spitting it out in the postbit)?
|
#5
|
||||
|
||||
Quote:
The wrapping was for the conditional you were seeking, IIRC. |
#6
|
|||
|
|||
This was a different thread in that i was wondering if there was a better way to do it, i wasn't trying to get the same thing done again, as in the last one i was trying to fix code i wrote, this one was more of a 'is there another way'
|
#7
|
||||
|
||||
Have you tried that code to see if it works the way you want it to?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|