Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Images in profiles on conditional statements Details »»
Images in profiles on conditional statements
Version: 1.00, by MThornback MThornback is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 02-14-2006 Last Update: 02-14-2006 Installs: 3
Template Edits
 
No support by the author.

This is compatable with 3.6, but depending on how modified your templates are...you may need to revert.

Hey,

I normally don't release my own tweaks, cause they're usually not useful to anyone but me but since a few people seemed to like this as I was working on it....here goes....first release so be gentle

First you need a profile field...this modification works best (and makes the most sense) if you have multiple options to select, so go with the check boxes or the list.

REMEMBER the number of the field you make, you'll need it later.

Few notes about the list, when your uploading your images, i've only gotten them to work as numbers....if you can do better please do! Your more than welcome! The numbers of your images should corrspond to the order of your options....so:

If you have

1. Flowers
2. Gum
3. Candy

and you want to display candy in your profile, the image for candy should be 3.gif (or whatever extension your using).

Next comes the profile edit:

FIND:

Code:
				<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
					</if>
				</tr>
				$membergroupbits
				</table>
			</div>
		
		</div>
	</div>
	</td>

</tr>
ADD AFTER (remember to change xx to the field number in ALL places):

Code:
<if condition="$userinfo[fieldxx] != ''">
<tr>
<td class="tcat" width="50%">Title of your field goes here (phrase it if you want to)</td>
</tr>
<tr>
<td class="panelsurround" align="center">
	<div class="panel">
		<div align="$stylevar[center]">
		
<if condition="$post['fieldxx'] & 1"><img src="./images/1.gif"></if>
<if condition="$post['fieldxx'] & 2"><img src="./images/2.gif"></if>
<if condition="$post['fieldxx'] & 4"><img src="./images/3.gif"></if>
<if condition="$post['fieldxx'] & 8"><img src="./images/4.gif"></if>
<if condition="$post['fieldxx'] & 16"><img src="./images/5.gif"></if>

		</div>
	</div>
	</td>
</tr></if>
You'll notice that there are numbers going up in multiples for each if statement...if you add more than the 5 in the example they would go up 32, 64, 128 etc...(Thanks to tutorials by Andreas, and frequenting this place for 2 years I know this now )

A myth to debunk:
1. This will not allow your users to upload multiple images for their profiles (cool idea....far beyond my skill level ), this is strictly for images YOU as the forum host...like if you put up a list of book covers or something for favorite books read....not something you'd let people upload because of copyright and so forth.


I'll support this as needed....its pretty straight forward really, any questions feel free to post or PM...this will likely be a final release unless someone comes up with something brilliant to add to it....in which case your free to do, just credit my work as needed.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-15-2006, 11:10 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First installer!

Thanks!
Reply With Quote
  #3  
Old 02-15-2006, 10:23 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I like it too. Cheers.
Reply With Quote
  #4  
Old 02-16-2006, 06:44 AM
???`S?LV?R???`'s Avatar
???`S?LV?R???` ???`S?LV?R???` is offline
 
Join Date: Aug 2003
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FleaBag
Yeah I like it too. Cheers.
could someone post a screen shot or link to a live demo with this? (definitly curious about this)
Reply With Quote
  #5  
Old 02-18-2006, 06:00 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ???`S?LV?R???`
could someone post a screen shot or link to a live demo with this? (definitly curious about this)
Live Demo can be found here:

http://webcadets.com/forum/member.php?u=2

you will have to register to view profiles....and if you like the place stick around we always welcome new members
Reply With Quote
  #6  
Old 02-25-2006, 04:11 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MThornback
Live Demo can be found here:

http://webcadets.com/forum/member.php?u=2

you will have to register to view profiles....and if you like the place stick around we always welcome new members
You should post screenshots then, not sure how they feel about asking people to register in your release threads, but kind of comes off as self-promoting your site which I don't thinks allowed.
Reply With Quote
  #7  
Old 02-26-2006, 12:43 AM
???`S?LV?R???`'s Avatar
???`S?LV?R???` ???`S?LV?R???` is offline
 
Join Date: Aug 2003
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MThornback
Live Demo can be found here:

http://webcadets.com/forum/member.php?u=2

you will have to register to view profiles....and if you like the place stick around we always welcome new members
I appreciate the offer, but I think a screenshot would be easier for both of us.
Reply With Quote
  #8  
Old 02-27-2006, 02:08 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0Hubba0o
You should post screenshots then, not sure how they feel about asking people to register in your release threads, but kind of comes off as self-promoting your site which I don't thinks allowed.
Good Point....screenshots added
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 07:22 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.05247 seconds
  • Memory Usage 2,278KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (7)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_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