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
  #72  
Old 08-31-2002, 10: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

Where do you see anything about the showthread.php in the gender hack?

Quote:
Originally posted by assassingod
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
  #73  
Old 09-05-2002, 04:34 AM
clouds_kid's Avatar
clouds_kid clouds_kid is offline
 
Join Date: Mar 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work on 2.2.7?
Reply With Quote
  #74  
Old 09-05-2002, 05:25 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm on 2.2.7.
Installation was very easy...
Thanx.

[high]* Minifreunde klicks install!![/high]
Reply With Quote
  #75  
Old 09-07-2002, 03:50 PM
PHiXTiT PHiXTiT is offline
 
Join Date: Sep 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on 2.2.7
Reply With Quote
  #76  
Old 09-07-2002, 04:43 PM
PHiXTiT PHiXTiT is offline
 
Join Date: Sep 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Simon Moon
Hi everyone. Great hack, but i think it needs some more treatment... Hardcodeing the images is not a very usable idea, therefore, use templates.

Add 3 templates
gender_male:
&nbsp;<img src="images/male.gif" border="0">

gender_female:
&nbsp;<img src="images/female.gif" border="0">

gender_undiscloed:
&nbsp;<img src="images/questionmark.gif" border="0">


If you want to change this part now ever, just change these 3 templates. Now to the modifications you need to do for them to work properly with the page.

IMPORTANT for the part below: Everything stays the same in the 3 files, EXCEPT $post[gender]. Justtake a good look and replace the coresponding code... it aint that hard

Wherever the instructions tol you to put in this code:
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">";
        } 
Put now in this one:
PHP Code:
      if ($post[gender] == "0") {
         eval(
"\$genderimage = "".gettemplate("gender_undisclosed")."";");
      } elseif (
$post[gender] == "1") {
         eval(
"\$genderimage = "".gettemplate("gender_female")."";");
      } elseif (
$post[gender] == "2") {
         eval(
"\$genderimage = "".gettemplate("gender_male")."";");
      } 
This has to be done in these files: admin/functions.php member.php memberlist.php

Now 2 more steps and we have it.
in member.php search for
PHP Code:
if ($action=="getinfo") {
  
$templatesused "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo"
change the second part to this:
PHP Code:
$templatesused "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo,gender_male,gender_female,gender_undisclosed"
If you have some hacks that might need here more, just take a look at the end. Its just 3 names added.

Now change in memberlist.php the 4th line, and add there also the three templates. If you have no other hacks it could look like this:
PHP Code:
$templatesused "memberlist_letterselected,memberlist_letter,postbit_search,postbit_useremail,icq,aim,yahoo,postbit_homepage,postbit_sendpm,postbit_profile,memberlistbit,memberlist,memberlistsearch,gender_male,gender_female,gender_undisclosed"
Thats it, its now template based. The fun with templates is that you change a tamplte and you change the places where you added it. Thats why i missed this function in the hack, because i felt like trying around a bit with the images and other images and it sucked to make the changes all the time to the code.

Thanks for the great hack!!!
Just thought that i would point out that the 3rd template undisclosed is spell wrong. It is missing the s

Thanks.
Reply With Quote
  #77  
Old 09-07-2002, 06:35 PM
PHiXTiT PHiXTiT is offline
 
Join Date: Sep 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have noticed that this hack is chopped up all over the threads so I took the liberty to compose all of the additions and update this hack. I have tested this on vB2.2.7 and it is fully functional.

All credit to the original hacker.

I will attach the new updated file:
Reply With Quote
  #78  
Old 10-03-2002, 05:29 PM
nbb nbb is offline
 
Join Date: Jul 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great thing, thank you!! Works fine with 2.2.8!

Two questions:

1) how do I have to modify if I want to force the users to decide if they are male or female? (i.e. no undisclosed possible)

2) how can I make this required? Same procedure like with required birthdate?

Can anybody help?
Reply With Quote
  #79  
Old 12-06-2002, 05:58 PM
Xer Xer is offline
 
Join Date: May 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working on 2.2.9
Reply With Quote
  #80  
Old 01-18-2003, 02:41 AM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well everything went good on my 2.2.9 but I lost my edit sig option in the user profile?
Reply With Quote
  #81  
Old 03-02-2003, 09:23 PM
L-Mane L-Mane is offline
 
Join Date: Jul 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 2.30 because I am getting a buncha coding errors on the profile pages.
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 05:37 AM.


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.04771 seconds
  • Memory Usage 2,338KB
  • 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
  • (7)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