|
Joined: Feb 2000
Posts: 59
Member
|
Member
Joined: Feb 2000
Posts: 59 |
I know there has been a lot of talk and holler for an easier way to set default profile permissions into particular forums for large groups of people. UBBThreads does this, but UBBClassic has a different architecture which makes doing this largely impractical/impossible.
However, UBBClassic does allow Administrators to set individual profile permissions in the CP framework.
My question, is it possible that whenever a player is prompted to enter a Forum Password for entrance, upon entering the correct password, that person's profile permissions will be automatically set (as if the Admin had done it manually)? This would come as a windfall for UBB owners that have to painstakingly adjust profile permissions one-by-one for scores (hundreds) of members and/or forums and is *perhaps* a relatively easy workaround???
Of course, anyone knowing the Forum Password will be able to gain entrance, but that's the same as it is now, and it doesn't make sense to have to enter the Forum Password every login session. Furthermore, if a forum to be restricted to certain Usernames, then a Forum Password will not be used anyways and the CP can still do adjust permissions the old-fashioned way.
|
|
|
|
Joined: Feb 2000
Posts: 59
Member
|
Member
Joined: Feb 2000
Posts: 59 |
^BUMP^ Idle (or anyone)? can you help out a lost UBB soul again?
|
|
|
|
Joined: Sep 2001
Posts: 379
Member
|
Member
Joined: Sep 2001
Posts: 379 |
Woah, I just got up... Let me see, said John the blind. I'll have a look in a couple of minutes, or as soon as I've finished the 2 cups of coffee required to open they eyes.
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Quick and dirty. ubb_forum.cgi - find [/code]Underneath, insert:</pre></div></div>In ubb_lib.cgi, near the bottom, before "package UBB::CommonElements", insert:[code] This is quick, dirty, and totally untested. YMMV.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Feb 2000
Posts: 59
Member
|
Member
Joined: Feb 2000
Posts: 59 |
Hey, thanks for the fast response, but "quick, dirty, and totally untested?"...when you state it like that it makes me afraid to try it! Would you wager this be reasonably safe? Also, what little snippet of code do I add if I want just ONE profile NOT to be permanently modified when the Forum Password is entered; ie, if the user logs in with Username "Unknown" (and only that one), then entering the Forum Password just allows posting for that browser session as normat.
|
|
|
|
Joined: Feb 2000
Posts: 59
Member
|
Member
Joined: Feb 2000
Posts: 59 |
^bump^
What code do I add to NOT run the automatic profile permission change if the Username = "test"?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Ah, took the plunge then? The call to AddForumPermission just needs to be changed: [code][/code]
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Feb 2000
Posts: 59
Member
|
Member
Joined: Feb 2000
Posts: 59 |
Just tried it and it didn't work; I was granted session privilege to post to the Forum after entering the Forum Password, but profile permissions were not altered for future postings. Any ideas?
|
|
|
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.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|