1
tamerlo
2.0.9.2 problem in user menu.
  • 2005/1/7 16:55

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


When I upgrade my XOOPS site to 2.0.7.3 version see that if an user is in a group with administration's perms on some modules the link "administration menu" is not showed.
This problem exist also in 2.0.9.2; in any case the bug seem partially solved: now user can use link http://www.site.dom/admin.php, but a bug exist... or is only in my xoops?

guido

2
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 5:01

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


For what it's worth, I'm having the same problem. I have updated all modules, rebuilt all templates, resaved pertinent blocks, and still have no administration menu.

Your work-around is pretty good. I'm starting to look at the code to see if I can figure anything out, but I'm still at a loss.

Any help would be wonderful....

(30 minutes later)

After some further research, I found the following:

The system doesn't think my admins are valid. I went to the xoops_user_block and eliminated the "if" statement (if $xoops_isadmin), which displayed the administration menu. However, when I selected it under that ID, I still didn't have permission to the admin area.

I've added a test user to every group in my site, including "webmasters" but still don't have the admin privilege.

Ideas?

3
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 6:02

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


An update on the server:

Apache 1.3.31
MySQL 4.0.21-max-log
PHP 4.3.10

FWIW, I'm also running Newbb 2.

4
jegelstaff
Re: 2.0.9.2 problem in user menu.

This sounds very similar to a bug reported in 2.0.7 here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1014403&group_id=41586&atid=430840

I think they thought that was fixed. I suggest posting another bug report, or a followup to that one above. Check to see if the Admin menu entry is present but just contains no text, or whether that menu entry is just completely gone. If it is present but has no text, then it's definitely the same symptom as that bug above.

--Julian

5
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 6:17

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


Julian, thanks for the suggestion:

I did check to see if the reference was there, but it's not; it's completely gone.

I did already open a bug report on SourceForge; my hope was that one of our brilliant coders here might be able to see what's going on.

Thanks again.

6
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 19:49

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


A further update (this is also going to Sourceforge):

I have a new install on my test web server:

Fedora Core 3
Apache 2.0.52-3.1
MySQL 3.23.58-14
PHP 4.3.10-3.2

I created an admin group, added a dummy user there. Still doesn't work. This was not an upgrade, but a fresh install.


I'd still appreciate any ideas.

7
m0nty
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 20:09

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


answer to your prayers ;)

follow this thread:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=29019&forum=7&post_id=131927#forumpost131927

note: make sure you have put the 'if' statement back in to your template if u removed it when tryin to make it work..

8
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 20:15

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


m0nty:

Thanks for the idea; I saw it, and that's where my idea for getting the menu fixed came from. Eliminating the "if" forces the menu display for all users.

However, while it does force it to display for all users, it still doesn't allow that user into the admin area (no permission).

It appears that $xoops_isadmin is broken, to me.

I've never delved into the XOOPS code before; it looks like the IsAdmin function in users.php may be broken...

(But what do I know?)

Still open to more ideas!

9
m0nty
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 20:22

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


removing it from the template will show it for all users.. but if u edit the php code like i mention in that thread and not touch the template, it does actually work..

*EDIT* well i tried this on mine and it still didn't show for some reason.. altho it worked on a couple other sites i did it with..

but the admin.php method works..

10
arpboy
Re: 2.0.9.2 problem in user menu.
  • 2005/1/27 20:46

  • arpboy

  • Just popping in

  • Posts: 46

  • Since: 2004/9/7 4


Whoops, I was one post off. Thanks for setting me straight.

However, my user_blocks doesn't have that construct. Here's what I have:

Quote:


global $xoopsUser;
if (is_object($xoopsUser)) {
$pm_handler =& xoops_gethandler('privmessage');
$block = array();
$block['lang_youraccount'] = _MB_SYSTEM_VACNT;
$block['lang_editaccount'] = _MB_SYSTEM_EACNT;
$block['lang_notifications'] = _MB_SYSTEM_NOTIF;
$block['uid'] = $xoopsUser->getVar('uid');
$block['lang_logout'] = _MB_SYSTEM_LOUT;
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$block['new_messages'] = $pm_handler->getCount($criteria);
$block['lang_inbox'] = _MB_SYSTEM_INBOX;
$block['lang_adminmenu'] = _MB_SYSTEM_ADMENU;
return $block;
}
return false;
}



Am I missing something?

Login

Who's Online

273 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 273


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