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 - maus

Pages: [1]
1
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: March 27, 2009, 11:23:31 AM »
Avatarbild in die user_logininfo.html ist auch zu sehen aber ist man in profil von ein andern erscheint das Avatarbild von mir.

2
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 27, 2007, 10:58:43 AM »
The marked ( * ) code above has been changed.


hallo! Kann jemand bitte helfen?


Warning: opendir(./templates/default/avatars/users/) [function.opendir]: failed to open dir: No such file or directory in /www/htdocs/lachla/kot-07/member.php on line 1297

Warning: readdir(): supplied argument is not a valid Directory resource in /www/htdocs/lachla/kot-07/member.php on line 1299

Warning: closedir(): supplied argument is not a valid Directory resource in /www/htdocs/lachla/kot-07/member.php on line 1300

3
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 22, 2007, 10:21:38 AM »
hallo! Kann jemand bitte helfen?


Warning: opendir(./templates/default/avatars/users/) [function.opendir]: failed to open dir: No such file or directory in /www/htdocs/lachla/kot-07/member.php on line 1297

Warning: readdir(): supplied argument is not a valid Directory resource in /www/htdocs/lachla/kot-07/member.php on line 1299

Warning: closedir(): supplied argument is not a valid Directory resource in /www/htdocs/lachla/kot-07/member.php on line 1300


4
Mods & Plugins (Releases & Support) / Re: [Mod] Star Rating
« on: June 09, 2007, 09:19:55 AM »
hallo


nur probeweise bei der details.html. auch die bilder ins image verzeichnis kopiert, aber ich sehe keine sternchen. bitte um hilfe

5
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 03, 2007, 07:43:56 AM »
Ich möchte Avatar v2 für 4images v1.7.4 kann aber kein Wort Englisch
also ich habe einiges ausprobiert ich bekomme es mal wieder nicht hin ich bin so blöd!!!!!


Frage: Kann mir da jemand helfen?



Hallo,



ich bräuchte auch eine Anleitung für 1.7.4, da die Schritte der ersten Seite leider nicht ausführbar.
Die Textstelle ist nicht zu finden.(member.php)

1.4.
Few lines below find:
Code:
 
$site_template->register_vars(array(
    "user_name" => htmlspecialchars(stripslashes($user_name)),



Kann mir bitte jemand helfen?

6
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: May 29, 2007, 12:25:56 PM »
Ich möchte Avatar v2 für 4images v1.7.4 kann aber kein Wort Englisch
also ich habe einiges ausprobiert ich bekomme es mal wieder nicht hin ich bin so blöd!!!!!


Frage: Kann mir da jemand helfen?

7
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: May 21, 2007, 02:09:34 PM »
Hallo Kurt,

also ich habe einiges ausprobiert ich bekomme es mal wieder nicht hin ich bin so blöd!!!!!
Kannst du das UserProfil erstellen



Angaben:
Wohnort / Region:
Postleitzahlenbereich:
Sie oder Paar ER:
Land:
MSN Messenger:
Yahoo Messenger:


Freiwillige Angaben:
Interessen:
Geburtstag:
Sternzeichen:
Größe in cm:
Gewicht in kg:
Figur:
Augenfarbe:
Haarfarbe:
Haarlänge:
Körperbehaarung:
Intimbehaarung:
Sexualität:
Raucher:
Tattoo:
Piercings:
Über mich:

Gruß
Maus

8
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: May 21, 2007, 01:40:02 PM »
Tja, hab mir die Sache angesehen....
Beim Updaten des Profils wird nichts übernommen.
Besteht halt wieder die Frage, die ich schon gestellt habe: Werden die Daten in die Datenbank eingetragen oder nicht  :?: :?:


Also ich glaube nicht... weil:

Wenn ich mir folgenden Code in der member.php ansehe:
Code: [Select]
//-----------------------------------------------------
//--- Edit Profile ------------------------------------



//-----------------------------------------------------
$update_process = 0;
$new_email_msg = "";
if ($action == "updateprofile") {
  $txt_clickstream = $lang['control_panel'];
  if ($user_info['user_level'] == GUEST) {
    show_error_page($lang['no_permission']);
    exit;
  }
  $user_email = (isset($HTTP_POST_VARS['user_email'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['user_email'])) : "";
  $user_email2 = (isset($HTTP_POST_VARS['user_email2'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['user_email2'])) : "";
  $user_homepage = (isset($HTTP_POST_VARS['user_homepage'])) ? format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['user_homepage']))) : "";
  $user_icq = (isset($HTTP_POST_VARS['user_icq'])) ? ((intval(trim($HTTP_POST_VARS['user_icq']))) ? intval(trim($HTTP_POST_VARS['user_icq'])) : "") : "";
  $user_showemail = (isset($HTTP_POST_VARS['user_showemail'])) ? intval($HTTP_POST_VARS['user_showemail']) : 0;
  $user_allowemails = (isset($HTTP_POST_VARS['user_allowemails'])) ? intval($HTTP_POST_VARS['user_allowemails']) : 0;
  $user_invisible = (isset($HTTP_POST_VARS['user_invisible'])) ? intval($HTTP_POST_VARS['user_invisible']) : 0;

werden ja hier nur diese UserDaten aus dem Übermitteln des Updates ausgelesen und übernommen.
In dem folgenden sql update ist dann zwar der code für einen additionalen Eintrag vorhanden, aber wo sollte der den herkommen,
wenn nichts ausgelesen werden kann.
Also würde ich bei den obigen Code noch die zusätzlichen Userinfos dazupacken.

Und auch bei der Übergabe aus der Datenbank zum Profil werden ja nur die Standartangaben übergeben:
Code: [Select]
  $site_template->register_vars(array(
    "user_name" => format_text(stripslashes($user_name), 2),
    "user_email" => format_text(stripslashes($user_email), 2),
    "user_email2" => format_text(stripslashes($user_email2), 2),
    "user_homepage" => format_text(stripslashes($user_homepage), 2),
    "user_icq" => $user_icq,
    "user_showemail_yes" => $user_showemail_yes,
    "user_showemail_no" => $user_showemail_no,
    "user_allowemails_yes" => $user_allowemails_yes,
    "user_allowemails_no" => $user_allowemails_no,
    "user_invisible_yes" => $user_invisible_yes,
    "user_invisible_no" => $user_invisible_no,

Wenns dann immer noch nicht klappt, dann  :cry:


Kurt

9
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: May 20, 2007, 07:00:51 PM »
Hallo,

ich sehe keinen Fehler...
Wird die plz Angabe in die Datenbank gespeichert?
Link und Testaccount...

Gruß
KUrt

http://www.lach-lach.de/kot-07/member.php?action=showprofile&user_id=3

10
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: May 20, 2007, 10:58:12 AM »
Hallo maus,

Quote
wenn man den plz eingibt aber niemand  sehen kann


Wenn du aber laut Anleitung:
Quote
6. öffne templates/default/member_profile.html

an gewünschter Stelle folgendes einfügen

        <tr>
          <td class="row2"><b> - {lang_fullname}</b></td>
          <td class="row2">{user_fullname}</td>
        </tr>
gemacht hast (natürlich abgestimmt auf deine zusätzliche Angabe), ist es im Profil des Users zu sehen....

Kurt


Hallo Kurt


page_header.php

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: page_header.php                                      *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.4                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

// Cache Templates
/*$template_list = 'header,footer,category_dropdown_form,user_logininfo,user_loginform';
if (isset($templates_used) && $templates_used != "") {
  $template_list = $template_list.",".$templates_used;
}
$site_template->cache_templates($template_list);*/

//-----------------------------------------------------
//--- Register Global Vars ----------------------------
//-----------------------------------------------------
$total_images = 0;
$total_categories = 0;
$auth_cat_sql['auth_viewcat']['IN'] = 0;
$auth_cat_sql['auth_viewcat']['NOTIN'] = 0;

$cache_id = create_cache_id(
  'data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

if (!$data = get_cache_file($cache_id, null)) {
  if (!empty($cat_cache)) {
    foreach ($cat_cache as $key => $val) {
      if (check_permission("auth_viewcat", $key)) {
        $total_categories++;
        if (isset($val['num_images'])) {
          $total_images += $val['num_images'];
        }
        else {
          $cat_cache[$key]['num_images'] = 0;
        }
        $auth_cat_sql['auth_viewcat']['IN'] .= ", ".$key;
      }
      else {
        $auth_cat_sql['auth_viewcat']['NOTIN'] .= ", ".$key;
      }
    }
  }

  $data = array();

  $data['total_images'] = $total_images;
  $data['total_categories'] = $total_categories;
  $data['auth_viewcat']['IN'] = $auth_cat_sql['auth_viewcat']['IN'];
  $data['auth_viewcat']['NOTIN'] = $auth_cat_sql['auth_viewcat']['NOTIN'];

  save_cache_file($cache_id, serialize($data));

} else {
  $data = unserialize($data);

  $total_images = $data['total_images'];
  $total_categories = $data['total_categories'];
  $auth_cat_sql['auth_viewcat']['IN'] = $data['auth_viewcat']['IN'];
  $auth_cat_sql['auth_viewcat']['NOTIN'] = $data['auth_viewcat']['NOTIN'];
}

$site_template->register_vars(array(
  "media_url" => MEDIA_PATH,
  "thumb_url" => THUMB_PATH,
  "icon_url" => ICON_PATH,
  "template_url" => TEMPLATE_PATH,
  "template_image_url" => TEMPLATE_PATH."/images",
  "template_lang_image_url" => TEMPLATE_PATH."/images_".$config['language_dir'],
  "site_name" => $config['site_name'],
  "site_email" => $config['site_email'],
  "user_loggedin" => ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) ? 0 : 1,
  "user_loggedout" => ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) ? 1 : 0,
  "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0,
  "self" => $site_sess->url($self_url),
  "self_full" => $site_sess->url($script_url."/".$self_url),
  "script_version" => SCRIPT_VERSION,
  "cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Admin Control Panel</a>]</p>\n",
  "total_categories" => $total_categories,
  "total_images" => $total_images,
  "url_new_images" => $site_sess->url(ROOT_PATH."search.php?search_new_images=1"),
  "url_top_images" => $site_sess->url(ROOT_PATH."top.php"),
  "url_top_cat_images" => $site_sess->url(ROOT_PATH."top.php".(($cat_id && preg_match("/categories.php/", $self_url)) ? "?".URL_CAT_ID."=".$cat_id : "")),
  "url_register" => (!empty($url_register)) ? $site_sess->url($url_register) : $site_sess->url(ROOT_PATH."register.php"),
  "url_search" => $site_sess->url(ROOT_PATH."search.php"),
  "url_user_pics" => $site_sess->url(ROOT_PATH."search.php?search_user=".$user_info['user_name'].""),
  "url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),
  "url_userlist" => $site_sess->url(ROOT_PATH."memberlist.php"),
  "url_control_panel" => (!empty($url_control_panel)) ? $site_sess->url($url_control_panel) : $site_sess->url(ROOT_PATH."member.php?action=editprofile"),
  "url_categories" => $site_sess->url(ROOT_PATH."categories.php"),
  "url_home" => $site_sess->url(ROOT_PATH."index.php"),
  "url_member_profil" => (!empty($url_member)) ? $site_sess->url($url_member) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$user_info['user_id'].""),
  "url_login" => (!empty($url_login)) ? $site_sess->url($url_login) : $site_sess->url(ROOT_PATH."login.php"),
  "url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"),
  "url_member" => (!empty($url_member)) ? $site_sess->url($url_member) : $site_sess->url(ROOT_PATH."member.php"),
  "url_upload" => (!empty($url_upload)) ? $site_sess->url($url_upload) : $site_sess->url(ROOT_PATH."member.php?action=uploadform"),
  "url_lost_password" => (!empty($url_lost_password)) ? $site_sess->url($url_lost_password) : $site_sess->url(ROOT_PATH."member.php?action=lostpassword"),
  "url_captcha_image" => $site_sess->url(ROOT_PATH."captcha.php"),
  "has_rss" => false,
  "rss_title" => "",
  "rss_url" => "",
  "copyright" => '
<p id="copyright" align="center">
  Powered by <b>4images</b> '.SCRIPT_VERSION.'
  <br />
  Copyright &copy; 2002-'.date('Y').' <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>
',
));

if (!empty($additional_urls)) {
  $register_array = array();
  foreach ($additional_urls as $key => $val) {
    $register_array[$key] = $site_sess->url($val);
  }
  $site_template->register_vars($register_array);
}

// Replace Globals in $lang
$lang = $site_template->parse_array($lang);

$site_template->register_vars(array(
  "lang_site_stats" => $lang['site_stats'],
  "lang_registered_user" => $lang['registered_user'],
  "lang_random_image" => $lang['random_image'],
  "lang_categories" => $lang['categories'],
  "lang_sub_categories" => $lang['sub_categories'],
  "lang_new_images" => $lang['new_images'],
  "lang_top_images" => $lang['top_images'],
  "lang_search" => $lang['search'],
  "lang_advanced_search" => $lang['advanced_search'],
  "lang_lightbox" => $lang['lightbox'],
  "lang_userlist_title" => $lang['lang_userlist_title'],
  "lang_register" => $lang['register'],
  "lang_control_panel" => $lang['control_panel'],
  "lang_login" => $lang['login'],
  "lang_auto_login" => $lang['lang_auto_login'],
  "lang_logout" => $lang['logout'],
  "lang_lost_password" => $lang['lost_password'],
  "lang_user_name" => $lang['user_name'],
  "lang_password" => $lang['password'],
  "lang_go" => $lang['go'],
  "lang_images_per_page" => $lang['images_per_page'],
  "charset" => $lang['charset'],
  "lang_fullname" => $lang['fullname'],
  "lang_plz" => $lang['plz'],
  "direction" => $lang['direction']
));

//-----------------------------------------------------
//--- Category Dropdown -------------------------------
//-----------------------------------------------------

if (!$cache_enable) {
    $category_dropdown_selfjump = get_category_dropdown($cat_id, 1);
} else {
  $cache_id = create_cache_id(
    'data.dropdown_selfjump',
    array(
      $user_info[$user_table_fields['user_id']],
      $config['template_dir'],
      $config['language_dir']
    )
  );

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

    // Set $cat_id to 0 to ensure that no category is selected
    $category_dropdown_selfjump = get_category_dropdown(0, 1);

    $site_sess->mode = $old_session_mode;

    save_cache_file($cache_id, $category_dropdown_selfjump);
  }
}

$site_template->register_vars("category_dropdown_selfjump", $category_dropdown_selfjump);
unset($category_dropdown_selfjump);

// -------------------------------------
if (!$cache_enable) {
    $category_dropdown_form = $site_template->parse_template("category_dropdown_form");
} else {
  $cache_id = create_cache_id(
    'data.dropdown_form',
    array(
      $user_info[$user_table_fields['user_id']],
      // $cat_id, // uncomment if the current category should be selected, will increase the number of cache files
      $config['template_dir'],
      $config['language_dir']
    )
  );

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

    $category_dropdown_form = $site_template->parse_template("category_dropdown_form");

    $site_sess->mode = $old_session_mode;

    save_cache_file($cache_id, $category_dropdown_form);
  }
}

$site_template->register_vars("category_dropdown_form", $category_dropdown_form);
unset($category_dropdown_form);

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

//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['setperpage'])) {
  $setperpage = intval($HTTP_POST_VARS['setperpage']);
  if ($setperpage) {
    $site_sess->set_session_var("perpage", $setperpage);
    $session_info['perpage'] = $setperpage;
  }
}

if (isset($session_info['perpage'])) {
  $perpage = $session_info['perpage'];
}
else {
  $perpage = ceil($config['default_image_rows'] * $config['image_cells']);
}

//-----------------------------------------------------
//--- Set Perpage Dropdown ----------------------------
//-----------------------------------------------------
$setperpage_dropdown = "\n<select name=\"setperpage\" class=\"setperpageselect\">\n";
for($i = 1; $i <= $config['custom_row_steps']; $i++) {
  $setvalue = $config['image_cells'] * $i;
  $setperpage_dropdown .= "<option value=\"".$setvalue."\"";
    if ($setvalue == $perpage) {
    $setperpage_dropdown .= " selected=\"selected\"";
  }
  $setperpage_dropdown .= ">";
  $setperpage_dropdown .= $setvalue;
  $setperpage_dropdown .= "</option>\n";
}
$setperpage_dropdown .= "</select>\n";
if ($cat_id != 0) {
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n";
}
if (isset($show_result) && $show_result == 1) {
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"show_result\" value=\"1\" />\n";
}
$site_template->register_vars("setperpage_dropdown", $setperpage_dropdown);
$setperpage_dropdown_form = $site_template->parse_template("setperpage_dropdown_form");
$site_template->register_vars("setperpage_dropdown_form", $setperpage_dropdown_form);

$site_template->un_register_vars("setperpage_dropdown");
unset($setperpage_dropdown);
unset($setperpage_dropdown_form);

//-----------------------------------------------------
//--- 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'];
  }
}

//-----------------------------------------------------
//--- Save Rating -------------------------------------
//-----------------------------------------------------
if ($action == "rateimage" && $id) {
  $rating = intval($HTTP_POST_VARS['rating']);
  $cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_";
  $cookie_rated = isset($HTTP_COOKIE_VARS[$cookie_name.'rated']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'rated'])) : array();
  if ($rating && $rating <= MAX_RATING && $id) {
    if (!isset($session_info['rated_imgs'])) {
      $session_info['rated_imgs'] = $site_sess->get_session_var("rated_imgs");
    }
    $split_list = array();
    if (!empty($session_info['rated_imgs'])) {
      $split_list = explode(" ", $session_info['rated_imgs']);
    }
    if (!in_array($id, $split_list) && !in_array($id, $cookie_rated)) {
      $session_info['rated_imgs'] .= " ".$id;
      $session_info['rated_imgs'] = trim($session_info['rated_imgs']);
      $site_sess->set_session_var("rated_imgs", $session_info['rated_imgs']);
      $cookie_rated[] = $id;
      $cookie_expire = time() + 60 * 60 * 24 * 4;
      setcookie($cookie_name.'rated', serialize($cookie_rated), $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE);
      update_image_rating($id, $rating);
      $msg = $lang['voting_success'];
    }
    else {
      $msg = $lang['already_voted'];
    }
  }
  else {
    $msg = $lang['voting_error'];
  }
}

//-----------------------------------------------------
//--- 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", format_text($user_info['user_name'], 2), $lang['lang_loggedin_msg']));
  $user_box = $site_template->parse_template("user_logininfo");
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "user_loggedin" => 1,
    "user_loggedout" => 0,
    "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0
  ));
  $site_template->un_register_vars("user_logininfo");
  unset($user_box);
}
else {
  $user_box = $site_template->parse_template("user_loginform");
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "user_loggedin" => 0,
    "user_loggedout" => 1,
    "is_admin" => 0
  ));
  $site_template->un_register_vars("user_loginform");
  unset($user_box);
}

?>


Funktioniert  nicht


db_field_definitions.php

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: db_field_definitions.php                             *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.4                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

/* ------------------------------------------------------------------------
If you want to add additional fields in order to store more info on
each image or user, set up these fields by inserting a column to the "4images_images"
or "4images_users" table in your database.

If you add an additional image field and allow upload from the gallery,
add the columns to "4images_images_temp" as well.

Add one line for each new column in the following format:

  $additional_image_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
or
  $additional_user_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);

At the bottom of this file, you will find examples for adding a new field.

----------
%column_name% string

  Replace %column_name% with name of the table column.
  You can use the tag {%column_name%} in the templates to display the value of the
  database field.
  If you want to add a textfield to the templates, do this such like:

    <input type="text" name="%column_name%" value="{%column_name%}" />

----------
%field_description% string

  Replace %field_description% with a custom name. This name will be displayed in the Control Panel.
  The value can be displayed in the templates with the tag {lang_%column_name%}.
  It is also recommended to add this tag to the language files (main.php) and to replace "%field_description%"
  with $lang['%column_name%'].

----------
%admin_field_type% string

  Replace %admin_field_type% with the type of input field you would like to use in your
  Control Panel.

  You can use the following formats:

   "text"
     will display an input field type="text".

   "textarea"
     will display a textarea.

   "radio"
     will display radio buttons with Yes/No options.
     Please make sure that the database field type is an integer (for example: "tinyint(1)").
     You can use this field tag for conditional statements in your templates:

     {if %column_name%} Some text {endif %column_name%}

----------
%is_required% bool

  Sets up the field as required when adding data through the Control Panel or the user upload form.

------------------------------------------------------------------------ */

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

// Example for additional user fields
//$additional_user_fields['user_adress'] = array($lang['user_adress'], "text", 1);
//$additional_user_fields['user_fullname'] = array($lang['fullname'], "text", 0);
$additional_user_fields['user_plz'] = array($lang['plz'], "text", 0);
?>

11
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: May 19, 2007, 10:55:11 AM »
@ Muckellein
... in deiner 4images Datenbank ...


Ich habe ein kleines Problem mit der Profil erweitern Habe auch alles wie angegeben bearbeitet. Funktioniert auch mit der Eingabe, lediglich.
Es bringt ja nichts, wenn man den plz eingibt aber niemand  sehen kann

12
Hallo zusammen,

geht es das man dieses mod auch in deutsch erklären kann.
Leiter kann ich kein Wort englisch.

13
Hallo maus,

deine Anfrage hat aber mit diesem Mod fast nicht zu tun...
Eher dieser Mod:
http://www.4homepages.de/forum/index.php?topic=6922.0
Es gibt aber noch einige andere, die dieses Thema behandeln...


Gruß
Kurt


Hallo Kurt,

danke für deine schnelle Antwort. Leiter kann ich kein Wort englisch.


Gruß
Maus

14
Hallo zusammen,

geht es das man dieses Skript ändert um damit nicht die templets zu ändern sondern das ich damit auf der "home.html" verschiedene Bilder zu den Kategorieen anzeigen zu lassen anstatt des "folder.gif" ein Beispielbild zu jeder Kategorie????

15
Installation, Update & Configuration / Re: User Profil erweitern
« on: May 09, 2007, 03:09:27 PM »
Da ich schon gerne wiessen möchte, woher so manches Mitglied kommt und welches Geschlechtes er oder sie ist, möchte ich, das Profil
zusätzliche Felder,bekomme das nicht richtig hin

Pages: [1]
Post your comments here