11
shagreel
Re: Is XOOPS used for business applications?
  • 2003/10/10 17:32

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


Novell uses XOOPS for their developer portal.http://forge.novell.com




12
shagreel
Re: Removing the intermediate flash screen
  • 2003/10/1 15:14

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


Exactly. I don't want to change the way the redirect page looks at all, I want to remove it completely. The suggestion I made hopefully would keep the information available and at the same time never show the redirect page. It also requires minimal/no code changes through out the system. It could be introduced in an upgrade and all installed modules would still work.



13
shagreel
Removing the intermediate flash screen
  • 2003/9/30 20:19

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I must say that I dislike having the short little screen tell me that I do not have permission to view a page and then redirect later. I have a suggestion that I have implemented.

Set up a new config variable called show_redirect_flash or something so that people can choose what way to be redirected.

In the xoops_redirect function in the functions.php file add:

if($xoopsConfig['show_redirect_flash']){
//normal xoops_redirect functionality
}else{
$url = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES));
setcookie ("XoopsRedirectCookie", $message, 0, "/");
header("Location: $url");
exit();
}

Then in header.php (maybe this should be somewhere else, but I am not sure where else to put it yet) add:

if $_COOKIE['XoopsRedirectCookie']){
$xoopsTpl->assign('xoops_redirect_message', $_COOKIE['XoopsRedirectCookie']);
setcookie ("XoopsRedirectCookie", "", 0, "/");
}

Then in the main template you can display the xoops_redirect_message anywhere/anyway you want to so that people are still alerted to the fact that something went wrong. This allows me to report all kinds of debug information that people may/may not want to see (ie. file not found).




TopTop
« 1 (2)



Login

Who's Online

186 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits