Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2004, 05:37 PM
Janitor Janitor is offline
 
Join Date: Dec 2003
Location: Dallas
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default male / female hack

should simple

just to show a small icon for Male or Female, below users avatar...
Reply With Quote
  #2  
Old 01-03-2004, 05:43 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it is fairly simple to do but I'm at work. If Someone doesn't release it before I get home tonight I'll be sure to put out a hack for it.
Reply With Quote
  #3  
Old 01-03-2004, 05:55 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Janitor
should simple

just to show a small icon for Male or Female, below users avatar...
no need a hack to do this. You can easily do it by adding a new profile field and using template conditionals. I think floris release a template mod for this on vbulletn.nl or vbulletintemplates.com
Reply With Quote
  #4  
Old 01-03-2004, 06:21 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well my god i forgot you could do that..... and i didn't notice that now you can have radio buttons and such in user profile fields. I feel like such an idiot now.
Reply With Quote
  #5  
Old 01-03-2004, 06:51 PM
Janitor Janitor is offline
 
Join Date: Dec 2003
Location: Dallas
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol we will try it and see
Reply With Quote
  #6  
Old 01-03-2004, 07:01 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep should work without any file modifications
Reply With Quote
  #7  
Old 02-16-2004, 09:15 AM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should work..
  1. New Custom Field
    Create a custom field in the AdminCP and take note of the field number. You can set it as radio buttons or a drop-down menu.. It's your preference. Either way, make the options: "Male" and "Female". Set to your preference if you want the field required (recommended), etc.
  2. Upload Files
    You need to have the images you want to be displayed for each choice (i.e. male, female, unknown). Upload them to your miscellaneous images folder (i.e. "/images/misc"). Be sure that the filenames are "Male.ext", "Female.ext", and "Unknown.ext". If the filenames are different, either rename to what I listed or change the code to suit.
  3. Template Modification(s)
    Open up whatever template you want the icon displayed in and add the following code where you want it to appear (be sure to set the appropriate field number and filenames/extensions):
PHP Code:
<if condition="$post[field7]">
<
img src="$stylevar[imgdir_misc]/$post[field7].gif" alt="$post[field7]border="0" />
<else />
<
img src="$stylevar[imgdir_misc]/Unknown.gif" alt="Unknown" border="0" />
</if> 
If you would rather have no image display for those who haven't specified male or female, or have it set to required.. You can simply remove the ELSE section of that code (2 lines). That way if the field is set, it will display, otherwise, nothing will be shown (and you don't need an unknown image either).

Note: You'll need to change the variable "$post" as required to have it display in places other than the postbit.. But, I pust that as you said you wanted it by the avatar.
Reply With Quote
  #8  
Old 11-26-2004, 03:44 PM
mahiraminc mahiraminc is offline
 
Join Date: Nov 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would we change the "post" to if we wish to display these on the Who's Online page?

I would like to add a column after Username called Gender and display the male/female images in there.

Can you guide me on that as well.
Reply With Quote
  #9  
Old 11-28-2004, 06:55 PM
mahiraminc mahiraminc is offline
 
Join Date: Nov 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mahiraminc
What would we change the "post" to if we wish to display these on the Who's Online page?

I would like to add a column after Username called Gender and display the male/female images in there.

Can you guide me on that as well.
Okay, I figured how to add an column... its simply editing the WHOSONLINE template but my question still stands...

How do I add the Male/Female icons to the Who's Online page? I think the variable post needs to be changed. I have tried everything to my knowledge and couldnt' get it working.

Please help? :surprised:
Reply With Quote
  #10  
Old 11-29-2004, 09:41 AM
Jason McConnell Jason McConnell is offline
 
Join Date: Jun 2004
Location: Syracuse NY
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would be kewl is if you could include those images in the postbit along with age and birthday... but i think that that might be a pretty simple template edit too.
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 08:30 AM.


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.11093 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
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_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete