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

Pages: [1]
1
Also wie kann ich in der "Statistik" oder Top Bilder, zusätzlich die Bilder mit den meisten Kommentaren anzeigen lassen?

Und wie kann ich die Whos_online auf jede Seite packen. Habe ich schonmal probiert aber er zeigt mir nichts an. Warscheinlich braucht er da noch eine Variable. Und wird die Statistik von allen Seiten gezählt?

Wenn da z.B. 5 User online steht, sind dann 5 auf der Startseite oder 5 überall verteilt?

Ich würde mich über eine Antwort freuen?

P.S. Soll man hier die Fragen lieber auf Englisch stellen? Geht das besser oder schneller?

Gruß Christian

2
Discussion & Troubleshooting / whos_online in jede seite einfügen
« on: June 16, 2006, 08:27:04 PM »
Hallo.
Wie kann ich die Whos_online Statistik in die Anderen Seiten einfügen. Einfach kopieren funzt nicht.

kann mir da einer helfen?

3
Templates & Styles (Requests & Discussions) / Template Problem
« on: June 01, 2006, 10:31:04 AM »
Hello

I loaded to me the FI_apple template and played onto my weaving server. Unfortunately it does not function. I get always following error report.

All other templates function. What is rid there?

Sorry for my bad english!!!


[qcode]<?php

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_path, 1);
    }
    $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 ".$path, 1);
      }

      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
?>[/qcode]

4
Hallo zusamm. ICh weiss ich habe hier im Forum schon 3 andere Fragen gestellt bzw sind noch nciht beantwortet, aber ich muss die nächste stellen.

Wenn ich mehere Fotos (als Admin) hochladen möchte wie geht das? Kann ich die per FTP hochladen und dann bearbeiten?

Ich finde das wenn ein bisschen umständlich.

Sonst ist das mal ein Hammer Script. macht weiter so.

P.S. Ich hoffe das Ihr auf meine anderen Fragen auch eine Lösung habt

5
Hello and respect to the one with the icecream van. Really a randy script

But here my problems:

As a visitor I can accrete on the Thumbnails and then these appear to opinion in that one in a large way. However, as a Registered User I accrete on that and only a blue comes roam.

The second is that I can not send any eCards. Only a blue girder comes also here.

Otherwise everything functions wonderfully.

Stimulation:


I know that to it in a certain way a lot of praise and suggestions get and therefore I must not be missing.
Therefore when one than Admin would like to load pictures, that should work also faster. Maybe 30 pictures at the same time. Without loading always the pictures separately. And that works too that one can prepare without description pictures?

MFG Chris

6
With me everything functions in the Firefox and in the Internet Explorer 6 the start page does not come once yet !

What is that?

7
Wie kann ich die Klicks noch mit einfügen? Es hat zwar schon mal einer geschrieben, es wurde aber nur indirekt beantwortet. Und wie kann ich die Farbe und Schriftgröße ändern?

8
Bei mir funktioniert fast alles im Firefox und im Internet Explorer 6 kommt nochnich mals die Startseite!

Was ist das?

9
Hallo und erstmal Respekt to the man with the icecream van. Echt ein geiles Script

Aber hier meine Probleme:

Als Gast kann ich auf die Thumbnails klicken und dann erscheinen diese in der groß ansicht. Aber als Registrierter User klicke ich drauf und es kommt nur ein blauer streifen.

Das zweite ist, dass ich keine eCards versenden kann. Es kommt auch hier nur ein blauer Balken.

Sonst funzt alles wunderbar.


Anregeung:
Ich weiss das ihr bestimmt viel Lob und Verbesserugsvorschläge bekommt und deshalb darf ich nicht fehlen.
Also wenn man als Admin Bilder hochladen möchte, sollte das auch schneller gehen. Vielleicht 30 Bilder aufeinmal. Ohne immer die Bilder einzeln hochzuladen. Und geht das auch das man ohne Beschreibung Bilder einstellen kann?

MFg Chris


10
Wie kann ich 8 New Pictures auf der Startseite anzeigen lassen?

Pages: [1]