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

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

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Signature image v2.20.2
« Reply #45 on: May 06, 2005, 03:34:09 PM »
Hi,

is this all what i must do???

I have make the changes and edit the settings to:

Quote
$statusimages = "http://osi.lostinspacehosting.com:81"; //the directory where online.gif offline.gif and unknown.gif images are.
$statusurl = "http://osi.lostinspacehosting.com:81/"; //the url of status indicator server. WITH TRAILING SLASH!

Then i have change this

Quote
array(array($fsize, $offset2+$tiny, $lang_new_user, "text_color"), array($fsize, $far, $show['new_user'], "text_color"))

to this

Quote
array(array($fsize, $offset2+$tiny, $lang_new_user, "text_color"), array($fsize, $far, $show['new_user'], "text_color")),
                  array(array($fsize, $offset2+$tiny, $messengers, "text_color"), array($fsize, $far, $show['messengers'], "text_color"))

But now i see array and no images with my status...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #46 on: May 06, 2005, 05:59:21 PM »
I dont know why u changed anything below // -------- End config ----------
and the
Code: [Select]
$statusimages = "/www/onlinestatusimgs/"; //the directory where online.gif offline.gif and unknown.gif images are.
must be a local path, not remove path. otherwords, u must have online.gif, offline.gif and unknown.gif images on the same server where your signature.php is (these images does not require access through web though)
Basicaly that's the only line u need to change before u test it ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Signature image v2.20.2
« Reply #47 on: May 06, 2005, 06:52:45 PM »
Ok,

i think i have it. Now i can see the unknown, but not online gifs......

What i mean, in the Signature all is unknown an here it goes... -> http://www.terraristik-galerie.de/contact.php


And now what i must do to have the image more in the right corner...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #48 on: May 06, 2005, 07:06:15 PM »
the code I've posted was already setup for u, only $statusimages variable should be changed.
This is what I see when add the code to my sig (dont mind the AIM icon):
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Signature image v2.20.2
« Reply #49 on: May 06, 2005, 07:12:13 PM »
I have made no other changes in the code...Now i have change the image path, nothing more.....

Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #50 on: May 06, 2005, 07:34:38 PM »
hmmm...ok, lets debug it.
1) in
Code: [Select]
  if ($request = @fsockopen($url['host'], ((isset($url['port'])) ? $url['port'] : 80), $header, $header, 3)) increase the timeout time (replace 3 with 10)
check if that helps.
2) from that line remove @
check if any error messages showed
3) if no error message and u can see the image, then below:
Code: [Select]
    fclose($request);insert:
Code: [Select]
    echo $request;check again if anything showed

P.S. obviosly by "check" I mean execute your signature.php directly through the browser address bar, not through some html using <img> tag ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Signature image v2.20.2
« Reply #51 on: May 06, 2005, 07:44:35 PM »
I have do Step 1 - 3 but no Effect and no errors.

The Image is still loading 40 seconds :(
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #52 on: May 06, 2005, 08:10:21 PM »
if u do step 2 and 3 there must be showed something.
and u can not do anything about 40 seconds because the "status" server is remote, not local, or u should remove some of the messengers.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Signature image v2.20.2
« Reply #53 on: May 06, 2005, 08:16:53 PM »
if u do step 2 and 3 there must be showed something.
and u can not do anything about 40 seconds because the "status" server is remote, not local, or u should remove some of the messengers.

What i say, i have do the changes and the effect is what you see in my signature!

Is it a help for you when i send you my signature.php???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #54 on: May 06, 2005, 08:20:36 PM »
Is it a help for you when i send you my signature.php???
well, if u could make a copy of signature.php on your server and rename it to whatever.phps and then pm me with the url to it, that would do ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline cagedsmurf

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Signature image v2.20.2
« Reply #55 on: May 07, 2005, 06:40:28 PM »
Hey V@no I have just tried using this add on But get the following errors when i goto the sinature.php
i have the phpbb mod installed to my 4images & although i dont know a great deal of sql i take it this is responsible for these errors
Just wondered if you know a way round this?

DB Error: Bad SQL Query: SELECT user_name FROM phpbb_users WHERE user_level > -1 ORDER BY user_id DESC
Unknown column 'user_name' in 'field list'

DB Error: Bad SQL Query: SELECT session_user_id, session_ip FROM phpbb_sessions WHERE session_lastaction >= 1115481810
Unknown column 'session_lastaction' in 'where clause'


Thanks in advance :D

Offline waleed

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Signature image v2.20.2
« Reply #56 on: May 23, 2005, 02:52:25 PM »
ok guys when i open the explorer to www.xxx.com/signature.php i can see the images with info
but i counldnt include it to phpBB forums i made the .htaccess file but still .
what the code to put it as signature in the profile .
thanks

ok done i fixed it so now how to make the png as link :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #57 on: May 24, 2005, 12:34:04 AM »
every forum software has (or atleast supposed to have) a help link where u can find the bbcode used on the forum.
for example SMF help:
http://www.4homepages.de/forum/Themes/default/help/posting.english.html#bbcref
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Aleksey

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Signature image v2.20.2
« Reply #58 on: June 01, 2005, 11:16:48 PM »
Hello! How change codepage for russian language?  is possible? :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Signature image v2.20.2
« Reply #59 on: June 02, 2005, 12:42:21 AM »
sorry, PHP build-in fonts dont support russian letters. But you still have two choses:
1) very painfull but has the best result: use imagettftext() function instead of imagestring(), which uses a font u specify (even .ttf font from windows would work on unix systems). This method is painfull, because u'll have to make lots of other changes to the code besides that...
2) easy one: convert all russian letter to translit (а = a, я = ya, д = d, etc)

If the second chose would succesfy u, then insert on top of the signature.php this:
Code: [Select]
function translit($text) {
  $array = array("а","б","в","г","д","е","ё","ж","з","и","й","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ч","ш","щ","ь","ъ","э","ю","я","ы","А","Б","В","Г","Д","Е","Ё","Ж","З","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ч","Ш","Щ","Ь","Ъ","Э","Ю","Я","Ы");
  $array_tr = array("a","b","v","g","d","e","e","zh","z","i","j","k","l","m","n","o","p","r","s","t","u","f","h","c","ch","sh","shj","'","j","e","yu","ya","y","A","B","V","G","D","E","E","Zh","Z","I","J","K","L","M","N","O","P","R","S","T","U","F","H","C","Ch","Sh","Shj","'","J","E","Yu","Ya","Y");
  return str_replace($array, $array_tr, $text);
}

Then, any text u need to convert, send it through translit() function.
For example, for "last registered user" replace
Code: [Select]
                array(array($fsize, $offset2+$tiny, $lang_new_user, "text_color"), array($fsize, $far, $show['new_user'], "text_color"))with:
Code: [Select]
                array(array($fsize, $offset2+$tiny, $lang_new_user, "text_color"), array($fsize, $far, translit($show['new_user']), "text_color"))

Good luck.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)