Previous Thread
Next Thread
Print Thread
Rate Thread
#202483 04/02/2004 5:13 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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
#202484 04/02/2004 5:33 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202485 04/03/2004 10:38 AM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
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
#202486 04/04/2004 4:43 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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.

#202487 04/04/2004 5:23 AM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
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
#202488 04/04/2004 5:42 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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)

#202489 04/04/2004 6:56 AM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hehe, were can I find $gender_display??


Webmaster of d-talk & Kabel-Forum.com
#202490 04/04/2004 7:04 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Sorry, public_display_profile.pl wink

#202491 04/04/2004 8:25 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202492 04/04/2004 3:19 PM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
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
#202493 04/04/2004 4:09 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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};

#202494 04/05/2004 8:18 AM
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Thank you Ian! Now it works!


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

Thank you

#202496 04/05/2004 1:20 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

#202497 04/05/2004 1:25 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202498 04/06/2004 11:18 PM
Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
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 ?

#202499 04/06/2004 11:19 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

#202500 04/07/2004 2:28 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202501 04/07/2004 4:28 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
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.
#202502 04/07/2004 4:37 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202503 04/07/2004 7:21 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394

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

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

#202506 04/07/2004 7:47 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202507 04/12/2004 8:28 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202508 04/12/2004 8:30 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202509 04/12/2004 8:35 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
change it to $thismemarray[68]

MEM, not ME

<- made the mistake many times

#202510 04/12/2004 8:45 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202511 04/13/2004 1:23 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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.

#202512 04/13/2004 2:09 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202513 10/19/2004 5:28 AM
Joined: Oct 2004
Posts: 1
GzR Offline
Junior Member
Junior Member
Offline
Joined: Oct 2004
Posts: 1
Hi,
would this work on 6.7.2?

Regards
GzR

#202514 10/19/2004 5:57 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, 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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)