Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by apfeifer apfeifer is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-07-2001 Last Update: Never Installs: 43
 
No support by the author.

This is basically the same as the Gender Hack for the earlier version, but made to work with 2.2.0. This is all my coding, but was not originally my idea. There are three new images that I made for this, and I may make alternate ones for those because they're kinda blah. Anyway, hope you like it.

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 06-21-2002, 11:45 PM
Bro_Joey_Gowdy's Avatar
Bro_Joey_Gowdy Bro_Joey_Gowdy is offline
 
Join Date: May 2002
Location: Hickory Flat MS 38633
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its working now, thanks for the help

Reply With Quote
  #63  
Old 06-21-2002, 11:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Enjoy!
Reply With Quote
  #64  
Old 07-12-2002, 08:01 AM
Mystislav's Avatar
Mystislav Mystislav is offline
 
Join Date: Jun 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #65  
Old 07-12-2002, 08:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #66  
Old 07-21-2002, 01:37 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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.
Reply With Quote
  #67  
Old 08-10-2002, 04:56 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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: ()

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...
Reply With Quote
  #68  
Old 08-11-2002, 06:23 AM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks!! great hack
Reply With Quote
  #69  
Old 08-11-2002, 04:47 PM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

how can I change that ?

Thanks,
Schorsch
Reply With Quote
  #70  
Old 08-31-2002, 10:06 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #71  
Old 08-31-2002, 10:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04769 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete