ad
Countdown to 2016 Australian Grandprix:
2016 Formula1 World Championship Calendar

Australia | Bahrain | China | Russia | Spain | Monaco | Canada | Baku | Austria | Great Britain | Hungary | Germany | Belgium | Italy | Singapore | Malaysia | Japan | USA | Mexico | Brazil | Abu Dhabi

Dearest Admins

Your questions and suggestions about the forum

Moderators: Lyria, Mafia, Lawrence, Administrator

Re: Dearest Admins

Postby Dev on Mon Feb 08, 2010 10:56 am

MikaPup wrote:If I can browse the Autosport forums on my phone


Wow, that's pathetic, even by Sin's standards :hihi: :hihi: :hihi:
Alcohol isn't a problem, it's a solution... Just ask any chemist.
User avatar
Dev
 
Posts: 55533
Joined: Tue Feb 04, 2003 6:01 am
Location: Minas Morgul

Re: Dearest Admins

Postby Sinister on Mon Feb 08, 2010 10:58 am

Hey what you lot gossiping about me in here? :hihi:
The Master Of Mind Games and the undisputed King Of Groaners :clap:


Things can only get worse.
User avatar
Sinister
 
Posts: 55469
Joined: Tue Mar 07, 2006 6:01 am
Location: Anywhere close to food.

Re: Dearest Admins

Postby Mafia on Mon Feb 08, 2010 11:25 am

MikaPup wrote:Hmm. That looks like signature material.


LOL ^o^

Pup in Sinister mode ^o^
Tough Luck!
User avatar
Mafia
Moderator
Moderator
 
Posts: 9403
Joined: Wed Nov 17, 2004 6:01 am
Location: Canada

Re: Dearest Admins

Postby Sinister on Mon Feb 08, 2010 2:20 pm

What, he has started to have flatulence issues? :moose:
The Master Of Mind Games and the undisputed King Of Groaners :clap:


Things can only get worse.
User avatar
Sinister
 
Posts: 55469
Joined: Tue Mar 07, 2006 6:01 am
Location: Anywhere close to food.

Re: Dearest Admins

Postby MikaPup on Tue Feb 09, 2010 2:58 pm

Here's something related that someone posted at atlas...

Let's say I post a link to an image without the IMG tag, like so...

http://www.f1fanatic.co.uk/wp-content/u ... jm03-7.jpg

Now, if you want to view that within the post instead of clicking on it, you can copy and paste this into the address bar of your browser...

Code: Select all
javascript:%20(function%20()%20{%20function%20I(u)%20{%20var%20t%20=%20u.split('.'),%20e%20=%20t[t.length%20-%201].toLowerCase();return%20{gif:%201,jpg:%201,jpeg:%201,png:%201,mng:%201}[e]}function%20hE(s)%20{return%20s.replace(/&/g,%20'&').replace(/>/g,%20'>').replace(/</g,%20'<').replace(/"/g,%20'"');}var%20q,%20h,%20i;for%20(i%20=%200;%20q%20=%20document.links[i];%20++i)%20{h%20=%20q.href;if%20(h%20&&%20I(h)){q.innerHTML%20=%20'<img%20src="'%20+%20hE(h)%20+%20'"%20/>';%20}}})()


OK, once you've done that, then bookmark it and place the bookmark on the bookmarks bar of your browser. Then whenever someone posts a link like that, just click the button and voila. But be careful about how you bookmark it, since your browser may just bookmark the page itself. If it doesn't work for you, then just go into your bookmarks and manually paste the script into the bookmark's address.

Cool, huh? Works in Firefox and any of the WebKit browsers for sure (Safari, Chrome, etc.). Don't know about IE.

Ahh, but you might say, "Mr. Pup, that is a very large image which messes with the format of the entire page and now I have to scroll left and right to read anything. Curse you, Mr. Pup!" Or something like that. Actually, here you would probably say something like, "What's the deal, Mr. Pup, are you on drugs or something, because all I see is a bare sliver of white that may well be an image, but it could also be a telltale sign that your script has destroyed my computer."

Well, never fear, for there is a solution to that as well. Just copy and paste this into your address bar...

Code: Select all
javascript: (function () {    var margin = 220;    function getWidth() {        var myWidth = 0;        if (typeof( window.innerWidth ) == 'number' ) {            myWidth = window.innerWidth;        }        else if (document.documentElement && ( document.documentElement.clientWidth) )        {            myWidth = document.documentElement.clientWidth;        }        return myWidth;    }        var ss = document.styleSheets[document.styleSheets.length-1];    var l=0;    if (ss.cssRules) {      l = ss.cssRules.length;    } else if (ss.rules) {      l = ss.rules.length;    }    if (ss.insertRule) {      ss.insertRule('img { max-width: ' + (getWidth() - margin) + 'px; }',l);    } else if (ss.addRule) {      ss.addRule('.postcolor', 'max-width: ' + (getWidth() - margin) + 'px;', l);    }})()


...and make a bookmark for it as well. Now you have a button that will automagically resize said image to precisely the perfect width for whatever size your browser window happens to be.

At least it sort of works. The size limit here is still a good bit smaller than what your browser is likely set to, unless you're one of those unfortunate souls who was suckered into buying a netbook last year. The result is that the image will still be clipped unfortunately, but at least not as badly as before.

Now, what would be cool of course, is if the admin just removed the limit, and instead placed these two buttons on each post; or just added the functionality to the site as a whole.
Last edited by MikaPup on Tue Feb 09, 2010 3:15 pm, edited 1 time in total.
MikaPup
 
Posts: 7968
Joined: Tue Jul 12, 2005 5:01 am

Re: Dearest Admins

Postby Crossa on Tue Feb 09, 2010 3:14 pm

Coolness

Once the forum has been widened this will be an even neater tool. We have contacted admin re that issue, but sometimes stuff takes a while.
Image
User avatar
Crossa
 
Posts: 6460
Joined: Tue Jul 06, 2004 5:01 am
Location: Netherlands

Re: Dearest Admins

Postby MikaPup on Tue Feb 09, 2010 3:26 pm

I assume that he could just add both scripts to the page code and be done with it. It would be cool not to have to even worry about IMG tags at all.

BTW, here is a script from the same guy which does essentially what this site does with the BIGIMG tag; i.e., it adds scrollbars to the pic instead of resizing it...

Code: Select all
javascript: (function () {    var margin = 220;    function getWidth() {        var myWidth = 0;        if (typeof( window.innerWidth ) == 'number' ) {            myWidth = window.innerWidth;        }        else if (document.documentElement && ( document.documentElement.clientWidth) )        {            myWidth = document.documentElement.clientWidth;        }        return myWidth;    }        var ss = document.styleSheets[document.styleSheets.length-1];    var l=0;    if (ss.cssRules) {      l = ss.cssRules.length;    } else if (ss.rules) {      l = ss.rules.length;    }    if (ss.insertRule) {      ss.insertRule('.postcolor { overflow:auto; width:' + (getWidth() - margin) + 'px; }',l);    } else if (ss.addRule) {      ss.addRule('.postcolor', 'overflow:auto; width:' + (getWidth() - margin) + 'px;', l);    }})()


These were all provided by 'imightbewrong' over on Atlas, btw.
MikaPup
 
Posts: 7968
Joined: Tue Jul 12, 2005 5:01 am

Re: Dearest Admins

Postby Crossa on Tue Feb 09, 2010 3:29 pm

The change required is as such even easier, but one needs writing permission on the server in order to do it, which yours truly does not have :emo:
Image
User avatar
Crossa
 
Posts: 6460
Joined: Tue Jul 06, 2004 5:01 am
Location: Netherlands

Re: Dearest Admins

Postby Dev on Wed Feb 10, 2010 11:00 am

Stop slacking off Crossa and get on with it :p

:hihi:
Alcohol isn't a problem, it's a solution... Just ask any chemist.
User avatar
Dev
 
Posts: 55533
Joined: Tue Feb 04, 2003 6:01 am
Location: Minas Morgul

Re: Dearest Admins

Postby Crossa on Wed Feb 10, 2010 11:58 am

Just busy wondering which of my two nose-holes to pick from next :sinister:
Image
User avatar
Crossa
 
Posts: 6460
Joined: Tue Jul 06, 2004 5:01 am
Location: Netherlands

Re: Dearest Admins

Postby Sinister on Wed Feb 10, 2010 2:49 pm

You can pick both of your nostrils at the same time. I've attempted it before. :beer:
The Master Of Mind Games and the undisputed King Of Groaners :clap:


Things can only get worse.
User avatar
Sinister
 
Posts: 55469
Joined: Tue Mar 07, 2006 6:01 am
Location: Anywhere close to food.

Re: Dearest Admins

Postby Dev on Thu Feb 11, 2010 9:17 am

Double penetration, Its not that comfortable though. :yaynot: :hihi:

I wonder whats the Guinness World Record for largest booger :hihi:
Alcohol isn't a problem, it's a solution... Just ask any chemist.
User avatar
Dev
 
Posts: 55533
Joined: Tue Feb 04, 2003 6:01 am
Location: Minas Morgul

Re: Dearest Admins

Postby Sinister on Fri Feb 12, 2010 9:09 am

Double penetration - sounds like a hardcore porn movie. :hihi:
The Master Of Mind Games and the undisputed King Of Groaners :clap:


Things can only get worse.
User avatar
Sinister
 
Posts: 55469
Joined: Tue Mar 07, 2006 6:01 am
Location: Anywhere close to food.

Re: Dearest Admins

Postby Sinister on Fri Feb 12, 2010 9:10 am

Dev wrote:I wonder whats the Guinness World Record for largest booger :hihi:



Dunno but I will attempt that record. :yay: :shy:
The Master Of Mind Games and the undisputed King Of Groaners :clap:


Things can only get worse.
User avatar
Sinister
 
Posts: 55469
Joined: Tue Mar 07, 2006 6:01 am
Location: Anywhere close to food.

Re: Dearest Admins

Postby Dev on Fri Feb 12, 2010 6:54 pm

Sinister wrote:
Dev wrote:I wonder whats the Guinness World Record for largest booger :hihi:



Dunno but I will attempt that record. :yay: :shy:


How are you planning to go about that? :hihi:
Alcohol isn't a problem, it's a solution... Just ask any chemist.
User avatar
Dev
 
Posts: 55533
Joined: Tue Feb 04, 2003 6:01 am
Location: Minas Morgul

PreviousNext

Return to About the Forum

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright 1988-2011, Inside F1, Inc.