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
1186
Features / Re: Quick popup actions
« on March 23rd, 2013, 11:31 PM »
Quote
It's much easier to do than you're suggesting. Heck, we can even do it without any template changes! We just need to ensure the popup contents is restrained to a single <div id>. (Or <whatever id>.)
As a reminder for those who didn't realize: the search box's popup is called through Ajax.
I like doing things modally like this - but the handling around the model popup constrains what can be done.
Quote
Dunno about logins though... Will browsers correctly remember the passwords once entered? I think so, but it warrants caution.
If the form's pulled in AJAXively, it is essentially no different to users using the quick login form in the sidebar.
Quote
Also, I think that notifications should be ajaxified, too. I'm hoping to be able to work on them tomorrow, or at worst, monday. Doing my best to save data... Hmm, probably should call the ajax link when hovering the notifications icon/text, rather than on click -- this will save like half a second, and might increase the chances of you seeing the popup upon click.
XenForo does it on hover, adding a loading icon to the element itself on hover to indicate that it's reloading. Not sure how it handles touch.
1187
Off-topic / Re: Lint checker
« on March 23rd, 2013, 11:20 PM »
It was posted at 4.21am ;) If you're seeing any other time, your timezone settings may be wrong.
1188
Off-topic / Re: Lint checker
« on March 23rd, 2013, 02:33 PM »
Yes, because you never make typos at 4am :P
1189
Features / Re: New revs
« on March 23rd, 2013, 05:22 AM »
(36 files, 17KB)

Revision: 2017
Author: arantor
Date: 23 March 2013 04:20:22
Message:
! Syntax error I added back in October 2011, complete with commit note of 'not tested'. And guess what, it still isn't tested, but I found a syntax error anyway that needed fixing! Yeah, shows you how often we test the COPPA form. (CoppaForm.php)
! PayPal language should be deferred back to the language files. (Subscriptions-PayPal.php, index language files)
! add_linktree use pretty much everywhere. (everything else)
----
Modified : /trunk/Sources/Admin.php
Modified : /trunk/Sources/Boards.php
Modified : /trunk/Sources/CoppaForm.php
Modified : /trunk/Sources/Credits.php
Modified : /trunk/Sources/Display.php
Modified : /trunk/Sources/Groups.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/Login.php
Modified : /trunk/Sources/Login2.php
Modified : /trunk/Sources/ManageLanguages.php
Modified : /trunk/Sources/Memberlist.php
Modified : /trunk/Sources/ModerationCenter.php
Modified : /trunk/Sources/MoveTopic.php
Modified : /trunk/Sources/Notifications.php
Modified : /trunk/Sources/PersonalMessage.php
Modified : /trunk/Sources/Pin.php
Modified : /trunk/Sources/Poll.php
Modified : /trunk/Sources/Post.php
Modified : /trunk/Sources/Profile.php
Modified : /trunk/Sources/Recent.php
Modified : /trunk/Sources/Register.php
Modified : /trunk/Sources/Search.php
Modified : /trunk/Sources/Search2.php
Modified : /trunk/Sources/Stats.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/Sources/Subscriptions-PayPal.php
Modified : /trunk/Sources/Themes.php
Modified : /trunk/Sources/Unread.php
Modified : /trunk/Sources/UnreadReplies.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Sources/media/Aeva-Foxy.php
Modified : /trunk/Sources/media/Aeva-Gallery.php
Modified : /trunk/Sources/media/Aeva-Gallery2.php
Modified : /trunk/Themes/default/languages/index.english-uk.php
Modified : /trunk/Themes/default/languages/index.english.php
Modified : /trunk/Themes/default/languages/index.french.php
1190
Off-topic / Lint checker
« on March 23rd, 2013, 05:21 AM »
OK, so it's very, very quick and dirty - something like 10 minutes work here to write and test. But it's useful, I through it at the entire SVN repo and it checks the syntax of files. Very handy if I've made a big change and need to syntax check it.

I even found a bug with it just now.

Code: [Select]
<?php

$base_path 
'C:/Dev/public_html/wedge/trunk';
$php 'C:/wamp/bin/php/php5.3.10/php.exe';

$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base_path), RecursiveIteratorIterator::SELF_FIRST);
foreach(
$objects as $name => $object){
if (is_file($name) && substr($name, -4) == '.php')
$filelist[] = $name;
}

$success = array();
$failure = array();

foreach (
$filelist as $file)
{
$result shell_exec($php ' -l ' $file);

$file substr($file30);

if (trim($result) == '')
continue;
elseif (strpos($result'No syntax errors') === 0)
$success[] = $file;
else
echo $file'<br>'$result'<br><br>';

flush();
}

echo 
'<hr>The following files were all successful:<br>'implode('<br>'$success);

You will likely need to change the paths to suit yourself though.
1191
Off-topic / Re: Women in the Workplace/Life
« on March 23rd, 2013, 04:24 AM »
http://www.theregister.co.uk/2013/03/22/donglestorm/

The summary: two guys while sat in a conference shake off-colour jokes, feminist gets the conference staff involved, having also taken a photo and tweeted about it (and later blogged about it)

I'm not going to defend what the guys said - because it was a stupid thing to say, in a semi-public environment, but the woman misses the point *so* badly. Yup, she defends her actions with what amounts to "I didn't want to tell them to stop because I didn't want to be heckled or have my experience denied".

Just evaluate that for a moment. Instead of politely asking the guys to stop, she has to go and photograph and publicly name and shame them, and that prompts the conference organisers to eject them.

Now, I will repeat what I said: I'm not going to defend what the guys did, because it was inappropriate and stupid. But so were her actions. Playing the sex card to get inappropriate behaviour stopped wasn't necessary. (And she's a massive hypocrite too, but reality distortion sets in when that gets tackled)

I'd love to see more women in IT. But this sort of endeavour sets it back far more than it would possibly help >_<
1192
Archived fixes / Re: add_linktree()
« on March 22nd, 2013, 10:22 PM »
I think I'm just going to implement it as discussed and make it consistent (name required, everything else not so much)
1193
Plugins / Re: Plugins I refuse to do
« on March 22nd, 2013, 07:39 PM »
If you look around, it's all documented...
1194
Development blog / Re: It only took two guys two years...
« on March 22nd, 2013, 05:41 PM »
If you can't find it - it's a public topic - then you have absolutely no business doing testing. We do expect users to show a certain amount of initiative, experience and energy, and I'm just not seeing that so far.
1195
Development blog / Re: It only took two guys two years...
« on March 22nd, 2013, 05:36 PM »
Quote
When can we expect public release?
When you read the topics around on that very subject, like the one telling you it'll be done when it's done. Still so much to do.
Quote
Testing can be made?
You can request access in the proper thread like everyone else.
Quote
Translated into Hungarian ...
I would not recommend translation at this time. Given how much change is shortly to be introduced, it would be a bad move.
1196
Features / Re: JavaScriptEscape headaches
« on March 22nd, 2013, 05:17 PM »
Anything added by the user in the language editor will be bare HTML, including quotes in language strings. So anything you do has to be invisible to the user. And they will always be straight quote marks, not quot entities, unless the user specifically enters them as such. That's one of the curses of the language editor.

It's more a case of extra evidence for your decision to have no quot entities in language files, really.

As far as having js_ prefixes go, that doesn't solve anything whatsoever because users can still do crazy stuff in the language editor (though, I guess, there I could detect the js_ prefix and force things)

That's the thing about having a given file where certain behaviour is required, if it's got one element that is unique to it (js_ prefix, or separate JS file), I can adapt the language editor to be aware of it and enforce that behaviour. Right now that's not an option - what the user enters in the language editor is what shows up in the page, WITHOUT ANY EDITING.

This does make me wonder whether we need to consider removing all links from language items, though.
1197
Plugins / [Plugin] Re: Notifications system (1.0)
« on March 22nd, 2013, 04:07 PM »
Actually, that might nice to do now that we're not living in 2007 any more :P
1198
Archived fixes / Re: add_linktree()
« on March 22nd, 2013, 02:58 PM »
It probably should be expanded to be used everywhere.
1199
Archived fixes / Re: Manage permissions error
« on March 22nd, 2013, 02:58 PM »
o.O

I see nothing inherently wrong with that query.

In any case, I'm not so worried because today I start my journey on rewriting the permissions page. It may not go anywhere but we'll see what happens!
1200
Features / Re: New revs
« on March 22nd, 2013, 04:41 AM »
(4 files, 4KB)

Revision: 2016
Author: arantor
Date: 22 March 2013 03:40:59
Message:
! Ancient crusty bits in the styling. (ManagePlugins.template.php)

! Display likes in the recent-posts page too. (Recent.php, Recent.template.php)

! On the standard home page, link the board names to their boards for the 'recent posts' bit, it's bugged me for ages. (Home.template.php)

! Notifications should declare a page title where it needs one. (Notifications.php)
----
Modified : /trunk/Sources/Recent.php
Modified : /trunk/Themes/default/Home.template.php
Modified : /trunk/Themes/default/ManagePlugins.template.php
Modified : /trunk/Themes/default/Recent.template.php