truongton
01-25-2008, 10:00 PM
Gender Stats on Forumhome Statistics
Author: pc.hoanganh (pc.hoanganh@yahoo.com)
Demo Site: http://forum.thangbinhnet.com
Download lastest version and more info:
www.laptrinhvien.com (Vietnam Programer Community (http://www.laptrinhvien.com/diendan/showthread.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:
<div>
$vbphrase[posts]: $post[posts]
</div>
Add BELOW:
<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:
<!-- today's birthdays -->
ADD ABOVE:
<!-- 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_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 -->
<!-- pc.hoanganh@yahoo.com -->
################################################## ################################################## ########################
Thank you.
More informations. You can access to www.laptrinhvien.com (Vietnamese) to download lastest version.
My email: pc.hoanganh@yahoo.com www.thangbinhnet.com :p
Author: pc.hoanganh (pc.hoanganh@yahoo.com)
Demo Site: http://forum.thangbinhnet.com
Download lastest version and more info:
www.laptrinhvien.com (Vietnam Programer Community (http://www.laptrinhvien.com/diendan/showthread.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:
<div>
$vbphrase[posts]: $post[posts]
</div>
Add BELOW:
<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:
<!-- today's birthdays -->
ADD ABOVE:
<!-- 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_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 -->
<!-- pc.hoanganh@yahoo.com -->
################################################## ################################################## ########################
Thank you.
More informations. You can access to www.laptrinhvien.com (Vietnamese) to download lastest version.
My email: pc.hoanganh@yahoo.com www.thangbinhnet.com :p