The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hey all
i was just wondering i want to put a gif image on members profiles they are like awards for winning comps and stuff how would i set this up so that i can put the on there profile you can see the gifs down the right side of the gallery page here http://digitaldownunder.net/gallery/index.php thanks in advance for your help ![]() |
#2
|
|||
|
|||
![]()
Use this conditional:
Code:
<if condition="$post['userid'] = x"> <div align="center"><a href=""><img src="" alt="" border="0" /></a></div> </if> Put it in the postbit template above $template_hook[postbit_userinfo_right]. |
#3
|
|||
|
|||
![]()
it still not working i did what u said any ideas lol
|
#4
|
||||
|
||||
![]()
Actually, that code is for in the postbit. I believe if you do it on the member.php page, you would use $prepared['userid'] instead of $post['userid']
|
#5
|
|||
|
|||
![]()
where is the member.php page lol
|
#6
|
||||
|
||||
![]()
Hmmm, OK, I saw "member profiles" in your first post and thought you meant that you wanted it to show on their profile page (member.php page). What page is it you are trying to show these images on?
|
#7
|
|||
|
|||
![]()
yes thats right i want them to show up on the members profile i thought you said that i had to put the code on the member.php page and there is none lol
|
#8
|
||||
|
||||
![]()
There is a member.php page - that is the user profile page you are talking about. The template for that is MEMBERINFO. You didn't say exactly where on the page you want this image, so I can't suggest the exact template. But, if you know where you want it, you can find the template by doing this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
|
#9
|
|||
|
|||
![]()
ok cool i got that part now but how would i just put it on one single profile like the winner of a comp without it going on all profiles i thought thats what the user idea was but i did that and it done work
|
#10
|
||||
|
||||
![]()
Putting a condition around it should work:
HTML Code:
<if condition="$prepared[userid] == x"> image to show for userid x </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|