Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TIMT

Pages: 1 ... 27 28 29 30 [31]
451
Check Minimum für Upload

This mod will add a minimum width/height and size requirements for new uploaded images.

Affected files:
admin/settings.php
includes/upload.php
lang/<yourlangauge>/admin.php
lang/<yourlangauge>/main.php

Installataion


Step 1
Open admin/settings.php
Find:
Code: [Select]
show_setting_row("max_thumb_width");
show_setting_row("max_thumb_height");
show_setting_row("max_thumb_size");   
show_setting_row("max_image_width");   
show_setting_row("max_image_height");   
show_setting_row("max_media_size");
 
Replace with:
Code: [Select]
show_setting_row("max_thumb_width");   
show_setting_row("max_thumb_height");   
show_setting_row("max_thumb_size");   
show_setting_row("min_thumb_width");   
show_setting_row("min_thumb_height");   
show_setting_row("min_thumb_size");   
show_setting_row("max_image_width");   
show_setting_row("max_image_height");   
show_setting_row("max_media_size");   
show_setting_row("min_image_width");   
show_setting_row("min_image_height");   
show_setting_row("min_media_size");
 
Step 2
Open includes/upload.php
Find:
Code: [Select]
var $max_size = array(); 

Add below:
Code: [Select]
var $min_width = array();   
var $min_height = array();   
var $min_size = array();
 
Step 2.1
Find:
Code: [Select]
$this->max_size['media'] = $config['max_media_size'] * 1024;   

Add below:
Code: [Select]
$this->min_width['thumb'] = $config['min_thumb_width'];     
$this->min_width['media'] = $config['min_image_width'];     
$this->min_height['thumb'] = $config['min_thumb_height'];     
$this->min_height['media'] = $config['min_image_height'];     
$this->min_size['thumb'] = $config['min_thumb_size'] * 1024;     
$this->min_size['media'] = $config['min_media_size'] * 1024;
   
Step 2.2
Find:
Code: [Select]
if ($this->image_size[1] > $this->max_height[$this->image_type]) {       
$ok = 0;       
$this->set_error($this->lang['invalid_image_height']);     
}
 
Add below:
Code: [Select]
   
if ($this->image_size[0] < $this->min_width[$this->image_type]) {       
   $ok = 0;       
   $this->set_error($this->lang['invalid_image_width_min']);   
 }   

 if ($this->image_size[1] < $this->min_height[$this->image_type]) {       
   $ok = 0;       
   $this->set_error($this->lang['invalid_image_height_min']);     
}
 
Step 2.3
Find:
Code: [Select]
function save_file() { 
Add above:
Code: [Select]
function check_min_filesize() {   
   if ($this->HTTP_POST_FILES[$this->field_name]['size'] < $this-
>min_size[$this->image_type]) {     
         return false;   
   }     
   else {     
     return true;     
   }   
}

Step 2.4
Find:
Code: [Select]
if (eregi("image", $this->HTTP_POST_FILES[$this-
>field_name]['type'])) {
     
Add above:
Code: [Select]
if (!$this->check_min_filesize()) {         
     $this->set_error($this->lang['invalid_file_size_min']);         
     $ok = 0;
}
     

Step 3
Open lang/<yourlangauge>/admin.php
Find:
Code: [Select]
$auto_thumbnail_resize_type_optionlist = array(

Add above:
Code: [Select]
$setting['min_thumb_width'] = "Min. width of thumbnail in pixel";
$setting['min_thumb_height'] = "Min. heigth of thumbnail in pixel";
$setting['min_thumb_size'] = "Min. thumbnail size in KB";
$setting['min_image_width'] = "Min. image width in pixel";
$setting['min_image_height'] = "Min. image heigth in pixel";
$setting['min_media_size'] = "Min. image size in KB";


Step 4
Open lang/<yourlangauge>/main.php
At the end, above closing ?> add this:
Code: [Select]
$lang['min_filesize'] = "Min. File Size: ";
$lang['min_imagewidth'] = "Min. Image Width: ";
$lang['min_imageheight'] = "Min. Image Height: ";
$lang['invalid_image_width_min'] = "Image width invalid";
$lang['invalid_image_height_min'] = "Image heigth invalid";
$lang['invalid_file_size_min'] = "Image size invalid";


Step 5
Download this database updater
Unpack it and upload to your 4images root diretory.
Execute it by typing in your browser http://<yoursiteaddress>/path/to/4images/install_min_upload.php and follow the instructions.

After all this done, u should see new settings under "Upload settings" section in ACP->Settings.

P.S. your 4images administrator will not be affected by any of the upload restrictions! Test it as a regular member or as a guest.


V@no... I Hope, everything is ok so....

452
Hi

Besteht die Möglichkeit, dass der Button "Bestellen" unabhängig vom "Lightbox-Button" angezeigt wird?
Das heisst, ich möchte gerne die Shop-Funktionalität vom "Lightbox" entkoppeln.
Eine Karte sollte auch bestellt werden können, wenn diese nicht in die "Lightbox" abgelegt wurde.

Vielen Dank für die Hilfe!

Gruss
Serge


Hi

Is there a possibility that the Button "to order" appear without activate the "lightbox-button" before?
I would like split the shop-functionality from the light-box-functionality.
A picture should be ordered without putting the card into the "lightbox.

Thank you for helping me!

Serge

453
Hi V@no

I have changed the settings as follow:
Code: [Select]
$big_folder_default = "original";
Then I have created the following folder (755 everytime I change the rights on 777 it is re-changed by the system to 755)
.../media/number_of_category/original

In the ACP (Auto Risizer) the Folder "original" is displayed

Then I deactivate the flag "all picture" and chose a single one (the first picter on the list)

The name of the picture is displayed automaticly

I enter the description and the keywords.

All other information is per default ok.

Now I click on the button "add"

The log shows the following information:
Working on data/media/2/fenster.jpg file:
Copied original file into data/media/2/original/ folder.
Image resized.
Created thumbnail.
Bild erfolgreich hinzugefügt: Blaue Fassade

In data/media/2/original/ exist no files...
And description and keywords are not stored in the database.





454
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

455
do you mean from the following setting:
Code: [Select]
$dimension_default = $config['max_image_width']  ; //image dimension
so where exactly do I have to enter the value?

This are the settings in my checkimages.php
Code: [Select]
//--------| Default Settings |-------------

$quality_default = ($config['auto_image_quality']) ? $config['auto_image_quality'] : 85; //image quality
$quality_thumbs_default = $config['auto_thumbnail_quality']; //thumbnail quality
$dimension_default = $config['max_image_width']; //image dimension
$dimension_thumbs_default = $config['auto_thumbnail_dimension']; //thumbnail demension
$max_dimension_default = 140; //displayed in preview image dimension (not image resizing)
$num_newimages_default = 30; //images per circle
$big_folder_default = "big"; //name of the "big" folder where original image will be copied to, if its bigger then size set in the settings.
$big_annotate = 0; //add annotation to the "original" images in "big" folder? (0 or 1)
$backup_orig = ""; //leave empty if u dont want backup files when it needed resize or add watermark (to preserve IPTC and EXIF headers) NO TRAILING SLASH!
$filter = 1; //use a filter on filenames. Any non-standart characters will be replaced with _ or just be deleted. (0 or 1)
$thumbpreview = 1; //create temporary thumbnails for preview if no original was found. (only for none-detailed view) (0 or 1)
$thumbpreview_quality = 75; //quality for temporary thumbnails
$thumbpreview_dimensions = 140; //max dimensions for temporary thumbnails
$thumbpreview_tempdir = ROOT_PATH.'data/temp'; //directory for temporary files. Must be writable (CHMOD 777).
$rescan = 1; //rescan for new images after first portion of images added (0 or 1)
if (!$mode)
{
  $annotate_default = (isset($config['annotation_use'])) ? $config['annotation_use'] : 0; //add annotation to the images (require "Annotation MOD" by SLL)
  $big_default = 1; //save original image (0 or 1)
  $auto_iptc_default = 0; //auto insert IPTC (0 or 1)
  $date_iptc_default = 0; //auto insert date from IPTC (0 or 1)
  $detailed_default = 1; //detailed view (0 or 1)
  $auto_resize_default = 1; //resize images (0 or 1)
  $auto_thumbs_default = 1; //create thumbs (0 or 1)
  $subcats_default = 0; //include subcategories (0 or 1)
}

//----------| End Settings |---------------

and the picture is not copied, even the picture is resized....

456
Hi V@no

Yes, I have seen the settings...

but I can not see the value "1820".
The value "1820" is shown in the field "image file size in pixel" in the ACP.

In the settings I entered
Code: [Select]
$big_folder_default = "original";Then I created a folder .../media/number_of_category/original/
But the original picture is not copied in this folder. And I don't get any error message.

Further more the Description and the Keywords are not updated in the database. When I enter the description in "edit picture", the database is updated.... strange, isn't it?

457
Hi

I have two questions:

Where can I change the default for "image file size in pixel"?

I want to copy the original picture into the folder .../media/number_of_category/original/ befor resizing the picture.
What are the modifications to do?

Thank you for helping me.

Serge

458
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);


459
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....


460
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!

461
anybody who can help me?

462
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?

463
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

464
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

465
Discussion & Troubleshooting / Conditional User Group template tags
« on: March 10, 2005, 01:14:39 PM »
Hi everybody

4images knows 4 types of users:

user logged out  ('GUEST', -1);
registered user, but not activatet  ('USER_AWAITING', 1);
user logged in ('USER', 2);
administrator ('ADMIN', 9);

with the following tags it is possible to define the layout of pages:
Code: [Select]
{if user_loggedout}
{endif user_loggedout}

{if user_loggedin}
{endif user_loggedin}

 {if is_admin}
{endif is_admin}

My homepage is addressed to customers and to photographers. Each of them has other needs (customer: shop cart, e-card, … / photographer: upload, control-center…).

That’s why I need a new “userlevel” for photographers.

I’d like to design the pages with new tags
Code: [Select]
{if photograph_loggedout}
{endif photograph _loggedout}

Two register-forms and two login-forms should be available. One for the customer and one for the photographer. In the database it should be stored, if a user is “registered” / “logged in” as a customer or as a photographer. And of course should functions like "e-Mail convermation after upload a picture" still be available.

I have already createt new templates for {user_box2}: user_loginform2.html and user_logininfo2.html.

I have installed the following MOD’s:


I hope, somebody can help me! This MOD is very important for me.

Thank you!

Serge

Pages: 1 ... 27 28 29 30 [31]