About DeanLogic

Dean has been playing around with programming ever since his family got an IBM PC back in the early 80's. Things have changed since BASICA and Dean has dabbled in HTML, JavaScript, Action Script, Flex, Flash, PHP, C#, C++, J2ME and SQL. On this site Dean likes to share his adventures in coding. And since programming isn't enough of a time killer, Dean has also picked up the hobby of short film creation.

WP People – style sheet done, style sheet problems.

Well, I went to Big Bear’s site and went through the float tutorial/example to get some ideas for the popup window. Obviously, I took a lot of the ideas from it. i will probably go back and touch it up a little more, to make it more mine. However, after I did get the basics working so that it looks great in FireFox, I checked out what it looked like in IE. Well, the styles weren’t showing up in IE!!! At first I thought it was a problem with the style tags, but when I looked at the example popup Continue reading WP People – style sheet done, style sheet problems.

WP People, making it clean

Well, I was looking through the coding standards on Word Press. There was something in there about usingwpdb for database calls. I figured; okay, this shouldn’t be too hard, just switch over the query calls to wpdb->query and everything will be fine. Whoa nelly!! Man, that wasn’t as simple as I thought. I had to take out all of my error handling. I guess that the wpdb class has enough error handling. But, methods I were using to determine if the values were empty and such just didn’t work. It took me a lot longer than I expected to get Continue reading WP People, making it clean

Custom menu update

Well, d’uh!!! My basic problem was that an Author is at Level 2. For some reason I thought it was higher. So, when I added the menu, I had to have the minimum level at 2. There is also the option to allow someone to have access based on their capability. Since I wanted this available for someone who can create post, I changed the level 2 to publish_posts. // mt_add_pages() is the sink function for the ‘admin_menu’ hook function mt_add_pages() { add_management_page(‘WP People’, ‘WP People’, ‘publish_posts’, ‘wp-people’,’wp_people_admin’); } // Insert the mt_add_pages() sink into the plugin hook list for Continue reading Custom menu update

WP People version 2.0 getting closer

I am getting closer to finishing the WP People version 2.0. I have the administration page work. I have the install and upgrade buttons working. I also have the post replacement part working. All that is left is putting the link on a different menu so that Authors can update their WP People. Also, I need to format the css for the popup display. So, after getting the install/update feature working, I figured out that only the Admin could see the WP People link on the User page. I figured this wasn’t good, because I setup WP People so that Continue reading WP People version 2.0 getting closer

WP People the next generation

Well, I’ve been working on updating the WP People hack to a WP 2.0 plugin. Last night I was trying to get the links working. The biggest issue I had was pointing to the correct directory for the JavaScript and php files that creates the popup layer. Since not everyone has their blog on the root directory or as in my case, one level down, I can’t just go to the root and go from there. Also, not everyone named their blog directory “blog” or “wordpress”. So, in the plugin part was easy, sort of get_option(‘siteurl’) That got me the Continue reading WP People the next generation

Remote control beads

I just found this off of Gizmodo. http://www.plusminus.ru/remote.html It’s a new design for a t.v. remote. Basically you have a string of beads with numbers and other t.v. controls on them. You some how work around the controls and select the number or function by slightly pressing the bead. As pointed out on Gizmodo, it would probably be a pain in the ass to do channels with three digits and there’s always the possiblity of the cat running off with the beads. However, I just thought of a better use of these beads. On the product page there is custom Continue reading Remote control beads