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)

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 06:57 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.04041 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)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
  • (8)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