Announcement

Collapse
No announcement yet.

[RELEASE vB2B3] Gender Hack 2.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [RELEASE vB2B3] Gender Hack 2.0

    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, 1:47am.

  • #2
    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?

    Comment


    • #3
      worked fine in userinfo too.

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

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment


          • #6
            works great love it man, thanks!
            MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

            Comment


            • #7
              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?

              Comment


              • #8
                Simply add new templates with names and contents as written in the documentation.

                Comment


                • #9
                  thats it
                  thanks you, done it!

                  Comment


                  • #10
                    just before i try it does it work in beta 5.
                    - MrLister

                    Comment


                    • #11
                      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.
                      *insert signature here*

                      Comment


                      • #12
                        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

                        Comment


                        • #13
                          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...
                          :D:):p:rolleyes::cool:

                          Comment


                          • #14
                            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.

                            Comment


                            • #15
                              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!!!
                              :D:):p:rolleyes::cool:

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X