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
2791
Plugins / Re: Something I started working on
« on September 18th, 2012, 05:04 PM »
I have been thinking about that, actually, though if I did it, I'd go into having a full colour selector. The HTML5 color input is only supported in some browsers, meaning I'd need to do something else instead.

I haven't found one in jQuery that I like the look of though, and don't know exactly how I'd like it to look either...
2792
The Pub / Re: Print Page
« on September 18th, 2012, 04:39 PM »
Quote
Hmm... Why more than a few minutes? I'm sure a good old case of copy & paste would help a lot...
Copy and paste and shed-loads of editing. Display's callback is way more complicated than it needs to be, and print-page's set up is just not designed that way.
Quote
That question is for PHP only, innit...? I don't remember.
That's the beauty of it, either you do it at the PHP level or you do it at the Apache level, and if you do it at PHP level, it will break it at Apache level, hence the test.
Quote
I suggest that we realistically postpone these discussions to v2.0, if ever...
I can do this one in an afternoon ;)
2793
Bug reports / Permissions UI does not honour illegal permissions properly
« on September 18th, 2012, 04:22 AM »
There is, in the depths of the permissions code a function to set which permissions should not ever be shown to guests.

But it does not honour own/any properly - so even when an _any permission is listed to be denied to guests, it still shows up in the admin panel, for example view_ip_address_any is in the deny-to-guests list but still shows in the guests permissions area.

I cannot confirm whether this is an SMF bug or not, all the cases in SMF itself only ever extend _own permissions to be denied to guests (because they can't have an _own)

But it needs fixing.

(Also, permissions + hooking are sort of borked, I really need to extend it in the plugin-info.xml file to fix other issues related to it but that's something else entirely.)
2794
The Pub / Re: Language editing inside Wedge
« on September 18th, 2012, 04:09 AM »
That's the thing: the software itself - assuming I did this - wouldn't ever touch the original files. Meaning that their changes are always a delta to the original - but if they edit the master file itself, that's entirely their look out.

* Arantor is confused by the question, seems to be asking something a bit irrelevant to the issues at hand...
2795
The Pub / Re: Language editing inside Wedge
« on September 18th, 2012, 03:48 AM »
See, there's a problem right there - there is absolutely no need to store all the standard stuff in the DB - people do not modify everything.

I was gobsmacked when I looked through the installer for XenForo and noted hundreds of KBs of stuff dumped into the DB, IMO unnecessarily. I understand why, but that doesn't mean I have to like it.

Doing it this way does give the compromise of ease of access, the security upside and whatnot.

* Arantor wonders what others (Nao in particular) thinks about it.
2796
Plugins / Re: Something I started working on
« on September 18th, 2012, 03:38 AM »
Having now rewritten the behemoth that was quick moderation, I figured I'd dive into the rest of this plugin.

Also, note that there is no actual configuration code required for that configuration page. All that is is a small block in the plugin-info.xml file.

Code: [Select]
<settings-page area="topicsolved" icon="$pluginurl/img/tick.png" bigicon="$pluginurl/img/tick-big.png">
<language file="lang/TopicSolved-Admin" />
<text name="topicsolved_bg1" />
<text name="topicsolved_bg2" />
<text name="topicsolved_fg" />
<boards name="topicsolved_boards" />
</settings-page>

Yes, really. Wedge plugins will be super easy to get going.
2797
The Pub / Re: Language editing inside Wedge
« on September 18th, 2012, 03:27 AM »
Well, I know other systems dump everything into the DB, but I'd rather avoid that if possible.
2798
Features / Re: New revs
« on September 18th, 2012, 01:45 AM »
(4 files, 2KB)

Revision: 1693
Author: arantor
Date: 18 September 2012 00:44:48
Message:
! New hook for extending the moderation log. (ManagePlugins.php, Modlog.php)

! Prettying up the merge topics screen by having boards actually indicate their depth. (Merge.php, Merge.template.php)
----
Modified : /trunk/Sources/ManagePlugins.php
Modified : /trunk/Sources/Merge.php
Modified : /trunk/Sources/Modlog.php
Modified : /trunk/Themes/default/Merge.template.php
2799
The Pub / Language editing inside Wedge
« on September 18th, 2012, 12:32 AM »
You all know my feelings on editing files, and currently the language editor does just that - even for plugins (eek), and right now it's broken. So it needs an overhaul.

So here's what I was thinking. How about, we store the changed strings in the database and load them when necessary? That sounds awful, but let me temper it with this which only occurred to me today.

We know what files contain what strings, and we know what file is being edited at any one time. So if we keep a record of what strings have been modified in the DB versus the original files, we can add a check to loadLanguage to say 'look, we've asked for <language file x>, has there been any changes to that file?' then load any changes to it after the fact, as it were.

All we then need is a DB table containing language, file, optional plugin ID, and the new string and we're golden. Plus if a given file hasn't been updated, no harm, no foul (and no extra query)

This way we get to allow language strings to be edited (cleanly), without any file edits (which is also a security improvement). I'd also move the registration agreement into the language files too and have them all supported in one clean place.

Thoughts?
2800
Archived fixes / Re: Theme selector broken + more...
« on September 17th, 2012, 07:56 PM »
Just because it worked for guests is no reflection of the fact that I didn't test it for them :P
2801
Archived fixes / Re: SMF (not Wedge) bugs
« on September 17th, 2012, 07:55 PM »
I changed the line referenced in the original topic, i.e. the reported bug.

Also, I thought it should be moved seeing how the only bug mentioned was fixed...
2802
Archived fixes / Re: Theme selector broken + more...
« on September 17th, 2012, 06:56 PM »
I don't think I even tested it for guests... I can't remember anything about how it works really.
2803
Archived fixes / Re: SMF (not Wedge) bugs
« on September 17th, 2012, 06:55 PM »
The other changes were necessary for quick moderation...
2804
The Pub / Re: Getting ready for an alpha release: CSS fixes
« on September 17th, 2012, 06:31 PM »
IIRC XenForo also mandates a minimum of 5.2.4, so if others can do it, I don't see why we can't.
2805
The Pub / Re: Logo Madness
« on September 17th, 2012, 06:30 PM »
It's not about not liking Batman,[1] it's just that what has been seen, cannot be unseen. ;)

I like them all.
 1. BECAUSE I'M BATMAN.