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)

peterska2 01-14-2006 12:37 AM

Quote:

Originally Posted by DruidToolz
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

Just remove the undiclosed option from the profile field and it will just work for male and female.

DruidToolz 01-14-2006 01:09 AM

I tried it the other way.. but the images don't show up, could i have done something wrong..

Do I change this--> Set Default: Yes, but NO blank first option

MustangLisa 01-15-2006 04:21 PM

Hmm, I did everything right (I think) and just double-checked, but am not seeing any images.

I'm on version 3.5.3.

Thanks.

peterska2 01-15-2006 09:43 PM

If you are missing the images and you have additional styles, make sure that you have uploaded the images to the misc directory for each style installed.

o0Hubba0o 02-12-2006 02:53 AM

Took me a minute before I said "DUH", I put Male/Female in for the profile with capitol M and F and forgot to change the images to match, but I got it lol. I don't like by the user name with my layout for the post bit so I moved it, but working great!

Smiry Kin's 02-12-2006 11:05 AM

could some one please tell me the code to just have it where the posts etc normaly are and not next to username??

Thanks!

peterska2 02-12-2006 10:23 PM

See this post, it explains how to do it.

https://vborg.vbsupport.ru/showpost....2&postcount=62

catocom2 02-25-2006 05:15 PM

I've successfully installed this on earlier vers, but I can't get the icon to
show up in postbit_legacy with 3.5.4 :ermm: .

Edit: nevermind.....I edited the wrong template.
Is OK, is Alright. :D

peterska2 04-19-2006 10:15 PM

Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here. Support provided in this thread will be on an as and when basis.

silkie 05-01-2006 04:21 PM

sorry i briefly forgot support is over at peterska's site.

HabboLand 06-04-2006 10:32 AM

Been looking for this for ages. Thank you v much

bada_bing 06-05-2006 03:08 AM

Saved for future install

cyberbeggar 06-11-2006 01:46 PM

Peter,

I do not understand what Step 3 means


Quote:

STEP THREE

ADD PHRASE

type: global
varname: gender
Text: Gender:
See example of my gender in a post here
http://www.backpackers.info/showthread.php?p=6#post6

peterska2 06-11-2006 01:53 PM

That's fine like that. The instructions have got a bit jumbled through updates and such, and the phrase is no longer essential for this version. The new version for 3.6 requires the phrase again.

cyberbeggar 06-11-2006 02:06 PM

Thanks for your quick reply, I thought things had changed... cause my other gender hack looks different on my other site here

Just one question though, I cannot workout why the gender image propeties is going to my other site dnboard.com (a site in the same database)I am very confused about that.

Thanks

peterska2 06-11-2006 02:17 PM

The image paths could be linked to the way you have your image directories set up as it is set to find the images in your /misc folder for that style.

cyberbeggar 06-11-2006 02:36 PM

Thanks ... still confused LOL will sort it later! I love your hacks! Thanks!

Snake 06-12-2006 07:09 AM

Peter, why does the gender images show up underneath the usertitles? Take a look here: http://www.finalfantasyforums.net/fe...m-spam-12.html

It is supposed to be showing right next to the username "Dark Cloud" but whenever I do that, it breaks a line and shows up underneath that username. Any idea?

peterska2 06-12-2006 07:37 AM

Code:

<div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
[high]Put Gender Code Here[/high]
                        </div>


Snake 06-12-2006 08:34 AM

Thanks, seems to be good now but why it shows a problem with the female image only?

Here: http://www.finalfantasyforums.net/se...r/hello-5.html

peterska2 06-12-2006 11:44 AM

Can you post the exact code that you have in your postbit legacy template then I can see if I can find anything.

Snake 06-12-2006 05:43 PM

OK sure here's my postbit_legacy template...

Quote:

<tr valign="top">
<td class="alt1" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername2" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

peterska2 06-12-2006 07:28 PM

There's no reason why it should be wrapping with your code. The only thing I can if that might be forcing the wrap is the length of usernames.

Snake 06-14-2006 05:53 PM

You think so? So what is the solution to this fix then? I can't just leave it alone.

peterska2 06-14-2006 07:41 PM

Have a look at my 3.6 version. It works on 3.5.4 too and puts it in a different place.

Snake 06-24-2006 01:34 PM

Sorry for my late respond. It's because I was extremely busy with my personal life, girlfriend and all of that.

So anyway if I install your 3.6 version of this hack, it should solve my issue that I'm having?

peterska2 06-24-2006 06:17 PM

It should do, just make sure that you uninstall this versions temaplate edit first and set up the template edit for the 3.6 version only. You don't need the profile field as you already have that.

Zelos 07-01-2006 01:55 AM

I need a little help with this...

I installed the mod, but I'd like it to display differently.
On the left is how it currently displays. On the right is how I'd like it to display. Can you help me with this?

http://img338.imageshack.us/img338/1026/postbit1kr.png

Snake 07-01-2006 08:55 AM

Find the phrase "$vbphrase[gender]" and remove it. Simple! ;)

Majest 04-09-2007 06:35 AM

I have just went through the installation of this hack but it doesn't seem to show up on the posts or in the edit profile section in the user cp.

Did I do something wrong or missed something out. I was a little confused with weather to edit the postbit or the postbit_legacy so I did both.

Apart from that I did everything in the install instructions.

OG-G 07-23-2008 12:28 PM

is there a gender mod for 3.72

dude14 09-29-2008 03:34 AM

I am looking for this but one that is compatible with 3.7.x ? Hopefully you can provide an upgrade, thanks. :)

Medtech 12-20-2008 11:13 PM

on 3.7.4, i edit the postbit and postbit_legacy i get a message that tells me i am missing <if>.

I have no problem inserting it, but where? here is the code i am inserting into the postbit template:

Code:

<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[field5]">$vbphrase[gender]&nbsp<img

src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
                                        <script type="text/javascript">

vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]<if

condition="$post[field5]">$vbphrase[gender]&nbsp<img

src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
                                        </if>
                                </div>

and the postbit_legacy template:

Code:

                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername"

href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><if

condition="$post[field5]">$vbphrase[gender]&nbsp<img

src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[fieldx]" /></if>
                                <script type="text/javascript">

vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]<if

condition="$post[field5]">$vbphrase[gender]&nbsp<img

src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
                                </if>
                        </div>

anyone wanna help me out on this?

Sworm 01-08-2009 10:09 PM

Hi,
why this code:
Quote:

<if condition="$post[field6]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field6].gif" alt="$post[field6]" /></if>
won't work on vb 3.8 on a orizontal postbit?

Thanks for any help


All times are GMT. The time now is 04:17 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.01321 seconds
  • Memory Usage 1,813KB
  • 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
  • (3)bbcode_code_printable
  • (4)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
  • (34)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