Previous Thread
Next Thread
Print Thread
Rate Thread
#189751 01/08/2002 11:48 PM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
Does anyone know if their is a hack that allows users to display a image that shows the posters gender? That is public released of course.

I seen eXtremeTim use it on his board.

http://www.extremechatforums.com/ubb/ultimatebb.php?ubb=get_topic;f=12;t=000011

Look below the MSN image on the right side.

[ 01-08-2002 10:49 PM: Message edited by: Terminator_X ]

Sponsored Links
#189752 01/08/2002 11:54 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Uh-huh

Though you don't specify any version, it does exist. Try looking around next time


can't find peace of mind but every corner's got a mcdonalds?!
#189753 01/09/2002 12:02 AM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
I'm looking for one for v6.1.0.3

#189754 01/09/2002 4:40 AM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
You can grab Anime Loo's version at ubbdesing.com.

#189755 01/09/2002 8:47 PM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
Thanks.

Sponsored Links
#189756 01/11/2002 11:35 AM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
That script hack does not work. Was making errors left and right.

Anyway I just made my own script.

#189757 01/11/2002 5:08 PM
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
I couldn't get it to work either. Would you mind posting your version? (I'm on v6.1.0.)


"If you think it's perfect, I'll fix it." - me
#189758 01/11/2002 8:46 PM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
quote:
Originally posted by Eris:
I couldn't get it to work either. Would you mind posting your version? wink (I'm on v6.1.0.)



Sure, but it only been tested on v6.1.0.3. it should work for all 6.1x series.

Open public_topic_page.pl in your Templetes folder.

Find:

my $row = qq~

Add Above:

if ($user_profile[18] eq "male") {
$genderhack = qq(Male);
} elsif ($user_profile[18] eq "female") {
$genderhack = qq(Female);
} else {
$genderhack = "";
}

NOTE: The $user_profile[18] is for the 3rd empty field. For the first field replace with $user_profile[16]. For 2nd use $user_profile[17]. 4th use $user_profile[19].

FIND: (if you want it on right side of username)

$show_public_name

ADD BELOW:

$genderhack

FIND: (if you want it in user panel)

$direct_reply

ADD BELOW:

$genderhack

Upload male.gif and female.gif to your non-cgi folder.

Go to your CP and in the Reg. options, add "Gender: If you want your gender displayed type male or female."

Clear cache.

Done.

[ 01-11-2002 07:56 PM: Message edited by: Terminator_X ]

#189759 01/11/2002 11:35 PM
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
Rock! Thanks a lot! Looks like I will have to go get the extra fields hack first, though, 'cause I've managed to use original four all up. =)


"If you think it's perfect, I'll fix it." - me
#189760 01/12/2002 1:56 AM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
quote:
Originally posted by Eris:
Rock! Thanks a lot! Looks like I will have to go get the extra fields hack first, though, 'cause I've managed to use original four all up. =)



Make sure to edit $user_profile[18] to the correct field box.

Sponsored Links
#189761 01/12/2002 2:19 AM
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
Gotcha, and did that. =) Thanks again.

What I want it to do is to only show up on the public_display_profile (next to $user_public_name) after being "inputted" in either in public_reg, in public_edit, or in cp_whateveritis as the gender choice.

I know I've probably got this quite wrong, but I thought I'd post it 'just in case you happened to be interested in helping me out'.


In pub_reg/pub_edit, should the option look something like the following? (I can't get the following to be noticed is the problem... maybe I've just got the select written wrong? =/ )




And in public_display, should it look something like this? (I think I may have screwed this up too. =( )

if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "male")) {

print <
male
}

if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "female")) {

print <
female
}

THISFIELD

} # end field custom 7

[ 01-12-2002 01:20 AM: Message edited by: Eris ]


"If you think it's perfect, I'll fix it." - me
#189762 01/12/2002 11:53 AM
Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
Hmmm sorry I got lost with your code. I only know basic Perl.

#189763 01/12/2002 2:02 PM
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
Hm... sorry. =( Thanks anyway, though!

Anybody? Anybody?


"If you think it's perfect, I'll fix it." - me
#189764 01/13/2002 8:47 PM
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
Note: i think it would be better if you wordletize the M and F wordlets. making them $vars_wordlets_mods{'Female'} and $vars_wordlets_mods{'Male'} and adding in..:

q~Female~ => q~Female~,
q~Male~ => q~Male~,

to be added in the vars_wordlets_mods



And in public_display, it should look something like this..:

if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "male")) {
$sex_hack = qq~$vars_wordlets_mods{'Male'}~,
}

if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "female")) {
$sex_hack = qq~$vars_wordlets_mods{'Female'}~,
}

} # end field custom 7

and in the public_display_something.pl file you can include $sex_hack

and i think this must work

#189765 01/16/2002 4:10 PM
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
You're amazing! Thanks so much!
I'll give it a try very soon.


"If you think it's perfect, I'll fix it." - me

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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)