PDA

View Full Version : [RELEASE vB2B3] Gender Hack 2.0


03-13-2001, 10:00 PM
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.

03-23-2001, 01:32 AM
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?

03-23-2001, 01:34 AM
worked fine in userinfo too.

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

03-23-2001, 01:54 AM
Had a quick read through and fixed it...

The part which says:

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:
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.

03-23-2001, 07:46 AM
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. :rolleyes:

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

ZIP updated. Bug fixed. Case closed. :)

03-28-2001, 02:24 AM
works great love it man, thanks!

ff92k
04-09-2001, 11:31 PM
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?

PeF
04-10-2001, 07:13 AM
Simply add new templates with names and contents as written in the documentation. :)

ff92k
04-10-2001, 10:27 AM
thats it :)
thanks you, done it!

MrLister
04-10-2001, 01:00 PM
just before i try it does it work in beta 5.

Kamui
04-10-2001, 09:30 PM
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.

Birdie501
04-30-2001, 01:46 PM
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

rickjansen105
04-30-2001, 04:06 PM
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... :)

PeF
04-30-2001, 06:27 PM
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.

rickjansen105
05-01-2001, 05:42 PM
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!!!

conan
05-01-2001, 06:38 PM
Even the option for a gay icon? lol That should be interesting :D:D:D

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.

maverick1236
05-22-2001, 02:06 AM
when i click submit after putting my gender in user cp-it doesnt update

snyx
05-22-2001, 04:30 AM
Can I please see a working update for vB 2.0 FINAL, PLEASE?!? :D

MicKeY R@t
05-22-2001, 07:43 AM
This was the line in step 11 in the readme.txt file:
Edit modifycoppa, registeradult and registercoppa the same way as modifyoptions
But I cant find these lines stated in the modifyoptions in the above 3 templates!:
<TR bgcolor="{firstaltcolor}">
<td><normalfont><b>Default Thread View:</b></normalfont></TD>

rickjansen105
05-22-2001, 03:16 PM
Originally posted by MicKeY R@t
This was the line in step 11 in the readme.txt file:
Edit modifycoppa, registeradult and registercoppa the same way as modifyoptions
But I cant find these lines stated in the modifyoptions in the above 3 templates!:
<TR bgcolor="#F1F1F1">
<td><normalfont><b>Default Thread View:</b></normalfont></TD>

what vbb version do you use???

maverick1236
05-22-2001, 09:56 PM
when i click submit after putting my gender in user cp-it doesnt update

MicKeY R@t
05-23-2001, 05:17 AM
I am using the vB version 2 rc3

MicKeY R@t
05-24-2001, 09:10 AM
can any1 plz help mi?

PeF
05-24-2001, 09:29 AM
I don't wanna repeat it all over again. I'm between jobs and I currently don't have time to rewrite those hacks. They'll be available within 14 days.

MicKeY R@t
05-24-2001, 09:56 AM
OMG :(

snyx
05-24-2001, 02:15 PM
Originally posted by PeF
I don't wanna repeat it all over again. I'm between jobs and I currently don't have time to rewrite those hacks. They'll be available within 14 days.
Thanks PeF, I understand, work comes before anything. Good luck man!

White Chocobo
05-24-2001, 08:26 PM
If you get the error message after you try to update info under Edit Options this is why. Go modify member.php file. If the line where you updated:
$DB_site->query("UPDATE user

Now if you're using vB 2 Final then just replacing the code, with the one in the readme, you will screw up the file, cause you've just removed some important stuff. Here what it should look like instead:
Replace This:
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',

With This:
startofweek='".addslashes($startofweek)."',gender='".addslashes($gender)."',options='$options',receivepm='$receivepm',

Sorry if you don't quite get it but this my first time modifing something on vB. So I'm a kinda a newbie. But the Hack did work for me check my forum. http://ffanitopia.maryginseng.com/forums/

White Chocobo
05-25-2001, 01:42 AM
Well this hacked seem to work. But it doesn't. Cause after you update the database it seems to reset your gender after a while. Which I find very weird. I think it's each time you logout or something it resets to the default.

pcmania
06-13-2001, 02:31 PM
Hi,

I tried to install this hack but when I try to add a new user to my database it is giving me this error:

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.:confused: :(

Any Ideas?

WEAPON
06-13-2001, 03:41 PM
^Same thing happened to me. I just uploaded my backup of register.php and acted like nothing happened.

Cold Steel
06-18-2001, 03:56 AM
Originally posted by snyx
Can I please see a working update for vB 2.0 FINAL, PLEASE?!? :D

What about for 2.0.1? :D

snyx
06-18-2001, 06:59 AM
Originally posted by Cold Steel


What about for 2.0.1? :D
I think thats implyed :rolleyes:

PeF
06-19-2001, 11:18 AM
I'm forced to say I have to leave this community for some time due to my new job and some projects I work for (and of course my personal life). This all means I won't be able to rewrite my hacks as promised so if anyone is interested in the rewrite, just go ahead. You'll find links to my old hacks in my signature.
I apologize for any inconveniences.

Jpp
06-21-2001, 01:26 PM
Got it installed and working, but how do i add an Admin option to change (or add) the already registered members gender??

teenfront
07-04-2001, 12:39 PM
any chance of someone rewriting this hack so it works with vbfinal in user profile? please

maverick1236
07-29-2001, 04:24 PM
Anyone?

illogicalx
08-06-2001, 12:30 PM
it was working in 2.0.1 good but when i change my forum to 2.0.3 it can't .

I made all the necessary changes in functions.php but nothing happened :( . can you help me in that hack.

snyx
08-06-2001, 01:00 PM
PeF has stopped supporting this hack so I don't see anyone who can help you?

White Chocobo
08-10-2001, 06:32 PM
Well there's gotta be some kinda vB hacker who wants to take a crack at this one! I need this hack to work for vB2.0.3. It was working perfectly on 2.0.1 and 2.0.2. Then BAM I get hit hard with it not working...But I did eventually get it working.

I suggest you modify these pages from 2.0.3 Register.php, and Memberlist.php. Those ones for sure you can modify I've done it. Then just use your old Showthread.php and Member.php from vb 2.0.1 or 2.0.2 and modify them as they should be.

Hope this helps you all.

maverick1236
08-10-2001, 08:07 PM
I would also love this hack;)

If anyone could finish it and wrap it up that would be GREAT!!!!:cool: :cool:

snyx
08-11-2001, 06:07 PM
whats the big deal? use mutt's hack ( http://www.vbulletin.com/forum/showthread.php?s=&threadid=21833 ) and just add a drop down menu asking if there Male or Female? The only features PeF has is that he has some cool little male/female icons.

snyx

illogicalx
08-11-2001, 06:59 PM
[QUOTE]Originally posted by snyx
whats the big deal? use mutt's hack ( http://www.vbulletin.com/forum/showthread.php?s=&threadid=21833 ) and just add a drop down menu asking if there Male or Female? The only features PeF has is that he has some cool little male/female icons.

snyx

Dunny
08-18-2001, 05:11 PM
Originally posted by conan
Even the option for a gay icon? lol That should be interesting :D:D:D



ok made 2 minor changes

male - female - gay - les
fixed a nicer layout in the profile


aint tested it, but should work

maverick1236
08-18-2001, 08:00 PM
in member php
line 1025
this has got to be the most frustrating hack on this board!!

Dunny
08-18-2001, 08:43 PM
Originally posted by Maverick1236
in member php
line 1025
this has got to be the most frustrating hack on this board!!

not sure mate just tried it and worked fine for me?

maverick1236
08-18-2001, 09:08 PM
me too-except for members.php

:(

maverick1236
08-19-2001, 12:20 AM
everything works-i just cannot get the gender images to show up?

my paths are correct

this hack doesnt like me:p

Neo
10-14-2001, 06:46 PM
their are 2 $templatesused in the showthread.php and i their are none of the other codes i need to chage in their..

TheComputerGuy
10-17-2001, 11:57 AM
I dont see where in showthread on 2.01 $templatesused...

is someone told us where if

($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

was we could get it working

TheComputerGuy
10-17-2001, 01:09 PM
I got it working, and well I am going to find some better pictures because those are just too large...

maverick1236
10-17-2001, 07:44 PM
congrats!!-could u please help us out?
tx!!:)

TheComputerGuy
10-17-2001, 07:54 PM
You must have the 2.01 showthread file or it will not work...simple as that...and it will work on 2.03 I am testing it out on my test board right now...and I am trying to change the girl to some +++++ name....so I am just customizing the little boxes...

Alien
10-17-2001, 10:29 PM
I'd like to install this after the updated code is posted from scratch for a 2.0.3 install...

Whenever anyone gets the chance. :D

Gamingforce
10-29-2001, 03:46 PM
This seems to be pretty simple hack but after much trying it does not work with vBulletin 2.0.3. Can anyone redo this hack or modify it for vBulletin 2.0.3? I am sure a lot other people around here want it as well =) Thanks!

Alien
11-06-2001, 02:24 PM
This could use a nice update for 2.2.0, it always seemed to be a bit quirky and not a clean install... Anyone?