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)

Boofo 05-31-2002 06:38 AM

But do you have the complete hack for 2.2.5 that you can share with us? Apparently, there are some differences in it now. )

Lesane 05-31-2002 07:03 AM

I'm using 2.2.4 and it works perfectly, no modifications needed.

Boofo 05-31-2002 08:00 AM

The footer of your board says 2.2.2 (You might need to change that. :))

Quote:

Originally posted by Lesane
I'm using 2.2.4 and it works perfectly, no modifications needed.

Boofo 05-31-2002 08:12 AM

Is there a way to have it use text instead of images? Like Male, Female, N/A?

Lesane 05-31-2002 08:46 AM

Quote:

Originally posted by Boofo
The footer of your board says 2.2.2 (You might need to change that. :))


Ieek, i meant 2.2.2. I'm using 2.2.4 on my test board :lick:

Boofo 05-31-2002 09:57 AM

I got it installed and it is working great on 2.2.5. I changed the images to text instead, though. Thought it looked better. I put it in the private.php, also, so I could list it in the privmsg template, too. I need to find out if where I put it in private.php is ok or will it mess with anything else? I put this:

Code:

if ($post[gender] == "0") {
          $genderimage = "Not Sure";
        } elseif ($post[gender] == "1") {
          $genderimage = "Female";
        } elseif ($post[gender] == "2") {
          $genderimage = "Male";
        }

after this:

Code:

                if ($post[yahoo]!="") {
                        eval("\$post[yahooicon] = \"".gettemplate("yahoo")."\";");
                } else {
                        $post[yahoo]="";
                }


Bro_Joey_Gowdy 06-21-2002 11:17 PM

I done a clean install and I still get this error:

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE user SET birthday='1981-2-2',signature='',customtitle='0',usertitle='Adminis trator',email='joey@joeygowdy. com',parentemail='',coppauser='0',homepage='http://www.JoeyGowdy.com',icq='33001900',aim='princegowdy ',yahoo='Brother_Joey_Gowdy',u sergroupid='6', gender='2' WHERE userid='1'
mysql error: Unknown column 'gender' in 'field list'

mysql error number: 1054

Boofo 06-21-2002 11:22 PM

Did you run this query?

ALTER TABLE user ADD gender SMALLINT (6) not null

Bro_Joey_Gowdy 06-21-2002 11:29 PM

what does 'running queries' do ?

I do have phpmyadmin installed - but have never used it

Im useing vB 2.2.6

Boofo 06-21-2002 11:32 PM

It will make the entry into the database for storing the gender information. Without that, the hack will never work. :)

Quote:

Originally posted by Bro_Joey_Gowdy
what does 'running queries' do ?

I do have phpmyadmin installed - but have never used it



All times are GMT. The time now is 10:17 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.01623 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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