Show Posts

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.

Messages - Arantor
7021
This is why I don't use Opera :P
7022
Quote
Pete, what do you think? And anyone else?
I personally prefer stylings but on the flip side, I'm happy to bow to the court of vocal majority if that's preferred term on it. And, fair enough, it IS, really, more common. That said, our 'skins' are more flexible than most, I think.
Quote
Which also reminds me that we still haven't found a perfect compromise on naming packages/extensions/add-ons/plugins
I thought we were going to go with add-ons? :P

You know as well as I do that our users will tend to disagree anyway, and will call them themes and mods, because they're familiar terms.
7023
It's not "super Zen like", because with all the information normally wanted in the pages, it can't really be totally Zen like. The whole basis of Zen like is that you have at least a reasonable amount of control over the content - which on a forum, you don't, not really.

That said, it IS easier to approach than SMF's is, if only for the fact that the curved areas are done purely in CSS rather than some mystic hodgepodge of IE-compliant-using-images-instead stuff. (Though, even that's configurable at the *style* level, not the theme level)
7024
Features / Re: New revs
« on July 11th, 2011, 12:58 PM »
Revision: 850
Author: arantor
Date: 11:58:15, 11 July 2011
Message:
! Move the IM fields into custom field templates. While there are slight changes to formatting, it *should* work out OK; I tested using the newer links and still got the information I should have had... (ManageSettings.php, ManageSettings.english.php, Admin.template.php, facebook.png, steam.png, twitter.png)

@todo: Add a couple more fields (PSN, XBox Live), remove the existing fields.
----
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Themes/default/Admin.template.php
Added : /trunk/Themes/default/images/facebook.png
Added : /trunk/Themes/default/images/steam.png
Added : /trunk/Themes/default/images/twitter.png
Modified : /trunk/Themes/default/languages/ManageSettings.english.php
7025
The Pub / [Archive] Re: Logo Madness
« on July 11th, 2011, 02:06 AM »
Quote
Well, if you're not interested I shall not put work into a Gri Dic.
The problem with Gri is that he insists on using his terminology for things instead of anything else, and if you don't like his ideas, you're doomed to being trolled followed by being ignored, at least that's my take on it.

It might be worth reposting it in a form the rest of us can understand because I remember being intrigued once I got past the first layer of monkeyisms, but that I couldn't really make more sense of it than that. If nothing else, it'll make some sense out of it...
7026
The Pub / [Archive] Re: Logo Madness
« on July 10th, 2011, 11:09 PM »
Nao likes garlic sausage, though!

(as for me, I can't currently recall trying it, but to be fair, I've spent virtually the entire day sat in front of a Wii playing the Lego games. Numbs the brain somewhat.)
7027
Features / Re: New revs
« on July 8th, 2011, 04:29 PM »
Revision: 844
Author: arantor
Date: 15:28:23, 08 July 2011
Message:
! Remove RDF type feeds too. (Feed.php)
----
Modified : /trunk/Sources/Feed.php
7028
The Pub / Re: Wedge on lighttpd or nginx
« on July 8th, 2011, 02:53 PM »
Hmm, well, I've come to the conclusion of assuming the lowest common denominator as far as anyone is concerned these days: if someone is interested in the finer points, they'll probably ask in a way that suggests it - while if someone asks a broad question, they probably don't want details.

Yeah, it's nice that it's extensible without having to be complicated in terms of editing the htaccess file now.
7029
The Pub / Re: Wedge on lighttpd or nginx
« on July 8th, 2011, 02:10 PM »
Quote from CJ Jackson on July 8th, 2011, 01:12 PM
Quote from Arantor on July 8th, 2011, 12:47 PM
The .htaccess file is the part that handles the fancy URL and passes it to PHP.
Actually it's the Apache module called "mod_rewrite" that does that, all .htaccess does is store the configurations for Apache and it modules (including "mod_rewrite") per directory.  :eheh:

Same applies with IIS, URL Rewrite and web.config.
Yes, I know that. I was keeping the answer as straightforward as possible.
Quote
I'd say yes, actually... You'll still need to edit .htaccess or httpd.conf once
Then the answer IS no. The question asked was whether it could be done without .htaccess, which other than the index.php/url structure, pretty URLs cannot be done *just* in PHP, it relies on the web server routing properly.
7030
The Pub / Re: Wedge on lighttpd or nginx
« on July 8th, 2011, 12:47 PM »
No.

The .htaccess file is the part that handles the fancy URL and passes it to PHP.

You can, on some configurations, get around it by constructing URLs in the form of index.php/rest-of-link/whatever but it's ugly and unreliable.
7031
Off-topic / Re: Either I'm going mad or I found a PHP bug
« on July 8th, 2011, 01:13 AM »
In my case it was even more stupid. Since this was extending SimpleDesk's admin area, it was going through the existing handler - which already calls prepareDBSettingsContext. Because my new function wasn't returning $config_vars back up the chain like it was supposed to, the second time we hit the function, it was null.

It was the var_dump that threw me, I thought I was seeing NULL added to the end, not a *second* call to the function.
7032
Off-topic / Either I'm going mad or I found a PHP bug
« on July 8th, 2011, 12:58 AM »
I don't want to get into the details, suffice to say I had need to write a SimpleDesk plugin today, and one of the things it does is add a new area to the admin panel, through $config_vars being passed to prepareDBSettingsContext. Nothing wrong there.

Then, after I finish setting up the array and passing it through to that function, I get a Warning: Invalid argument supplied for foreach() in C:\Dev\public_html\intranet\smf_2-0_install\Sources\ManageServer.php on line 1824.

This is a bit strange, but sure enough, line 1824:
Code: [Select]
foreach ($config_vars as $config_var)

Now, there's nothing happening between the start of prepareDBSettingsContext and that line that touches $config_var. And if I do a var_dump, I find there's a random NULL at the end of the var-dump that appears to be breaking it. Now, I'm confused because I have no idea where that NULL is coming from.

Here's the kicker: if I var_dump BEFORE the call, I get a normal var_dump and the array is normally traversable, so something about the call itself causes it to go nuts. It's not even the fact it's a reference, I reverted it to a normal variable by value and the same thing happens.

It's not like there's anything else going on - this variable is passed directly to the destination function and nothing hokey is going on in the middle.

So I'm really, really confused, and wondering if it's a bug. Maybe I should try upgrading (currently on 5.2.13 on local PC)
Posted: July 8th, 2011, 12:46 AM

In other news, I am actually going mad, ignore me. Stupid bug, having spent an hour of frustrated debugging, because I forgot something quite important...
7033
Features / Re: New revs
« on July 7th, 2011, 01:21 AM »
Revision: 841
Author: arantor
Date: 00:21:11, 07 July 2011
Message:
! Remove the option for 'enabling mark as read'. Not only does it really not need to be optional, it really really didn't need to be a theme option. (install.sql, upgrade.php, Display.php, MessageIndex.php, BoardIndex.template.php, Recent.template.php, Settings.template.php, Themes.english.php, Themes.french.php)
----
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/MessageIndex.php
Modified : /trunk/Themes/default/BoardIndex.template.php
Modified : /trunk/Themes/default/Recent.template.php
Modified : /trunk/Themes/default/Settings.template.php
Modified : /trunk/Themes/default/languages/Themes.english.php
Modified : /trunk/Themes/default/languages/Themes.french.php
Modified : /trunk/other/install.sql
Modified : /trunk/other/upgrade.php
7034
Off-topic / Re: PC hotline
« on July 6th, 2011, 10:17 PM »
Quote
Again... It's very ironic.
Not so much ironic, more using things the way they were designed to work. If it's running on startup and needs more-than-normal permissions, it should be hooked into the system designed for that express purpose.
7035
Features / Re: New revs
« on July 6th, 2011, 02:57 PM »
Another relatively minor set of changes, but I'd rather keep changes like this encapsulated in case we revert them later.

Revision: 839
Author: arantor
Date: 13:57:37, 06 July 2011
Message:
! If the mail queue is disabled, don't provide the mail queue page. (ManageMail.php, Admin.php)
! Minor tweaks to the server settings page - widen the from-email box, and give a ? description to the webmaster email option. (ManageServer.php, Help.english.php)
! "Allow users to turn off word censoring" shouldn't be a theme setting, it makes no sense for it to be, so I relocated it to the Censored Words area. (Admin.english.php, Admin.french.php, Themes.english.php, Themes.french.php, Profile.template.php, Settings.template.php, Admin.template.php, Subs-BBC.php, ManagePosts.php, install.sql)
----
Modified : /trunk/Sources/Admin.php
Modified : /trunk/Sources/ManageMail.php
Modified : /trunk/Sources/ManagePosts.php
Modified : /trunk/Sources/ManageServer.php
Modified : /trunk/Sources/Subs-BBC.php
Modified : /trunk/Themes/default/Admin.template.php
Modified : /trunk/Themes/default/Profile.template.php
Modified : /trunk/Themes/default/Settings.template.php
Modified : /trunk/Themes/default/languages/Admin.english.php
Modified : /trunk/Themes/default/languages/Admin.french.php
Modified : /trunk/Themes/default/languages/Help.english.php
Modified : /trunk/Themes/default/languages/Themes.english.php
Modified : /trunk/Themes/default/languages/Themes.french.php
Modified : /trunk/other/install.sql