Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

pobieranie grafik z innej strony www

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
Indian
Smarty n00b


Joined: 03 Oct 2005
Posts: 2
Location: hamburg

PostPosted: Mon Oct 03, 2005 5:28 pm    Post subject: pobieranie grafik z innej strony www Reply with quote

Kod php pobierajacy miniatury stron www z katalogu : http://open.thumbshots.org
Code:
 
$url = "http://google.com";
$TheImage = "http://open.thumbshots.org/image.pxf?url=".$url."";
   $size = getimagesize($TheImage);
if ($size[1]==90) {
}
else
{
}

Jak takie cos wpakowac do szablonu ?
Back to top
View user's profile Send private message
human
Smarty Rookie


Joined: 21 Oct 2005
Posts: 12
Location: Helldorado

PostPosted: Fri Oct 21, 2005 10:12 am    Post subject: Reply with quote

nie rozumiem problemu :]
no albo zapisujesz obrazke lokalnie i przekazujesz smartom jego nazwe/sciezke

albo w smartach w zwyklym htlmu <img src="i tu ten url"> powinno zalapac
Back to top
View user's profile Send private message Visit poster's website
Indian
Smarty n00b


Joined: 03 Oct 2005
Posts: 2
Location: hamburg

PostPosted: Sat Oct 22, 2005 3:17 am    Post subject: Reply with quote

Zeby zycie bylo takie proste . Grafika moze byc zrzutem strony www o wymiarach 120x90 (gdy strona jest w katalogu dmoz) , albo slepym gifem 1x1 lub 2x2 (gdy strony w katalogu niema) . Ja chce pobierac tylko te ktore maja 120x90 .
Back to top
View user's profile Send private message
human
Smarty Rookie


Joined: 21 Oct 2005
Posts: 12
Location: Helldorado

PostPosted: Fri Oct 28, 2005 9:38 am    Post subject: Reply with quote

Indian wrote:
Zeby zycie bylo takie proste . Grafika moze byc zrzutem strony www o wymiarach 120x90 (gdy strona jest w katalogu dmoz) , albo slepym gifem 1x1 lub 2x2 (gdy strony w katalogu niema) . Ja chce pobierac tylko te ktore maja 120x90 .


[php:1:cc852afb6b]<?
$size = getimagesize(''.$TheImage.'');
$width = $size[0];
$height = $size[1];

if ($width == 120 && $height == 90)
{
$smarty->assign('TheImage',''.$TheImage.'');
}
?>[/php:1:cc852afb6b]

na 1 rzut oka powinno cykac, ale nei wiem nie sprawdzalem ;P
Back to top
View user's profile Send private message Visit poster's website
wojtek
Smarty n00b


Joined: 06 Feb 2006
Posts: 1

PostPosted: Mon Feb 06, 2006 6:49 am    Post subject: Reply with quote

[php:1:96a03aa0b7]getimagesize(''.$TheImage.''); [/php:1:96a03aa0b7]?
"$TheImage" == $TheImage == ". $TheImage .";
Saluto!
Back to top
View user's profile Send private message
lmaniak
Smarty n00b


Joined: 10 Jul 2008
Posts: 1

PostPosted: Thu Jul 10, 2008 12:14 am    Post subject: Reply with quote

Nie ma jeszcze innego sposobu?
_________________
Polecam samochód lada: Lada
Back to top
View user's profile Send private message
ojciecimperator
Smarty n00b


Joined: 30 Jul 2008
Posts: 1

PostPosted: Wed Jul 30, 2008 2:53 pm    Post subject: Reply with quote

Dołączam się do pytania powyższego kolegi. Próbowałem powyższe sposoby i nie działa....
_________________
wahacz audi a4 i inne części do audicy
Back to top
View user's profile Send private message
kar_ryn_89
Smarty n00b


Joined: 05 Aug 2008
Posts: 1

PostPosted: Thu Oct 30, 2008 10:24 am    Post subject: Reply with quote

Code:
<?
$size = getimagesize(''.$TheImage.'');
$width = $size[0];
$height = $size[1];

if ($width == 120 && $height == 90)
{
$smarty->assign('TheImage',''.$TheImage.'');
}
?>


i tplu dajesz:

Code:

<img src="{$TheImage}" alt="" />

Spróbuj tego.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP