Fork me on GitHub

Wednesday, September 6, 2006

Blog / Edit mode (tab insertion)

Edit mode (tab insertion)

Screenshot

Edit mode. Usually when you hit <Tab> you cycle through the controls of a form. While this is correct, sometimes (when typing a code snippet, for instance) is quite annoying.

Now, hit <Esc> while textarea has focus, switching to edit mode will allow you to insert tabs. Hit <Esc> again to swich back to normal code.

”		two tabs here”
<?php
	// a good rule in writing programs
	// is uniforming indentation
	// I always indent of one tab per block
	function myFunct($var) {
		echo ”Value of the var is $var”;
	}
?>

This extension require jsutils plugin to be (quite) at the very top of the plugin config (so that javascripts are loaded in the correct sequence), which is the default.

Download: http://www.nowherela … press.060906.tar.bz2

bye ;)

Tuesday, September 5, 2006

Blog / Latest additions

Latest additions

Some fixes and dp.SyntaxHighlighter as a plugin ;)

<?php
function myPhpFunc() {
    echo ”Cool, I’m javascript-highlighted!”;
}
?>

http://www.nowherela … press.060905.tar.bz2

Monday, September 4, 2006

Blog / Hotfixes

Hotfixes

Fixes to entry counter (views were counted twice) and to the core db-query lib, and to validation errors.

http://www.nowherela … ress.060904b.tar.bz2

Damn, that was hard…

Changed lightboxV1 with ligthboxV2 (I didn’t want to, but this is the only way I found to avoid IE to display the ‘active content blocked’ thing..)

Sunday, September 3, 2006

Blog / New Updates…

New Updates…

today, additions :)
{date} function for the themes.
if you use this, if you have posted more than once a day, the date will be displayed only once.

also, added file get.php
this file is not meant to be called directly. It is a mask for your uploads. Now, when you attach a file or an image web visitors won’t be able anymore to see the actual filepath on the webserver, raising your safety up!

e.g.: images/myimage.jpg will become: get.php?f=myimage.jpg

cool, huh? :)

http://www.nowherela … press.060903.tar.bz2

Changed behaviour with blockparser plugin.
Now to add a block just create a static page and assign it a name (the textbox at the bottom)!
Then add a line with ‘blockparser:nameofthestaticpage’, to your widgets (check wether blockparser is in your pluginlist) and then PRESTO! here’s your static as a block. Cool, huh?

Please always use the syntax

[list]
[*] My list element
[*] My other element
[/list]

if you plan to create a sidebar element ;)

bye!

Thursday, August 31, 2006

Blog / Other fixes

Other fixes

Fixed little bug with drafted entries, and fixed the theme flatmaas2 in ie, which now I’ve put as default (while we wait for flatmaas to be fixed)…

What else?

I’d say we’re pretty much ready :)

Stay tuned, in the meanwhile fell free to test flatpress ;)

http://www.nowherela … ress.060831b.tar.bz2

edit again other bug fixed + small addition to categories (you can now clear them from the panel)

bye