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.

Topics - live627
106
Bug reports / Recent posts does not honor topic privacy
« on April 5th, 2012, 03:53 AM »
Title says it all.

Didn't write down current rev this is on; it's from yesterday.
107
Off-topic / Hackers could decapitate the internet soon
« on March 29th, 2012, 02:59 AM »
"To protest SOPA, Wallstreet, our irresponsible leaders and the beloved bankers who are starving the world for their own selfish needs out of sheer sadistic fun, On March 31, anonymous will shut the Internet down."

Read more - http://www.bbc.co.uk/news/technology-17472447
108
Archived fixes / Not sure what to make of this
« on March 28th, 2012, 09:48 AM »
.
109
Plugins / [Plugin Screenshots] To Do List
« on March 27th, 2012, 12:06 PM »
Lately I have been working on a plugin[1] that allows you to create list items of things to do. Think of an electronic grocery list. That's what this is.

Isn't finished, though. I have plenty of ideas for this plugin. Limiting visibility to certain groups is one of hem.

The calendar widget is from jQuery UI's Date picker widget, modified to fit this application.

 1. This makes eleven plugins that I have started!
110
Archived fixes / Missing global in add_plugin_js_file
« on March 27th, 2012, 10:10 AM »
In order for add_plugin_js_file() to honor the site gzip and filename obfuscation settings, it needs to pull $settings into scope.

Rev 1452
111
Other software / [live627's rants] These trees are [not] simple
« on March 10th, 2012, 08:00 AM »
So I needed to get a subset of boards in a category, so I decided to use the data generated by getBoardList(). I've used this function before,, and iterating through $boardList is a snap, so, why not try $boards? It's... a... mess! Much harder to iterate through properly than expected. Not only is the code inside the function confusing, but scanning the output is also confusing!

I suspect that the code dates way back, to 1.0 probably, or even YABBSE.

Seriously, why all thee node subarrays and duplications? It's enough to spend an entire evening just staring and figuring out what the hell it does![1]

And children aren't consistent with graandchildren, either. The former is under 'tree' while the latter isn't. What's the big deal? Either put 'em all under the extra item, or  don't... quite simple, really.
 1. That's where my evening went, in case it wasn't obvious. Add this to an unusually rough day with a headache to boot, yeah, I'm pissed.
112
Plugins / Lazy Load Inages
« on February 11th, 2012, 02:37 AM »
I got this idea from http://www.appelsiini.net/projects/lazyload (actually, I saw jQuery website's avatars  do this). So I decided to make a plugin for Wedge that does just this.

What it does (or will do, as I didn't write it yet) is hook into the buffer, find all img tags with a regex, use data-src for the image link, put a blank grey image as its src, and wrap noscript tags around a copy of the original img tags to not leave noscript users in the cold. Then the jquery changes data-src to src when it is scrolled into view, vertically or horizontally.

And I also  attacked the script to remove unneeded cruft. Now, it is a nice 277 bytes once minified and gzipped. (2KB uncompressed)
113
Plugins / Show Hooks
« on January 11th, 2012, 09:20 AM »
I got this idea from http://custom.simplemachines.org/mods/index.php?mod=3285 (Integration Hooks Report, by Emanuel and Sinan).

This plugin is basically the same principle as the SMF mod linked above, but with some Wedge-y aspects (which, incidentally, are impossible in SMF, or, at least, extremely convoluted). It shows all hooks installed on the platform, categorised by plugin as can be  seen in the attachment. Yet, there will be some stray hooks where webmasters customise their forum,, if they didn't edit the core.

There is a drop down box which allows for filtering by a specific plugin, stray hooks, or none at all.

114
Off-topic / Boycott GoDaddy
« on December 26th, 2011, 08:56 AM »
All,

A new move is sweeping the internet where people are moving their domains off GoDaddy in an attempt to get them to drop support of both the internet censorship bills, PIPA and SOPA. A link may be found here: http://www.simplemachines.org/community/index.php?topic=463353.msg3235578#msg3235578

This is serious and scary. This, unfortunately, isn't the first time the Feds have pulled a stunt like this. ::(
115
Off-topic / Subconscious ties
« on December 21st, 2011, 05:03 AM »
Pete, there seems to be a lingering tieback to SimpleDesk. Having spent hours and days for it, this seems all too natural. It's like a part of you is attached to it, kinda similar to rearing a child. You find it emotionally difficult to say it's time to move on.

And then along comes someone else to continue its development. His reputation is not too great and probably would screw something up. Joining just to attempt to prevent said mishaps wouldn't end very well. Especially when the passion, time, and desire aren't there.

So maybe it's time to just forget about SD. Forever. It's not your problem anymore. If the new staff over there mess up, it's their problem. Can  they come crying to you that they went belly-up? Perhaps. You aren't associated with them, so why give a rat's?

I feel the same way about Dream Portal.
116
Plugins / Plugin CSS added to the main list?
« on October 30th, 2011, 04:32 AM »
So my plugin uses a wecss file to add a style to an element. since it just extends a base class[1], I could have easily applied the class to the element in the markup. But I had to go the long route[2] and use the awesome parser.

Here's part of what tripped me. add_plugin_css_file('file', true); adds a stylesheet to the head. But, as I found out, it would get rid of the style, probably because the base class wasn't found and left the style empty so it got deleted.So it seems inheritance works within the same file, not all of them.

In the end I actually made some hackish code to do what I want.It doesn't seem to be very efficient, though. :/

Code: [Select]
$context['css_main_files'][] = 'file';
$context['skin_folders'][] = array($context['plugins_dir']['plugin_id'] . '/', 'plugin_id_');
$settings['plugin_id_url'] = $context['plugins_dir']['plugin_id'];
 1. base: .foldable, and that's it, really. The file literally only defines that one style. :o
 2. Which ended up taking up half the day, plus my mouse scroll wheel started acting up last night, which makes browsing through code files a PITA.  :^^;:
117
Features / The great divide in the menu
« on October 6th, 2011, 03:08 AM »
Seriously, it's just a variable with two names. What?

Ok, so each menu has its own internal identifier. But the ID is called differently in the source and in the template. The former has max_menu_id, whilst the latter has cur_menu_id.

Any reason for this?
118
Archived fixes / Remove nested quotes is broken
« on September 4th, 2011, 08:55 AM »
The feature to remove nested quoting is broken a la http://www.simplemachines.org/community/index.php?topic=450841.0

I then tested it myself. Ironically, it removed my second first-level quote!

So I spent the evening trying to fix it. I didn't try the proposed tweak, because I felt that it wouldn't do it right. Instead, I sniffed around and ended up with this here'code[1]:

Code: [Select]
// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$pattern = "/\[quote(.*?)\](((?R)|.)*?)\[\/quote\]/is";
preg_match_all($pattern, $form_message, $matches, PREG_SET_ORDER);
foreach ($matches as $match)
{
$block = preg_replace(array('~\[quote(.*?)\](((?R)|.)*?)\[\/quote\]~is', '~^\n~', '~\[/quote\]~'), '', $match[2], -1, $count);
$form_message = str_replace($match[2], $block, $form_message);
}
 1. A bit messy, could use a bit of cleanup. Maybe it could be a user option instead of an admin setting.
119
Other software / [Flames] Dream Portal
« on February 19th, 2011, 11:51 PM »
(Split by Nao from "Looking for Portal Suggestions".)

DP's founder was once a dev for SP - maybe that's where the DP chasing SP  impression came from?

DP currently has nothing in the way of articles.
120
Off-topic / Erm say what?
« on February 7th, 2011, 07:34 AM »
http://www.simplemachines.org/community/index.php?topic=420709.msg2942958#msg2942958

How exactly could the events a year ago make him say that? Granted he was grey back then but still...