![]() |
|
Mod Options |
![]() |
|||||||||||||
This modification is in the archives.
This Hack based on the Gender Image In Postbit from tnguy3n but it can change to your Gender Options.
Instructions todo are in the gender_stats_language.txt. Before install the plugin.xml read the gender_stats_language.txt! For members which have 2 gender-options (like: Female + Male) take the 2_options.zip Seen on the first picture. For members which have 3 gender-options (like: Female + Male + Undisclosed) take the 3_options.zip. Seen on the second picture. For members which havn't a gender hack from first boardinstalltime get this query: Replace fieldX with you fieldID fo gender.
On User Profile Field Manager the ProfileField "gender" must be "Set Default:" to Yes. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
rFactor Server Stats CMPS addon | The_Rayman | vBulletin 3.5 Add-ons | 20 | 27 Jul 2008 14:39 |
[Addon] Show Itrader Stats In Profile | Gio~Logist | vBulletin 3.5 Add-ons | 88 | 22 Jun 2008 15:11 |
Add-On Releases Gender Stats on Forumhome Statistics 1.0 | truongton | vBulletin 3.6 Add-ons | 6 | 29 Mar 2008 23:22 |
Admin cp Stats Addon for Refer Friends Hack | trafix | vBulletin 2.x Full Releases | 3 | 23 Apr 2003 18:22 |
#16
|
||||
|
||||
Originally Posted by rb290
What program are you using to read the file?
No members have liked this post.
|
#17
|
|||
|
|||
I tried to do this I uploaded it edited the template, and it didnt work, I then removed the plugin and my forum worked agin I dont know what I ddi wrong?
it is showing the icons with sex male femlae etc, but no info, www.tipstersforum.com I am installing mods before the forum goes live No members have liked this post.
|
#18
|
|||
|
|||
where to add this?
Step 3) Go in your admincp. Add 1 new phrase: Name: ==> Description: gender_on_board ==> Gender on board: No members have liked this post.
|
#19
|
||||
|
||||
Originally Posted by lsgworldl
In the phrase manager.
![]() No members have liked this post.
|
#20
|
|||
|
|||
Originally Posted by Boofo
where is that?
No members have liked this post.
|
#21
|
||||
|
||||
Originally Posted by lsgworldl
Under Languages & Phrases on the left.
![]() No members have liked this post.
|
#22
|
|||
|
|||
I dont understand what I have to edit????
Open plugin.xml and replace all field7 with your fieldID! There are 11 points with field7. If you have another Options in your Profile Field you have to change to your options: field7 = 'Female' ==> fieldX = 'Your Female Option' field7 = 'Male' ==> fieldX = 'Your Male Option' field7 = 'Undisclosed' ==> fieldX = 'Your Undisclosed Option' If you havn't an Undisclosed Option, leave it blank fieldX = '' After then uploud the plugin.xml No members have liked this post.
|
#23
|
||||
|
||||
field7 = 'Female'
field7 = 'Male' field7 = 'Undisclosed' You must edit the red words if you have other called Options in the gender field Open plugin.xml and replace all field7 with your fieldID If you have another fieldID you must this edit in the plugin.xml You find the fieldID in your admincp ==> profilefields No members have liked this post.
|
#24
|
|||
|
|||
Originally Posted by Renee
and what is the feild ID?
No members have liked this post.
|
#25
|
||||
|
||||
Look at the picture on the third column Name field6 that is the fieldID.
Now go in your admincp ==> User Profile Fields ==> User Profile Field Manager Look to your genderfield and copy your fieldID and replace all in the plugin.xml No members have liked this post.
|
#26
|
|||
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins> <plugin active="1" product="vBulletin"> <title>Gender Stats on Forumhome Statistics</title> <hookname>forumhome_complete</hookname> <phpcode><![CDATA[// Gender Stats on Forumhome Statistics $girls= $db->query_first(" SELECT COUNT( * ) as field6 FROM " . TABLE_PREFIX . "userfield WHERE field6 = 'Female' "); $allgirls = intval($girls[field6]); $boys= $db->query_first(" SELECT COUNT( * ) as field6 FROM " . TABLE_PREFIX . "userfield WHERE field6 = 'Male' "); $allboys = intval($boys[field6]); $zwitter= $db->query_first(" SELECT COUNT( * ) as field6 FROM " . TABLE_PREFIX . "userfield WHERE field6 = 'Undisclosed' "); $allzwitter = intval($zwitter[field6]); $gender= $db->query_first(" SELECT COUNT( * ) as field6 FROM " . TABLE_PREFIX . "userfield "); $allgender = intval($gender[field6]); $c_allgirls = ($allgender - $allboys - $allzwitter); $c_allboys = ($allgender - $allgirls - $allzwitter); $c_allzwitter = ($allgender - $allboys - $allgirls); $allgirls_prozent = @substr(100 * $allgirls / $allgender , 0, 5); $allboys_prozent = @substr(100 * $allboys / $allgender , 0, 5); $allzwitter_prozent = @substr(100 * $allzwitter / $allgender , 0, 5); $allgirls_picbar = $allgirls_prozent * 2; $allboys_picbar = $allboys_prozent * 2; $allzwitter_picbar = $allzwitter_prozent * 2;]]></phpcode> </plugin> </plugins> No members have liked this post.
|
#27
|
|||
|
|||
This plugin has a query for getting boys, another for getting girls, another for getting undisclosed and another for getting the total (!!)
![]() Why doing that? The total is the number of users which I think is already there for you to use it and the undisclosed is total users minus girls+boys! You don't need all these queries I think... No members have liked this post.
|
#28
|
||||
|
||||
Thanks great hack.
No members have liked this post.
|
#29
|
|||
|
|||
How can I get the female percentage on the forumhome to show only 2 decimals? Currently it is showing 3, whilst the other two show 2 decimals.
No members have liked this post.
|
#30
|
||||
|
||||
is there any way to show this on my vBadvanced portal page like a module?
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:19.