Author Topic: admin/templates.php on line 62  (Read 13126 times)

0 Members and 1 Guest are viewing this topic.

Offline Ba$im

  • Pre-Newbie
  • Posts: 6
  • منتديات
    • View Profile
    • منتديات
admin/templates.php on line 62
« on: April 30, 2007, 06:42:02 AM »
hello
i new in this so allow me to ask
i use 1.7.4 from this software
my problem is when i try to add new template
he told me when i go to home page of gallery

Template Error: Couldn't open Template ./templates/4waters/whos_online.html

i try another template and the same problem

then i go to admin  panel
and try to load temlplate and this what i get
admin/templates.php on line 62


thanks
« Last Edit: May 01, 2007, 06:00:45 PM by KurtW »

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: admin/templates.php on line 62
« Reply #1 on: April 30, 2007, 07:39:50 AM »
You may have to modify this template to work with your version as it was made for a much earlier release of 4images

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #2 on: April 30, 2007, 10:36:08 AM »
Hello;
it seems that vierstras' templates are a bit old. So they encounter some problems with new scripts.
You will find in attachment a modified version of Vierstra's 4waters templates, updated to 1.7.4 version.
However, in "admin/templates.php on line 62", the 1.7.4 code is:
Code: [Select]
  $handle = opendir(ROOT_PATH.TEMPLATE_DIR."/".$template_folder."/media");
It calls to your template's media folder, where each html file describes how to manage each file extension. Have you added some files extensions not originally provided by the script, as *.doc, *.kar, *.psd or whatelse?

I have really enjoied Vierstra's templates since the beginning. I have downloaded them all and will try to make them compliant with the 1.7.4 version. Once done, I will send them to their original creator, hoping he will put them all online. It would be a pity to mess such pleasing templates.

Hoping having helped a little, regards.

Offline Ba$im

  • Pre-Newbie
  • Posts: 6
  • منتديات
    • View Profile
    • منتديات
Re: admin/templates.php on line 62
« Reply #3 on: April 30, 2007, 01:46:14 PM »
Quote
Hello;
it seems that vierstras' templates are a bit old. So they encounter some problems with new scripts.
You will find in attachment a modified version of Vierstra's 4waters templates, updated to 1.7.4 version.
However, in "admin/templates.php on line 62", the 1.7.4 code is:
Code:

  $handle = opendir(ROOT_PATH.TEMPLATE_DIR."/".$template_folder."/media");


It calls to your template's media folder, where each html file describes how to manage each file extension. Have you added some files extensions not originally provided by the script, as *.doc, *.kar, *.psd or whatelse?

I have really enjoied Vierstra's templates since the beginning. I have downloaded them all and will try to make them compliant with the 1.7.4 version. Once done, I will send them to their original creator, hoping he will put them all online. It would be a pity to mess such pleasing templates.

Hoping having helped a little, regards.
when i use it l
thats what i get

Warning: Unknown(4menu2.php): failed to open stream: No such file or directory in /******/includes/template.php(101) : eval()'d
code on line 69

Warning: Unknown(4menu2.php): failed to open stream: No such file or directory in /******/includes/template.php(101) : eval()'d code on line 69

Warning: (null)(): Failed opening '4menu2.php' for inclusion (include_path='.:/usr/local/lib/php') in /******/includes/template.php(101) : eval()'d code on line 69

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #4 on: April 30, 2007, 01:52:59 PM »
Maybe you have forgotten to copy "4menu2.php" to your 4images root.
Code: [Select]
(from readme.txt):
b. copy the 4menu2.php from this zip to your 4images root directory, same dir as index.php

Offline Ba$im

  • Pre-Newbie
  • Posts: 6
  • منتديات
    • View Profile
    • منتديات
Re: admin/templates.php on line 62
« Reply #5 on: April 30, 2007, 02:08:25 PM »
gr8 help it work fine now
but i have problem im look of categories

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #6 on: April 30, 2007, 02:36:55 PM »
gr8 help it work fine now
but i have problem im look of categories

:?: :?:Whats is exactly your new problem, please?

Offline Ba$im

  • Pre-Newbie
  • Posts: 6
  • منتديات
    • View Profile
    • منتديات
Re: admin/templates.php on line 62
« Reply #7 on: May 03, 2007, 12:16:15 PM »
oh i put link for image
look 4 this link
http://www.dfaalkon.com/image/2.jpg
 u can c the arc looking problem
thanks

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #8 on: May 03, 2007, 01:59:01 PM »
Hello;
seems to be related with right to left reading.
Wich language do you use?
I had such problem with gatesnet's site, using arabian language and rtl reading direction: http://www.photomsila.com/.

Here is for instance the code we put in the template file header.html to avoid annoyance:
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ar" lang="ar" dir="rtl">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1256" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
  document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
  document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

// -->
</script>
{if has_rss}

<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#cd590b" link="#9b4129" vlink="#cd590b" alink="#0f6824">

Offline Ba$im

  • Pre-Newbie
  • Posts: 6
  • منتديات
    • View Profile
    • منتديات
Re: admin/templates.php on line 62
« Reply #9 on: May 04, 2007, 08:53:04 AM »
yes i use arabic language
this my header file
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ar" lang="ar" dir="rtl">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1256" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
  document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
  document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

// -->
</script>
{if has_rss}

<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#cd590b" link="#9b4129" vlink="#cd590b" alink="#0f6824">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="24"><img border="0" src="{template_url}/framep/lbo.gif" width="24" height="24"></td>
<td width="100%" background="{template_url}/framep/bo.gif"><img border="0" src="{template_url}/framep/bo.gif" width="12" height="24"></td>
<td width="24"><img border="0" src="{template_url}/framep/rb.gif" width="24" height="24"></td>
</tr>
<tr>
<td width="24" background="{template_url}/framep/li.gif">&nbsp;</td>
<td width="100%" bgcolor="#4963BA">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="50%"><img border="0" src="{template_url}/images/4image.gif" width="248" height="60"></td>
<td width="50%">
<p align="right">
<form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />&nbsp;
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
            </form>

</td>
</tr>
</table>

but to now same problem
u can look for it
http://www.dfaalkon.com/gallery/index.php

thanks

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #10 on: May 04, 2007, 09:04:21 AM »
Hum;
I see everything related to left gone to right, and right to left.
As you use Vierstra's 4waters template, I have just downloaded it and will try to check the errors with it in an arabic site.
I will post my results as soon as I can. Please be patient and keep on telling us what modifications and what results you reach.
Regards.

manurom

  • Guest
Re: admin/templates.php on line 62
« Reply #11 on: May 07, 2007, 11:23:05 AM »
Hello;
try to put this code in your template file category_bit.html, instead of the original one:
Code: [Select]
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
  <img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />
      <!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->
    </td>
<!-- Rows insertion to correct rtl reading problem -->
<td>&nbsp;<a href="{cat_url}" class="maincat">{cat_name}</a></td>
<td>&nbsp;({num_images})</td>
<td>{if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}</td>
<!-- End of insertion -->
</tr>
</table>
{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if sub_cats}{sub_cats}{endif sub_cats}