The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
]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? ![]() |
#2
|
||||
|
||||
![]()
Just a question but have you had any regular registered members try it to see if it works?
|
#3
|
||||
|
||||
![]()
]nope I haven't... I tried it on another pc at the same home network - same result
![]() |
#4
|
||||
|
||||
![]()
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] |
#5
|
||||
|
||||
![]()
no, html/php + img tag is disabled... that's why I made new vBB code...
|
#6
|
||||
|
||||
![]()
woolfe try this code in your sig.php file:
PHP Code:
|
#7
|
||||
|
||||
![]()
]lemme try
![]() (will edit this message as soon as I have tried ![]() |
#8
|
||||
|
||||
![]()
erm....
$im = imagecreatefromjpeg($logos[$logo]<img src="https://vborg.vbsupport.ru/images/newsm/wink.gif" border="0" alt="">; ^^^^^^ ???? |
#9
|
||||
|
||||
![]()
]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 |
#10
|
||||
|
||||
![]()
ups, seems vb has parsed a line as a smilie *gg*
try now |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|