7
Ok, I'll try and give you an example here........
if ( $article->published() == 0 || $article->published() > time() ) {
redirect_header('index.php', 2, _NW_NOSTORY);
exit();
}
Ok, this is just a few lines out of the article.php file for the news module. This only deals with the the fact that if there are not any articles published it will redirect you. Basically, in the XOOPS cms, there are tons of if statements and querys that once ran, they will redirect you. Every module, has them. By my last post, I meant that by wanting to just "get rid of" the redirect isn't gonna be an easy task or one that is really possible. Now you can do it on a module to module basis, but like I said before, there is "no one file" that you can edit. There are many, more than I would care to count. Just look through some of the files in the system itself, you will see what I mean. Look through the includes folders, the root directory, the modules folder of course, but you would be taking on a task that would be the size of mount everest in proportions. But..........., and I stress but......... I never said it couldn't be done. Now one way that I did do a sitewide find and replace, was with dreamweaver. It will allow you to do just that. But, I am not guaranteeing anything. It might completely destroy your site or it might accomplish what you are wanting. Make sure you know what you want the redirect you are replacing to do before you take on something like that. Just be cautious.