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

Pages: [1] 2
1
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 23, 2006, 11:39:38 PM »
ich weiß leider nicht, wo ich den code in der member.php einfügen soll!

könntest du mir den code deiner member.php vielleicht senden?

Aber du hast auch schon version 1.7.2 installiert? bei 1.7.1 war es bei mir auch kein prob!

danke

2
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: June 21, 2006, 05:06:23 PM »
Hallo,

ich bräuchte auch eine Anleitung für 1.7.2, da die Schritte der ersten Seite leider nicht ausführbar sind. Die Textstellen sind nicht zu finden.

______________________________

Hello,
I need instructions for 4images 1.7.2!

Can someone help me, please?


Kann mir bitte jemand helfen?


Vielen Dank
Much Thanks

3
Discussion & Troubleshooting / Re: unerklärbarer fehler
« on: June 21, 2006, 04:09:18 PM »
Super!!

habs gerade auch nochmal gelesen!
dachte die datei muss ins template verzeichnis!!

vielen Dankl

funzt jetzt super

4
Discussion & Troubleshooting / unerklärbarer fehler
« on: June 21, 2006, 03:09:24 PM »
Hallo!

Ich brauche unbedingt eine Hilfe!!

Nachdem ich mich entschlossen hatte eine komplett neue Gallerie zu erstellen, habe ich gleich auf 1.7.2  geupdated und ein neues Template eingebunden!! Ich scheiter jedoch schon bei der Einrichtung meiner neuer Gallerie!

Leider erscheint jetzt dieser Fehler: schaut selbst

hat sich erledigt

in Zeile 26 in der template.php steht aber nur das:

Code: [Select]
}
hier die gesamte template.php:

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: template.php                                         *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.2                                                *
 *                                                                        *
 *    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");
}

class 
Template {

  var $no_error 0;
  var $val_cache = array();
  var $missing_val_cache = array();
  var $template_cache = array();
  var $template_path;
  var $template_extension "html";
  var $start "{";
  var $end "}";

  function Template($template_path "") {
    if (!@is_dir($template_path)) {
      $this->error("Couldn't open Template-Pack ".$template_path1);
    }
    $this->template_path $template_path;
  }

  function register_vars($var_name$value "") {
    if (!is_array($var_name)) {
      $this->val_cache[$var_name] = $value;
    }
    else {
      $this->val_cache array_merge($this->val_cache$var_name);
    }
  }

  function un_register_vars($var_list) {
    $vars explode(","$var_list);
    foreach ($vars as $val) {
      unset($this->val_cache[trim($val)]);
    }
  }

  function cache_templates($template_list) {
    $template_list explode(","$template_list);
    foreach ($template_list as $val) {
      $val trim($val);
      if (!isset($this->template_cache[$val])) {
        $this->get_template($val);
      }
    }
  }

  function get_template($template) {
    if (!isset($this->template_cache[$template])) {
      $path $this->template_path."/".$template.".".$this->template_extension;
      $line = @implode("", @file($path));
      if (empty($line)) {
        $this->error("Couldn't open Template ".$path1);
      }

      if (defined('EXEC_PHP_CODE') && EXEC_PHP_CODE == 0) {
        $line preg_replace("/<[\?|%]+(php|=)?(.*)[\?|%]+>/siU"""$line);
        $line preg_replace("/<script\s+language\s?=\s?[\"|']?php[\"|']?>
(.*)<\/script>/siU", "", $line);
      }

      $line = $this->compile_template($line);

      $this->template_cache[$template] = $line;
    }
    return $this->template_cache[$template];
  }

  function parse_template($template) {
    $template = $this->get_template($template);

    // Don't show error notices
    $old = error_reporting(E_ALL ^ E_NOTICE);

    extract($this->val_cache);
    ob_start();
    //echo $template;
    eval("?>".$template."<?php return 1;");

    
$str = ob_get_contents();
    ob_end_clean();

    // Reset error_reporting
    error_reporting(
$old);

    return 
$str;
  }

  function compile_template(
$template)
  {
    // Compile variables in PHP code
    preg_match_all(
        "
/<[\?|%]+(php|=)?(.*)[\?|%]+>/siU",
        
$template,
        
$regs,
        PREG_SET_ORDER
    );

    for (
$i = 0; isset($regs[$i]); $i++) {
      // Fix single quotes
      
$parsed = preg_replace_callback(
        "
/=\s*'(.*)".preg_quote($this->start)."([A-Z0-9_]+)".preg_quote($this->end)."(.*)';/Usi",
        array(&
$this, '_fix_php_quotes'),
        
$regs[$i][0]
      );

      
$parsed = preg_replace_callback(
        '='.preg_quote(
$this->start).'([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
        array(&
$this, '_compile_php_var'),
        
$parsed
      );

      
$template = str_replace($regs[$i][0], $parsed$template);
    }

    // Compile variables
    
$template = preg_replace_callback(
        '='.preg_quote(
$this->start).'([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
        array(&
$this, '_compile_var'),
        
$template
    );

    // Compile condition tags
    
$template = preg_replace_callback(
        '='.preg_quote(
$this->start).'if(not?)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
        array(&
$this, '_compile_condition_start'),
        
$template
    );

    
$template = preg_replace_callback(
        '='.preg_quote(
$this->start).'endif(not?)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
        array(&
$this, '_compile_condition_end'),
        
$template
    );

    return 
$template;
  }

  function _compile_php_var(&
$matches) {
    return '
{$' . trim($matches[1]) . '}';
  }

  function _fix_php_quotes(&
$matches) {
    return '= "' . str_replace('"', '\\"', $matches[1])
           . $this->start.$matches[2].$this->end
           . str_replace('"', '\\"', $matches[3]) . '";';
  }

  function _compile_var(&
$matches) {
    
$name = trim($matches[1]);

    if (!isset(
$this->val_cache[$name])) {
        return 
$matches[0];
    }

    return '<?php echo $' . 
$name . '; ?>
';
  }

  function _compile_condition_start(&$matches) {
    $name = trim($matches[2]);

    if (!isset($this->val_cache[$name])) {
        return $matches[0];
    }

    if ($matches[1] == 'not') {
        return '<?php if (empty($' . $name . ') || $' . $name . ' === REPLACE_EMPTY){ ?>';
    }

    return '<?php if (!empty($' . $name . ') && $' . $name . ' !== REPLACE_EMPTY){ ?>';
  }

  function _compile_condition_end(&$matches) {
    $name = trim($matches[2]);

    if (!isset($this->val_cache[$name])) {
        return $matches[0];
    }

return '<?php ?>';
  }

  function parse_array($array) {
    static $keys;

    foreach ($array as $key => $val) {
      if (is_array($val)) {
        $array[$key] = $this->parse_array($val);
      }
      else {
        if (!isset($keys) || count($keys) != count($this->val_cache)) {
          $keys = array_keys($this->val_cache);
          array_walk($keys, array(&$this, '_prepare_key'));
        }

        $array[$key] = str_replace($keys, $this->val_cache, $val);
      }
    }
    return $array;
  }

  function _prepare_key(&$item)
  {
    $item = $this->start.$item.$this->end;
  }

  function print_template($template) {
    print $this->clean_template($template);
  }

  function clean_template($template) {
    $search_array = array(
      '='.preg_quote($this->start).'([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
      '='.preg_quote($this->start).'if(not)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
      '='.preg_quote($this->start).'endif(not)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
    );
    $replace_array = array(
      "",
      "",
      ""
    );
    $template = preg_replace($search_array, $replace_array, $template);

    return $template;
  }

  function error($errmsg, $halt = 0) {
    if (!$this->no_error) {
      echo "<br /><font color='#FF0000'><b>Template Error</b></font>: ".$errmsg."<br />";
      if ($halt) {
        exit;
      }
    }
  }
} // end of class
?>

Was kann ich tun?

Bitte helft mir
Vielen Dank

5
Mods & Plugins (Releases & Support) / Re: Small Credit "System" "MOD"
« on: April 28, 2006, 06:15:27 PM »
i search for this:

if you upload images or write posts you get points to download other images?!

Hello,
I´m looking for the same mod!! Can someone help us?

What I have to do?

Thank you very much for your help!!

6
hmm...gibt es auch eine Möglichkeit, ohne dass ich alle mods noch einmal neu einbauen muss? Denn ich habe sehr umfangreiche Veränderungen vorgenommen!!

Wurde in Version 1.7.2 etwas am aussehen oder an den Funktionen von 4images geändert?

7
Hallo,

ich habe im Moment Version 1.7.1 installiert. Nun möchte ich auf die aktuelle  Version 1.7.2 updaten! Wie mache ich das?

Vielen Dank scho einmal im Voraus

PS: Wird im Moment auch an einer komplett neuen Version von 4images gearbeitet? z.B. 4images 2?

Vielen Dank für eure Hilfe

8
I can´t find any code!!

Please, can you give me a link.

Much Thanks

9
Hallo,
wie kann ich den online-status, den avatar (als extraspalte) sowie die Anzahl der Kommentare in der member list anzeigen?

Vielen Dank

english:

Hello,
how can I show the online-status, the avatars of my users (as extra col) and all comments of a user in the memberlist?

Much Thanks

Sorry for my bad English

10
Chit Chat / Fehler / error
« on: February 26, 2006, 07:47:44 PM »
After I have installed the shout box mod and a flashshow, I get the following error:

Code: [Select]
Warning: session_start(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in /usr/export/www/vhosts/funnetwork/hosting/kl102/Bilder/images/includes/sessions.php on line 84

and at the bottom this:

Code: [Select]
Warning: Unknown(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (2;/usr/export/tmp) in Unknown on line 0

What can I do

Much thanks for your help

11
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: February 26, 2006, 07:28:18 PM »
After I have installed the mod I get the following error:

Code: [Select]
Warning: session_start(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in /usr/export/www/vhosts/funnetwork/hosting/kl102/Bilder/images/includes/sessions.php on line 84

and at the bottom this:

Code: [Select]
Warning: Unknown(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (2;/usr/export/tmp) in Unknown on line 0

What can I do

Much thanks for your help




12
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1
« on: February 22, 2006, 09:40:09 PM »
When I install this mode, I get an error:

Parse error: parse error, unexpected '<' in /usr/export/www/vhosts/funnetwork/hosting/kl102/Bilder/images/includes/template.php(101) : eval()'d code on line 99

What can I do?

13
Chit Chat / Re: greeting text in index.php
« on: February 18, 2006, 06:13:20 PM »
If I insert the two lines, become these however in such a way in the index.php indicated like I typed it. Thus with {if user_loggedout}. Do I have to enter still further?
Thank you

14
Can you tell me what this mean?

DB Error: Bad SQL Query: SELECT * FROM 4images_users WHERE user_id NOT IN ('-1') ORDER BY username ASC LIMIT 0, 30
Unknown column 'username' in 'order clause'

Thank you

15
Hallo Leute,

helft mir bitte. Ist wirklich dringend.

Danke

english:

Help me, please. It´s very important.

Pages: [1] 2