1
jporpilla
Need some help!
  • 2005/1/13 3:52

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


I still kept wondering that until now no one can still find a solution to this: https://xoops.org/modules/newbb/viewtopic.php?post_id=129999&topic_id=29772&forum=27#forumpost129999

2
jdseymour
Re: Need some help!

Well, is the link from the jp admin link like:

http://ursite.com/admin.php ??

If so if they do not have administrator rights they should be redirected.

3
jporpilla
Re: Need some help!
  • 2005/1/15 2:00

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


Yes your exactly right, then how can I redirected them? And how can I provide such user not to view that page w/o typing into the address bar the exact URL?

4
jporpilla
Re: Need some help!
  • 2005/1/28 6:23

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


<{if !$xoops_isadmin}>
Test A
<{/if}>
<{if $xoops_isadmin}>
testA Admin Panel
<{/if}>

I had a problem I create groups called Group1 & Group2 and 2 links on my menu which are "Group1 Admin Panel & Group2 Admin Panel, how can Group1 access only the page
"Group1 Admin Panel " & Group2 can access only "Group2 Admin Panel" ?


I had already encountered this same problem with jpco_12212
on the forum...
Anyone can help me?

5
m0nty
Re: Need some help!
  • 2005/1/28 6:33

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


without turning the page into a module itself and giving each admin group access to that module you can't..

the other way would require more hacking and editing to possibly retrieve what group the user is in 1st and then if he/she in 1 group they get that menu, if not they get the other..

the other way would be to create a 2nd isAdmin function ie $xoops_isAdmin2 which i did manage to do a while back when i was modifying 2.0.7.3, but that requires a lot more hacking of the core..

i can't think of any other ways of doing that without actually turning the pages u want to access into a XOOPS module..

6
m0nty
Re: Need some help!
  • 2005/1/28 6:38

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


or maybe u could create custom menu blocks, and for group 1, they see menu block 1 which has the link for admin 1 in it..

and group 2 menu has link for admin 2 page.. but just make it so those 2 groups see that menu and not the others..

of course if they type the url in itself they'll have access :|

7
jporpilla
Re: Need some help!
  • 2005/1/28 7:46

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


without turning the page into a module itself and giving each admin group access to that module you can't..

I don't know how to make it a module, can u help me please..


the other way would be to create a 2nd isAdmin function ie $xoops_isAdmin2 which i did manage to do a while back when i was modifying 2.0.7.3, but that requires a lot more hacking of the core..


Can u teach me how did u did it?Can I also create a 3rd and 4th admin with that?

Login

Who's Online

312 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits