Author Topic: Allowed to choose themes need to be modified  (Read 2660 times)

0 Members and 1 Guest are viewing this topic.

Offline X444X TEAM

  • Pre-Newbie
  • Posts: 7
    • View Profile
Allowed to choose themes need to be modified
« on: October 23, 2010, 06:57:44 AM »
Hi:

Reached out to choose themes in the Home page

Using php Code in includes/page_header.php

find

Code: [Select]
$site_template->register_vars($array);
Add after


Code: [Select]
$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.com

It 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
« Last Edit: October 23, 2010, 09:47:02 AM by X444X TEAM »

Offline X444X TEAM

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Allowed to choose themes need to be modified
« Reply #1 on: October 27, 2010, 08:31:30 PM »
No suggestions

this is a problem in the script

 wish the development in the granting of options chosen