Author Topic: tag {user_box} does not work in index.php  (Read 22435 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
tag {user_box} does not work in index.php
« on: March 10, 2005, 01:25:23 PM »
Hi everybody

The tag {user_box} works proberly in every template, which is located in the folder "templates".
In index.php is the loginform shown, but after the login, the user_logininfo is not displayed.
Instead of the user_logininfo, the user_loginform is displayed.

What do I have to modify?

Thank you for helping me.

Serge
« Last Edit: March 14, 2005, 05:47:29 PM by TIMT »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: tag {user_box} does not work in index.php
« Reply #1 on: March 11, 2005, 01:13:01 AM »
is this with a fresh 4images????
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #2 on: March 12, 2005, 11:52:16 AM »
hi v@no

what do you mean with "fresh 4images"?

do you mean the version? I work with version 1.7.1.

Please let me know, if you need more information.

Thanks
Serge

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: tag {user_box} does not work in index.php
« Reply #3 on: March 12, 2005, 06:34:36 PM »
"fresh 4images" means just installed, not modifyed ;)
if u modifyed something, then perhaps u should retrack your steps.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #4 on: March 12, 2005, 10:58:28 PM »
Ok... I have modified the index.php.
Please have a look on the code.
www.photofront.ch

I have defined two tags:
{images_menu_kunde}
{images_footer_kunde}

I did this instead of the "include". It works in all pages, but not in index.php.

When I use a 4images template in "$main_template=...", then it works fine.
As soon I define as "$main_template=" the template "images_menu_kunde", it doesn't work.

so... what is wrong?
« Last Edit: March 14, 2005, 05:35:44 PM by TIMT »

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #5 on: March 14, 2005, 05:36:51 PM »
anybody who can help me?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #6 on: March 14, 2005, 06:16:51 PM »
Ok... I have modified the index.php.
Please have a look on the code.
www.photofront.ch
That is not a link to the code.  That is a link to the OUTPUT of your code. Nobody here can read your mind or view your code  :roll:

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #7 on: March 14, 2005, 06:47:13 PM »
I have defined two tags:
{images_menu_kunde}
{images_footer_kunde}

I did this instead of the "include". It works in all pages, but not in index.php.

When I use a 4images template in "$main_template=...", then it works fine.
As soon I define as "$main_template=" the template "images_menu_kunde", it doesn't work.
If that is what you have done, then you did not define two tags, you created two new templates.  Without more information, I have no idea what is wrong or how to fix it

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #8 on: March 14, 2005, 07:36:00 PM »
you're right!  :oops:

this is the code of index.php

Code: [Select]
<?php
$templates_used 
'home,category_bit,whos_online,thumbnail_bit,images_menu_kunde,images_footer_kunde';
$main_template 'images_menu_kunde';
define('GET_CACHES'1);
define('ROOT_PATH''./');
define('GET_USER_ONLINE'1);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();


if (isset(
$HTTP_GET_VARS['template']) || isset($HTTP_POST_VARS['template'])) {
  $template = (isset($HTTP_GET_VARS['template'])) ? stripslashes(trim($HTTP_GET_VARS['template'])) : stripslashes(trim($HTTP_POST_VARS['template']));
  if (!file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    $template "";
  }
  else {
    $main_template $template;
  }
}
else {
  $template "";
}
include(
ROOT_PATH.'includes/page_header.php');

if (!empty(
$template)) {
  $clickstream "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_"" "ucfirst($template));
  $site_template->register_vars("clickstream"$clickstream);
  $site_template->print_template($site_template->parse_template($main_template));
  include(ROOT_PATH.'includes/page_footer.php');
}

$cache_id create_cache_id(
  'cat.page.index',
  array(
    $user_info[$user_table_fields['user_id']],
    isset($user_info['lightbox_image_ids']) ? substr(md5($user_info['lightbox_image_ids']), 08) : 0,
    $config['template_dir'],
    $config['language_dir']
  )
);

if (!
$cache_page_index || !$content get_cache_file($cache_id)) {
// Always append session id if cache is enabled
if ($cache_page_index) {
  $old_session_mode $site_sess->mode;
  $site_sess->mode 'get';
}

ob_start();

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
$categories get_categories(0);
if (!
$categories)  {
  $categories $lang['no_categories'];
}
$site_template->register_vars("categories"$categories);
unset(
$categories);

//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$imgtable_width ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((
substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}

$num_new_images $config['image_cells'];
$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
        FROM "
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN ("
.get_auth_cat_sql("auth_viewcat""NOTIN").")
        ORDER BY i.image_date DESC
        LIMIT 
$num_new_images";
$result $site_db->query($sql);
$num_rows $site_db->get_numrows($result);

if (!
$num_rows)  {
  $new_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $new_images .= $lang['no_new_images'];
  $new_images .= "</td></tr></table>";
}
else  {
  $new_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count 0;
  $bgcounter 0;
  while ($image_row $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % == 0) ? 2;
      $new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    show_image($image_row);
    $new_images .= $site_template->parse_template("thumbnail_bit");
    $new_images .= "\n</td>\n";
    $count++;
    if ($count == $config['image_cells']) {
      $new_images .= "</tr>\n";
      $count 0;
    }
  // end while

  if ($count 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f 0$f $leftover$f++) {
        $new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $new_images .= "</tr>\n";
    }
  }
  $new_images .= "</table>\n";
// end else

$site_template->register_vars("new_images"$new_images);
unset(
$new_images);

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));
$site_template->print_template($site_template->parse_template($main_template));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_index) {
  // Reset session mode
  $site_sess->mode $old_session_mode;

  save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;
?>


  <!-- /* Titel */ -->
       <br>
   <h1>"Photo Frontal"  -  Plattform für Fotografie <hr size="1" />  </h1>                 
       
  <!-- /* Text */ -->
       
           
         <p><font face="Verdana, Arial"><font color="#FFE2A8" size="2">Tauchen 
           Sie ein, in eine Welt von Bildern. Alle Bilder von "Photo Frontal" wurden
           von engagierten Fotografen gemacht. Eine abwechslungsreiche Sammlung von exklusiven Bildern!
        </font> </p>
       
       
  <!-- /* Foto */ -->           
 
  <table width="600"  border="1" frame="lhs" rules="cols"  cellspacing="0" cellpadding="7"  bordercolor="#FFE2A8" align="center" valign="top">
   <tr align="left">
    <td width="200">  <a class="index" href="./index_galerie.php?template=produkte">Kunde</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <a href="./index_galerie.php?template=produkte"> <img border="0" src="./picture_library/click.gif"> </a>
    <br>
    <font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1"> Für jeden etwas - aussergewöhnlich, praktisch, überraschend</td>
    <td width="200"><a class="index" href="./index_galerie.php?template=unsere_partner">Partner</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="./index_galerie.php?template=unsere_partner"> <img border="0" src="./picture_library/click.gif"> </a>
    <br>
    <font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1">Ausstellen und Verkaufen - Ihre persönliche Galerie</td>
    <td width="200"><a class="index" href="./index_galerie.php?template=bereich_fotograf">Fotograf</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="./index_galerie.php?template=bereich_fotograf"> <img border="0" src="./picture_library/click.gif"> </a>
    <br>
    <font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1"> Entfliehen Sie aus der Anonymität</td>
   </tr>
   
   
   <tr align="left">
    <td width="200">
        <a href="./index_galerie.php?template=produkte">     
        <img border="0" src="../fotos/startseite/rotpfeil.jpg" alt="Wegweisend - (c) Serge Meier" width="81" height="122"></a>
    </td>
    <td width="200">
         <a href="./index_galerie.php?template=unsere_partner">
        <img border="0" src="../fotos/startseite/blaupfeil.jpg" alt="Wegweisend - (c) Serge Meier" width="85" height="122"></a>
    </td>
    <td width="200">
<a href="./index_galerie.php?template=bereich_fotograf">
<img border="0" src="../fotos/startseite/gruenpfeil.jpg" alt="Wegweisend - (c) Serge Meier" width="83" height="123"></a>
    </td>
   </tr>
   
   
   <tr valign="top">
    <td valign="top" width="200">  <p><font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1.5">
          Machen Sie sich bemerkbar, bringen Sie es auf den Punkt. Sie lieben schöne Bilder und machen anderen Menschen gerne eine Freude. Vielleicht vergessen Sie ab und zu
          einen Termin, oder Sie suchen einen Fotografen für einen besonderen Anlass. Lasse Sie sich von den Möglichkeiten bei "Photo Frontal" überraschen.
    </td>
    <td width="200"><p><font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1.5">
        Es gibt sicher viele Wege, im Gespräch zu bleiben.
        Mit einer persönlichen Galerie wählen Sie einen kreativen und ab- wechslungsreichen Weg.
        Machen Sie aus Ihrem Schaufenster eine Galerie. Oder schmücken Sie Ihren Verkaufsraum mit exklusiven Fotos.
        Sie bestimmen, wie viele und welche Fotos gezeigt werden. Wenn Sie Bilder verkaufen, sind Sie direkt am Verkaufserlös beteiligt.
     </td>
    <td width="200"><p><font face="Tahoma, Verdana, Arial"><font color="#FFE2A8" size="1.5">
        Ist Fotografieren Ihre Leidenschaft? Und möchten Sie Ihre Bilder anderen Menschen zeigen?
        Warum Ihre Arbeiten nicht verkaufen? Dann sind Sie bei "Photo Frontal" genau richtig.
        Auch Fotoclubs sind bei "Photo Frontal" herzlich willkommen.
        Informieren Sie sich über Ihre Vorteile bei "Photo Frontal" im grünen Fotografenbereich.   
    </td>
   </tr>
  </table>     
       
        <br>
       
       
           <b> <p align="center"> <font face="Verdana, Arial"><font size="2" color="#FFE2A8">
           "Photo Frontal" ist der Ort, wo Bilder sprechen. Hören Sie hin!   
          </font></b></p><br>
      </td>
     
<?php
include("http://www.photofront.ch/index_galerie.php?template=images_footer_kunde");
?>

instead of
Code: [Select]
<?php
include("http://www.photofront.ch/index_galerie.php?template=images_footer_kunde");
?>
I had entered
Code: [Select]
{images_footer_kunde}
That works in all templates, but not in the index.php

And here is the code I've entered in page_header.php
Code: [Select]
$menu_fotograf = (file_exists(TEMPLATE_PATH."/images_menu_fotograf.html")) ? $site_template->parse_template("images_menu_fotograf") : "";
$site_template->register_vars("images_menu_fotograf", $menu_fotograf);

$menu_kunde = (file_exists(TEMPLATE_PATH."/images_menu_kunde.html")) ? $site_template->parse_template("images_menu_kunde") : "";
$site_template->register_vars("images_menu_kunde", $menu_kunde);

$footer_kunde = (file_exists(TEMPLATE_PATH."/images_footer_kunde.html")) ? $site_template->parse_template("images_footer_kunde") : "";
$site_template->register_vars("images_footer_kunde", $footer_kunde);

And here is the code of "images_footer_kunde.html":
Code: [Select]
</td>
</tr>
 </table>

<!-- /* Schwarzer Rand rechts nach Text im Hauptfenster */ -->
      <td bgcolor="#000000" bordercolordark="#000000" height="444" bordercolor="#FFCC66"> </td>

<!-- /* Für zusätzliche Spalte Rechts  */ -->

      <td bgcolor="#FFCC66" bordercolordark="#FFCC66" height="444" bordercolor="#FFCC66"> </td>

     
<!-- /* Schwarzer Rand nach oranger Abgrenzungslinie rechts */ -->
      <td bgcolor="#000000" bordercolordark="#000000" height="444" bordercolor="#FFCC66"> </td>


<!-- /* Rechte Spalte */ -->
               <td valign="top"  bgcolor="#000000" bordercolordark="#000000" height="444" bordercolor="#FFCC66">
               <br>

<br>
<br>
<!-- /* LOGIN  */ -->
                <table  valign="top" bgcolor="#996633" bordercolor="#000000" border="1" cellspacing="0" >
                <tr cellpadding="4">
                 <td><font color="#FFFFFF" size="2" face="Tahoma;Verdana"><b>&nbsp;Login Kunde<b></td>
                </tr>
                <tr>
                 <td align="center" valign="top" >{user_box} </td>
                </tr>
               
               
{if is_admin}
       <tr>
        <td><font color="#FFFFFF" size="2" face="Tahoma;Verdana">
          &nbsp;&raquo;&nbsp;&nbsp;<a class="weiss"href="./admin/index.php" class="smaltext">Control Panel</a> <br>
        </td>
       </tr>
{endif is_admin}                 
             
    </table>
<br>


<!-- /* Warenkorb  */ -->
{if user_loggedin}


                <table width="141" valign="top" bgcolor="#996633" bordercolor="#000000" border="1" cellspacing="0" cellpadding="4">
                <tr>
                 <td><b>
                 <a class="weisstitel" href="./warenkorb.php" >&nbsp;Warenkorb</a><br></td>
                </tr>
                <tr >
               
                 <td><font color="#FFFFFF">
                 &nbsp;Anz. Artikel: {total_images_sum}<br>
                 &nbsp;Im Wert von: CHF {total_sum} <br>
                 &nbsp;Porto: CHF {porto} <br>
  <!-- /*        &nbsp;Bearbeitung: CHF {bearbeitung} <br>   */ -->
                 &nbsp;Summe Total: CHF {sum_porto_bear}

                </td>
                </tr>
                 
              </td>
             </tr>
             </table>
{endif user_loggedin}


<!-- /* Registrierung / Passwort vergessen  */ -->
{if user_loggedout}
 <table  width="141" valign="top" bgcolor="#996633" bordercolor="#000000" border="1" cellspacing="0" cellpadding="0">
              <tr>
               <td><p><font color="#FFFFFF" size="2" face="Tahoma;Verdana">
                &nbsp;&raquo; &nbsp;<a class="weiss" href="{url_lost_password}">{lang_lost_password}</a><br>
                <font color="#FFFFFF" size="2" face="Tahoma;Verdana">
                &nbsp;&raquo; &nbsp;<a class="weiss" href="{url_register}">{lang_register}</a></p>
               </td>
              </tr>
             </table>
{endif user_loggedout}

 <!-- /* Menu mit Buttons
<script language="javascript" src="menu.js"></script>
 -->

 <!-- /* Rand rechts */ -->
 
      <td bgcolor="#000000" bordercolordark="#000000" height="444" bordercolor="#FFCC66"> </td>

      </tr>         
       
 <!-- /*  Kontakt - Impressium  */ -->
   <table height="5" width="999" border="0" cellspacing="0" cellpadding="0" bordercolor="#666666" align="center">
    <tr>
   
      <td bgcolor="#666666" align="center">
   
      <a href="mailto:info@photofrontal.ch" class="menu"> Kontakt &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <a href="./index_galerie.php?template=impressum" class="menu"> Impressum </a> 
      <br>
     
      </td>
     </tr>
     <tr>
      <td bgcolor="#000000" bordercolordark="#000000" align="right">
      <font color="#CCCCCC" size="1" face="Verdana">
      Powered by <b>4images</b>
     <br />
      Copyright &copy; 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
      <!--
<p align="center">
  <a href="http://validator.w3.org/check/referer"><img src="http://validator.w3.org/images/vxhtml10" height="31" width="88" alt="Valid XHTML 1.0!" border="0" /></a>
</p>
// -->
     </td>
    </tr>
   </table>  
  </body>
</html>   

I hope, you can help me with this information. Otherwise ask me for more detailed information.

Thank you!

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #9 on: March 14, 2005, 08:27:17 PM »
You simply cannot stick all that HTML inside index.php.  4images does not process the HTML in the order you are expecting.

Since the code you posted has major problems that would take too much time to cover, why don't we start with the basic question. 

What is it you are trying to do?

Why did you not edit the HTML templates instead of the PHP files?

Maybe you should just edit templates/default/header.html and templates/default/footer.html  :?:
« Last Edit: March 14, 2005, 08:29:17 PM by Chris »

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #10 on: March 14, 2005, 09:44:54 PM »
ok...

My homepage is addressed to three target group:
  • customer (who buys postcards)
  • photographer (who upload pictures)
  • partner (who exhibit postcards physicly)

Each target group has his own "area". Each "area" has its own specific headercolor (customer=orange, photographer=green, partner=blue) and its own menu.
So I have three different headers (and also three different footers).

  • customer: images_menu_kunde.html and images_footer_kunde.html
  • photographer: images_menu_fotograf.html and footer.html
  • partner: here I have implemented an "include headerlayout_partner.html" and "include footer_partner.html"

All this "headers" and "footers" works fine in all templates. Only the "images_footer_kunde.html" is not correctly displayed in index.php. That means, the user_loginform.html (user_box) is ok, but after the user is logged in, the user_logininfo.html (user_box) is not displayed. It is still the user_loginform.html displayed.

The "HOME" on my Homepage should not show the catogeries. But it should show the {user_box}. For the catogeries I have a special Link in the Menu.

Not easy....


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #11 on: March 14, 2005, 09:50:42 PM »
And how do you determine what set of templates to use?  (area)

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #12 on: March 14, 2005, 10:24:07 PM »
The "area" is only defined by a different header and footer. In the header I have implement the menu.

let's say I have a template "information for photographers.html".
In this template I have entered the code
Code: [Select]
{images_menu_fotograf}at the beginnign, and the code
Code: [Select]
{footer}at the end of the page

In the template "information for customers" I have entered the code
Code: [Select]
{images_menu_kunde}at the beginnign, and the code
Code: [Select]
{images_footer_customer}at the end of the page

In the template "information for partners.html" I have entered the code
Code: [Select]
<?php
include("./templates/photofront/headerlayout_partner.html");
?>
at the beginnign, and the code
Code: [Select]
<?php
include("./templates/photofront/footer_partner.html");
?>
at the end of the page

I will change that in
Code: [Select]
{headerlayout_partner}at the beginnign, and in
Code: [Select]
{footer_partner}as soon as possible.

In index.php I'd like to implement the templates
"images_header_kunde.html" and "images_footer_kunde.html"

By the way... I did the definition of
Code: [Select]
{images_menu_fotograf}
Code: [Select]
{images_menu_kunde}
Code: [Select]
{images_footer_customer}in page_header.php

Code: [Select]
$menu_fotograf = (file_exists(TEMPLATE_PATH."/images_menu_fotograf.html")) ? $site_template->parse_template("images_menu_fotograf") : "";
$site_template->register_vars("images_menu_fotograf", $menu_fotograf);

$menu_kunde = (file_exists(TEMPLATE_PATH."/images_menu_kunde.html")) ? $site_template->parse_template("images_menu_kunde") : "";
$site_template->register_vars("images_menu_kunde", $menu_kunde);

$footer_kunde = (file_exists(TEMPLATE_PATH."/images_footer_kunde.html")) ? $site_template->parse_template("images_footer_kunde") : "";
$site_template->register_vars("images_footer_kunde", $footer_kunde);


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #13 on: March 15, 2005, 01:37:55 AM »
Okay so since you've defined these tags inside page_header.php you should restore the original copy of index.php  The one you posted has major problems.

You should also define the {headerlayout_partner} and {footer_partner} tags the same way you did the others.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #14 on: March 15, 2005, 09:03:09 AM »
Hi Chris

I did what you have suggested.

Then I entered instead of

Code: [Select]
$main_template = 'home';
Code: [Select]
$main_template = 'home_index';
because I don't want to show the picture on the first page.

In index.php I only have entered
{footer_partner}

{headerlayout_partner} I have entered in "home_index.html".

And everything seems to be OK! 

Thank you Chris for your help and for your patience!    :D