The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What is wrong with this bit of code? I am trying to place it under the sig. But for some reason it's not working, and all the id numbers are correct, i've checked them a million times LOL
Code:
<if condition="in_array($post[membergroupids],array(82))"> <div class="vBadvertisement">Signature Sponsor <br /><a href="$post[field24]">$post[field25]</a> <br />$post[field26] <br /><br /> <a href="/payments.php">Get a sig like this!</a> </div> </if> |
#2
|
||||
|
||||
![]()
<a href="$post[field24]">
for one. |
#3
|
|||
|
|||
![]()
That works fine Boofo - why is it a problem?
I can make this work so long as the primary group is 82, but it won't work if it's their secondary group. How can i fix this? |
#4
|
||||
|
||||
![]()
You had one with quotes and one without.
Try is_member_of for the conditional. |
#5
|
|||
|
|||
![]()
No, cos then it only SHOWS to that membergroup. What i want to do is IF they are a member of that membergroup then it shows to everyone.
|
#6
|
||||
|
||||
![]()
Now I'm confused. You want it to show to everyone or not?
|
#7
|
|||
|
|||
![]()
I want to show it to everyone - group 82 that i've specified is a paid sponsor group - thye get to have a signature extra that they paid for. So i want all members to see it.
I have added user profile fields to be filled in. However as all members can see them, i don't want it to show just cos they filled those in. I only want it to show if they ahve paid - ie in group 82. is that any clearer? |
#8
|
|||
|
|||
![]()
Untested, but try the following...
|
#9
|
|||
|
|||
![]()
Thank you, i haven't tried this yet, but can you explain what it does when i put it ' Wrap the vB userfield_wrapper template with the following:' there?
|
#10
|
|||
|
|||
![]()
Can you tell me please with this bit
<if condition="$post[field26]"> <br />$post[field26] </if> What is the conditional based on? Is it just if field26 exsists? --------------- Added [DATE]1213640615[/DATE] at [TIME]1213640615[/TIME] --------------- <if condition="!in_array($profilefield[profilefieldid], array(24, 25, 26)) OR is_member_of($bbuserinfo, 82)"> I don't get this bit. If not field 24,25,26 or in 82? It doesn't amke sense, can someone put it in English for me. --------------- Added [DATE]1213642182[/DATE] at [TIME]1213642182[/TIME] --------------- I'm trying to add a 2nd one in, but can't get the code working, can you help me please. It's if they are in group 83, they can either have a large image (field27) linked (field24), or a small image (field28) linked (field24) AND some text (field26). I have been through this a million times nad can't work out why it's wrong. Code:
<if condition="is_member_of($post, 83) AND $post[field24] AND $post[field25]"> <div class="vBadvertisement"> ----- Signature Sponsor ----- <if condition="$post[field27]"> <br /><a href ="$post[field24]<img src="$post[field27]"> <else /> <if condition="$post[field28]"> <br /><a href ="$post[field24]<img src="$post[field28]"> <if condition="$post[field26]"> $post[field26] </if> </if> </if> </if> </div> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|