Warning: Creating default object from empty value in /home/cf9819/public_html/shibumi.net/wp-content/themes/dkret3/header.php on line 17

How Does WordPress Create Permalinks?

I wanted to call the same function as WordPress uses for turning a post title into a page slug for some customizations to the Shopp Plugin I’ve been making for my client SoupCycle. It took a little digging but I found it in:

wp-includes/formatting.php

It’s function

function sanitize_title_with_dashes($title) { ... }

I couldn’t find this posted on the net anywhere so I posted it here in case others were looking for it.

Thickbox Activation on Button Click

I’ve been doing quite a bit of WordPress hacking for a couple somewhat involved projects as of late. It took a little fumbling around to figure out how to get Thickbox to activate on a button click vs. the usual link click. The js code is below. Simply wrap it in a function and call it using the onclick event of the button:

tb_show('Thickbox title here', '#TB_inline?height=300&width=305&inlineId=CHANGE-ME-INPUT-ID-OF-BUTTON&modal=false', null);

Thanks to http://www.juxtaflo.com/chad/thickbox-rollover-activation for the tip off.

Social Web: Google Wave

Google WaveMy friend Bob just hooked me up with a Google Wave account. After watching a few intro videos it looks like it will be a really powerful, real-time collaboration tool that allows you to mix text, rss feeds, photos and video in a rich, web-based interface. The current drawback is that the user base is very restricted. Since Wave is meant to be a collaborative tool its usefulness is constrained until my classmates can get access.

Social Web: To Twitter or Not

Twitter LogoMy social web class is holding my feet to the technological fire. Part of this week’s discussion is about Twitter. I signed up months ago but have so far continued to lurk, having not uttered a single tweet (see sidebar on right). Perhaps my followers (49 of them!) enjoy the silence created by reluctance to tweet. My inner luddite is perplexed by the idea of intentionally bringing even more electronic noise into my life to consume ever more of my attention. So my questions are: can this platform be used in service to the growth of our consciousness? If so, how do you think? How are you using Twitter? How has it benefited and hindered your life?

The Social Web and the Importance of Weak Ties

In social web class this week I learned about the distinction of strong and weak ties. Strong ties are those in our inner circle of friends and family who we have established, trusting relationships with. Weak ties are connections to others we know or know of via friends, conferences, social networking sites, etc. Weak ties turn out to be a strong asset and the social web is making it much easier to expand and take full advantage of this network. A 2008 New York Times article had this to say:

This rapid growth of weak ties can be a very good thing. Sociologists have long found that “weak ties” greatly expand your ability to solve problems. For example, if you’re looking for a job and ask your friends, they won’t be much help; they’re too similar to you, and thus probably won’t have any leads that you don’t already have yourself. Remote acquaintances will be much more useful, because they’re farther afield, yet still socially intimate enough to want to help you out. Many avid Twitter users — the ones who fire off witty posts hourly and wind up with thousands of intrigued followers — explicitly milk this dynamic for all it’s worth, using their large online followings as a way to quickly answer almost any question.

Read More »

Reflections on Intensive I: The Social Web and Privacy

Privacy Humour: Video RentingLast weekend was my first intensive of the year at BGI. I decided to join the Social Web for Social Change class with the intent to become more skillful at using the web to influence people to toward consciously living in harmony with others and the planet.

A considerable portion of our class discussion was dedicated to online privacy and the implications of sharing ourselves via social networking sites like Facebook, MySpace, Twitter, LinkedIn, etc. It became evident that we have yet to see the implications on careers and life paths with so many peoples’ lives publicly recorded for all to see. With the majority of social networking sites’ default behaviour set to show most of your information unless you intentionally disable or limit access, your life and connections are available to anyone with a web browser. Is this a good thing? Read More »

Delicious, Tagging and Folksonomies

deliciousSo I just jumped into a course called Using the Social Web for Social Change as part of my MBA in sustainable development at BGI. Part of the requirements are to keep a personal learning journal to publicly share my learnings throughout the semester. I thought I would do so here in an effort to add some life to my somewhat idle blog.

Week 1 was on social bookmarking, mostly focused on delicious.com. I wasn’t really on top of delicious or why I would want to use it but I am starting to see the light. My inner luddite has been making considerable noise lately so I have been reluctant to deepen my connection in the digital space. This class is going to carry me along despite the internal ambivalence I have being wrestling with. In a nutshell, delicious.com is a public space to save, share and tag bookmarks, mostly as a replacement for the bookmarks conventionally stored in your browser. Doing so, makes a your life considerably more visible by letting others know what you are interested in. This I think, is generally a good thing as it can lead you and others to web pages that you would have otherwise not found. Plus, if you change computers, upgrade your hardware, or are travelling you can access your bookmarks without any fuss.

Read More »

How To Get WordPress to Link to an External URL

This requires a little code hacking but it’s pretty simple. Open up: wp-includes/classes.php and find function: start_el

After the if else block that sets the value of the $css_class variable add the following code:


$url = get_page_link($page->ID);
$post_url = get_post_meta($page->ID, "url", true);
if ( $post_url ) {
    $url = $post_url;
}

and then remove get_page_link($page->ID) from the following line<a href="' get_page_link($page->ID) . '".... and replace it with $url: <a href="' . $url . '"

Now log in and edit the page or post you wish to specify a customized url for. Add a ‘Custom Field’ with key: ‘url‘ and a value of the full url (including http://) that you wish to send users to. The screenshot below shows the completed hack. NOTE: This will get wiped out next time you upgrade! I’ve also used the same logic to show/hide posts and pages from the menu systems.



Subversion Basics for Windows Users: How to use Tortoise SVN

1. Check out files from a Subversion server.

Right click on the folder where you want to save the files and select SVN Checkout:
Checkout Step 1
Copy and paste or type the url of the repository and click OK:
Checkout Step 2
Confirmation screen indicating that a folder called ‘resources’ and a file called AssetMapping.pdf were downloaded successfully:
Checkout Step 3

Read More »

Configuring svnX on Mac OS X

1. Create a folder somewhere you like to keep documents that will hold all revision controlled files. I created the ‘ALP’ folder below.
Create Folder for Subversion Files
2. Start svnX (it should be in Applications)Start svnX

3. Load Repository Window. If the repository window is not visible it can be loaded by navigating to Window –> Repositories.Repository Default
4. Configure Repository (the server where the files permanently live).Repository Configured
  • Name: A descriptive name
  • The path: http://www1.sevaserver.org/svn/community/alp
  • Your username
  • Your password
5. Double click on the URL configured in the upper scrollable pane to launch the repository browser.
6. Click the svn checkout button (left hand, big green arrow in the top right corner of the window). Browse to the folder you created to store the local copy of your documents and click open. This will do two things: download the files from the server to your machine and open a small window titled “Working Copies”. The Path field should be filled in for you already. Change the name to match the name in the repositories window (not required but makes sense to do). Fill in your username and password.
Working Copy Default
Working Copy Configured
7. My next post will cover how to use svnX!