vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Show Gender In Postbit (https://vborg.vbsupport.ru/showthread.php?t=97386)

harry1951 10-22-2005 05:18 PM

harry *clicks install* with a big hug for Kerry-Anne :-)

Chadi 11-24-2005 11:37 PM

Please look. It messed up my postbit_legacy and I know for sure I added them all right.

peterska2 11-24-2005 11:43 PM

what version are you running?

You can either drop the $vbphrase from your template or move the code to before the IM icons.

Chadi 11-24-2005 11:45 PM

I just installed it 15 minutes ago so latest version.

Please tell me where "before the IM icons"? I don't want to mess up. I'm not exactly pro on coding so I just want to make sure. Thanks

peterska2 11-25-2005 12:01 AM

in your postbit_legacy template

FIND

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
ADD ABOVE

Code:

<if condition="$post[fieldx]"><div>$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></div></if>
Make sure you change the x's to the field number on your site.

Chadi 11-25-2005 12:04 AM

It keeps trying to show the country flags instead of male/female image. Why is that?

Chadi 11-25-2005 12:06 AM

This is the code portion:

Code:

        <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$post[field7]"><div>$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[field7].gif" alt="$post[field7]" /></div></if>
                                <!-- Begin IM Status Online Hack -->


peterska2 11-25-2005 12:19 AM

make sure that field 7 is your gender profile field. if it is wanting to show the flags then it is the wrong number so go back into your profile field manager and get the correct field number.

athoob 11-30-2005 11:49 PM

installed :) thanks

Mastar 12-10-2005 07:58 PM

does anyone have anymore male and female gifs animated if possible?

tippen 12-10-2005 09:00 PM

Quote:

Originally Posted by Mastar
does anyone have anymore male and female gifs animated if possible?

I am looking for this two. Anything antialiased. :nervous:

peterska2 12-10-2005 10:33 PM

I'll see what I can find for you and get back to you. it'll probably be monday though due to a busy weekend

harry1951 12-11-2005 09:37 AM

Small problem (I think) I installed this when it just came out. After installing your christmas-style it was gone. So I try to reinstall this but I get little red X and I'm sure that the pictures are in pictures/misc. Can it be that it's expecting the pictures somewhere in the xmas folder? I installed the christmas-style as a childstyle.

peterska2 12-11-2005 11:58 AM

Thats exactly what it is doing. If you upload the gender images to /xmas/misc as well then it will work correctly.

Kuimera 12-12-2005 08:47 AM

Ok... I know that this is only for postbit, but is there a way to show this in the user profile too?

peterska2 12-12-2005 08:50 AM

I'm just on my way out the door but I'll take a look when I get back. It should be straightforward enough.

Lea Verou 12-12-2005 09:30 AM

Quote:

Originally Posted by Kuimera
Ok... I know that this is only for postbit, but is there a way to show this in the user profile too?

If you did it correctly it should display in the profile as well but not as an icon :)

peterska2 12-12-2005 10:30 AM

Ok, in template MEMBERINFO

FIND

Code:

<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
ADD BELOW

Code:

<div class="smallfont">$vbphrase[gender]&nbsp;<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></div>
Don't forget to replace the x with the field number on your site. This shows under the usertitle as seen on the profile pages at www.peterska2.co.uk

Kuimera 12-12-2005 10:17 PM

Tks a lot peterska2!
If latter you need some graphics done or something, just ask :)

take care.

Devil Woman 01-04-2006 03:39 AM

I am having a problem with this, all going in all showing up just in the wrong place :( its showing up right next to the username rather than below it, can anyone help

Thanks

Murty 01-06-2006 12:12 PM

what is the:

STEP THREE

ADD PHRASE

type: global
varname: gender
Text: Gender:


bit??
i dont know what that 'add phrase' bit means??

peterska2 01-06-2006 02:34 PM

Quote:

Originally Posted by Devil Woman
I am having a problem with this, all going in all showing up just in the wrong place :( its showing up right next to the username rather than below it, can anyone help

Thanks

Instead of the postbit(_legacy) edit included in the zip file, do this

FIND

Code:

<div>
$vbphrase[posts]: $post[posts]
</div>

ADD BELOW

Code:

<div>
<if condition="$post[fieldx]">$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
</div>

Don't forget to change the x's to your profile field number

peterska2 01-06-2006 02:35 PM

Quote:

Originally Posted by Murty
what is the:

STEP THREE

ADD PHRASE

type: global
varname: gender
Text: Gender:


bit??
i dont know what that 'add phrase' bit means??

In your ACP go to Languages & Phrases > Phrase Manager > Add New Phrase

Then complete that form with the above info.

GrabAssGirl 01-06-2006 08:18 PM

Quote:

Originally Posted by peterska2
In your ACP go to Languages & Phrases > Phrase Manager > Add New Phrase

Then complete that form with the above info.

Does this not work for 3.5.3? I followed the instructions for gender in postbit v1.03.zip and it did absolutely nothing. hmmmm Am I missing something?

peterska2 01-06-2006 08:29 PM

Did you do it on the right style?

It should work, although I've not yet upgraded to 3.5.3 myself but nothing should have changed that would affect this.

Do you have a link to a users posts who has set their gender via the userCP?

GrabAssGirl 01-06-2006 08:35 PM

Quote:

Originally Posted by peterska2
Did you do it on the right style?

It should work, although I've not yet upgraded to 3.5.3 myself but nothing should have changed that would affect this.

Do you have a link to a users posts who has set their gender via the userCP?

I don't even have the option in my user CP area to select a gender. I have double and triple checked everything.

peterska2 01-06-2006 08:37 PM

Did you create the user profile field?

GrabAssGirl 01-06-2006 08:40 PM

Yes - it's field7.. I put that in all the fieldx areas as well.

peterska2 01-06-2006 08:43 PM

strange. Did you do the postbit_legacy edits?

GrabAssGirl 01-06-2006 08:46 PM

Yes... just checked that again. I edited postbit_legacy

GrabAssGirl 01-06-2006 08:56 PM

Did I set it up right?

peterska2 01-06-2006 08:56 PM

strange. Did you get my PM?

Murty 01-06-2006 09:48 PM

I have done that, and it works, but it has 'Gender:' before the image. How can i take that away?

peterska2 01-06-2006 09:53 PM

@ GrabAssGirl

Change 'Field Editable By User' To YES

@ Murty

Remove this code
Code:

$vbphrase[gender]&nbsp;

Ohiosweetheart 01-12-2006 03:33 AM

I'd love to be able to use this hack, but unfortunately the vBarcade has an edit in the postbit in the same phrase that you call to replace.

EX:

You say to find: <div id="postmenu_$post[postid]"><if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if></div>

and replace it with:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<if condition="$post[fieldx]">$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post[fieldx]">$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
</if>
</div>


BUT: the vB3 arcade edits that same section and it now looks like this:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>




so... what do I do?? :surprised:

peterska2 01-12-2006 03:38 AM

Put this
Code:

<if condition="$post[fieldx]">$vbphrase[gender]&nbsp<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
after
Code:

<else />
$post[musername]
</if>

and that will work perfectly fine.

Ohiosweetheart 01-12-2006 02:33 PM

Ok that worked... but now... I have the word Gender in front of the little image

what can I do?

ALSO... do I have to edit the postbit_legacy as well, or just one of them. I did the postbit template

peterska2 01-12-2006 09:26 PM

Quote:

Originally Posted by Ohiosweetheart
Ok that worked... but now... I have the word Gender in front of the little image

what can I do?

ALSO... do I have to edit the postbit_legacy as well, or just one of them. I did the postbit template

You only need to edit the template for the postbit type that you use.

To remove the word Gender delete this section of code
Code:

$vbphrase[gender]&nbsp;

Ohiosweetheart 01-12-2006 09:41 PM

works perfect... thank you peter!

DruidToolz 01-14-2006 12:04 AM

Hey Peter.. Just curious, but does everyone have to have the option: Undisclosed <-- as one of the options... Cuz i would rather just use Male & Female.. Would there be any problems in the code that i would have to change to get it to work


All times are GMT. The time now is 04:16 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.01325 seconds
  • Memory Usage 1,819KB
  • 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
  • (11)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete