TinyPortal

Development => Support => Topic started by: clickbouyow on December 23, 2005, 11:39:40 PM

Title: Wallpapers.com
Post by: clickbouyow on December 23, 2005, 11:39:40 PM
I have this on my website, however the Java doesn't work.  Can someone take a look at it?


<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();"><img src="http://www.gamewallpapers.com/wallpaperoftheday/wallpaperoftheday_pc.jpg" width="120" height="90" border="0" onError="document.all.gw_wallpaperoftheday_pc.style.visibility='hidden';"></a><br></div>

<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>
Title: Re: Wallpapers.com
Post by: IchBin on December 24, 2005, 09:50:54 PM
Are you trying to use it in a block? It it not working at all? I put it in a block on my test site and it showed a thumbnail of something. What is it supposed to do that is not working for you?
Title: Re: Wallpapers.com
Post by: crip on December 24, 2005, 10:23:17 PM
It works..it was A King Kong wallpaper in  various sizes...
Title: Re: Wallpapers.com
Post by: clickbouyow on December 24, 2005, 10:36:55 PM
It is supposed to have a thumbnail.  If you click on it, a larger version of the image is shown.
Title: Re: Wallpapers.com
Post by: IchBin on December 24, 2005, 11:44:27 PM
That's exactly what it does on my test site. Wanna take a look?

http://www.tmrules.com/beta/
Title: Re: Wallpapers.com
Post by: clickbouyow on December 24, 2005, 11:49:50 PM
Hm.  I don't get that.  I just get "Error on Page"
Title: Re: Wallpapers.com
Post by: IchBin on December 25, 2005, 12:05:09 AM
You choose html/javascript as your block type?
Title: Re: Wallpapers.com
Post by: clickbouyow on December 25, 2005, 12:26:40 AM
Ah..I think I just chose HTML
Title: Re: Wallpapers.com
Post by: frisp on December 25, 2005, 03:09:09 PM
You can center the image up in the block as well, using align inserted into the 1st bit of the code -

<div align="center" id="gw_wallpaperoftheday_pc">

Hope this helps.
Title: Re: Wallpapers.com
Post by: babjusi on May 16, 2007, 02:13:13 AM
I just tried it out and it works perfectly
Title: Re: Wallpapers.com
Post by: Jordan on July 24, 2007, 05:36:47 AM
i get this when i put it into a html / bbc box (i dont have a javascript box guys wtf!!!)?

Wallpaper of the day

<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();">[/url]
</div>

<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>

it just shows the code, the top writing with the daily wallpaper is the block header
Title: Re: Wallpapers.com
Post by: Nikki Sixx on July 24, 2007, 05:43:01 AM
The "scriptbox" block must be used for (X)HTML and/or JavaScript language scripts.
Title: Re: Wallpapers.com
Post by: Jordan on July 24, 2007, 05:44:30 AM
thanks nikki just tried it but i still get

Wallpaper of the day

<div id="gw_wallpaperoftheday_pc"><a href="javascript:gwGetPreview_pc();"><img src="http://www.gamewallpapers.com/wallpaperoftheday/wallpaperoftheday_pc.jpg" width="120" height="90" border="0" onError="document.all.gw_wallpaperoftheday_pc.style.visibility='hidden';"></a>
</div>

<script>
function gwGetPreview_pc() { url = "http://www.gamewallpapers.com/wallpaperoftheday/getpreview.php?type=pc";
ipwindow = window.open(url,"_blank","fullscreen=no,resizable=no,scrollbars=no,toolbar=no,height=316,width=400");
}
</script>
Title: Re: Wallpapers.com
Post by: Nikki Sixx on July 24, 2007, 05:51:25 AM
The terminating "[/url]" tag should not be present. You are also missing portions of the script! On top of that, I don't believe BBC tags are rendered in "scriptbox" blocks.
Title: Re: Wallpapers.com
Post by: Jordan on July 24, 2007, 05:54:30 AM
got any idea why i get this when i rmove the url tag?:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, mysite@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at " mysite" Port 80


OMG why do i get this error al the time now whenever i try add this code, whats going on!!!!! i hate the net and it all happened when i used ur code too LOL
Title: Re: Wallpapers.com
Post by: G6Cad on July 24, 2007, 10:07:39 AM
You MUST use codetags when you pasting in code in the post.
If you dont the posting will render the post and put in bbc tags where they dont belong.

Also please read the posting guide for this forum, one of the sticky posts clearly say NO support in the block code and snippets board.
Title: Re: Wallpapers.com
Post by: Jordan on July 26, 2007, 10:10:20 AM
This is in support! well it is now anyway, so now since i'ts in support you can help me.

got any idea why i get this when i rmove the url tag?:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, mysite@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at " mysite" Port 80



OMG why do i get this error all the time now whenever i try add scriptbox code into TP? sometimes happens on my domain name too
Title: Re: Wallpapers.com
Post by: Jordan on July 26, 2007, 11:33:00 AM
bump
Title: Re: Wallpapers.com
Post by: Ken. on July 26, 2007, 11:38:16 AM
Jordan, please don't bump the thread so soon, it's only been 1.5 hours.

Someone will try and give you an answer, you just have to give us time enough to get back to you.

Thanks... Ken.
Title: Re: Wallpapers.com
Post by: G6Cad on July 26, 2007, 12:15:15 PM
Internal server error usually means that it's the host that needs to change some configuration.
It might be that you are running on safe mod, or even "external" urls are not permitted.