Results 1 to 15 of 54
Page 1 of 4
FirstFirst 1 2 3 ... LastLast

Thread: [RELEASE vB2B3] Gender Hack 2.0

Threaded View

  1. #1
    Senior Member PeF is on a distinguished road PeF's Avatar
    Join Date
    Oct 2000
    Location
    Prague, CZE
    Age
    32
    Posts
    768
    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.
    Last edited by PeF; Fri 23rd Mar '01 at 5:47am.
    Hacks:
    News Fader (vB 2.0) | Hidden Admin Options (vB 2.0) | Gender Hack (vB 2.0) | Auto Refresh (vB 2.0)
    >- Hello, are you there? >- Yes, who are you please? >- I'm Watt. >- What's your name? >- Watt's my name. >- Yes, what's your name? >- My name is John Watt. >- John what? >- Yes, are you Jones? >- No I'm Knott. >- Will you tell me your name then? >- Will Knott. >- Why not? >- My name is Knott. >- Not what? >- Not Watt, Knott. >- What?
     

  2. #2
    Member bombout is on a distinguished road
    Join Date
    Mar 2001
    Posts
    31
    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?
     

  3. #3
    Member bombout is on a distinguished road
    Join Date
    Mar 2001
    Posts
    31
    worked fine in userinfo too.

    just within the threads it seems to be a little weird.
     

  4. #4
    Member bombout is on a distinguished road
    Join Date
    Mar 2001
    Posts
    31
    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.
     

  5. #5
    Senior Member PeF is on a distinguished road PeF's Avatar
    Join Date
    Oct 2000
    Location
    Prague, CZE
    Age
    32
    Posts
    768
    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.
    Hacks:
    News Fader (vB 2.0) | Hidden Admin Options (vB 2.0) | Gender Hack (vB 2.0) | Auto Refresh (vB 2.0)
    >- Hello, are you there? >- Yes, who are you please? >- I'm Watt. >- What's your name? >- Watt's my name. >- Yes, what's your name? >- My name is John Watt. >- John what? >- Yes, are you Jones? >- No I'm Knott. >- Will you tell me your name then? >- Will Knott. >- Why not? >- My name is Knott. >- Not what? >- Not Watt, Knott. >- What?
     

  6. #6
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    works great love it man, thanks!
     

  7. #7
    Senior Member ff92k is on a distinguished road
    Join Date
    Mar 2001
    Posts
    245
    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?
    Not much of a sig is it?
     

  8. #8
    Senior Member PeF is on a distinguished road PeF's Avatar
    Join Date
    Oct 2000
    Location
    Prague, CZE
    Age
    32
    Posts
    768
    Simply add new templates with names and contents as written in the documentation.
    Hacks:
    News Fader (vB 2.0) | Hidden Admin Options (vB 2.0) | Gender Hack (vB 2.0) | Auto Refresh (vB 2.0)
    >- Hello, are you there? >- Yes, who are you please? >- I'm Watt. >- What's your name? >- Watt's my name. >- Yes, what's your name? >- My name is John Watt. >- John what? >- Yes, are you Jones? >- No I'm Knott. >- Will you tell me your name then? >- Will Knott. >- Why not? >- My name is Knott. >- Not what? >- Not Watt, Knott. >- What?
     

  9. #9
    Senior Member ff92k is on a distinguished road
    Join Date
    Mar 2001
    Posts
    245
    thats it
    thanks you, done it!
    Not much of a sig is it?
     

  10. #10
    Senior Member mrlister is on a distinguished road mrlister's Avatar
    Join Date
    Nov 2000
    Location
    Burnaby, BC
    Posts
    371
    just before i try it does it work in beta 5.
    - MrLister
     

  11. #11
    New Member Kamui is on a distinguished road Kamui's Avatar
    Join Date
    Dec 2000
    Location
    Washington
    Age
    23
    Posts
    7
    Yes, it works in every 2.0 beta. I couldn't find anything that needed to be modified for the new code, and it's installed on my forums.
     

  12. #12
    New Member Birdie501 is on a distinguished road
    Join Date
    Apr 2001
    Posts
    13

    Don't want it in User options!

    Hi,

    i just installed it in RC1! Everything works fine. Then i tried to change it from user options to user profile. But it doesn't work. Can somebody tell what to do if I want to have it the user profile?

    Thanks
    Regards
    Birdie501
    ------------------------------------------------
    My first hack: MySQL Database Backup/restore hack
     

  13. #13
    Member rickjansen105 has disabled reputation
    Join Date
    Oct 2000
    Location
    The Netherlands
    Posts
    67
    uhm, can you add one more option to it:?:?:

    Both

    that would be funny and cool...
    would love that for my forums...
    does it work with
    EVERY
    beta of vbb 2.0?
    (1-5 and RC1+RC2)

    thank you in advance...
     

  14. #14
    Senior Member PeF is on a distinguished road PeF's Avatar
    Join Date
    Oct 2000
    Location
    Prague, CZE
    Age
    32
    Posts
    768
    I'll try to make the options selectable using the admin control panel (so you'll be able to add as many options as you want to) as soon as the final version of vB is released.
    Hacks:
    News Fader (vB 2.0) | Hidden Admin Options (vB 2.0) | Gender Hack (vB 2.0) | Auto Refresh (vB 2.0)
    >- Hello, are you there? >- Yes, who are you please? >- I'm Watt. >- What's your name? >- Watt's my name. >- Yes, what's your name? >- My name is John Watt. >- John what? >- Yes, are you Jones? >- No I'm Knott. >- Will you tell me your name then? >- Will Knott. >- Why not? >- My name is Knott. >- Not what? >- Not Watt, Knott. >- What?
     

  15. #15
    Member rickjansen105 has disabled reputation
    Join Date
    Oct 2000
    Location
    The Netherlands
    Posts
    67
    Originally posted by PeF
    I'll try to make the options selectable using the admin control panel (so you'll be able to add as many options as you want to) as soon as the final version of vB is released.
    sounds cool!!!
     

Page 1 of 4
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. Gender Hack...anyone??
    By BIGMONAY2K in forum Chit Chat
    Replies: 4
    Last Post: Sat 5th Mar '05, 12:29am

Bookmarks

Posting Permissions

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