ziedinjsh Posted July 15, 2012 Report Posted July 15, 2012 (edited) Rāda tikai linku.. it kā jau vajadzēja rādīt bildi <?php $Mixed2 = "https://web.tradekorea.com/upload_file2/sell/39/S00006939/sexy_lingerie_sexy_teddy_make_magic_syle_.jpg"; $Mixed2 = preg_replace("#(http://[^ ]+\\.jpg(?= |$))#i","<img src=\"$1\" alt=\"$1\"/>", $Mixed2); echo $Mixed2; ?> šinī gadījumā bildi nerāda, jo bilde ir https nevis http. kā lai lasa abus un jpg, jpeg, png un gif formātu? Edited July 15, 2012 by ziedinjsh Quote
ziedinjsh Posted July 15, 2012 Author Report Posted July 15, 2012 bilde, jā.. nu man arī šitā iet $Mixed2 = preg_replace('/((https?|ftp).*(gif|png|jpg|jpeg))/i', '<img src="$1" />', $Mixed2); Vienīgā problēma ir tāda, ka tas neiet vanilla 2 forumā.. iekš faila library/core/class.format.php Quote
daGrevis Posted July 16, 2012 Report Posted July 16, 2012 > sexy_lingerie_sexy_teddy_make_magic_syle_.jpg Un pie kādas mājaslapas Tu strādā? :) Quote
ziedinjsh Posted July 16, 2012 Author Report Posted July 16, 2012 Maiģināju jau jautāt, bet tur uzdod 100 un 1 pretjautājumu! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.