Hi:
Reached out to choose themes in the Home page
Using php Code in includes/page_header.php
find
$site_template->register_vars($array);
Add after
$query_string = '';
if (!empty($HTTP_GET_VARS)) {
foreach ($HTTP_GET_VARS as $key => $val) {
if ($key != "l") {
$query_string .= ($query_string != '' ? '&' : '?').$key."=".$val;
}
}
}
$template_url = $site_sess->url($PHP_SELF.$query_string, '&');
$template_url = preg_replace("/[?|&]l=[^?|&]*/", "", $template_url);
$template_url = str_replace("&", "&", $template_url);
$template_select = "<form action=\"".$template_url."\" method=\"post\">\n";
$template_select .= "<select class=\"select\" name=\"l\" onChange=\"this.form.submit();\">\n";
$handle = @opendir(ROOT_PATH.TEMPLATE_DIR."/".$template_folder);
while ($folder = @readdir($handle)){
if (@is_dir(ROOT_PATH.TEMPLATE_DIR."/".$folder) && $folder != "." && $folder != "..") {
$template_select .= "<option value=\"".$folder."\"";
if ($folder == $config['template_dir']) {
$template_select .= " selected=\"selected\"";
}
$template_select .= ">".$folder."</option>\n";
}
}
$template_select .= "</select>\n</form>";
$site_template->register_vars("template_select", $template_select);
Direct Example
http://games.3deeel.comIt Works well
But the theme does not change to the selected
We need anyone who has experience Or previous experience in this programming
Followed the subjects to determine the theme of the special members
But this work theme for all
So..
Please Help me complete this work to the benefit of everyone
or
inform me any other file the required work
Regards
X444X TEAM