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.
5626
Off-topic / Re: How to center a div in the middle of the screen
« on April 3rd, 2012, 02:57 PM »
Does this work for you?
http://pmob.co.uk/pob/hoz-vert-center2.htm
Uses the exact same technique (display:table)...
Hey. Was looking at your code, and... Where's the table-cell definition on #page? Where's the vertical-align?
http://pmob.co.uk/pob/hoz-vert-center2.htm
Uses the exact same technique (display:table)...
Posted: April 3rd, 2012, 02:55 PM
Hey. Was looking at your code, and... Where's the table-cell definition on #page? Where's the vertical-align?
5627
Features / Re: New revs
« on April 3rd, 2012, 02:53 PM »
rev 1535
(2 files, 1kb)
! Fixed new thoughts being created instead of old thoughts being edited when a moderator wanted to edit someone else's thoughts. (Ajax.php)
! Fixed current board not being shown disabled in Move Topic list (in fact, it wasn't shown at all). Note to SMF devs: there's a bug either way. The source file generates a list of boards without the current one, and the template file shows boards, including the current one in disabled state. I'd recommend doing it like I did -- it's best to have the current board in the list, in case the user wants to move the topic to a sub-board. (MoveTopic.php)
(2 files, 1kb)
! Fixed new thoughts being created instead of old thoughts being edited when a moderator wanted to edit someone else's thoughts. (Ajax.php)
! Fixed current board not being shown disabled in Move Topic list (in fact, it wasn't shown at all). Note to SMF devs: there's a bug either way. The source file generates a list of boards without the current one, and the template file shows boards, including the current one in disabled state. I'd recommend doing it like I did -- it's best to have the current board in the list, in case the user wants to move the topic to a sub-board. (MoveTopic.php)
5628
Off-topic / Re: Need something for your kids to do over Easter ?
« on April 3rd, 2012, 02:31 PM »
In...teresting............ :hmm:
5629
Off-topic / Re: How to center a div in the middle of the screen
« on April 3rd, 2012, 02:29 PM »
<sigh>...
Really dunno what to say. Works for me in 11.62... :-/
Okay, is your site height fixed, and is it going to remain fixed (in pixels)?
If yes, it's best to implement centering via a negative margin.
Really dunno what to say. Works for me in 11.62... :-/
Okay, is your site height fixed, and is it going to remain fixed (in pixels)?
If yes, it's best to implement centering via a negative margin.
5630
Plugins / Re: Which next? [Poll]
« on April 3rd, 2012, 02:27 PM »
Hey Pete, if you're bored and don't want to work on current Wedge fixes and stuff, mind if I share part of my to-do list with you? Maybe you'll find something nice to work on :)
(click to show/hide)
update new topic stats when splitting and merging a topic?
pm preview fails when replying to self
have a post unapproved. it links to the moderation center, which does NOT list unapproved posts anywhere...!
clicking the approve button doesn't work either.
merge posts: merge Likes as well!
add a nofollow bbcode!
Add a "IN THIS TOPIC" select box to the top search box... (see Noisen.com)
remove smiley -> JS popup has \n\n (VERY oddly, not all calls to JSE() generate a double-encoded \n, quick moderation items are fine... what's done differently?)
add smartphone/tablet icons next to user names in Who's Online and Info Center...?
write some UI for default_index (either an existing Source file, or a cat/board number)
add a 'force current GIF avatar transparency' setting for users?
unlink [topic prefixes], like on noisen.com (see noisen patch)
use reqWin for popups in media area, instead of zoomedia (which is not as practical here)
only accept A-Z keystrokes in select box if dropdown is open..?
add an actual action=thoughts page, with advanced filtering/sorting (i.e. either linear of threaded), and link that in the homepage.
img.resize JS (from theme.js) should only be printed (in the HTML) when a resized image is used...?
5631
Off-topic / Re: How to center a div in the middle of the screen
« on April 3rd, 2012, 02:15 PM »
Well... It's vertically aligned for me?! (In Opera.)
5632
Features / timeformat annoys me...
« on April 3rd, 2012, 01:56 PM »
Here are a few things I'm looking into...
- Looks like passing an %e to strftime() will return " 1" in case you're on the first of a month, instead of "1". I have no idea why PHP is adding the leading space. It's okay in most cases, but in French the number comes first, so if you show the date (like this), you will get ( 1 avril) instead of (1 avril). (Well, actually it should say "(1er avril)" to be proper French, and that's actually in the Noisen codebase, but I never got around to find a *QUICK* way to do it that would also be usable by other languages, rather than just French....)
- Speaking of timeformat(), it's called every time a date is calculated on the page. Meaning it's called a lot on most pages...
I was thinking, wouldn't there be a way to simply cache *for the duration of the page load* (e.g. a static variable) as much data as we can...? Because redoing the calculations is a bit silly if you ask me. Heck, we could even store the last calculated date, determine whether it has the same characteristics, and refuse its time format...
- Generally speaking, timeformat() is a real mess to begin with. It has so much code... I'm pretty sure there are simpler ways to implement this.
- Pete, what about your changes to the admin area...? I've been postponing the moving of admin files to their own folders because you told me you had something on the backburner... (Not that it's urgent or anything, though.)
- Looks like passing an %e to strftime() will return " 1" in case you're on the first of a month, instead of "1". I have no idea why PHP is adding the leading space. It's okay in most cases, but in French the number comes first, so if you show the date (like this), you will get ( 1 avril) instead of (1 avril). (Well, actually it should say "(1er avril)" to be proper French, and that's actually in the Noisen codebase, but I never got around to find a *QUICK* way to do it that would also be usable by other languages, rather than just French....)
- Speaking of timeformat(), it's called every time a date is calculated on the page. Meaning it's called a lot on most pages...
I was thinking, wouldn't there be a way to simply cache *for the duration of the page load* (e.g. a static variable) as much data as we can...? Because redoing the calculations is a bit silly if you ask me. Heck, we could even store the last calculated date, determine whether it has the same characteristics, and refuse its time format...
- Generally speaking, timeformat() is a real mess to begin with. It has so much code... I'm pretty sure there are simpler ways to implement this.
- Pete, what about your changes to the admin area...? I've been postponing the moving of admin files to their own folders because you told me you had something on the backburner... (Not that it's urgent or anything, though.)
5633
Features / Re: New revs
« on April 3rd, 2012, 01:07 PM »
rev 1534
(3 files -2, 2kb)
* Replaced grad40.png with a proper CSS gradient, as it's easy to make it compatible with IE. (grad40.png, grad40i.png, Wine/index.css)
! Fixed a small issue with plainbox classes. (index.css)
! Fixed hardcoded RSS URL. (Home.template.php)
(3 files -2, 2kb)
* Replaced grad40.png with a proper CSS gradient, as it's easy to make it compatible with IE. (grad40.png, grad40i.png, Wine/index.css)
! Fixed a small issue with plainbox classes. (index.css)
! Fixed hardcoded RSS URL. (Home.template.php)
5634
Off-topic / Re: How to center a div in the middle of the screen
« on April 3rd, 2012, 09:55 AM »
Seriously, I think it's the missing height: 100% that changed the deal...
(If it's not working, trying putting it on the 'html' tag instead, or in addition to 'body', but it shouldn't fail.)
Hmm, got it to align by setting a height: 1000px on the body and a width: 100% on it as well (and text-align: center)...
Problem is, I couldn't get to make it work by setting height: 100%, it needed a pixel value... Which is bad for compatibility.
Crap, I can't get it to work.
Okay, then let's just go back to the old faux column style... A negative margin.
I don't remember the exact technique so I'll just google it :P
Scratch that, it works perfectly. It's just that you REALLY need to add a wrapper div...
body, html, #wrapper { width: 100%; height: 100% }
#wrapper { display: table }
#main { display: table-cell; vertical-align: middle }
That's all you need really. The rest is about fixing the margins on your #main element. CSS just won't let me apply a display rule to the body, which is why it failed in the first place. Tested on your site, works fine...
(If it's not working, trying putting it on the 'html' tag instead, or in addition to 'body', but it shouldn't fail.)
Posted: April 3rd, 2012, 09:38 AM
Hmm, got it to align by setting a height: 1000px on the body and a width: 100% on it as well (and text-align: center)...
Problem is, I couldn't get to make it work by setting height: 100%, it needed a pixel value... Which is bad for compatibility.
Posted: April 3rd, 2012, 09:42 AM
Crap, I can't get it to work.
Okay, then let's just go back to the old faux column style... A negative margin.
I don't remember the exact technique so I'll just google it :P
Posted: April 3rd, 2012, 09:45 AM
Scratch that, it works perfectly. It's just that you REALLY need to add a wrapper div...
body, html, #wrapper { width: 100%; height: 100% }
#wrapper { display: table }
#main { display: table-cell; vertical-align: middle }
That's all you need really. The rest is about fixing the margins on your #main element. CSS just won't let me apply a display rule to the body, which is why it failed in the first place. Tested on your site, works fine...
5635
Off-topic / Re: #1 on google without doing SEO
« on April 3rd, 2012, 07:24 AM »
You didn't ruin anything.
5636
The Pub / Re : Bloc Madness
« on April 2nd, 2012, 10:25 PM »
Everything Pete said.
Oh, and yes, this topic has been an absolute joy for me to play with. I actually miss the process of choosing a logo but I know the current one is a perfect fit. I'll probably fin something else to ask the community's opinion on. One day ;)
Oh, and yes, this topic has been an absolute joy for me to play with. I actually miss the process of choosing a logo but I know the current one is a perfect fit. I'll probably fin something else to ask the community's opinion on. One day ;)
5637
Off-topic / Re: How to center a div in the middle of the screen
« on April 2nd, 2012, 09:22 PM »
Try it this way...
Code: [Select]
If it doesn't work, try adding a div in between those two. Set the same elements, but use table-row instead.
body {
display: table;
vertical-align: middle;
height: 100%;
}
#page {
display: table-cell;
vertical-align: middle;
height: 100%;
}If it doesn't work, try adding a div in between those two. Set the same elements, but use table-row instead.
5638
Features / Re: New revs
« on April 2nd, 2012, 09:18 PM »
rev 1533
(4 files, 3kb)
* There's probably a more efficient way to do it, but I rewrote the CSS variable parser to allow for the use of other variables in $alphamix, rather than a hardcoded color. It's also faster than the previous implementation, as it now does a single str_replace on the entire file, instead of at least two. (Class-CSS.php, index.css, Warm/index.css)
! The "View Results" button was still showing even if in viewresults mode (i.e. haven't voted yet, but clicked that button.) (Display.php)
(4 files, 3kb)
* There's probably a more efficient way to do it, but I rewrote the CSS variable parser to allow for the use of other variables in $alphamix, rather than a hardcoded color. It's also faster than the previous implementation, as it now does a single str_replace on the entire file, instead of at least two. (Class-CSS.php, index.css, Warm/index.css)
! The "View Results" button was still showing even if in viewresults mode (i.e. haven't voted yet, but clicked that button.) (Display.php)
5639
Archived fixes / Re: View poll results gives extra option
« on April 2nd, 2012, 05:33 PM »
Thanks! That was an easy fix... :lol:
Just needed to move a !$context['poll']['show_results'] to the beginning of the statement.
Just needed to move a !$context['poll']['show_results'] to the beginning of the statement.
5640
Plugins / Re: Which next? [Poll]
« on April 2nd, 2012, 05:27 PM »
Basically -- if we know you, guys, we won't make you pay :P
(Just like I offered AeMe2 to friends who asked for it.)
(Just like I offered AeMe2 to friends who asked for it.)