vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Gender Hack for vB 2.2.0 (https://vborg.vbsupport.ru/showthread.php?t=32241)

L-Mane 03-05-2003 12:47 AM

uppin

L-Mane 03-08-2003 11:26 PM

Anyone try this on the latest?

kuwaitsun 03-19-2003 08:17 PM

thanks
it works with my vb 228

mcyates 03-21-2003 05:19 PM

Working on V 2.3

sabret00the 03-26-2003 12:29 PM

had this installed for ages, just forgot to press install :nervous:

Weasel 04-03-2003 05:33 AM

On 2.3.0 getinfo does not work because $post is not defined in member.php therefore $post[gender] does not work, anyone know how to fix this?

Boofo 04-03-2003 05:40 AM

Quote:

Today at 01:33 AM Weasel said this in Post #86
On 2.3.0 getinfo does not work because $post is not defined in member.php therefore $post[gender] does not work, anyone know how to fix this?

Try $userinfo[gender]

Weasel 04-03-2003 05:42 AM

Quote:

Today at 12:40 AM Boofo said this in Post #87
Try $userinfo[gender]

Duh, silly me, and by the way you only have to change it if you use the template way instead of the hard coded way

asasi 04-04-2003 02:30 AM

Hi!
I have instaled this hack on my vb but it not working correctly...when a member change his gender too male or female when he come back to his profile it changed to unclosed (?)
plz help

Alien 04-14-2003 08:03 PM

This hack works perfectly in 2.3.0 except I cannot get it to show gender pic in the profile.

I tried the "fix" above, however that would not work. All it would display is "1" or "2" etc.. I want it to show the picture just like in the postbit and just like in the memberlist. Help! :D

Alien 04-14-2003 08:32 PM

BTW, I'm using the updated file from PHiXTiT earlier in this thread...

Alien 04-14-2003 08:34 PM

Got it fixed! Yay! :)

ogden2k 05-02-2003 08:57 PM

Quote:

01-10-02 at 04:30 PM Shenlong said this in Post #31
well these instructions are weird, dont got that code in my postbit so I guess no genderhack 4 me
Anyone have a fix for this?

NyCwill 05-12-2003 06:08 PM

Quote:

04-14-03 at 10:03 PM Alien said this in Post #90
This hack works perfectly in 2.3.0 except I cannot get it to show gender pic in the profile.

I tried the "fix" above, however that would not work. All it would display is "1" or "2" etc.. I want it to show the picture just like in the postbit and just like in the memberlist. Help! :D

how did u fix it??..... i have the same prob

Floris 05-13-2003 07:13 PM

I'd love to know how to fix it :)

And ..

How to make this option a required option during registration ?

thamyeuvn 05-14-2003 03:53 AM

Tested with vb2.2.6, good job apfeifer!

cYbercOsmOnauT 06-06-2003 10:59 PM

great!
/me clicks install.

subu1 06-12-2003 05:51 PM

thxx for this beautifull Hack i love ist, but can everybody tell my where I can find white or red gender gif's, because my Underground is verry dark.

greetz subu1 and thank you for your help. *click installs*

subu1 06-15-2003 05:53 AM

good morning friends,

in my version 2.2.8 the hack works perfekly, but by my Girlfriend version 2.2.6 i have an error in the memberlist. looks in my attachment.

Can everybody help me, i search for 4 hours but i can't find the problem

i hope you can see what i mean :surprised:

subu1 06-15-2003 05:55 AM

ok here gif's 1

subu1 06-15-2003 05:56 AM

and here gif's 2

have fun :bunny:

pgowder 08-18-2003 10:26 PM

I installed last night and something isn't working. I'm on version 2.2.8. It must be that my insert was different than the one in the instructions. Here is the error I am getting:

Quote:

Invalid SQL: INSERT INTO user (userid,username,password,email,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,last visit,lastactivity,usergroupid,timezoneoffset,emai lnotification,receivepm,emailonpm,options,birthday ,maxposts,startofweek,ipaddress,pmpopup,referrerid ,nosessionhash,avatarid,gender) VALUES (NULL,'guest1','f93d443d830d46e8f62da123ee607c09', 'calendar@powwows.com','','0','http://www.powwows.com','','aol','yahoo','','1','1','0',' Pow Wow Visitor','1061249068','1','-1','1061249068','1061249068','3','0','1','1','0',' 15','1970-1-1','-1','1','65.87.136.80','0','0','1','0','2')
mysql error: Column count doesn't match value count at row 1
Here is the part where the insert is done in register.php:

Quote:

$DB_site->query("INSERT INTO user (userid,username,password,email".$newstylefield."p arentemail,coppauser,homepage,icq,aim,yahoo,signat ure,adminemail,showemail,invisible,usertitle,joind ate,cookieuser,daysprune,lastvisit,lastactivity,us ergroupid,timezoneoffset,emailnotification,receive pm,emailonpm,options,birthday,maxposts,startofweek ,ipaddress,pmpopup,referrerid,nosessionhash,avatar id,gender) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes(md5($password))."','".addslashes(h tmlspecialchars($email))."',".$newstyleval."'".add slashes(htmlspecialchars($parentemail))."','$coppa user','".addslashes(htmlspecialchars($homepage))." ','".addslashes(htmlspecialchars($icq))."','".adds lashes(htmlspecialchars($aim))."','".addslashes(ht mlspecialchars($yahoo))."','".addslashes($signatur e)."','$adminemail','$showemail','$invisible','".a ddslashes($usertitle)."','".time()."','$cookieuser ','".addslashes($prunedays)."','".time()."','".tim e()."','$newusergroupid','".addslashes($timezoneof fset)."','$emailnotification','$receivepm','$email onpm','$options','".addslashes($birthday)."','".ad dslashes($umaxposts)."','".addslashes($startofweek )."','".addslashes($ipaddress)."','$pmpopup','".ad dslashes($testreferrerid['userid'])."','$nosessionhash','$avatarid','$gender')");
$userid=$DB_site->insert_id();
Thanks

TheComputerGuy 09-18-2003 11:51 AM

Does this hack work for vB 2.3.2?

VirtualHogwarts 11-30-2003 02:05 AM

/me clicks install! Works like a charm. EVEN ON vB 2.3.3

Oblivion Knight 12-23-2003 08:07 PM

Quote:

Originally Posted by Boofo
Try $userinfo[gender]

Using this instead of $post[gender] makes this mod work like a dream on 2.3.3.. :)

Oblivion Knight 01-08-2004 10:07 AM

To save yourself a couple of queries in showthread.php, it may be beneficial to do the following..

Find:

Code:

        $templatesused = 'postbit_search
Scroll to the end of this line and find ';
Add BEFORE that, this:

Code:

,gender_undisclosed,gender_female,gender_male
Find:

Code:

$templatesused = 'showthread_ratingdisplay
Scroll to the end of this line and find ';
Add BEFORE that, this:

Code:

,gender_undisclosed,gender_female,gender_male

brownafroduck 07-01-2004 05:17 PM

Its probably my fault anyways, but when people went to register, they couldn't. It gave a database error. However, when I went to revert to by just doing the hack in reverse, all my modifications looked correct to me. I am running a vB2.3.2.

ZiRu$ 08-01-2004 05:24 PM

Installed and working on 2.3.5 by using this file

https://vborg.vbsupport.ru/showpost....7&postcount=76


All times are GMT. The time now is 08:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01295 seconds
  • Memory Usage 1,780KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete