vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Gender icon beside nickname in Postbit (https://vborg.vbsupport.ru/showthread.php?t=298782)

dszuecs 06-05-2013 10:00 PM

Gender icon beside nickname in Postbit
 
1 Attachment(s)
This mini modification allows you to display a gender icon beside the nicknames in postbit:
- Live Demo: BlackBerry10 Forum


http://forum.bb10.ch/images/postbit.preview.jpg http://forum.bb10.ch/images/postbit.preview.02.jpg


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

djbaxter 06-06-2013 06:56 PM

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.

djbaxter 06-07-2013 03:55 PM

Actually, I'm now using this instead of the other one I mentioned above. I prefer the images and placement of the images. :)

goxy63 06-08-2013 07:07 AM

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

Charro~ 06-10-2013 08:11 AM

Rated, Tagged & Installed...Thanks!

sadiq6210 06-12-2013 11:48 AM

Nice icons :) Thanks dear

angeljs 10-27-2013 07:34 PM

Quote:

Originally Posted by goxy63 (Post 2426577)
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!

WEBDosser 10-27-2013 08:47 PM

tagged

Mastermaik 11-02-2013 10:48 PM

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

Harpo 11-18-2013 11:37 AM

Got it working on the first try. Thanks and installed.


All times are GMT. The time now is 05:44 AM.

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.01606 seconds
  • Memory Usage 1,731KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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