View Full Version : a little help
spirittina
01-28-2009, 11:32 PM
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:)
glennybee
01-29-2009, 04:09 AM
Use this conditional:
<if condition="$post['userid'] = x">
<div align="center"><a href=""><img src="" alt="" border="0" /></a></div>
</if>
Where x is the members userid.
Put it in the postbit template above $template_hook[postbit_userinfo_right].
spirittina
01-29-2009, 06:39 AM
it still not working i did what u said any ideas lol
Lynne
01-29-2009, 02:39 PM
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']
spirittina
01-29-2009, 02:58 PM
where is the member.php page lol
Lynne
01-29-2009, 03:04 PM
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?
spirittina
01-29-2009, 03:07 PM
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
Lynne
01-29-2009, 03:37 PM
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.
spirittina
01-29-2009, 08:22 PM
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
Lynne
01-31-2009, 01:54 AM
Putting a condition around it should work:
<if condition="$prepared[userid] == x">
image to show for userid x
</if>
If it continues not to work, you need to post *exactly* what you did and let us know *exactly* in what template and where.
spirittina
02-01-2009, 01:06 AM
thankyou so much lynne you have been such a great help:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.