Tag Archive > wordpress

OpenX Advanced Targeting Using WordPress

Jonathan » 20 October 2008 » In Tutorials » 2 Comments

This tutorial will overview one way to make targeting a little easier and more semi-automated. It will outline how to setup specific banners to be served for posts with specific tags.

OpenX Solution Used: Hosted OpenX (http://hosted.openx.org/)
WordPress Version: 2.6.2

For this tutorial, I will be using tags are the “source” for OpenX.


Step 1: Setup tags so OpenX can view them as a “source.”

<?php
        while ( have_posts() ) : the_post();
                $fsm_oxtags = get_the_tags();
                if ($fsm_oxtags) { foreach ($fsm_oxtags as $tag) {
                        $taglist .= $tag->name . '|';
                }
                $taglist = rtrim($taglist, '|');
                $oxtags = rawurlencode($taglist);
                }
        endwhile;
?>

I have these in the top of my single.php file within WordPress. This only creates the variable of $oxtags so it can be echo’d elsewhere.

Details of Step 1: The first bit of code will create the loop. then it will go through each tag and set it as “tag |” because I am using pipes to separate each tag for OpenX. Next, it will trim off the last pipe because it’s not needed, creating something like… “tag 1|tag 2|tag 3|tag 4″ … and like I just mentioned, it will strip off the last pipe. Lastly, it will put that string, “tag 1|tag 2|tag 3|tag 4″ … into a raw encoded URL string which we will be able to echo later in the page. Note: this is only being set at $oxtags so it can be used elsewhere, nothing is echo’d in this part of the script.

Continue reading...

Tags: , ,

WordCamp NY 2008 Photos & Videos

Jonathan » 13 October 2008 » In Events » 5 Comments

First of all, a huge, HUGE, thank you to all of our speakers and sponsors for making this event possible. It was a huge success and would not have been possible without everyone involved.

Photos

WordCampNY2008_091 WordCampNY2008_090 WordCampNY2008_089 WordCampNY2008_088 WordCampNY2008_087 WordCampNY2008_086 WordCampNY2008_085 WordCampNY2008_084 WordCampNY2008_083 WordCampNY2008_082 WordCampNY2008_081 WordCampNY2008_080

Continue reading...

Tags: ,

Fireside Media LLC Software Development

Jonathan » 20 February 2008 » In News » No Comments

We have the start of what will be a long line of open source products by Fireside Media, LLC. To start it, we are releasing an updated version of the Twitter Updater plugin.

The plugin was originally written by Victoria, but she gave us permission to release the updated version here. The plugin was modified by Jonathan to include tinyurl.com’s API as part of the Twitter updating.

We have some other great ideas for Wordpress plugins already coming along and will be releasing them in stages. Expect some new plugins to come out within the next few weeks.

Continue reading...

Tags: , ,