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)

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] 

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 02:17 PM.

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.01192 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete