2046’s plugins on Softpedia

Thanks to some circumstances or just because people on Softpedia are workaholics, they put all my WordPress plugins on their site.

Sweet :)

http://webscripts.softpedia.com/developer/2046-1869787852.html

Easy, but rich GUI WordPress content builder

Some time a go I have been developing a website for sub-project of Auto-mat prahounakole.cz. As I have seen their current developers struggling with every new wanted feature, I have decided to give them a flexible workflow that lets them restructure and enhance the website without coding.

So I made the template completely out of widgets. I made for them bunch of widgets. One can show pages with this and that relation, second lets them put text advertisement everywhere they want and so on and so forth. They can move all part of the website wherever they want without coding. Why should they code, anyway? What they have to do is to focus on their work instead.

Then I went even further completed all the functions to one widget and released it for free – 2046’s loop widget

But what I wanted to do from the beginning was to create a flexible tool extendable by anyone. The Graphic User Interface of 2046’s loop widget also grown in to a super huge beast with many options in one widget.
So I did the second step. I made Easy.

I have redone the whole thing from top to bottom. All the view part and logical controllers are in the form of “bricks” which you can drop in the slot, and that’s it :)
It is much cleaner, more user friendly and finally it is much richer then its ancestor. Though it doesn’t have that much controls as 2046’s loop widget it has much more view bricks with even more features,… just a matter of time. Thanks to its easy system powered be externals, some kind of easy plugins, it’s easy to add any kind of new control brick or what ever we wish.

Al the views are in defined in form of an array, and the widget it self makes all the inputs and all the logic behind it. If you add your function it’s automatically connected to the widget bricks and executed on the front end.
Sweet :)
When I finish the core functions I’ll add more controls and then write complete Documentation and put it online so you can plug in your ideas not obliged to fight with the WordPress widget structures and all that stuff behind it.

Until then, try Easy and let me know what you think.

Rearrange, resort widget screen in WordPress

Here is one quick handy fix for the WordPress widget screen layout.

I found the actual admin widget layout bit stupid. Giving a grate space to unused widgets rather then give us a space to work with the widgets in the sidebars we use.

So I made this small fix. It is just a raw CSS hack, but the widget screen is much much better and easier to work with.
(The next step might will be to rearrange the sidebars so that they somehow matches to the front-end layout, maybe layouts.. meaning that there will even be a tab for widgets view.
I hope WP developers come up with this solution them selves)

You can find this feature in the new 2046’s loop widget 0.253

Kuraz.cz – new website

Kuraz.cz has new website. Webdesign by 2046.cz

redesign – prahounakole.cz

Here it is. A new face-lift of the progressive bike group of the Auto-mat non-profit organization. Prahounakole.cz wears new bright and shiny book like design. Such a design was always my dreams. The website is so called responsive so you it is easily approachable on any screen, no matter the size or the device.

2046’s loop widget

I use the WordPress a lot. I do lot of coding, but this time I though what if I help my self with a little widget that will do the job for me. So I wrote the 2046’s loop widget. This widget covers the most used loops I build on all the sites I made. All the boring work I write always and again is turned in to a clickable interface. The widget went through couple weeks of development and couple website are based on it already :) I think the widget in it’s current state can be considered as stable and powerful enough to help you all to build your own website with ease and unexpected flexibility.

You can download it right from the WordPress repository or read more info on it’s page.

If you need some step by step intro, check this out:

 

Migrating dates from “ec3 event calendar” into the “custom fields”

Oki, I think it is the right time to share some knowledge with you under the Aggressive Copyright indeed ;) .. in the time of SOPA, ACTA, TPP nothing you should worry about :D

We have used the ec3 event calendar for ages. It was a grate plugin that saved our asses when the WP was on the beginning and we too.
As the time goes the plugin has been abandoned and it triggers over too much errors in the no WP version and will in the future indeed.

The time comes and so I heave decided to abandon this plugin in one of our website too.
The plugin it self has many features as ical feed, calendar etc. we do not need. What we need is just two dates representing the beginning of the gig and the end of the gig.
We do not need time! So the code bellow strip the time off and uses the date only, though if you look at the code closely you find the way how to copy the raw date from the ec3 plugin in to the custom fields.

Custom fields?
What is it and how can I make it? These are nice pieces of data you can add to post or page or in taxonomy if you like. By default there is not really user friendly box where you can add them your self, but what I recommend you is to use nice plugin More fields (it triggers some errors when the WP_DEBUG is on, nothing crucial but still) or the new CCTM super complex CMS plugin (You might find it bit overwhelming, it is fairly complex)

// example how to get only selected row for particular post id
//$myrows = $wpdb->get_results("SELECT * FROM wp_ec3_schedule WHERE post_id = 7693", ARRAY_N);

// get all the data from the ec3 event calendar
$myrows = $wpdb->get_results("SELECT * FROM wp_ec3_schedule", ARRAY_N);
//var_dump($myrows);

foreach ($myrows as $rows){
// get the dates only
$start_raw = explode( ' ', $rows[2]);
$end_raw = explode( ' ', $rows[3]);
// strip off the time that I do not want to use. The result is only the date: 2012-01-01
// if you like to use the whole thing 2012-01-01 10:00:00 use the ..raw variables
$start = $start_raw[0] ;
$end = $end_raw[0];
$the_post_id = $rows[1];
// print it all out in to the page, as a feedback
echo $start .' - '.$end.', '.$the_post_id.'<br />';

// update start dates
$wpdb->query( $wpdb->prepare(
"
INSERT INTO $wpdb->postmeta
( post_id, meta_key, meta_value )
VALUES ( %d, %s, %s )
",
array(
$the_post_id,
'event_start', // << your custom field name
$start
)
) );
// update end dates
$wpdb->query( $wpdb->prepare(
"
INSERT INTO $wpdb->postmeta
( post_id, meta_key, meta_value )
VALUES ( %d, %s, %s )
",
array(
$the_post_id,
'event_end', // << your custom field name
$end
)
) );
}
 

All the content but a few exceptions on this website are under Aggressive Copyright license. By clicking on the button “Yes I do” you agree with the license and you understand all consequences.