MyBB Community Forums

Full Version: Displaying the icons of gender
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I just tried Yaldaram's edit, and its working perfectly fine for me.
(2010-12-28, 06:49 PM)Uncontrol Wrote: [ -> ]How does that switch between male and female? Very cool if it works.

Well, you can do, if you've skills Wink
(2010-12-29, 06:55 AM)Yaldaram Wrote: [ -> ]
(2010-12-28, 06:49 PM)Uncontrol Wrote: [ -> ]How does that switch between male and female? Very cool if it works.

Well, you can do, if you've skills Wink

Um :|

Well, thanks for the solution even if I can't understand these words, LOL
Thanks Wink
(2010-12-29, 01:51 PM)Uncontrol Wrote: [ -> ]
(2010-12-29, 06:55 AM)Yaldaram Wrote: [ -> ]
(2010-12-28, 06:49 PM)Uncontrol Wrote: [ -> ]How does that switch between male and female? Very cool if it works.

Well, you can do, if you've skills Wink

Um :|

Well, thanks for the solution even if I can't understand these words, LOL

(2010-12-29, 04:36 PM)Yaldaram Wrote: [ -> ]Thanks Wink

Haha, he doesn't even acknowledge what you've just said...
http://community.mybb.com/thread-85046-p...#pid621468
How do I do that when a guest posts did not show an icon?
You need conditional for that.
(2010-12-27, 05:43 AM)Yaldaram Wrote: [ -> ]To add gender icon;

Go to: ACP > Configurations > Custom Profile Field > Add New profile Field > and make one.

Now Go to: ACP > Templates > Postbit Templates > postbit_author_user > edit and find;
{$post['warninglevel']}

add just beneath the following code;

<br/>Gender:&nbsp;<img src="{$mybb->settings['bburl']}/images/{$post['fidX']}.gif" />

Replace "X" with the actual Profile Field ID. Wink

See screen;

(2010-12-27, 02:55 PM)Yaldaram Wrote: [ -> ]
(2010-12-27, 05:53 AM)Uncontrol Wrote: [ -> ]That's text, not an icon.

I didn't said its an icon BTW;
(2010-12-27, 05:43 AM)Yaldaram Wrote: [ -> ]To add gender text;
:s

I don't get why you've used GIF image path in the code then? If it only displays text as gender? Your code below to use.

<br/>Gender:&nbsp;<img src="{$mybb->settings['bburl']}/images/{$post['fidX']}.gif" />

Should it not be this instead, if it only displays text.

<br />Gender:&nbsp;{$post['fidX']}

Also, I spotted that the the break code should have a space before the backslash in that code like so below.

<br />



(2010-12-27, 05:43 AM)Yaldaram Wrote: [ -> ]add just beneath the following code;

<br/>Gender:&nbsp;<img src="{$mybb->settings['bburl']}/images/{$post['fid3']}.gif" />

I tried this, but it is no working. Apparently
{$post['fid3']}
is not returning a result, so I end up with just /.gif as my image.

Ideas? Huh
I remember there was a slight issue with vBulletin on something like this. In the end the problem was with using "capital letters" for Male and Female, instead use male and female as answers with all small letters and create GIF images named the same way (using all small letters).

Worth a try?
Pages: 1 2 3