Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gender Stats on Forumhome Statistics 1.0 Details »»
Gender Stats on Forumhome Statistics 1.0
Version: 1.00, by truongton truongton is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 01-25-2008 Last Update: 01-25-2008 Installs: 10
Uses Plugins Template Edits
Additional Files  
No support by the author.

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)

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: pc.hoanganh@yahoo.com www.thangbinhnet.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-26-2008, 02:10 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.laptrinhvien.com/ Dead Link
http://www.laptrinhvien.com/diendan/showthread.php?t=63 Also Dead Link
Reply With Quote
  #3  
Old 02-22-2008, 04:00 PM
BucShot's Avatar
BucShot BucShot is offline
 
Join Date: Jan 2008
Location: Central Florida
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The links aren't dead but they might as well be. I didn't see any way of getting updates from these people. Also this mod doesn't appear to count correctly. As a matter of fact it doesn't even come close.
Reply With Quote
  #4  
Old 03-28-2008, 04:47 AM
GWLiaR GWLiaR is offline
 
Join Date: Mar 2008
Location: Mersin/TR
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx....
Reply With Quote
  #5  
Old 03-28-2008, 12:08 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, better to had screenshots
Reply With Quote
  #6  
Old 03-29-2008, 12:40 AM
saviola8x's Avatar
saviola8x saviola8x is offline
 
Join Date: May 2006
Location: Paris
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

die server.
You are vietnamese ? Me too !
Reply With Quote
  #7  
Old 03-29-2008, 09:22 PM
moschino moschino is offline
 
Join Date: Dec 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.6.8 , good job tks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09909 seconds
  • Memory Usage 2,292KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete