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)
-   -   Gender Image In Postbit (https://vborg.vbsupport.ru/showthread.php?t=97663)

tnguy3n 10-04-2005 10:00 PM

Gender Image In Postbit
 
Gender Image In Postbit
Author: tnguy3n
Demo Site: http://www.vbviet.org

What this mod does is to show user's gender in postbit. Users can choose to show it or not. All is done by template modding.

File mod: 0
Template mod: 1
Plugin: 1
File Uploads: 3 gender images

### UPLOAD gender dir to your /forum/image/gender dir ###

1. Go to AdminCP => User Profile Field Manager => Add New User Profile Field

Profile Field Type: Single Selection Menu

Title: Gender
Description: Tell the world your gender.
Options:
Undisclosed
Male
Female
Set Default: No
Field Editable To User: Yes
Display Page: Edit Profile

Once you got it done, write down your field# . i.e field5

2. Open postbit(_legacy) template,

FIND:
HTML Code:

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

BELOW, ADD:
HTML Code:

                                <if condition="$post[fieldX] != ''"><div>
                                        Gender: <img src="images/gender/$post[fieldX].gif" title="$post[fieldX]" align="center">
                                </div></if>

<!----- That's it! Enjoy! ----->

FleaBag 10-05-2005 10:44 PM

Hey, I thought this could be done with templates alone?

tnguy3n 10-05-2005 10:52 PM

yup, it's done by template mod.

SnowBot 10-06-2005 07:43 AM

Installed, love the images :) Thanks

cedced 10-12-2005 04:35 PM

lol vietnamese me too :D
http://www.vbviet.org/
Server not found

tnguy3n 10-12-2005 10:30 PM

Quote:

Originally Posted by mini2
I made my own male/female signs (bit like those on toilet doors etc.)

I simply leave it blank if the user is "Undeclared" (which I first put as "Undecided" - Whoops!)

If anyone wants to use them feel free:

nice images, thanks for sharing. :)

tnguy3n 10-12-2005 10:31 PM

Quote:

Originally Posted by cedced
lol vietnamese me too :D
http://www.vbviet.org/
Server not found

try the IP instead. ;)

Boofo 10-12-2005 10:32 PM

Quote:

Originally Posted by mini2
I made my own male/female signs (bit like those on toilet doors etc.)

I simply leave it blank if the user is "Undeclared" (which I first put as "Undecided" - Whoops!)

If anyone wants to use them feel free:

I plan on making mine say "Unsure" as that will prompt them to pick one or the other. ;)

Boofo 10-12-2005 10:33 PM

Quote:

Originally Posted by tnguy3n
try the IP instead. ;)

Shouldn't that be iowa.org? ;)

tnguy3n 10-12-2005 10:39 PM

Quote:

Originally Posted by Boofo
Shouldn't that be iowa.org? ;)

how about vbiowan.org? :D

btw, are you a hawk or cyclone? :ninja:


All times are GMT. The time now is 05:49 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.01205 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_html_printable
  • (5)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
  • (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