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
)
) );
}

This really piss me off

The Magaupload is taken down. The were “charged with five counts of copyright infringement and conspiracy“.
From my point of view what they done is they give us a technology for sharing large files. The way how we us it is up to us, and all the responsibility lays on our shoulders.

To sue Megaupload is like sue Nobel for the Dynamite invention and the way people use it!

Why they do not charge Google? They do the same, offer similar technology (Youtube, …), in a way more powerful then Megaupload and such.
They store the “whole” world of the Internet, our knowledge with all rights applied to it, all the knowledge they have no rights over and nobody complains.

The basic problem is that the Virtual world Internet offers absolutely different kind of existence then ever existed,
yet The system tries to apply the same rules for it as for the precedent objects.

Let’s make a unity, non-profit where people will pay a fee, the company will buy all the CD’s what ever stuff, that all the people in this non-profit comp. can use.
Fuck the system. Lets show our selves, the truth. Internet is not Earth!

WordPress & other CMS showcase – (czech video)

Those ho think of the CMS system for their project might be interested to see a quick overview of say 5 most used CMS systems so they can choose the right one.
This showcase was done in Drupal session in Prague HUB where we introduced our systems “we” use.

http://vimeo.com/groups/drupalprague/videos

If you like to know some basics about WordPress go ahead and check this video http://vimeo.com/groups/drupalprague/videos/31251285
btw all is in Czech :)

events.artycok.tv – online

I’m proud to announce our new portal for all people who want to promote their Art work, the http://events.artycok.tv.
As the Artycok.TV gets it popularity we were ask many times if there isn’t a way how people could promote their upcoming work on Artycok.TV.
So we went through a through this problem and decided to make an open space that will be tightly connected with the content on Artycok.TV. So that user watching a video records from the venue can see on a side invitations on current and upcoming exhibitions from the same place and also the other way, those who are checking the upcoming events can see a records from that space so they might get the feling what is the space about and so on and so forth… enjoy.

Simple portfolio

What is it?

Simple portfolio is a template for the WordPress publishing platform.

Description

The theme has basically 3 parts.
#header with the site name & description.
#sidebar with link to all news (posts) and list of all pages, plus the field for widget.
#content consisting of the page/post title (edit link if user is logged in), content and comments if allowed.

“Simple portfolio” supposed to be as simple as “indxr.net” or “indexhibit.org” theme for clean artist presentation.
I made it for artists and for my students who can study basics of web presentation and coding. The theme consists of the most important HTML, CSS, WordPress-API only. So that absolute beginners can easily learn from it and modify it.

more & download here.

WordPress, Prague, records

Wander how to work with WordPress? ..how to use it as CMS, or looking for new ideas, If you do so then check this page out.
The page includes an overview of the WordPress as I use it. There are 4 videos (in Czech) where I introduce common tasks you will be facing if you work with WP over it’s initial settings.

WordPress meeting

I didn’t gave up, I just do what I like. Don’t know exactly why, but I like WordPress, the way how it’s written somehow fits to my brain maze.
The next action I’m working on is the “first” WordPress meeting I know of :)
4th March in Academy of fine art Prague, from 4PM to 9PM will present basics of WordPress, plus some more advanced techniques.
If you wanna know more join us on Facebook.

Green map

Another interesting project is online. http://zelenamapa.cz/ is a grate guide for those who want to eat good food, find non-smokers pubs, restaurants on their way on bike, or walking. This project is open, so you can contribute with your findings too. Zelena mapa is subproject of the Auto-Mat organizing mass bike rides against the car pollution. A small note on the end. The webdesign is made by 2046.

Artyčok.TV ARTFAIR

OKi, here we are. Bunch of people who are simply addicted to the art, or the people who do it. This or that way, the Artyčok.TV ARTFAIR is near to it’s emergence. The thick and heavy chilly winter cool us enough in otherwise lively atmosphere.

Artyčok.TV presents Art Fair, a one day event at MeetFactory Gallery in Prague, organised to coincide with the 5th anniversary of the online archive, as well as to celebrate the 1000th report of the project. The event will run from 10am to 11pm on December 2, 2010.”

Artyčok.TV present Art Fair, a one day event at MeetFactory Gallery in Prague, organised to coincide with the 5th anniversary of the online archive, as well as to celebrate the 1000th report of the project. The event will run from 10am to 11pm on December 2, 2010.

Slowly becoming friends

It’s not easy to become friend with such a huge thing, especially when it has a strong tradition behind it. But I think it’s awesome. This thing ought to be a toy for all kids during their childhood. If I had some it would definitely changed my life.
..I’m glad I didn’t though. Because I’m sure, if I had one or two :D they would forced my to play scales and so I had no time to think of the whole musical concept beforehand.
I wonder how I’ll solve the piano-theremin schizofrenie :) I think, I’ll simply go mad :D

o—-o.info

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.