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)

Bro_Joey_Gowdy 06-21-2002 11:45 PM

Its working now, thanks for the help

:)

Boofo 06-21-2002 11:50 PM

Great! Enjoy! :)

Mystislav 07-12-2002 08:01 AM

Damn... I'm doing it on 2.2.6 and there is'nt even a

### Go to Templates -> Modify -> [expand list] -> User Info Display Templates [expand] -> getinfo

:(... what do I do now?

Boofo 07-12-2002 08:20 AM

Yes you do have a getinfo template. :)

Quote:

Originally posted by Mystislav
Damn... I'm doing it on 2.2.6 and there is'nt even a

### Go to Templates -> Modify -> [expand list] -> User Info Display Templates [expand] -> getinfo

:(... what do I do now?


Martin64 07-21-2002 01:37 PM

[high]* Martin64 clicks install
[/high]
[high]* Martin64 thinks with great hacks such as this one there's no need to create my own ones
[/high]
[high]* Martin64 looks at own gender hack and laughs.
[/high]

Thanks, nicely done. :)

FlyingDutchman 08-10-2002 04:56 PM

THANKS MAN! this hack is GREAT!!! :) works perfect with vb 2.2.6...

I've added another variable, $gendername which will say, instead of the image, either Undisclosed, Female or Male...
I'll post it here immediatly for anyone who wants it: (:D)

instead of putting this:
PHP Code:

                if ($post[gender] == "0") {
                        
$genderimage "&nbsp;<img src=\"images/questionmark.gif\" border=\"0\">";
                } elseif (
$post[gender] == "1") {
                        
$genderimage "&nbsp;<img src=\"images/female.gif\" border=\"0\">";
                } elseif (
$post[gender] == "2") {
                        
$genderimage "&nbsp;<img src=\"images/male.gif\" border=\"0\">";


into the 3 files (memberlist.php, member.php, admin/functions.php), insert this:
PHP Code:

                if ($post[gender] == "0") {
                        
$genderimage "&nbsp;<img src=\"images/questionmark.gif\" border=\"0\">";
                        
$gendername "Undisclosed";
                } elseif (
$post[gender] == "1") {
                        
$genderimage "&nbsp;<img src=\"images/female.gif\" border=\"0\">";
                        
$gendername "Female";
                } elseif (
$post[gender] == "2") {
                        
$genderimage "&nbsp;<img src=\"images/male.gif\" border=\"0\">";
                        
$gendername "Male";
                } 

now, just put $gendername in any template you wish to insert the gender's name...

example, in postbit template, search for:
PHP Code:

<smallfont>$post[usertitle]</smallfont><br>
    
$post[avatar]<p>
    <
smallfont

immediatly AFTER that, add:
PHP Code:

Gender$gendername [$genderimage]<br

you'll see the user's gender now, just above the 'Registered: registration date here' part...

Schorsch 08-11-2002 06:23 AM

thanks!! great hack :)

Schorsch 08-11-2002 04:47 PM

you can't change the gender in the admin cp for the user!

how can I change that ?

Thanks,
Schorsch

assassingod 08-31-2002 10:06 AM

Help! Im using 2.2.7, and there doesnt seem to be this code in showthread:

PHP Code:

    if ($post['receivepm'] and $enablepms==1) {
      eval(
"\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
    } else {
      
$post[pmlink] = "";
    } 

Or this code:

PHP Code:

    $post[profile]="";
    
$post[email]="";
    
$post[useremail]="";
    
$post[icqicon]="";
    
$post[aimicon]="";
    
$post[yahooicon]="";
    
$post[homepage]="";
    
$post[findposts]="";
    
$post[signature]="";
    
$onlinestatus=""

Anyonegot any ideas??:(

Boofo 08-31-2002 10:14 AM

I have this hack installed and I can change it under the user options in the admin cp just fine. Do you show a setting for it there?

Quote:

Originally posted by Schorsch
you can't change the gender in the admin cp for the user!

how can I change that ?


Thanks,
Schorsch



All times are GMT. The time now is 06:36 AM.

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.01206 seconds
  • Memory Usage 1,760KB
  • 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
  • (6)bbcode_php_printable
  • (2)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