Back to vBulletin 3.6 Add-ons

Gender Stats on Forumhome Statistics 1.0
Mod Version: 1.00, by truongton

This modification is in the archives.
vB Version: 3.6.8 Rating: (0 vote - 0 average) Installs: 10
Released: 26 Jan 2008 Last Update: 26 Jan 2008 Downloads: 117
Not Supported Uses Plugins Template Edits Additional Files External Content  

Gender Stats on Forumhome Statistics

Author: pc.hoanganh (email)
Demo Site: http://forum.thangbinhnet.com
Download lastest version and more info:
http://www.laptrinhvien.com (http://www.laptrinhvien.com/diendan/index.php?t=63)

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 Code:
<div>    
       
$vbphrase[posts]: $post[posts]
</
div


Add BELOW:

PHP Code:
<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 Code:
<!-- today's birthdays --> 


ADD ABOVE:

PHP Code:
<!-- pc.hoanganh@yahoo.com -->
        <!-- 
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_picbarheight="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_picbarheight="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_picbarheight="10" border="0" /> $allzwitter_prozent % ($allzwitter)</div>
        </
td>
            </
tr>
        </
tbody>
        <!-- 
gender stats end -->
        <!-- 
www.laptrinhvien.com -->
        <!-- 
pc.hoanganh@yahoo.com --> 


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

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

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Gender Stats pchoanganh 1.0.zip (4.1 KB, 111 downloads)

Similar Mods

Gender Stats on Forumhome Addon vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024