imBuilding - Cannot change themes
As discussed on the forum http://community.impresscms.org/modules/newbb/viewtopic.php?topic_id=5093&forum=48&post_id=45623#forumpost45623
When changing the theme in the theme changer, the theme isn't changed when the page you are on is from a IPF module made with imBuilding.
When changing the theme in the theme changer, the theme isn't changed when the page you are on is from a IPF module made with imBuilding.
Leave a comment
Problem found by QM-B:
I found the problem in the problems, where the issue appears. The modules have an index.php, which just redirect to another location. Example: visitorvoice. The index.php just contains:
header('location: visitorvoice.php');
exit();
But this isn't enough.. Just need two lines more:
include_once "../../mainfile.php";
include_once ICMS_ROOT_PATH . "/header.php";
header('location: visitorvoice.php');
exit();
That's it and the problem is done. Therefore the problem only appears in modules, where the index.php just redirect to another location.
I found the problem in the problems, where the issue appears. The modules have an index.php, which just redirect to another location. Example: visitorvoice. The index.php just contains:
header('location: visitorvoice.php');
exit();
But this isn't enough.. Just need two lines more:
include_once "../../mainfile.php";
include_once ICMS_ROOT_PATH . "/header.php";
header('location: visitorvoice.php');
exit();
That's it and the problem is done. Therefore the problem only appears in modules, where the index.php just redirect to another location.