The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding something to 1 users postbit
What is the easiest way to add something to only 1 users postbit?
|
#2
|
|||
|
|||
I would open the postbit template, find where you want to put it, and use an if statement that checks the users id.
|
#3
|
|||
|
|||
could someone give me an example of what would be a good if statement? Sorry I do not know PHP. (I was kind of wishing there was a hack that allowed the admin to insert things into individual postbits...)
|
#4
|
|||
|
|||
It would look something like this:
PHP Code:
|
#5
|
|||
|
|||
You could also create a template, such as $customuserinfo and put the conditional(s) in there and just include the template in the postbit. This is much like what the arcade hack does for their award system. This way youc ould include multiple conditionals for multiple users without cluttering up the postbit.
|
#6
|
|||
|
|||
OK I made a template called customuserpostbit
Then I put this code in it Code:
<if condition="$bbuserinfo[userid]==1"> Testing the custom thing </if> $customuserpostbit It did not show up in my postbit though.. can someone tell me what I did wrong please? Thanks |
#7
|
|||
|
|||
Ok I also tried adding the line
$post[customuserpostbit] That didn't work either.. BTW I put it right under the line $post[arcadeawards] |
#8
|
|||
|
|||
You need to declare the template in the file itself.
HoC |
#9
|
|||
|
|||
uhhhmm.. yeah..
Okay thanks |
#10
|
|||
|
|||
Ok I have no idea how to do that "declaring" or whatever so I tried adding this line stright to the postbit
Code:
<if condition="$bbuserinfo[userid]==1"> <img src="/forum/images/04trophx.gif"></img> </if> Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|