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

Pages: [1]
1
I can't undertand why after all these steps only registered people can see these codes.  8O
And I have only one registrated user  :roll: admin
How can I make it work for everybody?

2
Discussion & Troubleshooting / Re: BB code of photos for forums. How?
« on: March 21, 2008, 05:11:01 PM »
up

3
Discussion & Troubleshooting / Re: BB code of photos for forums. How?
« on: March 16, 2008, 07:41:30 AM »
up.
Sorry but I need this

4
FAQ, Tips / Re: I can't set persmissions for a user or a group
« on: March 13, 2008, 04:05:49 AM »
So I create a group of registered people.
I gave them the permission to download pictures to some category without admin's "yes"

But at the same time I want my guests to download pictures but with my "yes"

If I made this category "private" rights, it'll be Ok or I should do smth?

5
Discussion & Troubleshooting / Re: BB code of photos for forums. How?
« on: March 12, 2008, 07:03:15 PM »
Pleaaaaase help me. I have no answer.  8O

How can I put BB-code of my pictures when category is open?
Ther was only an answer how to make this code work in the window just after download and only for a person who added the photo,
but after that this no BB-code for ALL THE OTHERS and ALWAYS.
I need this badly.



6
I tried to do this like in the first post but it had no effect  :oops:
http://www.jackandkate.ru/lostuserbar/details.php?image_id=277
Is it because of my Russian files? How can I make it right?
Please answer in two words as it's difficult for me to seach smth I need in such long instructions in English.  :roll:

Hmm... I found out that I've got these codes in the box right after I add file, but then when I go to the category and once again to the file there is no one  8O

And also why my code there is like this?
Code: [Select]
[URL=http://http://www.jackandkate.ru/lostuserbar][IMG]http://http://www.jackandkate.ru/lostuserbar/data/media/6/1.png[/img][/URL]I mean two http:// in the code.  :(

So while it is member.php it's ok, but how can I make this code visible in the category?

7
Discussion & Troubleshooting / Re: BB code of photos for forums. How?
« on: February 29, 2008, 11:01:17 AM »
Ok I'll try. Thanks  :D

And what about animation in thumbs in random images block?  :oops:

8
Discussion & Troubleshooting / BB code of photos for forums. How?
« on: February 29, 2008, 09:18:25 AM »
Hi! How can I get BB-code for forums under my photos?
I used "search" button but I can't understand anything as there are some topics but I can't find the variant that work properly in my 4images 1.7.4
And our Russian helpers here I think all are dead  8O as I have no answer.

+
How can I make animation work in random images block?

9
Language Packs / Re: [Language] Russian language files & buttons
« on: February 25, 2008, 03:00:51 PM »
Слушайте, а как под картинкой вывести ее BB-код? Мне нужно для юзербаров.
+
Как сделать, чтобы анимация отображалась и в блоке Новые фото и в рулоне категории, а не только когда тыкнешь на отдельную штучку.


Кажется я нашла про код фото, но там тааакая опять муть

Вот объясняю, вдруг кому пригодится на родном языке.

Взято отсюда
http://www.4homepages.de/forum/index.php?topic=4907.15

1. Путь /includes/functions.php

1.1. Находим поиском строчку function get_media_code
Ниже видим global и добавляем туда $script_url

Выходит типа этого:
Quote
function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
  global $site_template, $site_sess, $lang, $mode, $script_url;

1.2. Тут же поиском ищем
"image_name" => $image_name,

Добавляем после этой строчки
"image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", preg_replace("/(\?.*)/", "",$media_src))))),

Выходит типа этого
Quote
$site_template->register_vars(array(
      "media_src" => $media_src,
      "media_icon" => $media_icon,
      "image_name" => $image_name,
     "image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", preg_replace("/(\?.*)/", "",$media_src))))),
      "width_height" => $width_height,
      "width" => $width,
      "height" => $height,
      "iptc_info" => $iptc_info,
      "exif_info" => $exif_info
    ));

2. Путь /templates/<yourtemplate>/details.html
И там надо вставить {image_path} куда и как я не очень поняла.

Может кто-то объяснит мне на русском почему после этого BB-код картинки все-таки не появился?  :lol:
В Firefox вообще нет, а в Explorer какая-то сессия вместо этого отображается, т.е. даже не адрес, а хвостик от него.  8O

10
Language Packs / Re: [Language] Russian language files & buttons
« on: February 08, 2008, 03:50:38 PM »
Хм, никак не могу понять как все-таки сделать, чтобы превью сами собой делались.
А то я сделала массовую загрузку таким макаром (нашла рецепт на Ru board), но превьюшки не сделались
Quote
Это всё делается стандартно, создаёшь новый раздел на форуме, потом заходишь на ftp и в папке /date/media/ ищёшь папку под номером, соответствующим разделу, заливаешь туда фотки, потом в админ. панели нажимаешь на поиск новых изображений.

Авто-превью в Установках галереи нашла, но в пакетной они так сами  и не делаются  :(

11
Language Packs / Re: [Language] Russian language files & buttons
« on: February 07, 2008, 11:28:34 AM »
Так, ладно, спасение утопающих дело рук самих утопающих.
Напишу то, что сама уже юзала. Думаю с этим как раз сталкивается любой новичок.

1. Установка.
1.1. Качаете пакет, бросаете его в папку у себя через ftp.
Мне тут выслали уже нормально упакованный русский (всем спасибо  :D ) я его вниз приаттачила.

Кроме одной заковырки (если было, не ругайте - кашу маслом не испортишь)

global.php


заменить этот кусок:

Quote
function clean_array($array) {
  $search = array(
    // Remove any attribute starting with "on" or xmlns
    '#(<[^>]+[\x00-\x20\"\'])(on|xmlns)[^>]*>#iUu',
    // Remove javascript: and vbscript: protocol
    '#([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',
    '#([a-z]*)[\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',
    //<span style="width: expression(alert('Ping!'));"></span>
    // Only works in ie...
    '#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*expression[\x00-\x20]*\([^>]*>#iU',
    '#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*behaviour[\x00-\x20]*\([^>]*>#iU',
    '#(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*).*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*>#iUu'
  );

  $replace = array(
    "$1>",
    '$1=$2nojavascript...',
    '$1=$2novbscript...',
    "$1>",
    "$1>",
    "$1>"
  );

  // Remove all control (i.e. with ASCII value lower than 0x20 (space),
  // except of 0x0A (line feed) and 0x09 (tabulator)
  $search2 =
      "\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";
  $replace2 = //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";

  foreach ($array as $key => $val) {
    if (is_array($val)) {
      $val = clean_array($val);
    } else {
      $val = preg_replace($search, $replace, $val);

      $val = str_replace("\r\n", "\n", $val);
      $val = str_replace("\r",   "\n", $val);
      $val = strtr($val, $search2, $replace2);
      $val = str_replace("\r", '', $val);  // \r === \x0D

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

    $array[$key] = $val;
  }

  return $array;
}


на:

Quote
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;
}


1.2. Открываем mysite.ru/ваша папка, куда бросили пакет
Пишем все ваши установочки. Вот таким макаром.


1.3. Дальше вас радуют мол все хорошо, но не верьте - врут  :D
Надо еще тыкнуть на последнюю кнопку, скачать config.php и положить его у себя в mysite.ru/ваша папка
Вот только тогда у вас есть Галерея, заходите вашим юзверем, которого внизу формы написали (ну видимо admin)
И внизу где копирайты есть ссылка на Админку.


2. Шаблон меняем
(а то стандарт страшный жутко 8O)
И тут путаница. Как сказали вот здесь (спасибо Nicky) http://www.4homepages.de/forum/index.php?topic=20278.0
Оказывается нужно не через пункт Шаблон идти (а вы как думали? головой? это вы зря, тут все заковыристее  :D)
Нужно идти в Установки - Изменить директорию шаблонов. Вот оно как угу..
Шаблоны можно взять здесь http://www.4homepages.de/forum/index.php?topic=12611.msg67603#msg67603
Тут и платные и бесплатныt, сами уж разглядывайте

Добавляйте (я имею в виду сразу готовые решения), сами инструкцию себе сделаем. Все равно нам же это все нужно.

12
Language Packs / Re: [Language] Russian language files & buttons
« on: February 06, 2008, 03:29:23 PM »
Quote
Потому что русских, ктобы понимал PHP и мог бы отвечать на вопросы, на этом форуме практически нет, а если делать отдельную ветку, то это будет двойная работа, так как тогда народ не будет пытаться найти ответы на вопросы на не русском языке.
Оригинально. Почему-то на всех других приличных скриптах не считают, что человек должен учить иностранный язык, чтобы разобраться с одним скриптом. Пишут Фак на русском и тогда вопросов становится в разы меньше.

Думаю и здесь можно такое устроить, тем более, что наверняка здешние люди уже каждый нашли по парочке ответов на вопросы новичков. Если собрать эти ответы и упорядочить, поверьте, всем станет легче и приятнее.  :lol:

Собственно вопросы одни и те же у всех:
1. Установка+русские файлы и вообще решение проблем с русским (насколько я вижу это важно)
2. Где взять шаблоны
3. Как сделать превьюшки

А то сейчас, чтобы найти вопрос на этот ответ, надо листать всю эту ветку и еще все левые разговоры читать.
Пожалейте людей-то) да и порядок нигде и никому еще не мешал.

ЗЫ. мне самой помог один человек, но это подполье какое-то, а не форум прям.

Pages: [1]