UBB.Dev
Posted By: Ziroc Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 12:43 AM
I have spent the last 8 hours looking through code, and still can't figure out how to add more that the default '20' user titles.

The only thing I saw was in vars_misc and this, in user_titles:

foreach my $posts (0 .. 99) {

But I don't think it has anything to do with user titles.. geez, Please help, this is one main mod I need redone.

Thanks, and Happy Holidays!!!
Posted By: Ziroc Re: Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 12:57 AM
Okay... I spoke too soon! I figured it out, so here is how you can do it as well:

Open:

cp2_common.pl (In the Templates dir)

search for:
---------------------------------------------

sub MakeComponentHTML_customtitles {
# Custom control: custom titles for user level. No options available.
my %args = (
value => {
0 => $vars_misc{JrMemberTitle},
31 => $vars_misc{MemberTitle}
},
available_titles => 20,
-----------------------------------------------

Change "20" on this line to whatever you want, then go into the CP and add away.

available_titles => 20,
Posted By: CTM Re: Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 1:28 AM
Actually I didn't know that chunk of code had moved... Thanks for the tip thumbsup
Posted By: RandyM Re: Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 1:50 AM
Ziroc, I have to tell how much I like your boards. Very, very clean and nice. At first they look like they're heavily modified but you've kept them simple and nice looking. Great job.

I'll bet it makes upgrades easier on the template side.
Posted By: Ziroc Re: Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 8:57 AM
Quote
Originally posted by RandyM:

Ziroc, I have to tell how much I like your boards. Very, very clean and nice. At first they look like they're heavily modified but you've kept them simple and nice looking. Great job.

I'll bet it makes upgrades easier on the template side.
Thanks Randy! Yeah, When I started out on v5 UBB, I added all the big mods and such, but now, with the later versions, all I really need are a few minor mods I usually also code myself (since I know where they are) laugh

They are:

1. Making the post/reply/edit/PM post window bigger
2. Increase smilies limits
3. Increase user rank limits

It DOES really help when upgrading! smile I can't wait to see v6.7 though!

**********

Alert-- that code I posted as a fix; well, it added the extra spaces in the user rank area in the CP, BUT, when you enter a rank, and fill it out, and submit, it doesn't write it to the file. UGH. Anyone have any ideas?

I'll keep poking around, there are a lot of changes this time. If anyone knows what we gotta do to correct this, let us know! wink I'll do the same!
Posted By: Ziroc Re: Unlimited User Ranks in ubb 6.6.1? Help! - 12/25/2003 10:43 AM
Ok, I figured it out! Here is what you gotta do:

1. Do what I said in the first post, and remember the number you use, because it needs to be the same in this other file:


2. Open up (cp2_vars.cgi) and search for:

"if changing this, also change the value a few lines below"

when you find it, change the number next to the above text to the same number as the above, and a few lines down, the same number as well.

Remember to use the same number as in the first file.

I tested this out, and it works perfect! Wee! smile
© UBB.Developers