![]() |
Random Image works as direct link, but doesn't work in the IMG tag...
]Hello everyone... I used following script to push a random picture:
Code:
<?php Now... I went to my VBB forum and made a new VBB code : vB Code tag adminimgonly vB Code replacement <img src="{param}"> vB Code example [adminimgonly]http://www.google.com/images/logo.gif[/adminimgonly] vB Code explanation Adds an IMAGE to a signature for ADMINS only. Use {option} ? Yes No And tried it out in my signature as Code:
[adminimgonly]http://www.somewhere.com/pics/sig.php[/adminimgonly] But direct access Code:
[adminimgonly]http://www.somewhere.com/pics/1.jpg[/adminimgonly] In the source code I could clearly see plain html language Code:
< img src="http://www.somewhere.com/pics/sig.php" > Anyone have any ideas? :( |
Just a question but have you had any regular registered members try it to see if it works?
|
]nope I haven't... I tried it on another pc at the same home network - same result :(
|
I think personally that the direct link is plainly bypassing as an image tag like:
Code:
[*img]the image address[*/img] Code:
[adminimgonly]http://www.somewhere.com/pics/1.jpg[/adminimgonly] |
no, html/php + img tag is disabled... that's why I made new vBB code...
|
woolfe try this code in your sig.php file:
PHP Code:
|
]lemme try :)
(will edit this message as soon as I have tried :) ) |
erm....
$im = imagecreatefromjpeg($logos[$logo]<img src="https://vborg.vbsupport.ru/images/newsm/wink.gif" border="0" alt="">; ^^^^^^ ???? |
]well... I used script as u said and it didn't worked... then I changed
$im = imagecreatefromjpeg($logos[$logo]<img src="https://vborg.vbsupport.ru/images/newsm/wink.gif" border="0" alt="">; to $im = imagecreatefromjpeg($logos[$logo]<img src=" ; ) " border="0" alt="">; same result - doesn't work... Code:
Parse error: parse error, unexpected T_STRING in /blabla/sig.php on line 27 |
ups, seems vb has parsed a line as a smilie *gg*
try now |
]
Code:
<br /> Code:
$im = imagecreatefromjpeg($logos[$logo]); |
]the code I use right now looks like this: (just making sure we are talking about same script and same things)
Code:
<?php |
hmm, look here:
http://www.php.net/manual/en/functio...tefromjpeg.php its a standartfunction in php. something with your php-installation seems not to be ok... |
]I have tried it on 2 servers now... one in Germany and one in Holland. Both are installed by 2 difefrent peoples. Same result - doesn't work :confused:
|
]by the way... I don't blame you or something... I really appreciatte all your help... but I can't see meaning of creating an image from an EXISTED image, show it and then destroy it...
why not just push the existed image? :confused: |
have tried it at my server, works perfect:
http://www.strategy-forum.de/test.php |
Quote:
hmm, maybe your servers have disabled this function, have tested it on another server too and works perfectly too |
]ok... I got my friend to use it on his server (3rd server I'm trying to get it workk on).
It works! yay! now the problem is : all 6 pics I used was 25-30kb in size in perfect quality. After randomizing by this script all I get is blurred, low quality picture 8-9kb in size... are there any ways to be sure that qulity at the end is the same as in the start? btw : thanx for this workaround :) |
]Anyway, here's updated version of my script that should at the output generate progressive JPEG with 100% quality.
Code:
<?php As always... Script is working but there's some problems with it : generated pictures are not in the same quality as input pictures. |
forget it... I'm using other script
|
All times are GMT. The time now is 08:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|