Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
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!!!

Sponsored Links
Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
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,

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Actually I didn't know that chunk of code had moved... Thanks for the tip thumbsup

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
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!

Sponsored Links
Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
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


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)