The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
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 $logodir = "http://www.somewhere.com/pics/"; header('Content-Type: image/jpeg'); header('Content-Disposition: inline; filename=file.jpg'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Pragma: no-cache'); $logos = array ( $logodir . "1.jpg", $logodir . "2.jpg", $logodir . "3.jpg", $logodir . "4.jpg", $logodir . "5.jpg", $logodir . "6.jpg" ); function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } srand(make_seed()); $logo = rand(0, count ($logos) - 1); $titleimage = $logos[$logo]; ?> <?php echo "<img src=$titleimage>"; ?> 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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|