This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
8836
Features / Re: New revs
« on May 25th, 2011, 03:23 PM »
rev 783
(4 files, 7kb)
* Rewrote the zoom box resizer to rely more on CSS and less on browser hacks... Only to fail miserably, because IE7 wouldn't cooperate. Oddly, IE6 fares much better here. So, I'm now using hacks only for IE7, including a very ugly one. Hardcoding a width value? Somebody do something! (zoomedia.js, zoom.css, zoom.ie6.css, zoom.ie7.css)
! Forgot a semi-colon to close a function variable. (zoom.css)
PS: if I have to spend ONE extra minute on this fucking resizer code, I'll kill a random cat!! So IE isn't pixel perfect on description paddings here, and I don't fucking care. It's the first time I'm getting it to work on ALL browsers I tested on...
(4 files, 7kb)
* Rewrote the zoom box resizer to rely more on CSS and less on browser hacks... Only to fail miserably, because IE7 wouldn't cooperate. Oddly, IE6 fares much better here. So, I'm now using hacks only for IE7, including a very ugly one. Hardcoding a width value? Somebody do something! (zoomedia.js, zoom.css, zoom.ie6.css, zoom.ie7.css)
! Forgot a semi-colon to close a function variable. (zoom.css)
PS: if I have to spend ONE extra minute on this fucking resizer code, I'll kill a random cat!! So IE isn't pixel perfect on description paddings here, and I don't fucking care. It's the first time I'm getting it to work on ALL browsers I tested on...
8837
Features / Re: request for something like this mod + datatables
« on May 24th, 2011, 11:34 PM »More accurately, all the files referenced get combined and compressed before being sent to the user.Quote In wedge any new javascript like from this mod is going to be automatically combined and added to existing javascript file?
Then again -- Wedge is configured by default to prevent loading files from the Themes/scripts folder, so I suppose modders would notice soon enough that they're doing something wrong ;)
64KB minified? That's a massive extra weight to the page load. (jQuery plus the rest of the JS is already about 100KB - and that's minified and partially gzipped as well. 64KB added on is no small matter.)
It used to be 32kb but we decided to switch from jQuery 1.4.4 to 1.5.2... (And I've only met problems ever since, ah well. I loved 1.4.4, it was smaller and it worked.)
This might make a really nice add-on, but it's the sort of thing I'd strongly suspect we wouldn't put in the core.
8838
Features / Re: New revs
« on May 24th, 2011, 12:34 AM »
rev 782
(4 files, 9kb)
! Fixed various issues in several browsers when resizing a zoom box to fit the viewport height. Had to add a IE6/7 hack to make it barely work, though. Will try fixing it later. (zoomedia.js)
* Applied the Opera 'hack' to all browsers, because it actually works best when resizing the screen. (zoomedia.js, zoom.css, zoom.ie6.css, zoom.ie7.css)
* Optimized a few bytes by turning 'auto' into a variable. (zoomedia.js)
! Fixed zoom box padding when showing HTML. (zoom.css)
! Fixed potential JS error when cancelling a zoom before the image was actually loaded at all. (zoomedia.js)
PS: I committed my fixed zoomedia.js because it currently works in IE6/7/8, Chrome and Opera (didn't test other browsers.) But it could be better really... I'm super-pissed.
(4 files, 9kb)
! Fixed various issues in several browsers when resizing a zoom box to fit the viewport height. Had to add a IE6/7 hack to make it barely work, though. Will try fixing it later. (zoomedia.js)
* Applied the Opera 'hack' to all browsers, because it actually works best when resizing the screen. (zoomedia.js, zoom.css, zoom.ie6.css, zoom.ie7.css)
* Optimized a few bytes by turning 'auto' into a variable. (zoomedia.js)
! Fixed zoom box padding when showing HTML. (zoom.css)
! Fixed potential JS error when cancelling a zoom before the image was actually loaded at all. (zoomedia.js)
PS: I committed my fixed zoomedia.js because it currently works in IE6/7/8, Chrome and Opera (didn't test other browsers.) But it could be better really... I'm super-pissed.
8839
Off-topic / Re: Doctor Who
« on May 23rd, 2011, 12:45 PM »
Ah yes, I have both Casino Royales on DVD/BluRay but I have yet to watch the first one... Even though it has some of my favorite artists in it.
8840
Off-topic / Re: Doctor Who
« on May 23rd, 2011, 10:31 AM »
What if James Bond is a position, like 007 / M / Q / R, and not a real name? :P
8841
Features / Re: New revs
« on May 22nd, 2011, 11:59 PM »
rev 781
(1 file, 5kb)
! Safari and Chrome didn't reset the sidebar when resizing to a small viewport and then back to a normal viewport. Fixed by setting the 'hidden' sidebar state to a block instead of a table. Sounds easy but it took hours to debug. Hate it when it happens. (index.css)
(Just wanted to commit this ASAP because it really was a PITA. I'm surprised Pete didn't notice anything -- you're using Chrome right?)
(1 file, 5kb)
! Safari and Chrome didn't reset the sidebar when resizing to a small viewport and then back to a normal viewport. Fixed by setting the 'hidden' sidebar state to a block instead of a table. Sounds easy but it took hours to debug. Hate it when it happens. (index.css)
(Just wanted to commit this ASAP because it really was a PITA. I'm surprised Pete didn't notice anything -- you're using Chrome right?)
8842
The Pub / Re: Front Page Something other than a board listing.
« on May 22nd, 2011, 11:43 PM »
:lol:
8843
The Pub / Re: Front Page Something other than a board listing.
« on May 22nd, 2011, 11:20 PM »
Waddayamean?
8844
The Pub / Re: Front Page Something other than a board listing.
« on May 22nd, 2011, 10:59 PM »
But technically -- you don't need to give it a name if it's going to be in the Wedge core... It's just gonna be called Wedge :P
8845
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 10:43 PM »Yes, even I can see that's much neater. The original post now makes more sense and I can see why it's got an entire thread dedicated to it.
What about the additional menu items (buttons) that I have on my SMF installation - this is just a code hack. Would I be able to make my own hook function?
This would be cool as at present I must re-edit the code with each upgrade. Perhaps:Code: [Select] add_hook('menu_items', 'farjo_add_menu_items', 'farjo_code_changes');
i.e. if you load a hook that's in a file that also contains a hook function called right before that hook in the code path, then you don't need to bother loading the file.
where menu_items would be substituted for the correct name of the hook that controls the buttons,
And if so will there be a idiot-readable list of hooks so that someone like me would be able to make this type of minor changes to their set-up?
Considering that if your mod only uses hooks, it doesn't need any reinstalling when you upgrade your forum, it'll definitely be worth upgrading said forum just to add support for these hooks.
I know that this change is aimed at proper modders, but it would also encourage others with my limited coding skill to make changes (changing the actual source code is something I wouldn't have the confidence to do, but making a separate file.... well what's the harm?).
8846
The Pub / Re: Front Page Something other than a board listing.
« on May 22nd, 2011, 10:33 PM »-sigh-
A front page would not be the same as a portal. It would be a front page, and customisable but still JUST a front page...
Anything else is not related to a portal per se, but is considered "portal business" because other portal software did it. (Pages, etc.)
I'm not very excited with the idea of considering pages to be part of a portal process, really.
8847
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 07:17 PM »
Here's what Miss All Sunday's code would look like in Wedge:
Code: [Select]
A bit simpler, eh ;)
add_hook('bbc_codes', 'spoiler_bbc_add_code', 'Subs-SimpleSpoiler');
add_hook('bbc_buttons', 'spoiler_bbc_add_button', 'Subs-SimpleSpoiler');A bit simpler, eh ;)
8848
Off-topic / Re: Doctor Who
« on May 22nd, 2011, 06:20 PM »
I try not to think too much about how different the doctors are... To me, they're the same, with just a few quirks depending on the actor. Tennant was definitely the less crazy one -- but he made up for it by being hugely likable. Things like that...
8849
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 05:30 PM »
I suppose what he's looking for is some sample code as in a "real life" situation of a mod attempting to take over an area of the program ;)
8850
FAQs / [FAQ] Re: Why are there so many features? / Isn't that bloated?
« on May 22nd, 2011, 05:28 PM »
It'll be interesting to see whether mod authors who waited for 2.0 Final will instead wait for Wedge 1.0 :P