<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>PHP.ASPCode.net</title>
	<link>http://php.aspcode.net</link>
	<description>Free PHP scripts</description>
	<pubDate>Tue, 23 Oct 2007 10:29:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Creating OPML file for WP import</title>
		<link>http://php.aspcode.net/creating-opml-file-for-wp-import/</link>
		<comments>http://php.aspcode.net/creating-opml-file-for-wp-import/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 10:29:46 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpLinkMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/creating-opml-file-for-wp-import/</guid>
		<description><![CDATA[Links management is one of the really lacking areas of Wordpress I&#8217;d say. I have created an RPC extention as I said but recently I needed to import a larger batch and thought about the OPML import feature.
However, no docs to be found how that file should look like - kind of just &#8220;it&#8217;s just [...]]]></description>
			<content:encoded><![CDATA[<p>Links management is one of the really lacking areas of Wordpress I&#8217;d say. I have created an RPC extention as I said but recently I needed to import a larger batch and thought about the OPML import feature.</p>
<p>However, no docs to be found how that file should look like - kind of just &#8220;it&#8217;s just XML&#8221;. Finally I found it and was able to run a simple script to</p>
<p>a) pull the <a href="http://php.aspcode.net/wp-admin/s">url:s</a> out from a database</p>
<p>b) fetch the HTML title for each url</p>
<p>c) create the OPML file</p>
<p>d) Import it into Wordpress (done manually)</p>
<p>Some of that code is found in a utility I published - <a rel="bookmark" href="http://www.aspcode.net/Create-OPML-links-with-C.aspx">Create OPML links with C#</a>.</p>
<p>It has nothing about the database calls but instead you paste your list of URLs and retrieves a nice OPML file out of it - with html titles fetched. </p>
<p><img src="http://www.aspcode.net/sites/ASPCode/images/fetchtitle2.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/creating-opml-file-for-wp-import/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Online code browser</title>
		<link>http://php.aspcode.net/online-code-browser/</link>
		<comments>http://php.aspcode.net/online-code-browser/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 11:40:07 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/online-code-browser/</guid>
		<description><![CDATA[I have created an online code viewer for wpAdMentor as well as the old phpAdMentor code. One of the best ways of learning how to deal with a new framework (or should we call it the WordPress code beast) is to see how other people has done it. So therefore I am offering you to quickbrowse [...]]]></description>
			<content:encoded><![CDATA[<p>I have created an <a href="http://codeview.aspcode.net/">online code viewer</a> for <a href="http://codeview.aspcode.net/php/wpadmentor.aspx">wpAdMentor</a> as well as the old <a href="http://codeview.aspcode.net/php/phpadmentor.aspx">phpAdMentor code</a>. One of the best ways of learning how to deal with a new framework (or should we call it the WordPress code beast) is to see how other people has done it. So therefore I am offering you to quickbrowse the source files - I know I havn&#8217;t done everything (if anything) the best way possible (it&#8217;s a learning process for me as well, remember) - so in some ways it might serve as a &#8220;don&#8217;t do it like this&#8221; - at least when it comes to the phpadmentor code from 2001.</p>
<p>I will try to post code for my plugins that way, since it actually helps me as well, having a resonably quick search interface for my own code.<br />
Btw: no it&#8217;s not PHP I know. I do a lot of ASP.NET coding as well, and this was created in .NET 2.0. I am using <a href="http://lucene.apache.org/">Lucene</a> for indexing and searching and must say I am really impressed with it. I might have some basic articles on that as well coming up any day or week or month <img src='http://php.aspcode.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/online-code-browser/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Who should use it?</title>
		<link>http://php.aspcode.net/who-should-use-it/</link>
		<comments>http://php.aspcode.net/who-should-use-it/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 06:22:41 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpAdMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/who-should-use-it/</guid>
		<description><![CDATA[I have gotten some email questions about wpAdmentor which I will try to answer here
a) Why should I use wpAdMentor instead of say openAds? Can wpAdMentor compete with openAds?
management. The banner engine also integrates with WP, for example it uses the builtin categories for &#8220;zoning&#8221; (a way of targetting)
 
- it is relatively lightweight. At least [...]]]></description>
			<content:encoded><![CDATA[<p>I have gotten some email questions about wpAdmentor which I will try to answer here</p>
<p><strong>a) Why should I use wpAdMentor instead of say openAds? Can wpAdMentor compete with openAds?</strong></p>
<p>management. The banner engine also integrates with WP, for example it uses the builtin categories for &#8220;zoning&#8221; (a way of targetting)<br />
 <br />
- it is relatively lightweight. At least when it comes to database usage. For example I do not store EVERY single banner view (bannerid, ip, page etc), but aggregates per banner and day. Whether that&#8217;s a good thing or bad is your choice. I mean, with openAds, you can trace pretty much anyhing.</p>
<p>- if it can compete with openAds? I don&#8217;t know and I don&#8217;t care. Your choice. It totally depends on you needing a full blown banner server or not. I have created it for myself, depending on my specific needs for my blogs  - BUT it sure would make me happy if other people could have use it as well!</p>
<p>Another difference is that you can&#8217;t do &#8220;customer campaigns&#8221; like in in <a href="http://www.openads.org/">openAds</a> or my own commercial product <a href="http://www.admentor.net">AdMentor PRO</a>. In those systems an advertiser can login to check their own stats. Here the blog admin is the only one being able to see stats and manage campaigns.</p>
<p><strong>b) Will there be further development?</strong></p>
<p>- yes. I will NOT turn this into a &#8220;open source&#8221; project with the overall goal to create the best advertising manager in the world. I will make it as good as I need it to be - then we&#8217;ll see.</p>
<p>But improvements coming are:</p>
<ul>
<li>ip country targetting ( being able specify to show a certain banner only to say US visitors )</li>
<li>media upload</li>
<li>code rewrite. I am so rusty when it comes to PHP. Havn&#8217;t done any PHP development since 2001 or so. So, therefore the actual code might not be tip top. Same goes with the <a href="http://php.aspcode.net/quick-links-for-wp-plugin-developer/">Wordpress integration.</a><br />
It&#8217;s not all that easy to play well with Wordpress and it&#8217;s action handlers.</li>
</ul>
<p>I am not sure but maybe</p>
<ul>
<li>flash wizard (and flash click tracking as well)</li>
</ul>
<p>Now - just go <a href="http://php.aspcode.net/downloads/">download and check wpAdMentor</a> out:</p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/who-should-use-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wpAdMentor 1.0 is released</title>
		<link>http://php.aspcode.net/wpadmentor-10-is-released/</link>
		<comments>http://php.aspcode.net/wpadmentor-10-is-released/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 12:37:40 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpAdMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/wpadmentor-10-is-released/</guid>
		<description><![CDATA[Puh,
 it has NOT been easy, I can tell you. But finally I have decided to release my banner management (and rotation)  plugin for Wordpress. Basically it gives you the possibility to manage which ads to show on your Wordpress blog. Clicks logging and stats are handled by the plugin, as well as the actual management [...]]]></description>
			<content:encoded><![CDATA[<p>Puh,</p>
<p> it has NOT been easy, I can tell you. But finally I have decided to release my banner management (and rotation)  plugin for Wordpress. Basically it gives you the possibility to manage which ads to show on your Wordpress blog. Clicks logging and stats are handled by the plugin, as well as the actual management (adding/updateing banner campaigns etc).</p>
<p>Moreover it gives you the possibility to target your ads, meaning you can choose to show a certain banner only for pages (posts) within the &#8220;Foobar&#8221; category of your blog. An example: People reading a post in the, say &#8220;Games&#8221; category, are more likely to be interested in your &#8220;Buy games&#8221; banner than the &#8220;Buy bananas&#8221; banner - which you instead setup to show on your &#8220;Fruits&#8221; category. That&#8217;s the basic idea.</p>
<p>Please see the screenshots and info from these posts as well</p>
<p><a href="http://php.aspcode.net/wpadmentor-prelease/">http://php.aspcode.net/wpadmentor-prelease/</a></p>
<p><a href="http://php.aspcode.net/quick-docs/">http://php.aspcode.net/quick-docs/</a></p>
<p>Now go grab the zip file at the <a href="http://php.aspcode.net/downloads/">PHP download page</a> </p>
<p>Unzip and install like any plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/wpadmentor-10-is-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wpAdMentor prelease</title>
		<link>http://php.aspcode.net/wpadmentor-prelease/</link>
		<comments>http://php.aspcode.net/wpadmentor-prelease/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 11:39:44 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpAdMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/wpadmentor-prelease/</guid>
		<description><![CDATA[I have added a few more practical things to my Wordpress banner plugin.
First - I needed to be able to specify that a certain banner only will be allowed to show X times on the same page (read Adsense rules):

As you can see that also adds you the ability to specify for each individual banner [...]]]></description>
			<content:encoded><![CDATA[<p>I have added a few more practical things to my Wordpress banner plugin.</p>
<p>First - I needed to be able to specify that a certain banner only will be allowed to show X times on the same page (read Adsense rules):</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture23.Png" title="croppercapture23.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture23.Png" alt="croppercapture23.Png" /></a></p>
<p>As you can see that also adds you the ability to specify for each individual banner wether they should appear on search/author archive/monthly archive as well.</p>
<p>Next I added a code generator:</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture34.Png" title="croppercapture34.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture34.Png" alt="croppercapture34.Png" /></a></p>
<p>looking like this:</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture35.Png" title="croppercapture35.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture35.Png" alt="croppercapture35.Png" /></a></p>
<p>So you can easily get the code which you should paste inside your post/template.</p>
<p>And that pretty much end the development of this release.</p>
<p>I will now just need to test it out live - and will publish it in under the downloads page when it&#8217;s ok!</p>
<p>Future development: I need GeoIP! I.e show a certain banner only to, say US visitors.</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture34.Png" title="croppercapture34.Png"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/wpadmentor-prelease/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quick links for WP plugin developer</title>
		<link>http://php.aspcode.net/quick-links-for-wp-plugin-developer/</link>
		<comments>http://php.aspcode.net/quick-links-for-wp-plugin-developer/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 08:06:41 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[Wordpress plugin dev]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/quick-links-for-wp-plugin-developer/</guid>
		<description><![CDATA[I needed to do this post for myself own good. While content of the Wordpress.org documentation wiki
sure is invaluable to me as a plugin developer - I get so frustrated by the organisation and
structure - or should I say lack of the same.
I spend some time each morning trying to find (through search of course) [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to do this post for myself own good. While content of the Wordpress.org documentation wiki<br />
sure is invaluable to me as a plugin developer - I get so frustrated by the organisation and<br />
structure - or should I say lack of the same.</p>
<p>I spend some time each morning trying to find (through search of course) the pages I &#8220;always&#8221;<br />
need.</p>
<p>So here are some quick links:</p>
<p><a href="http://codex.wordpress.org/Conditional_Tags">http://codex.wordpress.org/Conditional_Tags</a><br />
defines use of functions such as<br />
is_home<br />
is_admin<br />
is_single<br />
is_page()<br />
is_category()<br />
in_category(&#8217;5&#8242;)<br />
is_author()<br />
is_date()<br />
is_search()<br />
<a href="http://codex.wordpress.org/Plugin_API">http://codex.wordpress.org/Plugin_API</a><br />
startpage for plugin developer, noting of value but for beginner<br />
<a href="http://codex.wordpress.org/Plugin_API/Action_Reference">http://codex.wordpress.org/Plugin_API/Action_Reference</a><br />
action hook reference<br />
<a href="http://codex.wordpress.org/Plugin_API/Filter_Reference">http://codex.wordpress.org/Plugin_API/Filter_Reference</a><br />
filter hook reference</p>
<p>Other hook and filter lists</p>
<p><a href="http://blog.taragana.com/index.php/archive/wordpress-2x-hooks-for-action-comprehensive-list-for-plugin-and-theme-developers/">http://blog.taragana.com/index.php/archive/wordpress-2x-hooks-for-action-comprehensive-list-for-plugin-and-theme-developers/</a></p>
<p><a href="http://blog.taragana.com/index.php/archive/wordpress-2x-filters-comprehensive-list-for-plugin-and-theme-developers/">http://blog.taragana.com/index.php/archive/wordpress-2x-filters-comprehensive-list-for-plugin-and-theme-developers/</a><br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/quick-links-for-wp-plugin-developer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quick docs</title>
		<link>http://php.aspcode.net/quick-docs/</link>
		<comments>http://php.aspcode.net/quick-docs/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 11:23:03 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpAdMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/quick-docs/</guid>
		<description><![CDATA[Installation
wpAdMentor is installed just like any Wordpress plugin. After installation and activation of the
plugin you will see a new menu:

General information
wpAdMentor is a banner management/rotator integrated into Wordpress. All management is done from
the regular Wordpress admin GUI. You can use to rotate &#8220;regular img/href&#8221; as well as HTML campaigns (which
means you can use the AdSense [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture25.Png" title="croppercapture25.Png"></a><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture30.Png" title="croppercapture30.Png"></a><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture31.Png" title="croppercapture31.Png"></a>Installation</strong><br />
wpAdMentor is installed just like any Wordpress plugin. After installation and activation of the<br />
plugin you will see a new menu:</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/wpadm1.Png" title="wpadm1.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/wpadm1.Png" alt="wpadm1.Png" /></a><br />
<strong>General information</strong><br />
wpAdMentor is a banner management/rotator integrated into Wordpress. All management is done from<br />
the regular Wordpress admin GUI. You can use to rotate &#8220;regular img/href&#8221; as well as HTML campaigns (which<br />
means you can use the AdSense code for example).</p>
<p>The idea is that you first create adpositions - that is basically an ad spot on your website.<br />
Example &#8220;Top banner&#8221;, &#8220;Side banner 1&#8243;, &#8220;Side banner 2&#8243;. Each campaign you create is then attached to<br />
an adpos, for example you might want a 468*60 CJ banner to be shown on top position. Additional targetting<br />
is done using the regular Wordpress categories.</p>
<p>Lets say you have two categories on your website - Games and Webmaster. You post articles about games<br />
in the Games category and webmaster articles in your Webmaster category. Naturally. Now lets say<br />
you have a banner for buying games. wpAdMentor lets you target that banner so it only shows<br />
on the posts (and category pages) for Games.<br />
Likewise you might want to run a hosting banner only for posts/pages inside<br />
the &#8220;Webmaster&#8221; category.</p>
<p>You can assign a campaign to run on multiple categories so to speak - for example a banner for<br />
game servers might be suiteful both for your &#8220;Games&#8221; and &#8220;Webmaster&#8221;pages.</p>
<p><strong>Explaining weight</strong></p>
<p>Imagine a lottery.<br />
Each banner is assigned a weight and when deciding which banner to show at a specific moment,<br />
all banners matching (correct adposition and correct category etc) are retrieved. Then all banners<br />
get as many &#8220;lottery tickets&#8221; as they have weight. Meaning if Banner A has a weight of 10 and<br />
banner B has a weight of 5, banner a gets 10 lottery tickets and banner B only 5. So banner A will<br />
have bigger chance of &#8220;winning&#8221; (i.e being showed on the page), and roughly, over time, it will be<br />
shown twice as many times as banner B.</p>
<p><strong>More targetting:<br />
</strong>In Wordpress, of course there are pages which are NOT a category page or not a single post.<br />
Then how can we decide which banner to run on these pages ( say the homepage, or search page).<br />
For these purposed there is an extra checkbox when creating/editing a campaign - &#8220;Show on other pages&#8221;.</p>
<p>As for Wordpress pages (say &#8220;About&#8221;, or &#8220;Sitemap&#8221; or whatever pages you have) you have full contreol and<br />
can select that a certain banner is only to be shown on thje &#8220;About page&#8221; for example.</p>
<p>Now - we have created the ad positions (say &#8220;top position&#8221;, &#8220;side banner&#8221; and &#8220;inside post&#8221; ).<br />
We have created the banners and assigned them to the correct adpositions and categories. Now, how can we<br />
get the banner rotator into the pages? First have a look at the adpositions list</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture24.Png" title="croppercapture24.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture24.Png" alt="croppercapture24.Png" /></a></p>
<p>See the ID column? We are gonna need that now.</p>
<p>There are basically two ways of getting the banner rotation onto your blog pages</p>
<ul>
<li>You can from your template file - wherever you want the ad to appear:</li>
</ul>
<p>&lt;?  print AdMentor_ServeBanner(3) ?&gt;</p>
<p>See number 3? That is the adposition ID. The system will automatically target on category/type of page,<br />
but it simply can&#8217;t guess where your ad spots are. So therefore you specify that.</p>
<ul>
<li>The other way is from inside the post:</li>
</ul>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture25.Png" title="croppercapture25.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture25.Png" alt="croppercapture25.Png" /></a></p>
<p><strong>More screenshots, editing campaign</strong></p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture26.Png" title="Creatiing/editing of a HTML banner"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture26.thumbnail.Png" alt="Creatiing/editing of a HTML banner" /></a> <a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture28.Png" title="Managing a regular img/href banner"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture28.thumbnail.Png" alt="Managing a regular img/href banner" /></a> </p>
<p><strong>More screenshots, stats</strong></p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture30.Png" title="croppercapture30.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture30.thumbnail.Png" alt="croppercapture30.Png" /></a> <a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture31.Png" title="croppercapture31.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture31.thumbnail.Png" alt="croppercapture31.Png" /></a> <a href="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture33.Png" title="croppercapture33.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/croppercapture33.thumbnail.Png" alt="croppercapture33.Png" /></a></p>
<p><strong>Shortcomings in this version:<br />
</strong>-no upload at all. You need to upload the image file and enter the url to it</p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/quick-docs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wpAdMentor on it&#8217;s way</title>
		<link>http://php.aspcode.net/wpadmentor-on-its-way/</link>
		<comments>http://php.aspcode.net/wpadmentor-on-its-way/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 21:33:37 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpAdMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/wpadmentor-on-its-way/</guid>
		<description><![CDATA[I have come a long way with the admentor plugin for Wordpress. I would therefore like to tease you a little with how the admin GUI looks:




It has not been easy needing to tweak things into the existing Wordpress framework, but in short the wpAdMentor Plugin for Wordpress will let you  manage ad campaigns /create/update/delete/edit) - and for each banner [...]]]></description>
			<content:encoded><![CDATA[<p>I have come a long way with the admentor plugin for Wordpress. I would therefore like to tease you a little with how the admin GUI looks:</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/apadm1.Png" title="apadm1.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/apadm1.thumbnail.Png" alt="apadm1.Png" /></a></p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/apadm2.Png" title="apadm2.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/apadm2.thumbnail.Png" alt="apadm2.Png" /></a></p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/apadm3.Png" title="apadm3.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/apadm3.thumbnail.Png" alt="apadm3.Png" /></a></p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/09/apadm4.Png" title="apadm4.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/09/apadm4.thumbnail.Png" alt="apadm4.Png" /></a></p>
<p>It has not been easy needing to tweak things into the existing Wordpress framework, but in short the wpAdMentor Plugin for Wordpress will let you  manage ad campaigns /create/update/delete/edit) - and for each banner you set which pages and existing Wordpress categories you wont them to *maybe* appear on. Cause the actual banner serving is randomized between all banners targetting the current page/category and ad position (say for example top banner, side banner 1 etc).</p>
<p>I am currently working on the stats function and will hopefully get it done by tomorrow. So a &#8220;beta&#8221; will be released then.</p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/wpadmentor-on-its-way/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress remote management</title>
		<link>http://php.aspcode.net/wordpress-remote-management/</link>
		<comments>http://php.aspcode.net/wordpress-remote-management/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 18:52:09 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/wordpress-remote-management/</guid>
		<description><![CDATA[I&#8217;m trying to automate as much of the WP admin stuff as possible, and the reasons for that is of course because I&#8217;m lazy, hehe. Seriously, it takes a lot of to manage 20ish of blogs (on different servers and different hosting accounts etc) if you are supposed to go through the admin GUI  and login/click around etc for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to automate as much of the WP admin stuff as possible, and the reasons for that is of course because I&#8217;m lazy, hehe. Seriously, it takes a lot of to manage 20ish of blogs (on different servers and different hosting accounts etc) if you are supposed to go through the admin GUI  and login/click around etc for each of them.</p>
<p>I have my own Windows client for managing it, where I basically select a blog from a dropdownlist and then by utilizing XML-RPC calls do my stuff. One example of where the existing RPC interface is not enough is blogrolling, therefore I created my own <a href="http://php.aspcode.net/wplinkmentor-manage-your-wordpress-links-with-rpc/" title="WP link management plugin">extention plugin for link management</a>. I have a lot of more of these type of RPC extentions, but they are simply not ready to be published yet, but I will.</p>
<p>In the meantime waiting, why don&#8217;t you download a really <a href="http://www.aspcode.net/C-blog-client.aspx">basic remote blog manager</a> program, which gives you the (C# sourcecode <em>is</em> included) very first skeleton program for you to build upon. While the actual article writing GUI is a joke compared to other blog clients, say LiveWriter for instance, the point is that is is totally expandable. And YOU decide on how to expand it. If you know how to implement some XML-RPC on the server side then there is NO limit on what you can achieve from your OWN blog client. For example I am experimenting on some options manager. So please feel free to download and try it out - the code is very simple, but has no error handling at all, but, hey, at least it&#8217;s a start.</p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/wordpress-remote-management/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wpLinkMentor manage your Wordpress links with RPC</title>
		<link>http://php.aspcode.net/wplinkmentor-manage-your-wordpress-links-with-rpc/</link>
		<comments>http://php.aspcode.net/wplinkmentor-manage-your-wordpress-links-with-rpc/#comments</comments>
		<pubDate>Mon, 27 Aug 2007 19:15:06 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
		
		<category><![CDATA[wpLinkMentor]]></category>

		<guid isPermaLink="false">http://php.aspcode.net/wplinkmentor-manage-your-wordpress-links-with-rpc/</guid>
		<description><![CDATA[While blogroll (link) management in the Wordpress admin GUI is pretty straightforward, I still find it incredibly slow when needing to wipe out links and add some completely new. Well, to be honest, what slows things down is actually

finding the loginid and password for the blog
logging in
clicking to blogroll part of admin gui

It&#8217;s ok to do it if you [...]]]></description>
			<content:encoded><![CDATA[<p>While blogroll (link) management in the Wordpress admin GUI is pretty straightforward, I still find it incredibly slow when needing to wipe out links and add some completely new. Well, to be honest, what slows things down is actually</p>
<ol>
<li>finding the loginid and password for the blog</li>
<li>logging in</li>
<li>clicking to blogroll part of admin gui</li>
</ol>
<p>It&#8217;s ok to do it if you have, say, 5 blogs, but if you like me manages around 20 or more then it gets SOOO frustrating.  </p>
<p>Remote management for posts and categories in multiple blogs scenarios is not a problem cause XMLRPC allows us to create our own client application. There are a lot of blog clients available, but I like to do things my way, so I have actually written my own. However,next step was to find a way to manage the blogrolls remotely. Since there is no built in support in WP XMLRPC for it I simply decided to write my own. It&#8217;s implemented as a regular WP plugin - so all you need to do is download the zip file, unzip it, upload it to your plugins directory and from your WP admin pages you activate it.</p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/08/croppercapture21.Png" title="croppercapture21.Png"><img src="http://php.aspcode.net/wp-content/uploads/2007/08/croppercapture21.Png" alt="croppercapture21.Png" /></a></p>
<p>I won&#8217;t give you much info on how to use it in this particular post - you do need some XMLRPC experience - I will get back with info on how to use it from a more userfriendly perspective, for now I just want to publish it and therefore I assume the php function headers will be enough for you to understand how to build up the XMLRPC call:</p>
<p><strong>wpLinkMentor.getLinks</strong></p>
<p>    $blog_ID    = (int)$args[0];<br />
    $user_login = $args[1];<br />
    $user_pass  = $args[2];<br />
    $cat_id  = $args[3];</p>
<p>you just send in an category ID (numeric). I *think* that in a typical clean install of Wordpress then the blogroll will<br />
have ID 2. This means you can use it to manage links for ANY category in your blog.</p>
<p>Returns an array of links - each link having</p>
<p>link_id<br />
link_url<br />
link_title<br />
link_description<br />
link_visible<br />
link_rel</p>
<p><strong>wpLinkMentor.deleteLink</strong></p>
<p>    $blog_ID    = (int)$args[0];<br />
    $user_login = $args[1];<br />
    $user_pass  = $args[2];<br />
    $link_id  = $args[3];</p>
<p>you just send in the link ID (numeric). In other words - you should typically first<br />
call getLinks to retrieve all links and by that you get the link_id:s.<br />
<strong>wpLinkMentor.updateLink</strong></p>
<p>    $blog_ID    = (int)$args[0];<br />
    $user_login = $args[1];<br />
    $user_pass  = $args[2];<br />
    $cat_id  = $args[3];<br />
    $link_id  = $args[4];<br />
    $link_url  = $args[5];<br />
    $link_name  = $args[6];<br />
    $link_description  = $args[7];<br />
    $link_visible  = $args[8];<br />
    $link_rel = $args[9];</p>
<p>If you specify &#8220;-1&#8243; as link_id then it will create a new link, otherwise update. </p>
<p>Return the id of new/updated link. </p>
<p><a href="http://php.aspcode.net/wp-content/uploads/2007/08/wplinkmentor.zip" title="Download wpLinkMentor">Download wpLinkMentor</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://php.aspcode.net/wplinkmentor-manage-your-wordpress-links-with-rpc/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
