• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Help] Can anyone help with room ads? [Plus Emu]

Junior Spellweaver
Joined
Feb 22, 2012
Messages
133
Reaction score
23
Hey all just wondering if anyone knows how to get this to show an image? Or can point me to the right direction as previous tutorials do not seem to work for me as I dont know what i am doing wrong. Sorry for the noobish post but any help is appreciated.

tvMlCKU - [Help] Can anyone help with room ads? [Plus Emu] - RaGEZONE Forums


Many Thanks.
 

Attachments

You must be registered for see attachments list
Joined
Feb 7, 2010
Messages
1,863
Reaction score
1,006
Wat have you tried yet?
As I noticed, room ads are very sensitive.
- Was your image stored on the host?
- Did you use http or https?
- Did the link end with .png/.gif/.jpeg/.jpg (I think these are all compatible). (If the url ended with 'img.png?size=small' or similar, it could not work)
 
Upvote 0
Junior Spellweaver
Joined
Feb 22, 2012
Messages
133
Reaction score
23
I tried with images hosted on my wwwroot and through imgur. I tried http and https and i tried .png .jpg and .gif and still couldn't get it to work?
 
Upvote 0
Junior Spellweaver
Joined
Feb 22, 2012
Messages
133
Reaction score
23
I cant seem to find it on the database, do i need something like a room_ads table?



Correction i have this :
KSZgnGO - [Help] Can anyone help with room ads? [Plus Emu] - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Upvote 0
Junior Spellweaver
Joined
Feb 22, 2012
Messages
133
Reaction score
23
Managed to fix it, all yuo have to do is take the http: part out and link it like "//url/image.png"
 
Last edited:
Upvote 0
Junior Spellweaver
Joined
May 3, 2009
Messages
173
Reaction score
134
Any console error? Like crossdomain.xml or something.
Also, you can write a simple php script to workaround crossdomain

yoururl.com/thisfilename.php?url=imgur.com/image.png
PHP:
<?php
$imgUrl = $_GET['url'];
if(!empty($imgUrl))
{
    header ('Content-Type: image/png');
    $image = imagecreatefromstring(file_get_contents('http://'.$imgUrl));
    imagesavealpha($image, true);
    imagepng($image);
    imagedestroy($image);
}
?>
 
Upvote 0
Junior Spellweaver
Joined
Feb 22, 2012
Messages
133
Reaction score
23
No console errors, Thanks for crossdomain code will give this a try :)



Script did not work, no idea why this still doenst work. I cant find any errors with crossdomain.
 
Upvote 0
Back
Top