Female & Male ..split ..

TroJan16

New Member
Hello GUYZ,


anybody knows or have a hack about on how to split a registered members from Male to Female Automatically......???



thnx a lot and more power ......
 
yes ..... the one that modified and auto place them in their respective gender .... hehhhe


many more thnx in advance ...
 
Gender Stats on Forumhome Statistics

Author: pc.hoanganh ([email protected])
Demo Site: http://forum.thangbinhnet.com
Download lastest version and more info:
www.laptrinhvien.com (Vietnam Programer Community)

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

File product: 1
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 Radio Buttons

Title: Gender
Description: Tell your gender.
Options:
Romeo
Juliet
No

Set Default: Yes
Field Required: (Your choose want.)
Field Editable To User: Yes
Display Page: Edit Profile

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


You can set in postbit(_legacy) template
You Open postbit(_legacy) templates


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


Add BELOW:

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


with fieldX =
fieldX you added.

############################################################################################################################
############################################################################################################################

Step 1)

Upload the product-gender_stats(pc.hoanganh).xml

############################################################################################################################

Step 2)

Upload 3 images if you havn't yet
/forum/images/gender
Romeo.gif
Juliet.gif
No.gif


############################################################################################################################

Step 4)

Edit Template >> FORUMHOME <<

SEARCH FOR:

PHP:
<!-- today's birthdays -->



ADD ABOVE:

PHP:
<!-- [email protected] -->
        <!-- www.laptrinhvien.com -->
        <!-- gender stats begin -->
        <tbody>
            <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">$vbphrase[gender_on_board]</div>
                <div class="smallfont">$vbphrase[gender_male]<img src="images/gender/Romeo.gif"> <img src="images/polls/bar6-l.gif" alt="" width="$allboys_picbar" height="10" border="0" /> $allboys_prozent % ($allboys)</div>
                <div class="smallfont">$vbphrase[gender_female]<img src="images/gender/Juliet.gif"> <img src="images/polls/bar5-l.gif" alt="" width="$allgirls_picbar" height="10" border="0" /> $allgirls_prozent % ($allgirls)</div>
                <div class="smallfont">$vbphrase[gender_undisclosed]<img src="images/gender/No.gif"> <img src="images/polls/bar4-l.gif" alt="" width="$allzwitter_picbar" height="10" border="0" /> $allzwitter_prozent % ($allzwitter)</div>
        </td>
            </tr>
        </tbody>
        <!-- gender stats end -->
        <!-- www.laptrinhvien.com -->
        <!-- [email protected] -->


############################################################################################################################


Thank you.
More informations. You can access to www.laptrinhvien.com (Vietnamese) to download lastest version.
My email: [email protected] www.thangbinhnet.com :p

 
Yes It's not work you need to edit filed7 into product to number your profilefield

I'm sure it's work!!!
 
###############################################################################
# Gender Stats on Forumhome Statistics Addon vB3.6 3.7 #
# By Renee Edit by DaNyA (Fuck You [email protected], YOU ARE FAKE #
# Original http://www.vbulletin.org/forum/showthread.php?t=99974 #
###############################################################################

Show summary gender on Forumhome

###############################################################################
# Step 1 #
###############################################################################

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

Profile Field Type:

Single Selection Radio Buttons

Title: Gender
Description: Tell your gender.
Options:
Male
Female
No
Set Default: Yes

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

if you want to display in postbit template

Edit you postbit and postbit_legacy

FIND:
PHP:
    $vbphrase[posts]: $post[posts]
Add Below:

PHP:
<if condition="$post[fieldX] != ''"><br />
    Gender: <img src="images/gender/$post[fieldX].gif" title="$post[fieldX]" align="center">
</if>
Important!!! look at fieldX edit X with your number field such as field7

###############################################################################
# Step 2 #
###############################################################################

Open product-gender_stats_1_0.xml

search for field7 then replace with fieldX

Important!!! look at fieldX edit X with your number field such as field7

###############################################################################
# Step 3 #
###############################################################################

product-gender_stats_1_0.xml

###############################################################################
# Step 4 #
###############################################################################

Upload images folder into Root Directory

Male.gif
Female.gif
Unknown.gif

###############################################################################
# Step 5 #
###############################################################################

Edit Template --> FORUMHOME

Search::

PHP:
<!-- today's birthdays -->
Add Above:

PHP:
        <!-- Gender Stats on Forumhome Statistics Start -->
        <tbody>
            <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">$vbphrase[gender_on_board]</div>
                <div class="smallfont">$vbphrase[gender_male]<img src="images/gender/Romeo.gif"> <img src="images/polls/bar6-l.gif" alt="" width="$allboys_picbar" height="10" border="0" /> $allboys_prozent % ($allboys)</div>
                <div class="smallfont">$vbphrase[gender_female]<img src="images/gender/Juliet.gif"> <img src="images/polls/bar5-l.gif" alt="" width="$allgirls_picbar" height="10" border="0" /> $allgirls_prozent % ($allgirls)</div>
                <div class="smallfont">$vbphrase[gender_undisclosed]<img src="images/gender/No.gif"> <img src="images/polls/bar4-l.gif" alt="" width="$allzwitter_picbar" height="10" border="0" /> $allzwitter_prozent % ($allzwitter)</div>
        </td>
            </tr>
        </tbody>
        <!-- Gender Stats on Forumhome Statistics -->
###############################################################################
# That's All #
###############################################################################
 
there is nothing wrong with this hack :S it even works on vb3.7 the hack i provided above was from 26 feb 2008 for vb version 3.6.8 the one above this topic is for vb3.6.7 and an older one. Do what you wanna do but remember to read all lines and do exactly what the tutorial says how to install and all hack will work then.
 
Back
Top