1
astuni
Strange problem
  • 2004/9/13 22:05

  • astuni

  • Just popping in

  • Posts: 22

  • Since: 2004/6/7 4


Hello, can't find anything related in forum so i try to explain what my problem is.

I got a XOOPS site running, and i have created a group for article publishers which i gave admin rights on some modules like news, xf section, downloads and other non system modules.

Recently i upgraded the site layout moving the home page from "news" to nothing and inserting a spotlight block with recent news in home instead of complete news module...

When i created the group mentioned above i slightly edited the system_block_user.html template to show in user menu links on various administrative functions of the modules the group administer.
For instance i added something like that:
<{if $xoops_isadmin}>
    <
div class="blockTitle">Amministrazionediv>
    <
a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}>a>
    <
div class="blockTitle">Newsdiv>
    <
a href="<{$xoops_url}>/modules/news/submit.php">Inserimento Newsa>
    <
div class="blockTitle">Areediv>
    <
a href="<{$xoops_url}>/modules/xfsection/admin/category.php?op=default">Gestione Sezionia>    
    <
a href="<{$xoops_url}>/modules/xfsection/admin/allarticles.php">Gestione Articolia>
    <
a href="<{$xoops_url}>/modules/xfsection/admin/index.php?op=default">Inserimento Articolia>
    <
div class="blockTitle">Linksdiv>
    <
a href="<{$xoops_url}>/modules/mylinks/admin/index.php?op=linksConfigMenu">Inserimento Linksa>
    <
div class="blockTitle">Sondaggidiv>
    <
a href="<{$xoops_url}>/modules/xoopspoll/admin/index.php?op=add">Inserimento Sondaggia>
      <{/if}>



Since i had news as home page modules that links on user menu showed correctly. Now that home page is "nothing" those links are gone, the strange thing is that if i navigate on news module they show up again.

I noticed that to make them show i must give to that group admin rights for at least 1 system feature, which is something i dont really wanna do.

Is there a way to fix this to make my old admin user menu links to show up even if no module are set as home page?

I hope that it's clear enough...
Cheers
Astuni

2
sbkiller
Re: Strange problem
  • 2004/9/13 23:24

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Goto:

System Menu > Blocks

Looks for usermenu and click edit at the right.

Inside make sure you click and select appear in "All Pages"

3
astuni
Re: Strange problem
  • 2004/9/14 4:15

  • astuni

  • Just popping in

  • Posts: 22

  • Since: 2004/6/7 4


ok i checked and it was already set...
it displays it only if i give to that group the admin of at least 1 feature of system module...

[edit] I mean, user menu is ALWAYS displayed, the thing i cant see are the links i manually added to the template...

[offtopic]Whoa!!! when your XOOPS themes will be available?!?! they will be free?!?[/offtopic]

Cheers

4
astuni
Re: Strange problem
  • 2004/9/14 9:55

  • astuni

  • Just popping in

  • Posts: 22

  • Since: 2004/6/7 4


Any help?

5
Herko
Re: Strange problem
  • 2004/9/14 10:31

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


It has to do with the $xoops_isadmin tag. This determines if the current user has admin rights for the current module. Because on the home page the current module is none, the isadmin tag returns a false...

Herko

6
astuni
Re: Strange problem
  • 2004/9/14 21:58

  • astuni

  • Just popping in

  • Posts: 22

  • Since: 2004/6/7 4


Ok, so the possible solution is to insert those links into a custom block and give the block view only to that group...i didn't thought this before

Thanks anyway!

Login

Who's Online

224 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 224


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