Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> opis gg na www
vow
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 24.01.2004

Ostrzeżenie: (0%)
-----


Tak jak w temacie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) szukam skryptu ktory pokazuje opis z gadugadu na www
Go to the top of the page
+Quote Post
nobody
post
Post #2





Grupa: Zarejestrowani
Postów: 150
Pomógł: 0
Dołączył: 9.07.2003
Skąd: Lublin city

Ostrzeżenie: (0%)
-----


http://gg.siedziba.pl/usage.php - Przyklad#4
Go to the top of the page
+Quote Post
vow
post
Post #3





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 24.01.2004

Ostrzeżenie: (0%)
-----


cos po kodzie nie wyglada mi an to zeby ten skrypt robil to o czym mysklalem, chodzi mi o to ze jesli mam napisane w opise na gg bla bla bla to zeyb skrypt pokazal to bla bla bla na stronie ;P
Go to the top of the page
+Quote Post
nobody
post
Post #4





Grupa: Zarejestrowani
Postów: 150
Pomógł: 0
Dołączył: 9.07.2003
Skąd: Lublin city

Ostrzeżenie: (0%)
-----


Cytat
...
document.write("</b><br>"+(gadu_desc?"OPIS:<br><b>"+htmlencode(gadu_desc)+"</b>":"OPISU BRAK")+"<br>");
...
Go to the top of the page
+Quote Post
peterj
post
Post #5





Grupa: Zarejestrowani
Postów: 121
Pomógł: 0
Dołączył: 9.02.2004
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Możesz zastosować skrypt php wyświetlający status GG, autorem jest cezi:
[php:1:0658f2d2f1]<?php

# autor - cezi
set_time_limit(0);

function pokaz_status_gg($nr, $error, $BLAD, $ONLINE, $NIEDOSTEPNY, $AWAY, $LineALL="")
{
$str = 'http://www.gadu-gadu.pl/users/status.asp?id='.$nr.'&styl=2';
if(!@fopen($str, 'r'))
{
print $error;
}
else{
$foo = fopen($str, 'r');
$LineAll = fgets($foo, 300);
$LineAll = str_replace('0', $BLAD, $LineAll);
$LineAll = str_replace('1', $NIEDOSTEPNY, $LineAll);
$LineAll = str_replace('2', $ONLINE, $LineAll);
$LineAll = str_replace('3', $AWAY, $LineAll);
fclose($foo);
}


return eregi_replace("(.*)", "<font style='font-family:verdana;color:darkblue;font-size:12px'>1</font>", @$LineAll);
};

print pokaz_status_gg('3910481','error', 'Blad GG', 'Jestem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ','Nie ma mnie (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) ','Jestem On-line ale chwilowo wyszedlem');

?>[/php:1:0658f2d2f1]
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 08:45