Alternate Currency by xkcd
<fplanque> afwas: one where you can decide how challenging it is:
<fplanque> start with a widget that lists users
<fplanque> the add options like
<fplanque> restrict to the ones who commented
<fplanque> restrict to the ones who posted in this blog
<fplanque> order by # of posts
<fplanque> order by last commented date etc
<fplanque> put in as many or as little filters / sortings as you want
<fplanque> someone else will add the missing ones
<Afwas> OK will do that
<fplanque> another option: what to do when you click on a username:
<fplanque> 1) see posts
<fplanque> 2) see comments
<fplanque> or
<fplanque> 3) see profile
<fplanque> or 4) send message
<fplanque> again optional
<Afwas> That would be a widget that can be added multiple times
<fplanque> yes
<fplanque> use the universal item list widget as an example
<Afwas> OK will take a note
<fplanque> that one even has "dumbed down" versions for specific lists
<Afwas> Haven't seen that one yet, but you wrote about it.
<fplanque> this would be the "universal user list" with tons of options to be added over time
<Afwas> I get the idea.
<fplanque> it's in 3,1,0 and can be used standalone but also as a base class for "simplified item list widgets"
<fplanque> ok food now
<Afwas> (me to)
<fplanque> another filter possibility: restrict to users currently online
<fplanque> and we actually had code for displaying who's online at some point. I don't know what happened. Prolly blueyed knows.
<Afwas> online widget
<Afwas> That one exists as plugin IIRC (If I Recall Correctly)
<fplanque> ok, makes sense that we moved it to a plugin
<Afwas> It's a class, so I'd be able to call it independently
<Afwas> So an idea would be a list (post, comments whatever) with a small icon for users who are online
<fplanque> no the idea would be a list of users
<fplanque> a list of usernames
<Afwas> yes
<fplanque> not a list of posts
<fplanque> for example it would be teh list of users who have posted recently
<Afwas> and an icon for the users that happen to be onine
<fplanque> yes, why not
<fplanque> I was thinking about just a list of users who are online
<fplanque> but having an icon for online status in front of every user in any user list can be a useful option
<Afwas> That one exists. But because it's an independent class it could be an option in a user list widget.
<fplanque> I just looked at the code for the who's online widget
<fplanque> it is extremely poor
<Afwas> The class is fine
<fplanque> it fires one query per user
<fplanque> don't use that
<Afwas> I used it in the chat widget
<fplanque> the OnlineSessions class?
<Afwas> The chat widget presented a list with online users to chat with
<Afwas> I need to rewrite parts of it because it took to much recources. But the problem was not the online users.
<Afwas> But it's possible that is a problem if there are to many users ('it doesn't scale well')
<fplanque> that class is loading a User object per online user. that is no good.
<Afwas> I see
<fplanque> I think it's much better if you do the generic user list
<fplanque> and then add some SQL to determine who's online
<fplanque> to the query you'll already have
<Afwas> ok
<Afwas> That doesn't sound complicated.
<fplanque> it's always easier when you go one step at a time ![]()
TO BE CONTINUED
This plugin will adjust the size of an image to the container it's in. That way an image in a post will not exceed the borders of the post even if it's bigger. You simply install the plugin and it will do it's job. It relies on the image being spanned within a div with class image_block, which will be the case if you use the File Manager to add images to your post or if you use the [IMG] button on the toolbar.
example code:
<div class="image_block"><img src="image.png" alt="some alt text" title="some title" /></div>
This is code that's automatically generated if you insert an image using B2evolution. You can also add it manually to a post.
You might want to adjust the class. You can even use an ID. That's done in the settings of the plugin. You can even add several classes or ID's and it will cater for all of them.
Several images in this blog work with the plugin. You can click all images for a full scale version. That's done with the jQuery lightbox plugin. They work beautifully together.
The plugin is tested in Firefox 3, Opera and Internet Explorer 7.
Download: jquery_imagefit_plugin-0.9.1.zip
Have fun
My latest creaton is an edtor for the post/edit textarea. It will add a buttonbar and you can write your post and see the result in realtime. A WYSIWYG editor so to say. It's much like the TnyMCE editor. It's simply a different flavour.
All these buttons are usable, but 'll need to configure a few of them. It's even possible to upload images/files. For the rest it has all text edit optons like (obvious) bold Italic and colour. Oh, that's backgroundcolour, it has that also. You can more or less easily add links like this one to the website of FCKeditor. Let me add an image:

I also added the little brother of this monster to the Comment textarea, so do write me a comment. That one is actually to small, so I'll have to invent a medium. Luckily that's rather easy with the FCKeditor. Which buttons do you want for the comments?
Like I wrote in the B2evofoums, this is a work in progress. But do try it out and let me know what you want to see adjusted. I'll add it to BOPIT, so you can easily track new versions.
Download: jquery_fck_editor_plugin-0..9.1.zip
Have fun
This one can play Chess.
This is a tiny javaScript originating from an entry to the 2004 5k javaScript Chess competition where the goal was to write a chess playing script that was under 5kb in size. That's small. Nevertheless it plays reasonable. There are some quirks that can help you beat the program, but I'm not going to tell... One clear error is that it displays a move only when it calculated it's own (half) move. That leads to some chocking when playing in 'slow' mode, but also (this is the error) that it makes another move when it's checkmated (it will even take the piece!) Having played several low level Chess programs, this one isn't bad. But hey, It's for fun! You can download the p4wn_chess_plugin-0.9.zip zipfile. Install the plugin and add it to a post with the [ p4wn ] command.
I made some settings to allow it in a smaller bPost column than intended, so if it looks elongated beyond nice, do change that setting.
|
||
Interesting link: p4wn.sourceforge.net/ with information and some of the history of the file.
Have fun
This plugin adds a dropdown to a list. Especially aimed at widgets. With the plugin enabled selected widgets are collapsed by default and will fold out when hovered.

When hovered with the mouse:

Play with the USER TOOLS next to this article. After you install the plugn the way you would install any other plugin, you wander to the widget settings (via Blog settings) of the widget you want to collapse. There you add "dropdown" to the field "CSS Class". That's all there is to it. You can enable this with as many widgets on a blog as you would like. This is how the settings look:

download: jquery_dropdown_plugin-1.1.zip Have fun