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.
2986
Plugins / [Plugin] Re: Notifications system (1.0)
« on May 16th, 2013, 10:45 AM »@spoogs: Well, thank you! It's far from finished though, I have a lot of WIP stuff that still needs to be merged into SVN. Hopefully I'll get more free time by end of May.
Still, there's at least one of your WIPs that we need to determine whether it makes it into the main code: properly saving the avatar and member ID... Currently, Wedge uses a modified version of the original code, that dates the member data and loads it 'manually', but it would definitely benefit from taking the member ID from a dedicated field in the notifications table, which your WIP had, and Wedge doesn't (for now). I've always wondered whether I should take your patch and try to put it into the Wedge codebase, or if I should wait for you to take the Wedge codebase (which hopefully on your side has the very code we're looking for), and trim the elements that are no longer necessary once your code is taken into account...
What do you think..?
Since we're planning to release a public alpha this spring (yeah, one can always hope :P), it would be nice to have the notification code 100% complete before we do that, so that people can start writing notif plugins if they want ;)
I just had an idea though, I got a Facebook plugin that works, I can make it so that it pushes any notification on Wedge to your Facebook's notification stream. Moar notifications!
Just like I still have that 100-year old to-do entry, "allow reposting thoughts to my Facebook/Twitter feed"... :lol:
2987
Features / Re: New revs
« on May 15th, 2013, 05:42 PM »
rev 2116 -- just a couple of fixes; I'm working on improving Wireless for actual mobile devices, but it's not ready yet...
(2 files, 2kb)
! A site-breaking typo. Oops. Twice. And I didn't even use copy and paste... (Thoughts.php)
! I'm not exactly great at optimizing SQL queries so I'll leave that one up to Pete, but I fixed the stats query that retrieved 'most liked authors' (and I'm still a distant second, so I'm *definitely* leaving it up to him eheh). To be specific, on wedge.org there was a third 'empty' entry with 178 likes; it was actually the total number of thought likes. I decided to allow for the query to also take thought likes into account, dunno if it will kill performance, but what matters for now is that it works... I don't even know if we'll keep that stat entry around forever. (Stats.php)
(2 files, 2kb)
! A site-breaking typo. Oops. Twice. And I didn't even use copy and paste... (Thoughts.php)
! I'm not exactly great at optimizing SQL queries so I'll leave that one up to Pete, but I fixed the stats query that retrieved 'most liked authors' (and I'm still a distant second, so I'm *definitely* leaving it up to him eheh). To be specific, on wedge.org there was a third 'empty' entry with 178 likes; it was actually the total number of thought likes. I decided to allow for the query to also take thought likes into account, dunno if it will kill performance, but what matters for now is that it works... I don't even know if we'll keep that stat entry around forever. (Stats.php)
2988
Features / Re: New revs
« on May 14th, 2013, 07:04 PM »
rev 2115
(41 files, 15kb)
* Updated parse_bbc() params to look like this: message, then type, then options array. Among the options, 'parse_type' is thus removed, 'parse_tags' becomes 'tags', and 'owner' becomes 'user'. Both type and options are optional, the first will fall back to 'generic' (should it be 'post'..?), the second to the default options. (41 files)
! The Welcome parse_bbc calls had their user param set to 'id_member', rather than $row['id_member']. (Welcome.php)
* The Display parse_bbc, out of all parse_bbc calls, is one that 'missed' setting a 'post' type. Lulz. (Display.php)
! SSI had another missing type, as well as an incorrect option array (it just had a string, without a key.) (SSI.php)
! unparsed_equals handler didn't use the rewritten parse_bbc format. Hopefully I didn't mess it up. Wondering if it's worth transmitting the 'parent' parse type to children, but my guts say it is... (Subs-BBC.php)
(41 files, 15kb)
* Updated parse_bbc() params to look like this: message, then type, then options array. Among the options, 'parse_type' is thus removed, 'parse_tags' becomes 'tags', and 'owner' becomes 'user'. Both type and options are optional, the first will fall back to 'generic' (should it be 'post'..?), the second to the default options. (41 files)
! The Welcome parse_bbc calls had their user param set to 'id_member', rather than $row['id_member']. (Welcome.php)
* The Display parse_bbc, out of all parse_bbc calls, is one that 'missed' setting a 'post' type. Lulz. (Display.php)
! SSI had another missing type, as well as an incorrect option array (it just had a string, without a key.) (SSI.php)
! unparsed_equals handler didn't use the rewritten parse_bbc format. Hopefully I didn't mess it up. Wondering if it's worth transmitting the 'parent' parse type to children, but my guts say it is... (Subs-BBC.php)
2989
The Pub / Re: Print Page
« on May 14th, 2013, 03:09 PM »That's another change I made and forgot about then because when I first wrote it, it definitely was 'unknown'.
Listen, I still haven't committed my update, so if you want me to specify 'post' as the type, feel free to ask. It's much, much easier to remove these 'post' entries later, than re-adding them, since we can just do a regex search on parse_bbc.*'post', basically...
Wanchope is right: even if it is marked nofollow, Google will still view it, it just doesn't consider it for link juice following purposes, which isn't the same as noindexing.
2990
Off-topic / Re: Doctor Who
« on May 13th, 2013, 06:52 PM »
Still, as far as "half-season epic fail" go, Doctor Who has nothing against the last few episodes of Once Upon a Time... :^^;: Now that was some failure. They pretty much jumped the shark with the Pinocchio episode... Hopefully the writers were drunk, or something.
2991
The Pub / Re: Print Page
« on May 13th, 2013, 06:49 PM »If you want to move it, that's cool, I just didn't think of that. The alternative, of course, is to make post the default rather than 'unknown' and strip the parameter from any 'post' call since posts are the predominant use.
2992
The Pub / Re: Print Page
« on May 13th, 2013, 06:47 PM »
Well, my gut says that most parse_bbc calls from plugins will relate to a post, so it's best to make their life easier. I'm not documenting the tweak in the function header, only in the place where I'm doing the permutation, so if they don't know about it, it's not a problem. ;)
Done with the conversions, 40 files total. All 'parse_type' are now a parameter, all 'owner' are 'user', and all 'parse_tags' (only a couple..) are 'tags'.
Will commit later tonight; I'll be offline for the evening, unfortunately, and already late... :-/
Plus, I don't want to rush, I'll check them manually again.
Done with the conversions, 40 files total. All 'parse_type' are now a parameter, all 'owner' are 'user', and all 'parse_tags' (only a couple..) are 'tags'.
Will commit later tonight; I'll be offline for the evening, unfortunately, and already late... :-/
Plus, I don't want to rush, I'll check them manually again.
2993
The Pub / Re: Print Page
« on May 13th, 2013, 06:16 PM »
Should I have both of these work..?
parse_bbc($message, $type, $array)
parse_bbc($message, $array)
with an is_array() test, it's easy enough. But it might be seen as disruptive. I'm so used to the jQuery style, I don't mind. But do you..?
Quote from Wanchope on May 13th, 2013, 05:13 PM Wedge (and possibly SMF) has two safeguards against Google...
- rel="nofollow" in the print links, meaning Google shouldn't care about that link,
- and a canonical URL set in the print page, that tells Google it should index the non-print page instead.
What more do you want.. ;)
parse_bbc($message, $type, $array)
parse_bbc($message, $array)
with an is_array() test, it's easy enough. But it might be seen as disruptive. I'm so used to the jQuery style, I don't mind. But do you..?
Posted: May 13th, 2013, 06:15 PM
This is not to speak for others but Print Page code is the first thing I removed from display.php in SMF, it is not doing anything other than creating another link for the thread which is against Google SEO procedure - creating multiple links for a single post.
- rel="nofollow" in the print links, meaning Google shouldn't care about that link,
- and a canonical URL set in the print page, that tells Google it should index the non-print page instead.
What more do you want.. ;)
2994
Bug reports / Re: Infraction bugs
« on May 13th, 2013, 01:20 PM »
Ah, yes, that was one of the words used by Pete in the language files, if I'm not mistaken (along with Infraction, Sanction and Warning -- the latter referring, apparently, to the action of 'sending a sanction notification', but I'm not sure at this point, because some strings seem to see it as a synonym to 'infraction'... I told you, I'm lost!)
I'm fine with Penalty, or anything else really, anything that makes Pete happy ;)
I'm fine with Penalty, or anything else really, anything that makes Pete happy ;)
2995
Features / Re: New revs
« on May 13th, 2013, 12:31 PM »
rev 2113 -- a helpful commit with an unlucky rev name, ahh, shit happens :P
(7 files, 5kb)
! Disabled that annoying font boosting in Chrome for Android, which has been killing most, if not all, forum systems by making short posts tiny and long posts huge (wouldn't the *other way around* make more sense, really...?) I believe Wedge is the first to 'fix' it, but I wouldn't bet on it. The fix is actually documented if you search for long enough. I've adopted the shortest possible fix that worked on my S3, but will keep doing more tests. Need to test on my iPod as well... Haven't turned on that one in a loooong time... (index.css)
! Fixed notifications generating JS errors in oldIE when polling for new results. Also saves 2 bytes from the final file... (script.js)
* Given that personal_text is no longer directly linked to thoughts, I figured it should revert to its original title... Or not? (Profile.english.php, Profile.french.php)
* Translation. (Admin.french.php, ManageInfractions.french.php)
* Spacinazi. (Display.php)
@ I wrote the scramble code from rev 2111... It was a quick idea and only took a few minutes to implement a basic version, but I still want the credit, eheh :P
(7 files, 5kb)
! Disabled that annoying font boosting in Chrome for Android, which has been killing most, if not all, forum systems by making short posts tiny and long posts huge (wouldn't the *other way around* make more sense, really...?) I believe Wedge is the first to 'fix' it, but I wouldn't bet on it. The fix is actually documented if you search for long enough. I've adopted the shortest possible fix that worked on my S3, but will keep doing more tests. Need to test on my iPod as well... Haven't turned on that one in a loooong time... (index.css)
! Fixed notifications generating JS errors in oldIE when polling for new results. Also saves 2 bytes from the final file... (script.js)
* Given that personal_text is no longer directly linked to thoughts, I figured it should revert to its original title... Or not? (Profile.english.php, Profile.french.php)
* Translation. (Admin.french.php, ManageInfractions.french.php)
* Spacinazi. (Display.php)
@ I wrote the scramble code from rev 2111... It was a quick idea and only took a few minutes to implement a basic version, but I still want the credit, eheh :P
2996
Features / Re: New revs - Public comments
« on May 13th, 2013, 12:30 PM »r2094 - JS changes
Well, I just mostly pulled the first stuff out of the templates themselves so they were like that already ;)
As far as functions having ; on the end, wasn't that because Packer needed it?
$fonts = array_filter(array_map('trim', preg_split('~[\s,]+~', $settings['editorSizes'])));Considering it's stored as linebreak-separated variables, why not just do an explode() on these..? Or even get rid of array_filter and array_map, as I don't see many reasons for this variable to be modified by anything else than Wedge..? And we could do the checking at save time in ModifyPostEditorSettings.
Do you see any uses for disemvowel and scramble functions? Maybe just copying their single-line contents into the main codepath would be enough? I'm not worried about disemvowel(), but scramble() might conflict with other functions with the same name. You never know -- adding an encryption library, or something like that...?
I don't know if it's a bug or something I understood incorrectly, but this infraction point system... When I'm giving someone a sanction, I find myself with having to determine a number of points to give... Why should I, when I can just select a list of pre-defined sanctions, such as hiding the signature...? Or maybe it's admin-only and I should look at how it works for mods?
Done with the checks. Overall, great work! :)
2997
Bug reports / Re: Infraction bugs
« on May 13th, 2013, 11:27 AM »Oh, I see... Well, it's the opposite in French, I'd say... (?)Quote from Arantor on May 10th, 2013, 05:10 PM See, in English, sanction is a stronger word than punishment; I changed it to punishment for that reason.
Any suggestions, from anyone, about a replacement word that wouldn't feel as 'threatening' as Pete fears..?
2998
The Pub / Re: Print Page
« on May 13th, 2013, 11:10 AM »
Yes, parse_type is definitely buggy; it should be 'type', as per your parse_bbc code.
Tell you what... I'm seeing that most of the parse_bbc calls (about 90+ out of ~125) include a parse_type, which I think is good.
I'm thinking that, given how we'd both obviously like it to become a second nature when calling parse_bbc, we should have it outside of the array...
parse_bbc($message, $type, array(...)) or parse_bbc($message, null, array(...)) if no type is defined, which would be illogical...
There are about 30 calls with an owner ID in them, so it's about a quarter of all calls, which isn't enough to justify adding a specific parameter for user ID. I would, however, suggest looking into renaming it to 'user' or just 'u' (as in profiles), probably 'user' is better for readability; 'owner' is fine, too, but it's one extra character, and apart from thoughts and profiles, it's not a terminology that's used a lot, at least less than 'member' or 'user'.
Thoughts..? :^^;:
(I'm volunteering to change parse_type to the parameter style if you don't mind, and if you accept the change, of course.)
Tell you what... I'm seeing that most of the parse_bbc calls (about 90+ out of ~125) include a parse_type, which I think is good.
I'm thinking that, given how we'd both obviously like it to become a second nature when calling parse_bbc, we should have it outside of the array...
parse_bbc($message, $type, array(...)) or parse_bbc($message, null, array(...)) if no type is defined, which would be illogical...
There are about 30 calls with an owner ID in them, so it's about a quarter of all calls, which isn't enough to justify adding a specific parameter for user ID. I would, however, suggest looking into renaming it to 'user' or just 'u' (as in profiles), probably 'user' is better for readability; 'owner' is fine, too, but it's one extra character, and apart from thoughts and profiles, it's not a terminology that's used a lot, at least less than 'member' or 'user'.
Thoughts..? :^^;:
(I'm volunteering to change parse_type to the parameter style if you don't mind, and if you accept the change, of course.)
2999
The Pub / Re: Print Page
« on May 13th, 2013, 10:11 AM »
You're doing a good job. :)
- I'm all for parse_bbc($message, $array). I'm pretty sure we discussed this possibility already, sometime around last year, and that we were both interested in doing it. I'm appalled at how many interesting new changes we discussed, and then failed to implement later.
- I'm okay with Print being a plugin; don't remember if I was before, but it just doesn't feel that important, after all... What could be improved, really, is giving the admin to ability to only print the current page's worth of posts, and/or only print the entire topic if it has less than X pages. With maybe a (single) page index inside the print page itself, to allow easy printing of multiple pages.
Anything else you needed to know..?
Oh, I see you've already committed... ;)
Looking at it, I have a few things to say...
- Adding so many types, it was overwhelming at first, but suddenly it hit me that you can disable some tag types on some parse types, or hook a plugin into any type of parsing and just that one... The possibilities seem limitless.
- I have to look more into it, but you're using 'parse_type' everywhere in the source code, when the parse_bbc function itself seems to accept only a 'type' parameter, which is shorter and, frankly, easier to manipulate. Is this one of my patented LastMinuteChanges™ you forgot to propagate everywhere...?
- Similarly, parse_tags could be (should be..?) shortened to just 'tags'.
Will add anything later as needed.
- I'm all for parse_bbc($message, $array). I'm pretty sure we discussed this possibility already, sometime around last year, and that we were both interested in doing it. I'm appalled at how many interesting new changes we discussed, and then failed to implement later.
- I'm okay with Print being a plugin; don't remember if I was before, but it just doesn't feel that important, after all... What could be improved, really, is giving the admin to ability to only print the current page's worth of posts, and/or only print the entire topic if it has less than X pages. With maybe a (single) page index inside the print page itself, to allow easy printing of multiple pages.
Anything else you needed to know..?
Posted: May 13th, 2013, 10:02 AM
Oh, I see you've already committed... ;)
Looking at it, I have a few things to say...
- Adding so many types, it was overwhelming at first, but suddenly it hit me that you can disable some tag types on some parse types, or hook a plugin into any type of parsing and just that one... The possibilities seem limitless.
- I have to look more into it, but you're using 'parse_type' everywhere in the source code, when the parse_bbc function itself seems to accept only a 'type' parameter, which is shorter and, frankly, easier to manipulate. Is this one of my patented LastMinuteChanges™ you forgot to propagate everywhere...?
- Similarly, parse_tags could be (should be..?) shortened to just 'tags'.
Will add anything later as needed.
3000
Features / Re: New revs
« on May 12th, 2013, 07:33 PM »
rev 2110
(3 files, 3kb)
! Fixed JavaScript errors in Thought threads, when at least one of the thoughts in the thread was deleted. Wedge was showing an action menu for these... (Thoughts.template.php)
* Finished translation... Phew! I hope I didn't forget anything. Also fixed a typo in the English version. (ManageInfractions.english.php, ManageInfractions.french.php)
(3 files, 3kb)
! Fixed JavaScript errors in Thought threads, when at least one of the thoughts in the thread was deleted. Wedge was showing an action menu for these... (Thoughts.template.php)
* Finished translation... Phew! I hope I didn't forget anything. Also fixed a typo in the English version. (ManageInfractions.english.php, ManageInfractions.french.php)