Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Gender icon beside nickname in Postbit Details »»
Gender icon beside nickname in Postbit
Version: 1.00, by dszuecs dszuecs is offline
Developer Last Online: Mar 2018 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.1 Rating:
Released: 06-05-2013 Last Update: Never Installs: 22
Template Edits
Additional Files Translations  
No support by the author.

This mini modification allows you to display a gender icon beside the nicknames in postbit:
- Live Demo: BlackBerry10 Forum





GUIDE

01) Create a custom Profilefield 'Gender'

01.01) AdminCP ? Profilefields ? Add Profilefield
01.02) Profilefield type = Dropdown ? Next
01.03) Title = Gender ? Description = Gender ? Options = boy AND girl (one on each line)
01.04) AdminCP ? Profilefields ? Manage Profilefields ? notice the Name of the created Profilefield 'Gender' (f.e. field10)


So now, your users are able to select 'boy' or 'girl' in UserCP


02) CSS customizing

02.01) AdminCP ? Search Templates ? Search for 'postbit_legacy' ? Edit
02.02) Search for '{vb:raw memberaction_dropdown}' ? below add:

<vb:if condition="$post[field10] == 'boy'"><img src="/images/boy.png" alt="Boy"></vb:if>
<vb:if condition="$post[field10] == 'girl'"><img src="/images/girl.png" alt ="Girl"></vb:if>

Insert your noticed number from step 01.04 here!

02.03) Download 'boy.png' and 'girl.png' (rightclick ? Save As)
02.04) Upload both files to /forumroot/images


03) Last step
03.01) Go to your UserCP ? Select your gender
03.02) Take a look at your Postbit ? Enjoy!
03.03) Mark as installed


Feel free to contact me if you have problems setting it up!
Cheers - Dennis

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Charro~, djbaxter, goxy63, JamalFree, sadiq6210, sodasusu

Comments
  #2  
Old 06-06-2013, 06:56 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is similar to Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD but for some the placement of the gender icon may be preferred.
Reply With Quote
  #3  
Old 06-07-2013, 03:55 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I'm now using this instead of the other one I mentioned above. I prefer the images and placement of the images.
Reply With Quote
  #4  
Old 06-08-2013, 07:07 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be great if gender icon is displayed also in profile, member list... next to the username

Rated and tagged for now, icons look nice
Reply With Quote
  #5  
Old 06-10-2013, 08:11 AM
Charro~ Charro~ is offline
 
Join Date: Dec 2012
Location: US
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rated, Tagged & Installed...Thanks!
Reply With Quote
  #6  
Old 06-12-2013, 11:48 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice icons Thanks dear
Reply With Quote
  #7  
Old 10-27-2013, 07:34 PM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goxy63 View Post
It would be great if gender icon is displayed also in profile, member list... next to the username

Rated and tagged for now, icons look nice
I'd like this, too.

Great mod, thanks!
Reply With Quote
  #8  
Old 10-27-2013, 08:47 PM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged
Reply With Quote
  #9  
Old 11-02-2013, 10:48 PM
Mastermaik Mastermaik is offline
 
Join Date: Feb 2004
Location: Germany, Leverkusen
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi @all,

after editing the template postbit_legacy and saving it, i get this error:

Parse error: syntax error, unexpected T_STRING in /www/htdocs/w0112e05/forum/includes/adminfunctions_template.php(5228) : eval()'d code on line 358

If I look then into my forums, all text written in the forums is deleted...

What can I do ?

Kind regards
Maik
Reply With Quote
  #10  
Old 11-18-2013, 11:37 AM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working on the first try. Thanks and installed.
Reply With Quote
Reply

Thread Tools

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:55 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.05048 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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