vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   a little help (https://vborg.vbsupport.ru/showthread.php?t=203430)

spirittina 01-28-2009 11:32 PM

a little help
 
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:

Code:

<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:

HTML Code:

<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:)


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01100 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete