Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2008, 04:51 AM
richards112 richards112 is offline
 
Join Date: May 2008
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adding an image to a profile block

Hello, i currently use vBuleltin 3.7.0
I was just wondering, how do i go about Adding an image to a profile box, that i created via the user profile field.
I would just like to know how i could add an image to the block.
Any ideas?
Thanks.
Reply With Quote
  #2  
Old 10-19-2008, 09:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried using $userinfo[fieldxx] where xx is the field number?
Reply With Quote
  #3  
Old 10-21-2008, 07:20 AM
richards112 richards112 is offline
 
Join Date: May 2008
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok so all i have to do is...

Create a profile field, then input the image HTML inside.
Then put the field number i put the image in
Then it will work?
Reply With Quote
  #4  
Old 10-21-2008, 02:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by richards112 View Post
Ok so all i have to do is...

Create a profile field, then input the image HTML inside.
Then put the field number i put the image in
Then it will work?
Well, since it's an image, you need to make sure that your use the field in <img> tags. You may also run into problems if your users don't fill out the field correctly. For instance, if you ask them to enter the full url (http://www.whatever.com/image.jpg), then you would write the tag as:
HTML Code:
<img src="$userinfo[fieldxx]">
But, what if they don't follow directions and only input www.whatever.com/image.jpg ? Then when you write the tag, you will end up with a broken link. So, you may have to do some checking in the field. I've seen users talk about this here before, but I don't know how to do it so you'll have to search it out.
Reply With Quote
  #5  
Old 10-21-2008, 07:42 PM
richards112 richards112 is offline
 
Join Date: May 2008
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added that into the memberinfo_block template, with the desired field ID
But it still did not work, and i tried adding some HTML directly to it, and it changed the look of all my profile blocks.

So just to completely cut things down, just two questions.

1- Where do i put the <img src="$userinfo[fieldxx]">
2- do i put IMG code, or HTML code to the image?

The rest i will work out by myself
-Thanks
Reply With Quote
  #6  
Old 10-21-2008, 07:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would have been nice to see the code you tried and an image of the result.

I don't know where you put the image tag - you put it where you want the image to be shown. And, if you are modifying a template, then you need to use valid html for the image.
Reply With Quote
  #7  
Old 10-22-2008, 10:28 AM
richards112 richards112 is offline
 
Join Date: May 2008
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, i have found exactly what i want.
Its is like this, if you check out the block that says "member status" with an image into it

http://i244.photobucket.com/albums/g...d112/block.png

That is what i would like to do.
Thanks.
Reply With Quote
  #8  
Old 10-22-2008, 02:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That doesn't show where you want it though. That is for a 3.6 board, and you are running 3.7 which is quite different. I would guess you will want to modify one of the memberinfo_block_xxxx templates to add in your field.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04452 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete