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)

Snake 10-02-2005 06:43 PM

Thanks for the update.

Lea Verou 10-02-2005 06:48 PM

petreska I cannot follow your way cause its a greek forum and I can't have greek filenames in the ftp!
So I tried adding this in the proper place:
HTML Code:

<if condition="$post['field5'] & 1">
<div> Φύλο: [img]%22$stylevar%5Bimgdir_misc%5D/male.gif%22[/img]
</if>
<if condition="$post['field5'] & 2">
<div> Φύλο: [img]%22$stylevar%5Bimgdir_misc%5D/female.gif%22[/img]
</if>

but nothing happens... I followed these instructions... I know they are for 3.0.x but as I have seen the postbit hasn't changed that much so they should work...

What am I doing wrong??

peterska2 10-02-2005 06:52 PM

Use this instead
Code:


<if condition="$post['field5'] & 1">
<div> Φύλο: <img src="$stylevar[imgdir_misc]/male.gif" />
</if>
<if condition="$post['field5'] & 2">
<div> Φύλο: <img src="$stylevar[imgdir_misc]/female.gif" />
</if>

That should work

Lea Verou 10-02-2005 06:57 PM

no it didn't.
Also the forum makes the <img> tag [img] for some reason and generally screwed up the code I posted above! It's not like that!
It's like yours but with 2 more </div>

thedvs 10-02-2005 07:19 PM

If a member has no gender set yet, it asks for /images/misc/.gif and leaves a broken image. any way to fix this so no image is shown?

Lea Verou 10-02-2005 07:27 PM

Quote:

Originally Posted by thedvs
If a member has no gender set yet, it asks for /images/misc/.gif and leaves a broken image. any way to fix this so no image is shown?

If the member has no gender set then the condition will be false and nothing should show...
Are you supposing this or you actually have this problem?

thedvs 10-02-2005 07:42 PM

well in IE its showing a broken image and calling .gif

peterska2 10-02-2005 08:05 PM

ok, add another option undisclosed and set that to be the default one.

Then upload this image to the /images/misc folder.

I'll update the instructions and zip file too

Boofo 10-02-2005 08:36 PM

Nice one Kerry-Anne. Clicking install. ;)

Zachery 10-02-2005 08:38 PM

I wasn't going to say anything untill I, just a moment ago looked at your installer for both.. you even use the same wording as me... how awsome of you.


All times are GMT. The time now is 08:00 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.03090 seconds
  • Memory Usage 1,735KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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