Hi all;
I am a little busy, so sorry for the delay, I have just uploaded new theme:
http://www.fanafzar.com/uploads/defaultaj.rarjust if you need Rico files:
http://www.fanafzar.com/uploads/Rico.rarNOTE: DO NOT USE THIS CODE ON ANY SITE - JUST FOR TESTING PURPOSE
after setting the theme to be used in preferences, we need to modify 2 files:
1- include/functions.php
around line 400 find:
if (defined('SID') && (! isset($_COOKIE[session_name()]) || ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && !isset($_COOKIE[$xoopsConfig['session_name']])))) {
if (!strstr($url, '?')) {
$url .= '?' . SID;
} else {
$url .= '&'.SID;
}
}
add this code just after the above:
if (!strstr($url, '?')) {
$url .= '?ajaxpage=1';
} else {
$url .= '&ajaxpage=1';
}
this will make redirected pages in the site work, but in the admin area this will make some problems;
and the problem is: when you are redirected in admin area, you will get an XML instead of the page,
so refreshing the page will get you to the right place.
2- /modules/system/templates/system_redirect.html
this is what your file should look like, this part is just like the previous part make us able to navigate while redirecting
throw Ajax:
<{php}>
if(isset($_GET['ajaxpage']) || isset($_POST['ajaxpage']) || true){
header("Content-type: text/xml; charset=UTF-8");
echo '';
echo '';
echo '';
echo '.$this->_tpl_vars['time'].'" href="'.urlencode($this->_tpl_vars['url']).'" >';
echo '';
echo ';
echo ''
;
echo ''
.$this->_tpl_vars['message'].'';
echo ''
.$this->_tpl_vars['lang_ifnotreload'].'';
echo ' ';
if ($this->_tpl_vars['xoops_logdump'] != ''){
echo ''.$this->_tpl_vars['xoops_logdump'].'
';
}
echo ']]>';
echo '';
echo '';
echo ';
<{/php}>
<{php}>
echo ']]>';
echo '';
echo '';
echo '';
echo '';
}else{
<{/php}><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="Refresh" content="<{$time}>; url=<{$url}>" />
<title><{$xoops_sitename}>title>
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
head>
<body>
<div style="text-align:center; background-color: #EBEBEB; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight : bold;">
<h4><{$message}>h4>
<p><{$lang_ifnotreload}>p>
div>
<{if $xoops_logdump != ''}><div><{$xoops_logdump}>div><{/if}>
body>
html><{php}>
}
<{/php}>
just make sure the template is applied.
@Xguide:
yes you are right, protector module is needed, and this code is far from being used on a live site.
Thanks for your attention.