PDA

View Full Version : JavaScript Links?


Infidelvious
27-09-2007, 03:23 PM
Is there any way to post a JavaScript link? I've got an advertisement free version of iSketch that I would like to share, but it's a JavaScript link:

<a href="javascript:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=no'))();">

When I try using the WYSIWYG (hate those by the way, is there any way to post raw HTML and have it converted 100% like I type it?), this is what I get:

javascript:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=no'))();

If you visit there, it translates to:

http://javascript<b></b%3E:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=no'))();

Which is almost what I want:

javascript:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=no'))();

In retrospect, this may be a vBulletin question and not an iSketchForum question per se.

There might not be a way to do what I'm asking, but I figured I'd ask anyway.

I could post it on an external site, like:

http://www.example.org/isketch_popup.htm and have a link on that page, but that's extra clicking for everyone and, in my opinion, defeats the purposes of a forum. Not to mention the fact that I don't want to have to worry about hosting something just for one link.

Alternatively, I could tell people to copy and paste:

javascript:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=no'))();

into the address line of their browsers, but again, not very user friendly, and defeats the purpose of a forum.

So, in summation, to answer this question:

Feedback What would you like to see added to the iSketch Forum, how can it be made a better place? Tell us here.

I would like the ability to post raw html and have it converted 100% like I type it. I believe that it will make the iSketch Forum a better place, but like I said, maybe a vBulletin question.

Thanks.

2.0
27-09-2007, 03:41 PM
A mod might be able to format that link for you so it works, but as for getting it posted on the forum you have to go directly to peter (http://www.isketchforum.net/private.php?do=newpm&u=3).

jewels
27-09-2007, 03:45 PM
Feedback What would you like to see added to the iSketch Forum, how can it be made a better place? Tell us here.Thanks.


Hi Infidelvious, we do already have thread for suggestions for the forum


http://www.isketchforum.net/suggestions-forum-t1319p6.html


edit: I have tried to post html links before, with no luck on here.

sense
27-09-2007, 05:39 PM
I would like the ability to post raw html and have it converted 100% like I type it. I believe that it will make the iSketch Forum a better place, but like I said, maybe a vBulletin question.
Being able to post raw HTML would allow security loopholes in the forum, like cross-site scripting. I think Peter would not be keen on that :razz:

flopsy
27-09-2007, 05:47 PM
Being able to post raw HTML would allow security loopholes in the forum, like cross-site scripting. I think Peter would not be keen on that :razz:

What he said. Same applies to javascript and any other script with the added danger of all sorts of ooh nasties. In addition, not everyone uses perfect code and errors often cause crashes.

There's a perfectly easy way for people to see iSketch without adverts and that's to use Firefox with one of its adblocking extensions. I use a userstyle script myself but Adblock Plus is supposed to be good and is much easier for most users.

Infidelvious
27-09-2007, 08:13 PM
A mod might be able to format that link for you so it works, but as for getting it posted on the forum you have to go directly to peter (http://www.isketchforum.net/private.php?do=newpm&u=3).

Thanks, I'll give that a shot. I think it might be nice to put up a stickie, so everyone can enjoy playing ad free in a small window.

Hi Infidelvious, we do already have thread for suggestions for the forum


http://www.isketchforum.net/suggestions-forum-t1319p6.html


edit: I have tried to post html links before, with no luck on here.

Sorry that I got the wrong thread.

/me = forum noob

What he said. Same applies to javascript and any other script with the added danger of all sorts of ooh nasties. In addition, not everyone uses perfect code and errors often cause crashes.

There's a perfectly easy way for people to see iSketch without adverts and that's to use Firefox with one of its adblocking extensions. I use a userstyle script myself but Adblock Plus is supposed to be good and is much easier for most users.

Oh, I agree flopsy. /me <3 Firefox + Adblock

I was thinking of my fellow iSketch brethren that may not know about that, the way I do it, works irregardless of browser, and it plays in the smallest possible window.

I guess I didn't think of script kiddies trying to cause havoc with malicious code. I guess I'll settle with posting the code and let people copy and paste it themselves, should be too hard, even for a noob.

-----

But then again, they might not go for it, because it would be taking away their ad revenue. I just feel greedy using this method for myself, when I know others could enjoy it just as easily, you can even bookmark a javascript link too.

Thanks all.

BB
27-09-2007, 09:02 PM
I'm sure that players who find the ads annoying will be grateful for the above suggestions. I just hope that it doesn't cut back on what I suspect is the small amount a revenue they bring in to Rob for the game we all play for free :sad:

flopsy
27-09-2007, 10:23 PM
The stats collected which form the basis of revenue, BB, will show what browsers people are using but they can't tell how the browser is configured so using Firefox with an adblocker shouldn't affect the income Rob gets. However, what Infidelvious is suggesting would affect it because the server logs will count the number of times the page is accessed not the number of times the Shockwave movie is used.

And, sorry Infidelvious, but I wouldn't paste script from a source I don't know.

Infidelvious
27-09-2007, 10:49 PM
Yes! I knew I was missing something. I just ran a test to confirm my suspicions. My method does not remove the ads, it just hides them from view. They are still being served, so Rob still gets his revenue while you all can play ad free, everybody wins!

Too see this in action, paste this:

javascript:(window.open('http://www.isketch.net/isketch.shtml','iSketch','width=727,height=429,men ubar=no,toolbar=no,scrollbars=no,status=no,locatio n=no,directories=no,resizable=yes'))();

in a browser's address line.

Now of course, you cannot have any type of ad blocking in effect to see this.

Just resize the popup window, and you will see the ad there.

No offense taken flopsy. You're right, I wouldn't click it myself, if I didn't know what it was doing. I know not everyone knows about JavaScript, the above code simply opens a window i.e. "window.open", it is opening http://www.isketch.net/isketch.shtml, something that everyone is familiar with.

Jobe
28-09-2007, 09:04 AM
Just to mention, Peter cant give the ability to post HTML to one specific user or a group of users, it has to be given to the whole board in which the thread is intended to be posted in which then allows all users to post HTML there. There are of course plugins/mods for vBulletin which allow it on a per group or per user basis but the more mods/plugins you have the more chances of there being a vunerability in the forum that can be used to hack it.

As for the adverts, I cant see what the problem is with them anyway and/or why they need to be hidden but hey, thats just my opinion.

jewels
28-09-2007, 10:51 AM
As for the adverts, I cant see what the problem is with them anyway and/or why they need to be hidden but hey, thats just my opinion. I think the problem the other night was that one of the adverts was flashing, there was a big yellow warning triangle that constantly flashed which was putting players off. I'm on AOL (must be the only person who loves AOL) but I can cover up the adverts.

NoHints
28-09-2007, 12:43 PM
Why do you need to use that command for it? Can't people just resize the window themselves?

Also, I've never had any trouble with adverts. On IE it's always just had the "your ad here" thing and on Firefox it's always had the same advert (the few times I've used it for iSketch).

Nateman
27-10-2007, 08:13 AM
ive never seen any ads on iSketch in the many years ive been playing it... maybe im lucky?