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 - Markus/TSC

Pages: [1] 2 3
1
Funktioniert auch nicht, ich lass es jetzt...
Sorry fürs Generve (auch per PN)!

Markus

2
Der schon wieder, ich weiß  :roll: Vielleicht antwortet auch jemand darauf...

Mod-Einbau hat ohne Probleme funktioniert, die Kategorien werden auch entsprechend auf der Startseite angezeigt. Ich habe ebenfalls "Neuste Fotos" (new_images) und " Neuste Videos" (new_images2) bei mir. Lade ich aber neue Videos hoch, werden die in beiden Kategorien dargestellt, obwohl sie das nur in der new_images2 sollen. Die Sache mit "AND i.cat_id NOT IN (".$cat_in.")" und "AND i.cat_id IN (".$cat_in.")" habe ich auf verschiedene Weise ausprobiert, aber erhalte kein entsprechendes Ergebnis. Ich habe auch den Code nochmal neu eingebunden und es bleibt das Problem.

Sollte irgendwer sich interessieren, die Index ist angehängt. Wäre schön, wenn jemand hilft..

Markus

3
Mods & Plugins (Releases & Support) / Re: [Mod] Multiupload V.3.1.1
« on: August 13, 2011, 05:06:43 PM »
Genau das selbe Problem habe ich auch -.-

Ich habe Rembrandt schon per PN gefragt, aber er hatte leider keine Lösung für mich parat.
Ich nehme an, es "beißt" sich mit irgendeinem anderen Mod...

4
Mods & Plugins (Releases & Support) / Re: [Mod] Multiupload V.3.1.1
« on: August 07, 2011, 11:31:50 AM »
Hallo Rembrandt!

Bei mir werden keine Thumbnails der hochgeladenen Bilder erstellt??
GD Bibliothek ist allerdings eingstellt!
Der Autothumbnailer im ACP ist auch an...

Woran liegt das Problem?

Markus

5
1. Open details.php

Insert before:
//-----------------------------------------------------
//--- [MOD] Ajax Star Rating --------------by Bash-T---
//START------------------------------------------------
$site_template->register_vars(array(
[
b]
	
"ajax_rating_labels_0" => $lang['ajax_rating_labels'][0],
	
"ajax_rating_labels_1" => $lang['ajax_rating_labels'][1],
	
"ajax_rating_labels_2" => $lang['ajax_rating_labels'][2],
	
"ajax_rating_labels_3" => $lang['ajax_rating_labels'][3],
	
"ajax_rating_labels_4" => $lang['ajax_rating_labels'][4],
	
"ajax_rating_labels_5" => $lang['ajax_rating_labels'][5],[/b]
	
"ajax_rating_messages_0" => $lang['ajax_rating_messages'][0],
	
"ajax_rating_messages_1" => $lang['ajax_rating_messages'][1],
	
"ajax_rating_messages_2" => $lang['ajax_rating_messages'][2],
	
"ajax_rating_messages_3" => $lang['ajax_rating_messages'][3],
	
"ajax_rating_points" => $lang['ajax_rating_points']
));
//-----------------------------------------------------
//--- [MOD] Ajax Star Rating --------------by Bash-T---
//--------------------------------------------------END


2. Open includes/constants.php
Locate:
define('MAX_RATING'5);

Replace with:
define('MAX_RATING'6);



4. Open lang/(your_lang)/main.php
[php]//-----------------------------------------------------
//--- [MOD] Ajax Star Rating --------------by Bash-T---
//START------------------------------------------------
$lang['ajax_rating_labels'] = array (
   0 => "Noch nicht bewertet",
   1 => "Öde",
   2 => "Nichts besonderes",
   3 => "Sehenswert",
   4 => "Echt cool",
   5 => "Genial!"

);
$lang['ajax_rating_messages'] = array (
   0 => "Bewertung ungültig", //voting_error
   1 => "Vielen Dank für Deine Bewertung!", // voting_success
   2 => "Du hast das Bild bereits bewertet.", //already_voted
   3 => "Weitere Bewertungen sind für dieses Bild deaktiviert."
);
$lang['ajax_rating_points'] = "Punkte";

Open templates/(your_template)/rate_form.html
Replace the whole file with the following code:
Code: [Select]
<!-- ----------------------------------------------- -->
<!-- [MOD] Ajax Star Rating -------------- by Bash-T -->
<!-- START ----------------------------------------- -->
....
<form method="post" action="{self}">
  <table border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td class="head1">
        <table border="0" cellspacing="0" cellpadding="3" class="row1">
          <tr>
            <td valign="bottom">
              <select name="rating" class="select">
               <option value="">--</option>
                <option value="5">5</option>
                <option value="4">4</option>
                <option value="3">3</option>
                <option value="2">2</option>
                <option value="1">1</option>
              </select>
            </td>
            <td>
              <input type="hidden" name="action" value="rateimage" />
              <input type="hidden" name="id" value="{image_id}" />
              <input type="submit" value="{rate}" class="button" name="submit" />
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>-->
<!-- ----------------------------------------------- -->
<!-- [MOD] Ajax Star Rating -------------- by Bash-T -->
<!-- END ----------------------------------------- -->

Danke für die Info! Wenn ich es auf 10 Bewertungspunkte ändern will, muss ich demzufolge die Ergänzungen in oben zitierten, von mir fett markierten Bereich entsprechend ergänzen, richtig?

Gruß

6
Bild 1 wurde vor dem Mod irgendwann früher mit 10 bewertet

Bild 3 ist Bild 1 nur nochmal bewertet, aber über die 5 Sterne aus dem neuen Mod hinaus, das meine ich!

Bild 2 wurde noch nie bewertet und es stehen auch nur 5 Sterne zur Auswahl und nicht 10 vom alten Mod.

Was ich fragen will, ist, ob man bei den Bildern, die man immer noch über 5 bewerten kann, es zu unterbinden geh...!


7
Mods & Plugins (Releases & Support) / Re: Signature image v2.3
« on: August 01, 2011, 08:36:50 PM »
Works great, thank you!

8
Hallo!

Zunächst vielen Dank für den Mod, die Installation klappte einwandfrei und es funktioniert!

Folgendes Problem habe ich festgestellt: In meiner Galerie hattte ich mal einen Bewertungsmod mit bis zu 10 Sternen. Bilder, die damals höher als 5 bewertet wurden, stehen auch jetzt noch mit 10 oder 9, 8,5 usw da. Bei unbewerteten Bildern, die jetzt nach diesem Mod bewertet werden, tritt das Problem nicht auf, es geht nicht höher wie 10.

MFG

Markus

9
Hi,

das einzige was ich nicht schaffe ist, die sterne zu zentrieren oder so die bleiben immer Linksbündig ... hab schon einiges rumprobiert

das liegt daran das deinem div indem die rate_form steckt kein align="center" hat.

Code: [Select]
<div>Vote: <!-- ----------------------------------------------- -->
<!-- [MOD] Ajax Star Rating -------------- by Bash-T -->
<!-- START ----------------------------------------- -->

Bau das mal ein dann hast du es auch zentriert.

Sieht dann im Quelltext so aus:

Code: [Select]
<div align="center">Vote: <!-- ----------------------------------------------- -->
<!-- [MOD] Ajax Star Rating -------------- by Bash-T -->
<!-- START ----------------------------------------- -->

Steht aber auch so im ersten Post das zu das so einfügen sollst:

Replace with:
Code: [Select]
<div align="center">{rate_form}</div>

Gruß Jens

Ich habe selbiges Problem, bekomme die Sterne nicht zentriert obwohl ich oben zitiertes eingebaut habe. Nachdem sieht das Ergebnis so aus:


10
Mods & Plugins (Releases & Support) / Re: [MOD] Top 100
« on: January 31, 2010, 07:54:34 PM »
Hallo!

Ich habe ein Problem mit dem MOD. Er hat die ersten Tage nach Einbau wunderbar funktioniert, aber jetzt sind die Auswahlmöglichkeiten wonach man sortieren kann weg und werden nicht mehr dargestellt (siehe Bild im Anhang). Desweiteren ist auch aus dem Link (roter Kreis links) die Schrift "Top100" weg???

Worin kann das Problem liegen? Ich habe nur an den Formatierungen der Tabellen etwas verändert?!?!

Gruß

Markus

11
Mods & Plugins (Releases & Support) / Re: [MOD] Contact Form
« on: August 30, 2009, 02:09:00 PM »
Hallo!

Nutze Version 1.7.7. Ich habe den Code für das Kontaktformular eingebaut und Captcha mit integriert. Mails kommen auch korrekt an, aber leider kommt immer wieder eine Fehlermeldung über dem Header (siehe Anhang).

Hier nochmal:

Quote
An unexpected error occured. Please try again later.

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /users/blauvideo/www/4images/includes/db_mysql.php on line 116

Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.image_betreiber, i.image_hersteller, i.image_aufbau, i.image_status, i.image_urheber, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 4, 45, 50, 55, 60, 65, 70, 75, 79, 83, 87, 91, 96, 100, 104, 108, 113, 117, 121, 126, 131, 135, 139, 143, 149, 175, 180, 193, 198, 200, 202, 204, 207, 208, 17, 21, 49, 52, 56, 61, 66, 71, 77, 80, 84, 88, 92, 97, 101, 105, 109, 114, 118, 122, 127, 132, 136, 140, 144, 176, 181, 189, 190, 201, 13, 16, 20, 46, 51, 57, 62, 67, 72, 76, 81, 85, 89, 93, 98, 102, 106, 110, 115, 119, 123, 128, 133, 137, 141, 145, 150, 177, 182, 188, 199, 197, 205, 9, 19, 48, 53, 58, 63, 68, 73, 94, 99, 111, 124, 129, 146, 157, 158, 159, 160, 163, 164, 166, 167, 170, 171, 172, 183, 187, 195, 206, 7, 8, 59, 138, 151, 152, 154, 155, 156, 161, 165, 168, 169, 173, 178, 184, 191, 10, 18, 54, 78, 82, 86, 90, 103, 107, 116, 120, 125, 130, 134, 142, 153, 162, 179, 196, 47, 64, 69, 74, 95, 112, 147, 185, 192, 203, 209, 23, 22, 28, 25, 29, 31, 26, 27, 24, 30, 33, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 43, 148, 174) AND i.image_date >= 1251291121 ORDER BY RAND() LIMIT 4
Unknown column 'i.user_id' in 'on clause'

Gruß

Markus

12
Hallo!

Kurze Frage: Der zitierte Code ist doch bei der global.php in Version 1.7.6 schon drin, wie ich das gesehen habe.. Ich bin mit der Galerie umgezogen und habe gleichzeitig ein Update von 1.7.4 auf 1.7.6 gemacht und bekomme die Umlaute nicht mehr dargestellt. Nur wäre es ja Quatsch wenn ich den u.a. Code nochmal einfüge, da er ja schon vorhanden ist!?

global.php

 :flag-de: das ist der Fix /  :flag-en: here the fix:

 :flag-de: Die komplette Funktion /  :flag-en: complete function

 :flag-de: durch /  :flag-en: replace with

Code: [Select]
function clean_string($string) {
  $canCheckUTF8Error = defined('PREG_BAD_UTF8_ERROR') && function_exists('preg_last_error');

  // Remove any attribute starting with "on" or xmlns
  $tmp = preg_replace('#(<[^>]+[\x00-\x20\"\'])(on|xmlns)[^>]*>#iUu',"$1>",$string);
  if ($canCheckUTF8Error && (PREG_BAD_UTF8_ERROR == preg_last_error())) {
      $tmp = preg_replace('#(<[^>]+[\x00-\x20\"\'])(on|xmlns)[^>]*>#iU',"$1>",$string);
  }
  $string = $tmp;

  // Remove javascript: and vbscript: protocol
  $tmp = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iUu','$1=$2nojavascript...',$string);
  if ($canCheckUTF8Error && (PREG_BAD_UTF8_ERROR == preg_last_error())) {
      $tmp = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iU','$1=$2nojavascript...',$string);
  }
  $string = $tmp;
  $tmp = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iUu','$1=$2novbscript...',$string);
  if ($canCheckUTF8Error && (PREG_BAD_UTF8_ERROR == preg_last_error())) {
      $tmp = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iU','$1=$2novbscript...',$string);
  }
  $string = $tmp;

  // <span style="width: expression(alert('Ping!'));"></span>
  // only works in ie...
  $string = preg_replace('#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*expression[\x00-\x20]*\([^>]*>#iU',"$1>",$string);
  $string = preg_replace('#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*behaviour[\x00-\x20]*\([^>]*>#iU',"$1>",$string);
  $tmp = preg_replace('#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*>#iUu',"$1>",$string);
  if ($canCheckUTF8Error && (PREG_BAD_UTF8_ERROR == preg_last_error())) {
      $tmp = preg_replace('#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*>#iU',"$1>",$string);
  }
  $string = $tmp;

  // Remove namespaced elements (we do not need them...)
  $string = preg_replace('#</*\w+:\w[^>]*>#i',"",$string);

  // Remove all control (i.e. with ASCII value lower than 0x20 (space),
  // except of 0x0A (line feed) and 0x09 (tabulator)
  $search =
    "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F";
  $replace = //str_repeat("\r", strlen($search2));
    "\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D\x0D";

  $string = str_replace("\r\n", "\n", $string);
  $string = str_replace("\r",   "\n", $string);
  $string = strtr($string, $search, $replace);
  $string = str_replace("\r", '', $string);  // \r === \x0D

  // Remove really unwanted tags
  do {
    $oldstring = $string;
    $string = preg_replace('#</*(applet|meta|xml|blink|link|style|script|embed|object|iframe|frame|frameset|ilayer|layer|bgsound|title|base)[^>]*>#i',"",$string);
  } while ($oldstring != $string);

  return $string;
}

function clean_array($array) {
  foreach ($array as $key => $val) {
    $key = clean_string($key);

    if (is_array($val)) {
      $val = clean_array($val);
    } else {
      $val = clean_string($val);
    }

    $array[$key] = $val;
  }

  return $array;
}

 :flag-de: ersetzen.

14
Mods & Plugins (Releases & Support) / Re: [MOD] Show user images in profile
« on: November 19, 2007, 07:45:00 AM »
Hab es gefunden, danke für den Tipp!

15
Mods & Plugins (Releases & Support) / Re: [MOD] Show user images in profile
« on: November 18, 2007, 09:26:56 AM »
Ich habe nicht ganz verstanden, wo ich die Sprache ändern kann. "Last images from xxx (xxx added 426 images to this Gallery)" will ich gern in Deutsch angezeigt haben...

Where can I change the language into german?

Pages: [1] 2 3