php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#180809 - 02/24/03 10:00 AM Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Is there a way to grant access to somebody, Moderator or not to the CP NewsFader settings ONLY?
Or, can I assign a Moderator Only for that function?

There are a few people willing update the NewsFader faster that me every morning but obviously I would not want them to have access to the whole CP.

Thank you
Felix

URL
UBB.classicTM 6.3.1.1

Top
#180810 - 02/24/03 02:10 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
I may be completely wrong. laugh Try this:

Find (in cp_common.pl):

Code:
[/code]and replace that with:

 [code]
OR

[code][/code]smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180811 - 02/24/03 02:22 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Hmm...Now when I think about it you may need to move the News Fader code. With the replaced News Fader code move it after this (code may not match completely):

[code][/code]
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180812 - 02/24/03 02:50 PM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Thanks Prime. I will try it home tonight. What is all this supposed to do? Enable any member to update news or entitle a Moderator for NewsFader only?

Top
#180813 - 02/24/03 03:03 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Moderators only. smile I'm sure you can add specific members too with the "$membernumber" or "$pubname".
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180814 - 02/24/03 03:53 PM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Prime, I dont get it, sorry?

Why would I give to a Moderator special permission to access NewsFader settings when he/she already have access to the whole CP?

I was interested in setting up just a member with this task, we dont have any moderators, this is a small community.

Thank you

Top
#180815 - 02/24/03 04:40 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Hehe...I edited the files so that no one (including moderators) have access to the CP except for an admin. I guess the code won't work in your case. laugh

Let me look at it again...
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180816 - 02/24/03 05:44 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Sigh...I suck. tipsy

I seem to be missing a code or a whole bunch of codes here. So...The only option I can think of now is - and this is a bit unorthodox - is to:

- Create a new forum (name doesn't matter).
- Turn off the forum.
- Add the member you want to have access to the News Fader as a moderator for the forum you've just created.

---------------

Now add the code I gave you in the cp_common.pl file. After you place the code, whenever you find this code (from lines 22 - 260 and excluding the News Fader code):

Code:
[/code]replace it with this:

 [code]
Now only the member will be able to access the News Fader and nothing else in your CP.

It's rather unorthodox but unless I figure out how to grant access to any member specified or someone else is able to help you this is your best option for now.
laugh
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180817 - 02/24/03 09:26 PM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Quote:
quote:
Originally posted by PrimeTime:
Hehe...I edited the files so that no one (including moderators) have access to the CP except for an admin. I guess the code won't work in your case. laugh

Let me look at it again...
Prime, all this is a little confusing for me.

My forum does not need Moderators. We behave very nice smile no need for editing nor deleting posts. I dont want to name a Moderator, it would be just a useless title among friends, I dont want to do that, I want to give acceess to a few members/friends to the NewsFader to add news everyday, whoever wakes up first:)

Can you tell me clearly what to do?
Thank you my friend. smile

Felix

Top
#180818 - 02/24/03 10:01 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Err...I think you've missed my point. tipsy
Anyway, I haven't figured out how to give (selected) members access to the CP...Not yet anyway. I seem to be missing a "key" code somewhere.

**For anyone else who is reading this I'm playing around with "userStatus & $status", "pubname & $pubname", "username & $username", "user_number & $user_number" and "var" in a few UBB files.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180819 - 02/25/03 02:05 AM Re: Restricted CP Access
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5132
Loc: Portland, OR, USA
Prime, have you checked in cp_lib.cgi? In my Moderator Lockout modification I found a few calls in the cp_lib.cgi and wanted to be sure that everything would be locked down, you may need to add something to allow a moderator to update news.

I don't know 110% if you'd need to do this, but hey its just helpful criticism...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#180820 - 02/25/03 02:29 AM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Yup...cp_lib.cgi was one of the files I've looked into. I'm able to grant access to the moderators but Felix wanted specific members. That has been kinda tricky for me.

Initially I thought only the cp.cgi and cp_common.pl files needed to be edited...And maybe it does. Well, so far I haven't found a way. I think if I tinker with it long enough I'll get it but not something I'll use since no one is allowed to access the CP.

Thanks Gizzy for the suggestion...I'll take a look at cp_lib.cgi again. smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180821 - 02/25/03 12:28 PM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Prime, I didnt want you go through so much trouble, unless you like tha challange....

Tell me, just a thought, could you use anything from the Calendar? That script allows everybody to add posts, maybe if you work backwards allowing everybody and then go and restrict most of them? I dont know, I am just trying to help, I feel bad for putting this bug into your head...

Top
#180822 - 02/25/03 02:59 PM Re: Restricted CP Access
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
why not read it by user number instead of status?

cp.cgi:
if(($ubb eq 'vars_news_fader') && ($status eq 'Administrator)) {

to

if(($ubb eq 'vars_news_fader') && ($status eq 'Administrator || $admin_number eq 'usernumber' || $admin_number eq 'anotheruser')) {

(same for set_vars_news_fader too)

and then something similar to cp_common.pl.

BTW, if you choose this method, you'll have to change line 250 or so on cp.cgi. "if ($is_one ne 'true') {" to like

if ($is_one ne 'true' && ($admin_number ne 'goodnumber' || $admin_number ne 'another')) {

just a thought...

Top
#180823 - 02/25/03 03:38 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Quote:
quote:
Originally posted by Brett:
why not read it by user number instead of status?
I've never thought about the "$admin_number" as I was focusing on "$user_number" which didn't work obviously. I assumed the "$admin_number" was strictly for users with a status of an administrator.

Now even if I get it so cp.cgi will allow a specific user's number access that will leave cp_common.pl. I'll try something like:

var admin_number = $admin_number

Thanks Brett. smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180824 - 02/25/03 03:44 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Quote:
quote:
Originally posted by Felix 10:
Prime, I didnt want you go through so much trouble, unless you like tha challange....
Actually, I think it's easier to allow everyone to have access than selecting a few and will be more work.

Anyway, it's a learning curve for me as well.... wink
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180825 - 02/25/03 09:24 PM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Ahh...Ok. I think this will work. Using the "$admin_number" instead of "$username" or "$pubname" (in cp.cgi) suggested by Brett worked. I then added a few more codes in "cp_common.p" and tested it.

This will allow only one user to have access to the NewsFader via CP.

Click Here 4 Text File

Thanks again Brett...I didn't need to add the code for line 250 in cp.cgi, only the two for NewsFader. thumbsup

If you want more members to have access let me know Felix. Good luck! smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180826 - 02/26/03 09:03 AM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Prime, I will try this today, I will keep you posted.

While at it, can you add 3 more numabers, just in case. Maybe my site will grow one day and if I have to add more "News Anchors" I wont have to play with the files anymore other than just change 2 digits.

Thank you

Top
#180827 - 02/27/03 02:01 AM Re: Restricted CP Access
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Here you go...3 selected users.

Click Here 4 Text File

smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#180828 - 02/27/03 09:41 AM Re: Restricted CP Access
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Hi Prime

It doesnt work. First of all I lost the NewsFader Worldlet so I cant even log into the Fader settings. I have to use this link

http://www.romanianational.com/cgi-bin/cp.cgi?ubb=vars_news_fader&r=XDB4BZ

which will ask user designed as News Editor will prompt for Admin name and pass. For admin will work though.
I logged as a test member set up to get newsfader access and I get the same login screen

here, you try it for yourself. URL
login name and pass: test

thank you
Felix

Top
Page 1 of 3 1 2 3 >


Moderator:  Gizmo 
Who's Online
2 registered (AllenAyres, blaaskaak), 19 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Spell Check [beta]
by AllenAyres
12/01/08 09:32 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25449
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks