1
cm2339
Xoops Preferences - "Module for your start page"
  • 2005/5/30 18:47

  • cm2339

  • Just popping in

  • Posts: 32

  • Since: 2005/2/21


Xoops Admin - Preferences - General Settings - Module for your start page

I can see why setting a module as a start page could be a bad thing. If the module is ever removed the main page of the site would be broken and so would all bookmarks to "Home."

Please direct me to what settings are changed when a module has been set to the start page.

We tried this on a test site and that's how we found the problem. Our problem is after a login XOOPS redirects the user to the home page which happens to be the main page of the module. Where is that setting so it can be changed?

Thanks for any help!

2
Dave_L
Re: Xoops Preferences - "Module for your start page"
  • 2005/5/30 19:11

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If you're unable to access the admin page, you can change that setting in the database:

Look for the row in the xoops_config table with conf_modid = 0 and conf_name = "startpage", and change conf_value to "" (empty string) or "--".

The actual redirection is done in index.php, so another solution would be to temporarily hack that file:

//check if start page is defined
if ([color=ff0000]false &&[/color] isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {
    
header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');
    exit();
} else {
    
$xoopsOption['show_cblock'] =1;
    include 
"header.php";
    include 
"footer.php";
}

3
cm2339
Re: Xoops Preferences - "Module for your start page"
  • 2005/5/30 20:30

  • cm2339

  • Just popping in

  • Posts: 32

  • Since: 2005/2/21


Thanks for the suggestions. I'll make one of them work - or try something else. I'm really glad we found this on our test box!

Thanks again!

Login

Who's Online

153 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits