Previous Thread
Next Thread
Print Thread
Rate Thread
[6.7] [beta] Gender Hack
#202483 04/02/2004 5:13 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
Modification Name: Gender Hack

Author(s): Brett

Description: Adds a field in where a user can identify his/her own gender, to be displayed in the topic and profile

Demo: http://www.pavioni.com/cgi-bin/ubbcgi/ultimatebb.cgi/topic/1/1.html

Requirements: UBB 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00006378/Gender6.7.zip

Shoutouts: Gizzy for the gfx and inspiration laugh

1 member likes this: Gizmo
Sponsored Links
Re: [6.7] [beta] Gender Hack
#202484 04/02/2004 5:33 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
I make the GFX and force you to make it and no shouts? lol smile


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202485 04/03/2004 10:38 AM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
I get 2 Errors!

1. The hack will not safe the profilfield "68" at my user.cgi (00000001.cgi) at the members directory

2. When I klick at my name I get the following:

(RequireCodeNoINC) NonCGIPath/Templates/public_display_profile.pl: Global symbol "$gender_display" requires explicit package name at NonCGIPath/Templates/public_display_profile.pl line 214.
Compilation failed in require at CGIPath/ubb_lib.cgi line 930.

What can I do?

My Board:

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi


Webmaster of d-talk & Kabel-Forum.com
Re: [6.7] [beta] Gender Hack
#202486 04/04/2004 4:43 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
1) make sure you made the change in ubb_lib.cgi
$vars_config{'MaxMemFields'} = 43;

->

$vars_config{'MaxMemFields'} = 71;

(Make sure the modified ubb_lib.cgi is uploaded wink ).

2) The main thing is to make sure

my $profile_display = "";

appears above the added information in public_display_profile.pl. If this is added then tell me.

Re: [6.7] [beta] Gender Hack
#202487 04/04/2004 5:23 AM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
Hi Brett,

that the code at public_display_profile.pl

Code
$user_profile[7] ||= 0;
my $profile_display = "";
if($user_profile[68] eq '1' || $user_profile[68] eq '2') {
my $img = 'female.gif';
if($user_profile[68] eq '2') {$img = 'male.gif'}
$profile_display = qq!
<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
<b>$vars_wordlets_mods{'gender-_-title'}</b>
</font>
</td>
<td>
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
<img src="$vars_config{NonCGIURL}/$img" alt="$vars_wordlets_mods{'gender-_-opt_$user_profile[68]'}" />
</font>
</td>
</tr>!;
} # end gender
ubb_lib.cgi is correct I think


Webmaster of d-talk & Kabel-Forum.com
Sponsored Links
Re: [6.7] [beta] Gender Hack
#202488 04/04/2004 5:42 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
oh my, i just found the reason why it's giving you the error. Change $gender_display to $profile_display

you probably have ubb_lib correct, but could i have you just reupload it, just to make sure?

(Zip file updated per typo above)

Re: [6.7] [beta] Gender Hack
#202489 04/04/2004 6:56 AM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
Hehe, were can I find $gender_display??


Webmaster of d-talk & Kabel-Forum.com
Re: [6.7] [beta] Gender Hack
#202490 04/04/2004 7:04 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
Sorry, public_display_profile.pl wink

Re: [6.7] [beta] Gender Hack
#202491 04/04/2004 8:25 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Hey Brett, why not wordlet the locations of male.gif and female.gif so users can point them to other locations?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202492 04/04/2004 3:19 PM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
Hi Brett,

the profilpage now works, but if I go to my profile edit gender to male and safe nothing happends! It will not be safed, what can I do...


Webmaster of d-talk & Kabel-Forum.com
Sponsored Links
Re: [6.7] [beta] Gender Hack
#202493 04/04/2004 4:09 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
In ubb_profile.cgi

Instead of:
Code
######## 
# find #
########

&WriteMemberProfile($user_number, @user_profile);

#############
# add ABOVE #
#############

$user_profile[68] = $in{gender};
do

Code
###############################
# find THE SECOND INSTANCE OF #
###############################

&WriteMemberProfile($user_number, @user_profile);

#############
# add ABOVE #
#############

$user_profile[68] = $in{gender};

Re: [6.7] [beta] Gender Hack
#202494 04/05/2004 8:18 AM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
Thank you Ian! Now it works!


Webmaster of d-talk & Kabel-Forum.com
Re: [6.7] [beta] Gender Hack
#202495 04/05/2004 10:31 AM
Joined: Oct 2002
Posts: 394
Enthusiast
Offline
Enthusiast
Joined: Oct 2002
Posts: 394
would this work on 6.3.1.1?
I was looking for something like this.

Thank you

Re: [6.7] [beta] Gender Hack
#202496 04/05/2004 1:20 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
Originally posted by Felix 10:

would this work on 6.3.1.1?
I was looking for something like this.

Thank you

nope smile

Re: [6.7] [beta] Gender Hack
#202497 04/05/2004 1:25 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
upgrade wink ..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202498 04/06/2004 11:18 PM
Joined: Oct 2002
Posts: 394
Enthusiast
Offline
Enthusiast
Joined: Oct 2002
Posts: 394
I am afraid... smile is not the money. its all the modifications I have in there, scared sheetless** that I wont make them work again.

hey Ian, can you give it a try for 6.3.1.1 ?

Re: [6.7] [beta] Gender Hack
#202499 04/06/2004 11:19 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
where would I get a 6.3.1.1 zip without any violations of the license agreement.


smile Upgrade

Re: [6.7] [beta] Gender Hack
#202500 04/07/2004 2:28 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Ian, according to Ted, so long as you own a current license you can request back copies (according to what he told me on the last chat I was on)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202501 04/07/2004 4:28 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
s/current license/current member area subscription/ for a more accurate phrase.


UBB.classic: Love it or hate it, it was mine.
Re: [6.7] [beta] Gender Hack
#202502 04/07/2004 4:37 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Ok, so I'm right then? If you have a current member access sub you can request past versions from members?

I'm asking cas I was talkin to ted about acient versions and he said to ask on UBBDev :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202503 04/07/2004 7:21 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394

Re: [6.7] [beta] Gender Hack
#202504 04/07/2004 7:30 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
oooh! then I want 1.5 like LK!

Re: [6.7] [beta] Gender Hack
#202505 04/07/2004 7:33 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394
ya didn't even register frown

Re: [6.7] [beta] Gender Hack
#202506 04/07/2004 7:47 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
LK, can I have your 1.5 frown ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202507 04/12/2004 8:28 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Code
########################################################
###Open ubb_registration.cgi
########################################################

########
# find #
########

&WriteMemberProfile($next_number, @thismemarray);

##############
# add BEFORE #
##############

$thismearray[68] = $in{gender};
spews out an error for new registrations.

Also, I want to require this option through "Profile Settings" if I remove the option to select none, how would I go about this?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202508 04/12/2004 8:30 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Also, for some reason my gender won't show via my profile... care to take a look?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202509 04/12/2004 8:35 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
change it to $thismemarray[68]

MEM, not ME

<- made the mistake many times

Re: [6.7] [beta] Gender Hack
#202510 04/12/2004 8:45 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Well then, that solved the registration page error... Now why doesn't gender show in the profile?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202511 04/13/2004 1:23 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
Updated zip file on ubb_registeration typo.

Gizzy's issue was that, as Ian said earlier. The modification in ubb_profile, needs to go before the second WriteMemberProfile line.

Re: [6.7] [beta] Gender Hack
#202512 04/13/2004 2:09 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
yeh yeh, I figured since I DL'd the mod directly from your site today that it'd be updated wink ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] Gender Hack
#202513 10/19/2004 5:28 AM
Joined: Oct 2004
Posts: 1
GzR Offline
Junior Member
Offline
Junior Member
Joined: Oct 2004
Posts: 1
Hi,
would this work on 6.7.2?

Regards
GzR

Re: [6.7] [beta] Gender Hack
#202514 10/19/2004 5:57 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Any 6.7 mod should work just fine on its bugfix releases (6.7.0-6.7.2)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,543
Posts293,776
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 328
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 5
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 39
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200802.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.096s Queries: 79 (0.041s) Memory: 3.5424 MB (Peak: 3.9058 MB) Data Comp: Zlib Server Time: 2020-08-06 01:36:58 UTC
Valid HTML 5 and Valid CSS