Author Topic: [Mod] [Beta] Shop Mod für 4images (no support)  (Read 249030 times)

0 Members and 1 Guest are viewing this topic.

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
[Mod] [Beta] Shop Mod für 4images (no support)
« on: May 22, 2003, 06:09:52 PM »
THIS MOD IS NOT COMPATIBLE WITH 4IMAGES v1.7.4 AND NEWER. PLUS IT SEEMS THERE IS NO SUPPORT FROM THE AUTHOR, SO INSTALL IT AT YOUR OWN RISK.

Mal endlich ein Shop Mod für 4images  :D
Da ich aber eher ein "PHP Newbie" bin ist das ganze noch bisschen unstrukturiert und für "Profis" komisch gecodet.
Der Shop basiert auf den Prinzipien der Lightbox, mit ein paar kleinen Änderungen. Bisjetzt gibt's den Shop nur in deutsch. Einige Ausdrücke fehlen noch in der Language File und müssen direkt in der Template oder .php Datei geändert werden.  :?

Eine Demo hat's unter http://www.party-cam.org/4images_shop

Funktionen siehe Installationsanleitung.  :!:

Die neuen Files gibt's hier zum downloaden
Die Version ist Beta. Updates folgen...
Also bitte jede Menge Bugs & Vorschläge berichten!!!

Eigene Buttons passen hier natürlich auch hin  :wink:

Code: [Select]
###############################################
## Title: Shop System for 4images
## Version: 0.9
## Author: neo18tildie <neo18tildie@web.de>
## Demo: http://www.party-cam.org/4images_shop
##
## Description:
## Dieses Mod fügt einen Warenkorb in die 4images Gallery ein.
##
## Features:
## - für jedes Bild ist ein sperater Preis einstellbar
## - Bearbeitungsgebühr & Porto einstellbar
## - Liefer- & Rechnungsadresse
## - verschiedene Zahlungsarten
## - Bestätigung per eMail
## - Benachrichtung über neue Bestellungen
## - Kundendatenbank
## - Bilder können für den Verkauf gesperrt werden (-> einfach Preis = 0.00 einstellen)
##
##
## Installation Level: Advanced
## Installation Time: ? Minutes
##
## Included Files:
##
## /4images/admin/plugins/kundendaten.php
## /4images/bestellung.php
## /4images/quittung.php
## /4images/warenkorb.php
## /4images/warenkorb_kunde.php
## /4images/warenkorb_update.php
## /4images/images/basket_add.gif
## /4images/images/basket_delete.gif
## /4images/images/basket_minus.gif
## /4images/images/bestellung.gif
## /4images/lang/deutsch/email/bestellung_admin_email.html
## /4images/lang/deutsch/email/bestellung_email.html
## /4images/templates/default/agbs.html
## /4images/templates/default/bestellung.html
## /4images/templates/default/quittung.html
## /4images/templates/default/warenkorb.html
## /4images/templates/default/warenkorb_kunde.html
## /4images/templates/default/warenkorb_kunde2.html
##
## Files To Edit: 14
## /4images/admin/settings.php
## /4images/bestellung.php *
## /4images/details.php
## /4images/lang/deutsch/main.php
## /4images/lang/deutsch/admin.php
## /4images/includes/constants.php
## /4images/includes/db_field_definitions.php
## /4images/includes/email.php
## /4images/includes/functions.php
## /4images/includes/page_header.php
## /4images/includes/sessions.php
## /4images/templates/default/details.html
## /4images/templates/default/tumbnail_bit.html
## /4images/templates/default/user_logininfo.html
##
##
##
###############################################


************ MYSQL Commands ************

CREATE TABLE 4images_kunden (
  kunde_id mediumint(8) NOT NULL auto_increment,
  kunde_anrede varchar(255) NOT NULL default '',
  kunde_nachname varchar(255) NOT NULL default '',
  kunde_vorname varchar(255) NOT NULL default '',
  kunde_firma varchar(255) NOT NULL default '',
  kunde_plz varchar(255) NOT NULL default '',
  kunde_str varchar(255) NOT NULL default '',
  kunde_ort varchar(255) NOT NULL default '',
  kunde_telefon varchar(255) NOT NULL default '',
  kunde_telefax varchar(255) NOT NULL default '',
  liefer_anrede varchar(255) NOT NULL default '',
  liefer_nachname varchar(255) NOT NULL default '',
  liefer_vorname varchar(255) NOT NULL default '',
  liefer_firma varchar(255) NOT NULL default '',
  liefer_plz varchar(255) NOT NULL default '',
  liefer_str varchar(255) NOT NULL default '',
  liefer_ort varchar(255) NOT NULL default '',
  liefer_telefon varchar(255) NOT NULL default '',
  liefer_telefax varchar(255) NOT NULL default '',
  kunde_zahlungsart varchar(255) NOT NULL default '',
  kunde_bemerkung text NOT NULL,
  kunde_bank varchar(255) NOT NULL default '',
  kunde_kontonr varchar(255) NOT NULL default '',
  kunde_blz varchar(255) NOT NULL default '',
  bestellung tinyint(8) NOT NULL default '1',
  letzte_bestellung int(11) NOT NULL default '0',
  PRIMARY KEY  (kunde_id),
  KEY kunde_nachname (kunde_nachname)
) TYPE=MyISAM;

CREATE TABLE 4images_warenkorb (
  warenkorb_id varchar(32) NOT NULL default '',
  user_id mediumint(8) NOT NULL default '0',
  warenkorb_image_id text,
  image_quantity mediumint(8) default NULL,
  KEY warenkorb_id (warenkorb_id),
  KEY user_id (user_id)
) TYPE=MyISAM;

ALTER TABLE `4images_images` ADD `price_1` DECIMAL( 12, 2 ) DEFAULT '0.00' NOT NULL ;

INSERT INTO `4images_settings` ( `setting_name` , `setting_value` )
VALUES (
'porto', '1.00'
);

INSERT INTO `4images_settings` ( `setting_name` , `setting_value` )
VALUES (
'bearbeitung', '1.00'
);



************ UPLOAD INCLUDED FILES ************
List of files at the top of this file.
"root" is your 4images Path


************ ADJUST IN bestellung.php ************

$site_url = 'http://www.your-site.org/4images/';



************ FIND IN includes/email.php ************

function create_header() {
    global $config;
    $header = "";


************ After $header = ""; add the following line:  ************

$header .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";
      

************ FIND IN includes/page_header.php ************

//-----------------------------------------------------
//--- Random Image ------------------------------------
//-----------------------------------------------------
$random_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image();
$site_template->register_vars("random_image", $random_image);
unset($random_image);

************ ADD AFTER ************

//-----------------------------------------------------
//--- Shop System --------------------------------
//-----------------------------------------------------

function FormatPrice ($nPrice)
{
   $nPrice = number_format($nPrice, "2", ",", ".");
   return $nPrice;
}

$kunde = $user_info['user_id'];


************ FIND IN includes/page_header.php ************

//-----------------------------------------------------
//--- Add & Delete from Lists -------------------------
//-----------------------------------------------------
if ($action == "addtolightbox" && $id) {
  if ($user_info['user_level'] >= USER) {
    $msg = (add_to_lightbox($id)) ? $lang['lightbox_add_success'] : $lang['lightbox_add_error'];
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}
if ($action == "removefromlightbox" && $id) {
  if ($user_info['user_level'] >= USER) {
    $msg = (remove_from_lightbox($id)) ? $lang['lightbox_remove_success'] : $lang['lightbox_remove_error'];
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}
if ($action == "clearlightbox") {
  if ($user_info['user_level'] >= USER) {
    $msg = (clear_lightbox()) ? $lang['lightbox_delete_success'] : $lang['lightbox_delete_error'];
  }
  else {
    $msg = $lang['lightbox_register'];
  }
}

************ ADD AFTER ************

if ($action == "addtowarenkorb" && $id) {
  if ($user_info['user_level'] >= USER) {
    $msg = (add_to_warenkorb($id)) ? $lang['warenkorb_add_success'] : $lang['warenkorb_add_error'];
  }
  else {
    $msg = $lang['warenkorb_register'];
  }
}
if ($action == "removefromwarenkorb" && $id) {
  if ($user_info['user_level'] >= USER) {
    $msg = (remove_from_warenkorb($id)) ? $lang['warenkorb_remove_success'] : $lang['warenkorb_remove_error'];
  }
  else {
    $msg = $lang['warenkorb_register'];
  }
}

if ($action == "anzahlverkleinernwarenkorb" && $id) {
  if ($user_info['user_level'] >= USER) {
    $msg = (anzahl_verkleinern_warenkorb($id)) ? $lang['anzahl_verkleinern_success'] : $lang['warenkorb_remove_error'];
  }
  else {
    $msg = $lang['warenkorb_register'];
  }
}

if ($action == "clearwarenkorb") {
  if ($user_info['user_level'] >= USER) {
    $msg = (clear_warenkorb()) ? $lang['warenkorb_delete_success'] : $lang['warenkorb_delete_error'];
  }
  else {
    $msg = $lang['warenkorb_register'];
  }
}


************ FIND IN includes/page_header.php ************

"url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),

************ ADD AFTER ************

"url_warenkorb" => $site_sess->url(ROOT_PATH."warenkorb.php"),


************ FIND IN includes/page_header.php ************

"lang_lightbox" => $lang['lightbox'],


************ ADD AFTER ************

"lang_warenkorb" => $lang['warenkorb'],


************ FIND IN includes/page_header.php ************

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------


************ ADD BEFORE ************

//-----------------------------------------------------
//--- Warenkorb Box -----------------------------------
//-----------------------------------------------------


      $sql = "SELECT sum( w.image_quantity * i.price_1 ) AS total_price
      FROM ".WARENKORB_TABLE." w, ".IMAGES_TABLE." i
      WHERE image_active = 1
      AND w.user_id = ".$kunde."
      AND i.image_id = w.warenkorb_image_id";

  $result = $site_db->query_firstrow($sql);
$total_sum = $result['total_price'];
$total_sum = FormatPrice ($total_sum);


      $sql = "SELECT sum( w.image_quantity) AS total_images_sum
      FROM ".WARENKORB_TABLE." w, ".IMAGES_TABLE." i
      WHERE image_active = 1
      AND w.user_id = ".$kunde."
      AND i.image_id = w.warenkorb_image_id";

  $result = $site_db->query_firstrow($sql);
$total_images_sum = $result['total_images_sum'];


************ FIND IN includes/page_header.php ************

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER) {
  $site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg']));
  $user_box = $site_template->parse_template("user_logininfo");
  $site_template->register_vars(array(
    "user_box" => $user_box,

************ ADD AFTER ************

  "lang_warenkorb" => $lang['warenkorb'],
  "bestellung" => $bestellung,
  "total_images_sum" => $total_images_sum,
  "total_sum" => $total_sum,


************ FIND IN includes/constants.php ************

define('LIGHTBOXES_TABLE', $table_prefix.'lightboxes');

************ ADD AFTER ************

define('WARENKORB_TABLE', $table_prefix.'warenkorb');
define('KUNDEN_TABLE', $table_prefix.'kunden');


************ FIND IN includes/functions.php ************

  if ($user_info['user_level'] != GUEST) {
    $lightbox_url = $self_url;
    $lightbox_url .= (!empty($mode)) ? ((preg_match("/\?/", $lightbox_url)) ? "&amp;" : "?")."mode=".$mode : "";
    $lightbox_url .= preg_match("/\?/", $lightbox_url) ? "&amp;" : "?";
    if (check_lightbox($image_row['image_id'])) {
      $lightbox_url .= "action=removefromlightbox&amp;id=".$image_row['image_id'];
      $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"Dieses Bild aus deinem Album entfernen\" /></a>";
      $lightbox_button_kl = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\"Dieses Bild aus deinem Album entfernen\" /></a>";
    }
    else {
      $lightbox_url .= "action=addtolightbox&amp;id=".$image_row['image_id'];
      $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"Dieses Bild zu deinem Album hinzufügen\" /></a>";
      $lightbox_button_kl = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Dieses Bild zu deinem Album hinzufügen\" /></a>";
    }
  }
  else {
    $lightbox_button = "<img src=\"".get_gallery_image("lightbox_off.gif")."\" border=\"0\" alt=\"\" />";
    $lightbox_button_kl = "<img src=\"".get_gallery_image("lightbox_off_kl.gif")."\" border=\"0\" align=\"right\" alt=\"\" />";
  }


************ ADD AFTER ************

  if ($user_info['user_level'] != GUEST && $image_row['price_1'] != 0) {
    $warenkorb_url = $self_url;
    $warenkorb_url .= (!empty($mode)) ? ((preg_match("/\?/", $warenkorb_url)) ? "&amp;" : "?")."mode=".$mode : "";
    $warenkorb_url .= preg_match("/\?/", $warenkorb_url) ? "&amp;" : "?";
    if (check_warenkorb($image_row['image_id'])) {
      $warenkorb_url .= "action=removefromwarenkorb&amp;id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes.gif")."\" border=\"0\" align=\"\" alt=\"Aus dem Warenkorb entfernen\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\"Aus dem Warenkorb entfernen\" /></a>";
    }
    else {
      $warenkorb_url .= "action=addtowarenkorb&amp;id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Zum Warenkorb hinzufügen\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Zum Warenkorb hinzufügen\" /></a>";
    }
  }
  else {

  if ($image_row['price_1'] == 0) {
    $warenkorb_button = "<img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" alt=\"Dieses Bild ist zur Zeit leider nicht verfügbar\"/>";
    $warenkorb_button_kl = "<img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Dieses Bild ist zur Zeit leider nicht verfügbar\"/>";
    }
    else {
    $warenkorb_button = "<img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" alt=\"Du musst angemeldet sein, um den Warenkorb zu benutzen\"/>";
    $warenkorb_button_kl = "<img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Du musst angemeldet sein, um den Warenkorb zu benutzen\" />";
    }
  }


************ FIND IN includes/functions.php ************

$site_template->register_vars(array(
    "image_id" => $image_row['image_id'],


************ ADD AFTER ************
    
    "image_price_1" => $image_row['price_1'],


************ FIND IN includes/functions.php ************

function check_lightbox($id) {
  global $user_info;
  $lightbox_array = explode(" ", $user_info['lightbox_image_ids']);
  return in_array($id, $lightbox_array);
}


************ ADD AFTER ************

function add_to_warenkorb($id) {
  global $user_info, $site_db;
  $id = intval($id);
  if (!$id) {
    return false;
  }
  $warenkorb_ids = $user_info['warenkorb_image_id'];
  $warenkorb_array = explode(" ", $warenkorb_ids);
  if (!in_array($id, $warenkorb_array)) {
    $warenkorb_ids .= " ".$id;
  }
  $user_info['warenkorb_image_id'] = trim($warenkorb_ids);

  $warenkorb_id = get_random_key(WARENKORB_TABLE, "warenkorb_id");

  $sql = "SELECT COUNT(*) as check_doubles
   FROM ".WARENKORB_TABLE."
   WHERE user_id=".$user_info['user_id']."
   AND warenkorb_image_id=".$user_info['warenkorb_image_id']." ";

   $check = $site_db->query_firstrow($sql);
     $check_doubles = $check['check_doubles'];

   if ($check_doubles > 0)
   {

 $sql = "SELECT image_quantity
            FROM ".WARENKORB_TABLE."
            WHERE user_id=".$user_info['user_id']."
   AND warenkorb_image_id=".$user_info['warenkorb_image_id']." ";
       $row = $site_db->query_firstrow($sql);
       $image_quantity = $row['image_quantity'];
$new_image_quantity = $image_quantity + 1;

$sql = "UPDATE ".WARENKORB_TABLE."
SET image_quantity = ".$new_image_quantity."
WHERE user_id = ".$user_info['user_id']."
AND warenkorb_image_id = ".$user_info['warenkorb_image_id'];
return ($site_db->query($sql)) ? 1 : 0;
}
else {

  $user_info['image_quantity'] = "";

  $sql = "INSERT INTO ".WARENKORB_TABLE."
                    (warenkorb_id, user_id, warenkorb_image_id, image_quantity)
                    VALUES
                    ('$warenkorb_id', ".$user_info['user_id'].", ".$user_info['warenkorb_image_id'].", '1')";
          return ($site_db->query($sql)) ? 1 : 0;
      }
}



function anzahl_verkleinern_warenkorb($id) {
  global $user_info, $site_db;
  $id = intval($id);
  if (!$id) {
    return false;
  }
  $warenkorb_ids = $user_info['warenkorb_image_id'];
  $warenkorb_array = explode(" ", $warenkorb_ids);
  if (!in_array($id, $warenkorb_array)) {
    $warenkorb_ids .= " ".$id;
  }
  $user_info['warenkorb_image_id'] = trim($warenkorb_ids);

  $warenkorb_id = get_random_key(WARENKORB_TABLE, "warenkorb_id");

  $sql = "SELECT image_quantity
            FROM ".WARENKORB_TABLE."
            WHERE user_id = ".$user_info['user_id']."
   AND warenkorb_image_id = ".$user_info['warenkorb_image_id']." ";
       $row = $site_db->query_firstrow($sql);
       $image_quantity = $row['image_quantity'];

   if ($image_quantity > 1)
   {
$new_image_quantity = $image_quantity - 1;

$sql = "UPDATE ".WARENKORB_TABLE."
SET image_quantity = ".$new_image_quantity."
WHERE user_id = ".$user_info['user_id']."
AND warenkorb_image_id = ".$user_info['warenkorb_image_id'];
return ($site_db->query($sql)) ? 1 : 0;
}
else {

  $sql = "DELETE FROM ".WARENKORB_TABLE."

                    WHERE user_id = ".$user_info['user_id']."
AND warenkorb_image_id = ".$user_info['warenkorb_image_id'];
          return ($site_db->query($sql)) ? 1 : 0;
      }
}


function remove_from_warenkorb($id) {
  global $user_info, $site_db;
  $id = intval($id);
  if (!$id) {
    return false;
  }
  $warenkorb_ids = $user_info['warenkorb_image_id'];
  $warenkorb_array = explode(" ", $warenkorb_ids);
  if (!in_array($id, $warenkorb_array)) {
    $warenkorb_ids .= " ".$id;
  }
  $user_info['warenkorb_image_id'] = trim($warenkorb_ids);

  $warenkorb_id = get_random_key(WARENKORB_TABLE, "warenkorb_id");


  $sql = "DELETE FROM ".WARENKORB_TABLE."
                    WHERE user_id = ".$user_info['user_id']."
AND warenkorb_image_id = ".$user_info['warenkorb_image_id'];
          return ($site_db->query($sql)) ? 1 : 0;


}

function clear_warenkorb() {
  global $user_info, $site_db;
  $current_time = time();
  $sql = "DELETE FROM ".WARENKORB_TABLE."
          WHERE user_id = ".$user_info['user_id'];
  if ($site_db->query($sql)) {
    $user_info['warenkorb_image_id'] = "";

    return true;
  }
  else {
    return false;
  }
}

function check_warenkorb($id) {
  global $user_info, $site_db;

$sql = "SELECT warenkorb_image_id
      FROM ".WARENKORB_TABLE."
      WHERE user_id = ".$user_info['user_id'];
$result = $site_db->query($sql);
  while($row = $site_db->fetch_array($result)) {

    $warenkorb_image .= " ".$row['warenkorb_image_id']." ";
    }
  $warenkorb_array = explode(" ", $warenkorb_image);
  return in_array($id, $warenkorb_array);
}




************ FIND IN includes/functions.php ************

"lightbox_button" => $lightbox_button,


************ ADD AFTER ************

"warenkorb_button" => $warenkorb_button,


************ FIND IN db_field_definitions.php ************

// Example for additional image fields:
//$additional_image_fields['image_photographer'] = array($lang['image_photographer'], "text", 1);


************ ADD AFTER ************

$additional_image_fields['price_1'] = array($lang['price_1'], "decimal(4,2)", 1);






************ FIND IN details.php ************

if ($mode == "lightbox") {
  if (!empty($user_info['lightbox_image_ids'])) {
    $image_id_sql = str_replace(" ", ", ", trim($user_info['lightbox_image_ids']));
    $sql = "SELECT image_id, image_name, image_media_file, image_thumb_file
            FROM ".IMAGES_TABLE."
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND cat_id IN (".get_auth_cat_sql("auth_viewcat").")
            ORDER BY ".$config['image_order']." ".$config['image_sort'];
    $in_mode = 1;
  }
}


************ ADD AFTER ************

if ($mode == "warenkorb") {
  if (!empty($user_info['warenkorb_image_id'])) {
    $image_id_sql = str_replace(" ", ", ", trim($user_info['warenkorb_image_id']));
    $sql = "SELECT image_id, image_name, image_media_file, image_thumb_file
            FROM ".IMAGES_TABLE."
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND cat_id IN (".get_auth_cat_sql("auth_viewcat").")
            ORDER BY ".$config['image_order']." ".$config['image_sort'];
    $in_mode = 1;
  }
}


************ FIND IN lang/deutsch/main.php ************

//-----------------------------------------------------
//--- Lightbox ----------------------------------------
//-----------------------------------------------------
$lang['lightbox_no_images'] = "Du hast keine Bilder in deinem Album.";
$lang['lightbox_add_success'] = "Bild erfolgreich hinzugefügt.";
$lang['lightbox_add_error'] = "Fehler beim Hinzufügen!";
$lang['lightbox_remove_success'] = "Bild erfolgreich aus deinem Album entfernt.";
$lang['lightbox_remove_error'] = "Fehler beim Löschen!";
$lang['lightbox_register'] = "Um ein persönliche Album nutzen zu können, musst du ein registrierter Benutzer sein.<br />&raquo; <a href=\"{url_register}\">Jetzt registrieren</a>";
$lang['lightbox_delete_success'] = "Dein Album erfolgreich gelöscht.";
$lang['lightbox_delete_error'] = "Fehler beim Löschen deines Albums!";
$lang['delete_lightbox'] = "Album l&ouml;schen";
$lang['lighbox_lastaction'] = "Album zuletzt aktualisiert:";
$lang['delete_lightbox_confirm'] = "Willst du dein Album wirklich loeschen?";


************ ADD AFTER ************

//-----------------------------------------------------
//--- Warenkorb ---------------------------------------
//-----------------------------------------------------

$lang['warenkorb'] = "Warenkorb";
$lang['warenkorb_no_images'] = "Du hast keine Bilder in deinem Warenkorb.";
$lang['warenkorb_add_success'] = "Bild erfolgreich hinzugefügt.";
$lang['warenkorb_add_error'] = "Fehler beim Hinzufügen!";
$lang['warenkorb_remove_success'] = "Bild erfolgreich aus deinem Warenkorb entfernt.";
$lang['warenkorb_remove_error'] = "Fehler beim Löschen!";
$lang['warenkorb_register'] = "Um ein persönliche Warenkorb nutzen zu können, musst du ein registrierter Benutzer sein.<br />&raquo; <a href=\"{url_register}\">Jetzt registrieren</a>";
$lang['warenkorb_delete_success'] = "Dein Warenkorb wurde erfolgreich gelöscht.";
$lang['anzahl_verkleinern_success'] = "Artikel aus dem Warenkorb entfernt.";
$lang['warenkorb_delete_error'] = "Fehler beim L&ouml;schen deines Warenkorbs!";
$lang['delete_warenkorb'] = "Warenkorb l&ouml;schen";
$lang['warenkorb_lastaction'] = "Warenkorb zuletzt aktualisiert:";
$lang['delete_warenkorb_confirm'] = "Willst du dein Warenkorb wirklich l&ouml;schen?";
$lang['warenkorb_leer'] = "Du hast keine Bilder in deinem Warenkorb.";
$lang['price_1'] = "Preis:";



************ FIND IN lang/deutsch/admin.php ************

/*-- Setting-Group 7 --*/
$setting_group[7]="Session und User Einstellungen";
$setting['user_edit_image'] = "Dürfen User Ihre eigenen Bilder bearbeiten";
$setting['user_delete_image'] = "Dürfen User Ihre eigenen Bilder löschen";
$setting['user_edit_comments'] = "Dürfen User Kommentare zu Ihren eigenen Bildern bearbeiten";
$setting['user_delete_comments'] = "Dürfen User Kommentare zu Ihren eigenen Bildern löschen";
$setting['account_activation'] = "Account-Aktivierung";
$account_activation_optionlist = array(
  "0" => "Keine",
  "1" => "Per Email",
  "2" => "Durch den Admin"
);
$setting['activation_time'] = "Zeitraum in Tagen, in der User ihren Account aktivieren müssen. Danach wird der Eintrag gelöscht.<br /><span class=\"smalltext\">0 schaltet die Funktion aus, d.h. Useraccounts die nicht aktiviert werden, werden nicht gelöscht.</span>";
$setting['session_timeout'] = "Ablaufzeit der Sessions bei Usern ohne Aktion in Minuten";
$setting['display_whosonline'] = "Anzeigen des Moduls \"Wer ist online\". Bei Deaktivierung nur sichtbar für Administratoren";
$setting['highlight_admin'] = "Sollen Administratoren im Modul \"Wer ist online\" fett dargestellt werden";



************ IMPORTANT ************

Replace X with the last Setting-Group No. + 1 !!!
eg. $setting_group[8]

************ ADD AFTER ************

/*-- Setting-Group X --*/
$setting_group[X]="Warenkorb Einstellungen";
$setting['porto'] = "Versandtkosten";
$setting['bearbeitung'] = "Bearbeitungsgebühr";


************ FIND IN admin/settings.php ************

  show_form_footer($lang['save_changes'], "", 2);
}

show_admin_footer();


************ IMPORTANT ************

Replace X with the last Setting-Group No. + 1 !!!
eg. $setting_group[8] / #setting_group_8

************ ADD BEFORE ************

  show_table_separator($setting_group[X], 2, "#setting_group_X");
  show_setting_row("porto");
  show_setting_row("bearbeitung");


************ FIND IN admin/settings.php ************

function show_language_dir_select($setting_name, $setting_value) {
  echo "<select name=\"setting_item[".$setting_name."]\">";
  $handle = opendir(ROOT_PATH."lang");
  while ($folder = @readdir($handle)) {
    if (@is_dir(ROOT_PATH."lang/$folder") && $folder != "." && $folder != "..") {
      $folderlist[] = $folder;
    }
  }
  sort($folderlist);
  for($i = 0; $i < sizeof($folderlist); $i++) {
    echo "<option value=\"".$folderlist[$i]."\"";
    if ($setting_value == $folderlist[$i]) {
      echo " selected=\"selected\"";
    }
    echo ">".$folderlist[$i]."</option>\n";
  }
  closedir($handle);
  echo "</select>\n";
}


************ ADD AFTER ************

function warenkorb_select($setting_name, $setting_value) {
  global $warenkorb_optionlist;
  echo "<select name=\"setting_item[".$setting_name."]\">";
  foreach ($warenkorb_optionlist as $key => $val) {
    echo "<option value=\"$key\"";
    if ($setting_value == $key) {
      echo " selected=\"selected\"";
    }
    echo ">".$val."</option>";
  }
  echo "</select>";
}


************ FIND IN templates/default/details.html ************

<br />{lightbox_button}&nbsp;&nbsp;{postcard_button}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{download_button}&nbsp;&nbsp;{download_zip_button}


************ ADD AFTER ************

&nbsp;&nbsp;{warenkorb_button}


************ FIND IN templates/default/tumbnail_bit.html ************

{lightbox_button}

************ ADD AFTER ************

&nbsp;&nbsp;{warenkorb_button}

************ FIND IN templates/default/user_logininfo.html ************

      &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />


************ ADD BEFORE ************

      &raquo; <a href="{url_warenkorb}" title="{total_images_sum} Bilder">{lang_warenkorb}</a><br />



SAVE & CLOSE ALL FILES

Kleine Tips:
- Bilder können für den Verkauf gesperrt werden  :arrow: einfach Preis = 0.00 einstellen
- Im Admin Panel erscheint unter Plugins ein Menupunkt "Kundendaten". Hier werden alle Kunden mit ihren Daten aufgelistet
- Unter Allgemein >Einstellungen   lassen sich Bearbeitungsgebühr & Versandtkosten einstellen
- AGBs können per Allgemein > Templates bearbeiten   geändert werden
« Last Edit: August 01, 2009, 06:10:06 AM by V@no »

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
[Mod] [Beta] Shop Mod für 4images
« Reply #1 on: May 22, 2003, 07:43:11 PM »
tolle sache. Werd eich mir mal anschauen!!!

Offline kundera

  • Newbie
  • *
  • Posts: 40
    • View Profile
hi
« Reply #2 on: May 22, 2003, 09:11:12 PM »
hello, just two words : Very Nice!!!"
cool, it seems just having little prob in your code you send
after
"find in includes/function"
you send the same code for find and for replace :-)
 
so very good job :D

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
[Mod] [Beta] Shop Mod für 4images
« Reply #3 on: May 22, 2003, 09:20:24 PM »
i want bugs. give me more bugs. But bugs in the code - not in the installtion text *g* :oops:
i fixed it.
THX

btw. würd mich freuen wenn jemand das ding zum laufen bringt mit nem eigenen style & es postet.
******* eng. *******
btw. i would be glad if someone get's it running with an own style / template and shows it off to us.

Hier mal Screenshots vom Kundenmenu:







P.S.: vielleicht will's auch jemand ins eng. übersetzen.
P.S.S.: ne bessere demo hat's unter www.party-cam.org/cam

Offline kundera

  • Newbie
  • *
  • Posts: 40
    • View Profile
me again
« Reply #4 on: May 22, 2003, 09:46:25 PM »
so good, but thinks that the sql taable miss
'4images_kunden' & '4images_warenkorb' :-)
so i will translate that in french maybe helpfull for some of you, and gonna test to find bugs  :wink:

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
[Mod] [Beta] Shop Mod für 4images
« Reply #5 on: May 22, 2003, 09:59:22 PM »
yes
they are/were missing. Just added it  :)

somewhere in the included files 4images_kunden is used instead of 'KUNDEN_TABLE'. I'll fix this bug in the next version.
So use "create 4images_kunden" and no other prefix  :!:

Offline kundera

  • Newbie
  • *
  • Posts: 40
    • View Profile
so little prob :-)
« Reply #6 on: May 22, 2003, 10:27:21 PM »
not big bug, but if your table prefix isn't "4images_ ", have to change
in the files
Code: [Select]
4images_kunden
by
Code: [Select]
".KUNDEN_TABLE."

(for example in admin/plugins/kundendaten.php
//////////////////////////////////////////////////////////////////////
so that the first part of french translation in lang/french/main.php
 :arrow: before ?>
add :

Code: [Select]
$lang['warenkorb'] = "Votre caddy";
$lang['warenkorb_no_images'] = "Aucun article dans votre caddy.";
$lang['warenkorb_add_success'] = "Article ajouté avec succèst.";
$lang['warenkorb_add_error'] = "Erreur lors de l'ajout de l'article!";
$lang['warenkorb_remove_success'] = "Article ajoutée au panier.";
$lang['warenkorb_remove_error'] = "Article supprimé avec succès!";
$lang['warenkorb_register'] = "Pour activer votre caddy personnel, vous devez vous inscrire <a href=\"{url_register}\">Inscription</a>";
$lang['warenkorb_delete_success'] = "Caddy supprimé avec succès.";
$lang['anzahl_verkleinern_success'] = "L'article a été supprimer du caddy avec succès.";
$lang['warenkorb_delete_error'] = "Erreur lors de la suppression de l'image dans le caddy!";
$lang['delete_warenkorb'] = "Caddy supprimé";
$lang['warenkorb_lastaction'] = "Caddy actualisé :";
$lang['delete_warenkorb_confirm'] = "Voulez vous supprimer ces articles du caddy?";
$lang['warenkorb_leer'] = "Aucun article mémorisé dans le caddy.";
$lang['price_1'] = "Prix:";


gona do the admin, check this one and after do the english version, and continue test :-)

//////////////////update translation files  :!:  :!:  need to check :-)
 :arrow: in templates/{your template}/warenkorb_kunde.html
find :


Code: [Select]
<br><p><br><p>



    <table border=0 cellpadding=2 cellspacing=1 align=center width="100%" class="row3">

    <tr><td colspan="2" align=center><b>Adresse</b><br></td></tr>

    <tr>

      <td align="right" class="row1">Anrede:</td>

      <td class=row2>

      <select class="categoryselect"name="kunde_anrede">

      <option value="Herr" >Herr</option>

      <option value="Frau" >Frau</option>

      <option value="Firma" >Firma</option>

      </select>

      </td>

    </tr>
<table border=0 cellpadding=3 cellspacing=1 align=center width="100%" class="row2">

<tr>

<td>Bestelldaten</td>

<td width=175 align=center>Deine Kundennummer: {kunde_id}</td>

</tr>

</table>
   

    <tr>

      <td align="right" class="row1">Vorname:</td>

      <td class=row2><input class=input type="Text" name="kunde_vorname" size="25" maxlength="30" value="{kunde_vorname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Nachname: *</td>

      <td class=row2><input class=input type="Text" name="kunde_nachname" size="25" maxlength="30" value="{kunde_nachname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Firma:</td>

      <td class=row2><input class=input type="Text" name="kunde_firma" size="25" maxlength="30" value="{kunde_firma}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Strasse&nbsp;+&nbsp;Nr: *</td>

      <td class=row2><input class=input type="Text" name="kunde_str" size="25" maxlength="30" value="{kunde_str}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">PLZ: *</td>

      <td class=row2><input class=input type="Text" name="kunde_plz" size="5" maxlength="5" value="{kunde_plz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Ort: *</td>

      <td class=row2><input class=input type="Text" name="kunde_ort" size="25" maxlength="30" value="{kunde_ort}"></td>

    </tr>

   



    <tr>

      <td align="right" class="row1">Telefon:</td>

      <td class=row2><input class=input type="Text" name="kunde_telefon" size="25" maxlength="30" value="{kunde_telefon}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Telefax:</td>

      <td class=row2><input class=input type="Text" name="kunde_telefax" size="25" maxlength="30" value="{kunde_telefax}"></td>

    </tr>



    </table>



<br><p>

    <!-- Liefer Adresse -->

    <table border=0 cellpadding=2 cellspacing=1 align="center" width="100%">

    <tr><td colspan="2">Lieferadresse, falls abweichend:</td></tr>

    <tr>

      <td align="right" class="row1">Anrede:</td>

      <td class="row2">

      <select class="categoryselect"name="liefer_anrede">

      <option value="Herr" >Herr</option>

      <option value="Frau" >Frau</option>

      <option value="Firma" >Firma</option>

      </select>

      </td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Vorname:</td>

      <td class=row2><input class=input type="Text" name="liefer_vorname" size="25" maxlength="30" value="{liefer_vorname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Nachname:</td>

      <td class=row2><input class=input type="Text" name="liefer_nachname" size="25" maxlength="30" value="{liefer_nachname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Firma:</td>

      <td class=row2><input class=input type="Text" name="liefer_firma" size="25" maxlength="30" value="{liefer_firma}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Strasse&nbsp;+&nbsp;Nr: *</td>

      <td class=row2><input class=input type="Text" name="liefer_str" size="25" maxlength="30" value="{liefer_str}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">PLZ:</td>

      <td class=row2><input class=input type="Text" name="liefer_plz" size="5" maxlength="5" value="{liefer_plz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Ort:</td>

      <td class=row2><input class=input type="Text" name="liefer_ort" size="25" maxlength="30" value="{liefer_ort}"></td>

    </tr>

   

   

    <tr>

      <td align="right" class="row1">Telefon:</td>

      <td class=row2><input class=input type="Text" name="liefer_telefon" size="25" maxlength="30" value="{liefer_telefon}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Telefax:</td>

      <td class=row2><input class=input type="Text" name="liefer_telefax" size="25" maxlength="30" value="{liefer_telefax}"></td>

    </tr>



    </table>

<br><p><br><p>





    <!-- Zahlungsweise -->

    <table border=0 cellpadding=2 cellspacing=1 class=forumline width="60%">

    <tr><td colspan="2" class=topic>Zahlungsweise:</td></tr>

   

    <tr>

      <td align="right" class="row1">Zahlungsart:</td>

      <td class=row2>

      <select class="categoryselect"name="kunde_zahlungsart" >



      <option value="{kunde_zahlungsart}">{kunde_zahlungsart}</option>

      <option value="">- Bitte auswählen -</option>

      <option value="Bankeinzug" >Bankeinzug</option>

      <option value="Vorkasse" >Vorkasse</option>

      <option value="Rechnung" >Rechnung</option>

      </select>

      </td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Bank:</td>

      <td class=row2><input class=input type="Text" name="kunde_bank" size="22" maxlength="30" value="{kunde_bank}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">BLZ:</td>

      <td class=row2><input class=input type="Text" name="kunde_blz" size="22" maxlength="30" value="{kunde_blz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Konto-Nr.:</td>

      <td class=row2><input class=input type="Text" name="kunde_kontonr" size="22" maxlength="30" value="{kunde_kontonr}"></td>

    </tr>

    </table>





<p>





    <table border=0 cellpadding=3 cellspacing=1 class="forumline" width="60%">

    <tr>

      <td>Bemerkung:</td>

    </tr>

    <tr>

      <td class="row2">Wenn Sie uns etwas mitteilen wollen:<br></td>

    </tr>

    <tr>

      <td class="row1"><textarea class="commenttextarea" name="kunde_bemerkung" rows="10" cols="30" wrap="virtual">{kunde_bemerkung}</textarea></td>

    </tr>

    </table>

   

<p align=left>

<input type="checkbox" name="kunde_conditions" value="checked" >

 Die Allgemeinen <a href="javascript:agbs()">Gesch&auml;ftsbedingungen</a> habe ich gelesen und erkenne sie hiermit an.

</p>

<center>

   <input class="button" type="Submit" name="submit" value="Speichern"><br><br>

</center>


Replace with :
//////////////////////////////////////////////////////////////////////////////////////
Code: [Select]

<table border=0 cellpadding=3 cellspacing=1 align="center" width="100%" >
                                                              <tr>
                                                                <td>{lang_client}</td>
                                                                <td width=175 align="center">{lang_client_number}{kunde_id}</td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p><br>
                                                            <p>
                                                            <table border=0 cellpadding=2 cellspacing=1 align=center width="100%" class="row3">
                                                              <tr>
                                                                <td colspan="2" align=center><b>{lang_adresse}</b><br></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_kind}</td>
                                                                <td   >
                                                                  <select class="categoryselect"name="kunde_anrede">
                                                                    <option value="Herr" >Herr</option>
                                                                    <option value="Frau" >Frau</option>
                                                                    <option value="Firma" >Firma</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_name}</td>
                                                                <td   ><input class=input type="Text" name="kunde_vorname" size="25" maxlength="30" value="{kunde_vorname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_forname}</td>
                                                                <td   ><input class=input type="Text" name="kunde_nachname" size="25" maxlength="30" value="{kunde_nachname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}</td>
                                                                <td   ><input class=input type="Text" name="kunde_firma" size="25" maxlength="30" value="{kunde_firma}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}</td>
                                                                <td   ><input class=input type="Text" name="kunde_str" size="25" maxlength="30" value="{kunde_str}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_cp}</td>
                                                                <td   ><input class=input type="Text" name="kunde_plz" size="5" maxlength="5" value="{kunde_plz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_town}</td>
                                                                <td   ><input class=input type="Text" name="kunde_ort" size="25" maxlength="30" value="{kunde_ort}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_phone}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_telefon" size="25" maxlength="30" value="{kunde_telefon}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_fax}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_telefax" size="25" maxlength="30" value="{kunde_telefax}"></td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p>
                                                              <!-- Liefer Adresse -->
                                                            <table border=0 cellpadding=2 cellspacing=1 align="center" width="100%">
                                                              <tr>
                                                                <td colspan="2">{lang_client_shipping}</td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}:</td>
                                                                <td >
                                                                  <select class="categoryselect"name="liefer_anrede">
                                                                    <option value="Herr" >Herr</option>
                                                                    <option value="Frau" >Frau</option>
                                                                    <option value="Firma" >Firma</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_name}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_vorname" size="25" maxlength="30" value="{liefer_vorname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_forname}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_nachname" size="25" maxlength="30" value="{liefer_nachname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}</td>
                                                                <td   ><input class=input type="Text" name="liefer_firma" size="25" maxlength="30" value="{liefer_firma}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}</td>
                                                                <td   ><input class=input type="Text" name="liefer_str" size="25" maxlength="30" value="{liefer_str}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_cp}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_plz" size="5" maxlength="5" value="{liefer_plz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_ort" size="25" maxlength="30" value="{liefer_ort}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_phone}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_telefon" size="25" maxlength="30" value="{liefer_telefon}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_fax}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_telefax" size="25" maxlength="30" value="{liefer_telefax}"></td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p><br>
                                                            <p>
                                                              <!-- Zahlungsweise -->
                                                            <table border=0 cellpadding=2 cellspacing=1 class=forumline width="60%">
                                                              <tr>
                                                                <td colspan="2" >{lang_client_shipping_rules}</td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_payement}:</td>
                                                                <td   >
                                                                  <select class="categoryselect"name="kunde_zahlungsart" >
                                                                    <option value="{kunde_zahlungsart}">{kunde_zahlungsart}</option>
                                                                    <option value="">-
                                                                    Bitte auswählen
                                                                    -</option>
                                                                    <option value="Bankeinzug" >Bankeinzug</option>
                                                                    <option value="Vorkasse" >Vorkasse</option>
                                                                    <option value="Rechnung" >Rechnung</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_bank}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_bank" size="22" maxlength="30" value="{kunde_bank}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_blzt}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_blz" size="22" maxlength="30" value="{kunde_blz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_count_nbr}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_kontonr" size="22" maxlength="30" value="{kunde_kontonr}"></td>
                                                              </tr>
                                                            </table>
                                                            <p>
                                                            <table border=0 cellpadding=3 cellspacing=1  width="60%">
                                                              <tr>
                                                                <td>{lang_client_info}</td>
                                                              </tr>
                                                              <tr>
                                                                <td >{lang_client_info_txt}<br></td>
                                                              </tr>
                                                              <tr>
                                                                <td  ><textarea class="commenttextarea" name="kunde_bemerkung" rows="10" cols="30" wrap="virtual">{kunde_bemerkung}</textarea></td>
                                                              </tr>
                                                            </table>
                                                            <p align=left>
                                                              <input type="checkbox" name="kunde_conditions" value="checked" >
                                                              {lang_client_agreement}</p>
                                                            <center>
                                                              <input class="button" type="Submit" name="submit" value="Speichern">
                                                              <br>
                                                              <br>
                                                            </center>


 :arrow: in
find
////////////////////////////////////////////////////////////////////////////////////

Code: [Select]

"kunde_blz" => $kunde_info['kunde_blz']


replace with
////////////////////////////////////////////////////////////////////////////////
Code: [Select]
"kunde_blz" => $kunde_info['kunde_blz'],
"lang_client" => $lang['client'],
"lang_client_number" => $lang['client_number'],
"lang_client_adresse" => $lang['client_adresse'],
"lang_client_kind" => $lang['client_kind'],
"lang_client_name" => $lang['client_name'],
"lang_client_forname" => $lang['client_forname'],
"lang_client_firm" => $lang['client_firm'],
"lang_client_street" => $lang['client_street'],
"lang_client_cp" => $lang['client_cp'],
"lang_client_town" => $lang['client_town'],
"lang_client_phone" => $lang['client_phone'],
"lang_client_fax" => $lang['client_fax'],
"lang_client_shipping" => $lang['client_shipping'],
"lang_client_firm" => $lang['client_firm'],
"lang_client_firm_name" => $lang['client_firm_name'],
"lang_client_shipping_rules" => $lang['client_shipping_rules'],
"lang_client_payement" => $lang['client_payement'],
"lang_client_bank" => $lang['client_bank'],
"lang_client_bltz" => $lang['client_bltz'],
"lang_client_count_number" => $lang['client_count_nbr'],
"lang_client_agreement" => $lang['client_agreement']


 :arrow:  in lang/french/main.php before
Code: [Select]
?>

add :
//////////////////////////////////////////////////////////////////////:
Code: [Select]
$lang['client'] = "Prix:"
$lang['client_number'] = "Numéro de client"
$lang['client_adresse'] = "Adresse"
$lang['client_kind'] = "Civilité"
$lang['client_name'] = "Nom"
$lang['client_forname'] = "Prénom"
$lang['client_firm'] = "Entreprise"
$lang['client_street'] = "Adresse"
$lang['client_cp'] = "Code postal"
$lang['client_town'] = "Ville"
$lang['client_phone'] = "Tel"
$lang['client_fax'] = "Fax"
$lang['client_shipping'] = "Destinataire de l'envoie"
$lang['client_firm'] = "Entreprise"
$lang['client_firm_name'] = "Nom de l'entreprise"
$lang['client_shipping_rules'] = "Modalité de payement"
$lang['client_payement'] = "Mode de payement"
$lang['client_bank'] = "Banque"
$lang['client_bltz'] = "?"
$lang['client_count_nbr'] = "Numéro de compte:"
$lang['client_agreement'] = "Je certifie avoir pris connaissance des termes d'utilisations et des conditions de vente"

Offline toto1

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.gifanimer.com
[Mod] [Beta] Shop Mod für 4images
« Reply #7 on: May 23, 2003, 09:17:01 AM »
yes good mod thk

i am translate to french

Offline kundera

  • Newbie
  • *
  • Posts: 40
    • View Profile
saluté
« Reply #8 on: May 23, 2003, 12:05:48 PM »
salut toto, bon si jamais on peut se repartir le boulot pour la traduction, histoir que ca aille plus vite :-)

So i think there is another miss code, i didn't find the code for adding/deleting image to cart.(or maybee bad link) (in thumbail page and detail page)
So can't see if the sytem is runing :-) :wink:

another thinks, maybe for updating the validation of the form, it will be better to use the check system of 4images (like reegister) instead of using a error window?
gona try to do it  :wink:

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
[Mod] [Beta] Shop Mod für 4images
« Reply #9 on: May 23, 2003, 02:02:03 PM »
*arrg*

there were more mistakes in the installation text than i tought  :oops:

fixed:
Code: [Select]
************ FIND IN templates/default/details.html ************

<br />{lightbox_button}&nbsp;&nbsp;{postcard_button}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{download_button}&nbsp;&nbsp;{download_zip_button}

************ ADD AFTER ************

&nbsp;&nbsp;{warenkorb_button}


and added:
Code: [Select]
************ FIND IN templates/default/tumbnail_bit.html ************

{lightbox_button}

************ ADD AFTER ************

&nbsp;&nbsp;{warenkorb_button}


You can use {warenkorb_button_kl} to have a different button for thumbnail view. Create your buttons with the names
warenkorb_off_kl.gif
warenkorb_yes_kl.gif
warenkorb_no_kl.gif

and upload them to 4images/templates/default/images

Offline toto1

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.gifanimer.com
Re: saluté
« Reply #10 on: May 24, 2003, 05:24:06 AM »
Quote from: kundera
salut toto, bon si jamais on peut se repartir le boulot pour la traduction, histoir que ca aille plus vite :-)

So i think there is another miss code, i didn't find the code for adding/deleting image to cart.(or maybee bad link) (in thumbail page and detail page)
So can't see if the sytem is runing :-) :wink:

another thinks, maybe for updating the validation of the form, it will be better to use the check system of 4images (like reegister) instead of using a error window?
gona try to do it  :wink:


no proleme je finit l'install car j'ai un probleme pour afficher un prix ainsi que l'image du panier apres no probleme :)

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
is there
« Reply #11 on: May 24, 2003, 06:40:54 AM »
is there any in english, yet [lang ] :roll:

Offline party-cam.org

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.party-cam.org
[Mod] [Beta] Shop Mod für 4images
« Reply #12 on: May 24, 2003, 09:39:23 AM »
not "yet" *g*
it seems nobody wants it...  :roll:
and the german-frensh connection gets better and better  :lol:

But it would be better to write in one language. e.g. english?

Quote
no proleme je finit l'install car j'ai un probleme pour afficher un prix ainsi que l'image du panier apres no probleme

if i understand it right:
u have to change the default value in the MYSQL Database

edit 4images_images table and insert e.g. 0.29 or 1.99 for price_1

MYSQL Command
Code: [Select]
ALTER TABLE `4images_images` CHANGE `price_1` `price_1` DECIMAL( 12, 2 ) DEFAULT '0.39' NOT NULL
replace '0.39' with your default value

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
[Mod] [Beta] Shop Mod für 4images
« Reply #13 on: May 24, 2003, 09:56:24 AM »
Anyone know how to translate this page to english?

thx

drhtm

  • Guest
[Mod] [Beta] Shop Mod für 4images
« Reply #14 on: May 24, 2003, 10:38:15 AM »

 

Post your comments here