• Signature image v2.3 5 0 5 1
Currently:  

Author Topic: Signature image v2.3  (Read 619420 times)

0 Members and 2 Guests are viewing this topic.

Offline ELO

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.altautobilder.de
Re: Signature image v2.22
« Reply #315 on: February 03, 2007, 08:55:24 PM »
kannst du den mod rewrite nutzen?
Welchen mod rewrite?
Gruß
Michael


Offline m.a

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Signature image v2.22
« Reply #316 on: February 04, 2007, 01:29:43 AM »
Hi,

beim signature.php abeufen kommt die Fehler-Meldung:
Warning: imagepng(): Unable to open './tmp/signature.tmp' for writing in /var/www/web1/html/signature.php on line 352
Warning: readfile(./tmp/signature.tmp): failed to open stream: No such file or directory in /var/www/web1/html/signature.php on line 367

Kann Jemand mir helfen?

Danke im Voraus
m.a

Offline m.a

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Signature image v2.22
« Reply #317 on: February 05, 2007, 11:39:13 PM »
hi,
ich hatte die meldung noch nie aber ich vermute dass du die rechte anders setzen musst.

probier mal einen ordner /tmp (haupt/root pfad) einzurichten und vergebe 777 rechte

so wie es aussieht kann er die signature.tmp nicht erstellen weil eben die rechte
oder sogar der ordner fehlt!

gruss ivan

Hi,
Danke ivan!
Du hast richtig gesagt, es war kein tmp Ordner erstellt.
Nach hin und her und Löschen von tmp Ordner, ich hab es vergessen noch Mal den Ordner tmp erstellen! :!:

Aber du hast vielen Dank!

Es funktioniert jetzt prima!
Dankeschön und Grüss
m.a

Offline ELO

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.altautobilder.de
Re: Signature image v2.22
« Reply #318 on: April 04, 2007, 11:50:26 AM »
Hallo, ich habe Probleme beim Anzeigen der Signatur. Habe möglichkeiten 1 und 2 bereits getestet. Wenn ich die PHP direkt Adressiere wird die Signatur angezeigt. Leider kann ich in meinem Forum (iphpbb) scheinbar nur Bilddateien verwenden. Wenn ich dafür also Methode zwei teste bekomme ich nur das bekannte X. Auch das Auskommentieren der Header Funktionen bringt nichts.

Jemand eine Idee woran es noch liegen könnte?
Ich habe das selbe Problem (phpBBoard), gibt es schon eine Lösung dafür?
Hier geht es einwandfrei
Gruß
Michael


Ich suche immer noch nach einer Lösung fürs phpbb , hat keiner eine Idee? :-(
Gruß
Michael


Offline JJLB

  • Pre-Newbie
  • Posts: 3
    • View Profile
    • Dream Dogs
Re: Signature image v2.22
« Reply #319 on: April 17, 2007, 04:49:51 PM »
Hallo

Ich bekomme diese Fehlermeldung wenn ich auf die signature.php gehe:

Code: [Select]

Warning: imagecreatefrompng() [function.imagecreatefrompng]: Unable to access ./signatures/signature.png in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 284

Warning: imagecreatefrompng(./signatures/signature.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 284

Warning: imagesx(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 285

Warning: imagesy(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 286

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 287

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 288

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 290

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagestring(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 300

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 337

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 340

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 344

Warning: imagerectangle(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 345

Warning: imagepng(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 348

Warning: imagedestroy(): supplied argument is not a valid Image resource in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 349

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php:284) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 354

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php:284) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 355

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php:284) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 356

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php:284) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 357

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php:284) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 358

Warning: readfile() [function.readfile]: open_basedir restriction in effect. File(/tmp/signature.tmp) is not within the allowed path(s): (/srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/:/srv/www/httpd/phost/a/de/pytalhost/animalphotos/tmp/:/srv/www/httpd/phost/a/de/pytalhost/animalphotos/ses/) in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 359

Warning: readfile(/tmp/signature.tmp) [function.readfile]: failed to open stream: Operation not permitted in /srv/www/httpd/phost/a/de/pytalhost/animalphotos/web/4images/signature.php on line 359

Offline MacroWorld

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Signature image v2.22 and RUSSIAN Fonts!!!!
« Reply #320 on: April 25, 2007, 02:47:48 PM »
for Russian:

Не нашел на форуме ответа на вопрос, как сделать чтобы МОД воспринимал русский язык, пришлось разбираться как работает функция ImageString и как ее приучить к русскому языку.

Вот, что нашел и придумал:

Шаг 1
С помощью программы phpfont делаем из любого кириллического шрифта шрифт формата .phpfon

Кладем их в папку  /signatures
(У меня это были два шрифта с названиями файлов verdana.phpfont и CourierNew.phpfont)

Шаг 2
В файле signature.php находим строку

Code: [Select]
ImageString($im, 3, $offset2+$tiny, 4, $sitename, $text_color);
Вставляем Над ней
Code: [Select]
  $m = imageloadfont ('./signatures/verdana.phpfont');
           $m2 = imageloadfont ('./signatures/CourierNew.phpfont');

Находим строку
Code: [Select]
ImageString($im, 3, $offset2+$tiny, 4, $sitename, $text_color);
Заменяем ее на:
Code: [Select]
ImageString($im, [color=red]$m[/color], $offset2+$tiny, 4, $sitename, $text_color);
Находим строку
Code: [Select]
ImageString($im, $val[0], $val[1], $i, $val[2], $$val[3]);
Заменяем ее на:
Code: [Select]
ImageString($im, $m2, $val[1], $i, $val[2], $$val[3]);
Само собой нужно поменять:
Code: [Select]
$lang_images = "Фотографий : ";
$lang_users = "Участников: ";
$lang_cat = "Категорий: ";
$lang_new_user = "Новый участник: ";
$lang_online = "На сайте: ";
$lang_comments = "Комментариев: ";


и далее по тексту файла английские записи поменять на русские "новые", "зарегистрированные", "активные" и т.п.


ВНИМАНИЕ!!!
У меня база данных в UFT-8 (почему то у меня только в этой кодировке нормально работает поиск  :?)

Если у вас база тоже в UTF-8 то нужно немного изменить код, т.к. данные в UTF-8 будут крокозябрами на картинке:
Quote
Code: [Select]
ImageString($im,  $m2, $val[1], $i, $val[2], $$val[3]);

На:
Code: [Select]
ImageString($im,  $m2, utf8tocyr($val[1]), $i, utf8tocyr($val[2]), utf8tocyr($$val[3]));
и добавить в конец файла /includes/functions.php (перед  закрывающей ?>) следующий код:
Code: [Select]
function utf8tocyr($string) {
     for ($c = 0; $c < strLen($string); $c=$c+2) {
          $ub = ord(subStr($string, $c, 1));
          $lb = ord(subStr($string, $c+1, 1));

          if ($ub == 208) {
               if ($lb != 81) {
                    $result = $result.chr($lb + 48);
                    }
               else {
                    $result = $result.'Ё';
                    }
               }

          if ($ub == 209) {
               if ($lb != 91) {
                    $result = $result.chr($lb + 112);
                    }
               else {
                    $result = $result.'ё';
                    }
               }

          if (($ub != 208) AND ($ub != 209) AND ($lb != 91) AND ($lb != 81)) {
               $result = $result.chr($ub);
               $c = $c-1; }
               }
     return $result;
     }

Собственно вот результат работы:



« Last Edit: May 22, 2007, 10:13:44 AM by MacroWorld »

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Signature image v2.22 and RUSSIAN Fonts!!!!
« Reply #321 on: April 25, 2007, 06:51:23 PM »
for Russian:

Yes, then another one can't read it... *g*

Offline MacroWorld

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Signature image v2.22 and RUSSIAN Fonts!!!!
« Reply #322 on: April 25, 2007, 09:41:32 PM »
for Russian:

Yes, then another one can't read it... *g*

One shouldn't be another one to read it.  :wink:

Information concerning how to make russian letters display on the banner, i.e. how to make ImageString(); and russian fonts deal with each other.

Offline k1lljoy

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Razruha.Ru
Re: Signature image v2.22
« Reply #323 on: May 21, 2007, 05:55:01 PM »
Quote
Шаг 2
В файле signature.php находим строку

MacroWorld, привет.
Но такой строки нет в коде, который опубликован на 1 странице данной темы  :roll:

Если не сложно, может ты мне дашь готовый файлик signature.php и файлики .phpfont?  :oops:



« Last Edit: May 21, 2007, 06:06:32 PM by k1lljoy »


Offline MacroWorld

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Signature image v2.22
« Reply #324 on: May 22, 2007, 10:18:06 AM »
Quote
Шаг 2
В файле signature.php находим строку

MacroWorld, привет.
Но такой строки нет в коде, который опубликован на 1 странице данной темы  :roll:

Если не сложно, может ты мне дашь готовый файлик signature.php и файлики .phpfont?  :oops:





Действительно ошибся...
Строку поменял в своем посте.
Искать нужно вот такую:
Code: [Select]
ImageString($im, 3, $offset2+$tiny, 4, $sitename, $text_color);
« Last Edit: May 22, 2007, 10:31:42 AM by MacroWorld »

Offline Drezno

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Signature image v2.22
« Reply #325 on: June 10, 2007, 05:27:01 PM »
hat das mal bitte jemand in deutsch? und für version 1.7.4.???

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Signature image v2.22
« Reply #326 on: June 10, 2007, 07:47:47 PM »
How can we resize the random thumb on the signature. I looked for the line in the php where I could specify the thumb size, i couldn't find it :(

Please Vote for my site: Here

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Signature image v2.22
« Reply #327 on: June 10, 2007, 10:46:40 PM »
@ufkydpnr

... instead of ...
Code: [Select]
$dimension = $offset2-$offset*2;

... use this ...
Code: [Select]
$dimension = 20;
... where "20" is the max. side length of your thumbnail in pixel ...
... and the rest ist testing ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Signature image v2.22
« Reply #328 on: June 11, 2007, 12:13:40 AM »
Thank You, but that only does work on some images, and not on others, not sure why :(

Please Vote for my site: Here

Offline Lennforce

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Tausende Wallpapers und Desktopbilder aus aller Welt!
Re: Signature image v2.22
« Reply #329 on: July 22, 2007, 07:35:57 AM »
Hallo,

ich habe ein Problem. Bei mir funktioniert es überhaupt nicht: schaut es euch selbst an, bei allen Varianten kam das jetzt raus

http://www.picture-collection.net/signature.png

http://www.picture-collection.net/signature.png?go=1

Kann mir vielleicht jemand sagen, was daran verkehrt ist.

MfG Lennforce