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 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-13-2001 Last Update: Never Installs: 1
 
No support by the author.

Description:
This hack will show a little graphical icon representing a gender of a user. This icon will also be shown in the memberlist and in the member profile. User may select Unknown, Male and Female.

vBulletin versions supported:
2.0 Beta 3

Files to edit:
register.php, member.php, memberlist.php, showthread.php

Templates to modify:
8 - registeradult, registercoppa, modifyoptions, modifycoppa, postbit, memberlist, memberlistbit, getinfo

Number of new queries:
0

Number of new templates:
3

Size:
2,70KB

Demo:
N/A

Known bugs and issues:
None

Instructions:
Included in the attached ZIP file.

Show Your Support

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

Comments
  #2  
Old 03-23-2001, 01:32 AM
Guest
 
Posts: n/a
Default

Installed. And it shows the genders fine within the MEMBERLIST, but within the posts it just shows everyone as the gender you have seleted in your profile.

Any Ideas on Why This Happened?
Reply With Quote
  #3  
Old 03-23-2001, 01:34 AM
Guest
 
Posts: n/a
Default

worked fine in userinfo too.

just within the threads it seems to be a little weird.
Reply With Quote
  #4  
Old 03-23-2001, 01:54 AM
Guest
 
Posts: n/a
Default

Had a quick read through and fixed it...

The part which says:
Code:
3. showthread.php
************************************************

    // Gender Hack
    if ($bbuserinfo[gender]==-1) {
      eval("\$gender = \"".gettemplate("postbit_gender_unknown")."\";");
    } 
    else if ($bbuserinfo[gender]==1) {
      eval("\$gender = \"".gettemplate("postbit_gender_male")."\";");
    }
    else if ($bbuserinfo[gender]==2) {
      eval("\$gender = \"".gettemplate("postbit_gender_female")."\";");
    }
    // Gender Hack End
Should be changed to:
Code:
3. showthread.php
************************************************

    // Gender Hack
    if ($userinfo[gender]==-1) {
      eval("\$gender = \"".gettemplate("postbit_gender_unknown")."\";");
    } 
    else if ($userinfo[gender]==1) {
      eval("\$gender = \"".gettemplate("postbit_gender_male")."\";");
    }
    else if ($userinfo[gender]==2) {
      eval("\$gender = \"".gettemplate("postbit_gender_female")."\";");
    }
    // Gender Hack End
Hope this helps people.
Reply With Quote
  #5  
Old 03-23-2001, 07:46 AM
Guest
 
Posts: n/a
Default

You're right. The problem was in readme.txt which was used from another hack I made and I accidentaly left those two bb before userinfo.

Thanks for the head up and I apologize for the bug.

ZIP updated. Bug fixed. Case closed.
Reply With Quote
  #6  
Old 03-28-2001, 02:24 AM
Guest
 
Posts: n/a
Default

works great love it man, thanks!
Reply With Quote
  #7  
Old 04-09-2001, 11:31 PM
ff92k
Guest
 
Posts: n/a
Default

i know this might sound stupid...but im a begginer. Where are the templates found? I got down to the bit that said "new template" and i dont know where that is...help?
Reply With Quote
  #8  
Old 04-10-2001, 07:13 AM
PeF
Guest
 
Posts: n/a
Default

Simply add new templates with names and contents as written in the documentation.
Reply With Quote
  #9  
Old 04-10-2001, 10:27 AM
ff92k
Guest
 
Posts: n/a
Default

thats it
thanks you, done it!
Reply With Quote
  #10  
Old 04-10-2001, 01:00 PM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just before i try it does it work in beta 5.
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 02:32 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.04247 seconds
  • Memory Usage 2,273KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_onlinestatus
  • (10)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete