Previous Thread
Next Thread
Print Thread
Rating: 10
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Mod Name / Version: Group Based Color and Title Change 1.0

Description: Makes it possible to set username color and title based on which groups the users are in.

Working Under: UBB.Threads 6.2

Mod Status: Beta

Any pre-requisites: none

Author(s): Gardener

Date: 05/12/03

Credits: coloradok5 for commissioning it.

Files Altered: /admin/dochangeugroup.php, /admin/massupdate.php

New Files: none

Database Altered: none

Info/Instructions: The group with the highest ID is the one that will be used if the users belong to more than one group.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
79929-groupbasedcolortitle.txt (0 Bytes, 125 downloads)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Cool Gardener.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thank you


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Soooo cool.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I might be using it myself as well, I already have the color updated by group sort of only it is set by a separate script when somebody has donated some money.

Hmm, come to think of it, I think this hack used in conjunction with my upcoming PayPal donation script would be quite nice. It would make it a bit easier to finish that script. =]

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
[]Gardener said:
Info/Instructions: The group with the highest ID is the one that will be used if the users belong to more than one group.[/]

Higest meaning highest actual group number? Or lowest number, as in oldest group?

i.e. I have 5 groups, if someone is a member of groups 3 and 5, I assume highest means that they would have the color and title set for group 5.

Thanks.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yes, that is correct, the one with the highest number (being the newest group) is the one that will be used.

Hmm. I just looked at the code to make sure it works the same in all places and it seems I've done an unnecessary loop in the massupdate script.

I'll take a closer look at it and update the mod if it is necessary.

Edit: Nope, the loop is needed. But it seems that when doing a massupdate and removing users from a group, the last group in the config array will be used instead of the one with the highest ID number. Will that be a problem?

Last edited by Gardener; 05/14/2003 3:47 PM.
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Nice mod Gardener Thanks.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Thanks for the info Gardener.

I just wanted the clarification so if the multiple group thing came up for me, I'd know for certain which it would show.

I'm thinking I might just add this one to my board, got a long laundry list of mods though... keep waiting on 6.3 final before I add anymore. LOL

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Will this work for 6.4?

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I don't know, haven't tried it yet. But apart from some possible differences in the code to look for I don't think there should be a problem.

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
can i uses this for 6.5?

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
bumpies... anybody help me out with this mod for 6.5 please.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
updated for 6.5


fixed the notes
Attachments

Last edited by scroungr; 04/26/2005 12:43 PM.
Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
thanks man i tried it and it didnt work

it said i had to edit /admin/massupdate.php but u gave no ref to it.

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
when i restored it i get these errors


Warning: Cannot modify header information - headers already sent by (output started at /home/66666/public_html/ubbthreads/includes/config.inc.php:142) in /home/666666/public_html/ubbthreads/ubbt.inc.php on line 622

Warning: Cannot modify header information - headers already sent by (output started at /home/66666/public_html/ubbthreads/includes/config.inc.php:142) in /home/66666/public_html/ubbthreads/ubbt.inc.php on line 622

Warning: Cannot modify header information - headers already sent by (output started at /home/66666/public_html/ubbthreads/includes/config.inc.php:142) in /home/66666/public_html/ubbthreads/ubbt.inc.php on line 326

Last edited by minto; 04/26/2005 4:52 AM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
there is no massupdate.php file in 6.5.. and you only have to alter the /admin/dochangeusergroups, /include/config.inc.php

looks as if you didn't restore the config.inc.php when you removed the changes.. go back into your config.inc.php and see whats up with it..

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
i did it looks fine :S

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
some weird stuff is happening. i had only just set up my forum and have 40 users but now it says msx 800 online at blah blahtime.... how the hell could this happen..

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
not with just this mod

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
nah i got it worked out i deleted 1 tomany lines jajaj all fixed now.

im to scared to try again ehhe.


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 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)