<?xml version="1.0" encoding="ISO-8859-1"?><!-- OPML generated by Radio UserLand v8.0.8 on Tue, 04 Mar 2003 00:04:04 GMT -->
<opml version="1.1">	<head>		<title>salon.opml</title>		<dateCreated>Fri, 26 Jul 2002 16:19:32 GMT</dateCreated>		<dateModified>Tue, 04 Mar 2003 00:04:03 GMT</dateModified>		<ownerName>Marc Barrot</ownerName>		<ownerEmail>info@prec-it.com</ownerEmail>		<expansionState>4, 10, 20, 22</expansionState>		<vertScrollState>1</vertScrollState>		<windowTop>44</windowTop>		<windowLeft>180</windowLeft>		<windowBottom>434</windowBottom>		<windowRight>865</windowRight>		</head>	<body>		<outline text="#title &quot;Posting To A Salon Hosted Weblog&quot;"/>		<outline text="#opmlStory &quot;http://radio.weblogs.com/0104487/gems/opml/salon.opml&quot;"/>		<outline text="#flDisplayCup &quot;glass&quot;"/>		<outline text="&lt;b&gt;Presentation&lt;/b&gt;">			<outline text="I've been publishing a &lt;a href=&quot;http://radio.weblogs.com/0104487/index.html&quot;&gt;weblog&lt;/a&gt; for a little while using &lt;a href=&quot;radio.userland.com/&quot;&gt;Radio Userland&lt;/a&gt;.">				<outline text="I'm doing this from the desktop of a Titanium Powerbook running MacOS X."/>				<outline text="Radio is installed in the Radio UserLand subfolder of my system's Applications folder."/>				<outline text="When I use a Windows system, Radio resides in the Radio UserLand subfolder of my C:\\Program Files folder."/>				</outline>			<outline text="A couple of days ago, I learned about &lt;a href=&quot;www.salon.com&quot;&gt;Salon&lt;/a&gt; starting a new &lt;a href=&quot;http://www.salon.com/blogs/&quot;&gt;Radio based weblog community&lt;/a&gt;, and decided to join.">				<outline text="I downloaded a second version of Radio, Radio for Salon, which I installed in a separate folder on my laptop."/>				<outline text="I then registered with Salon's server, and quickly had a &lt;a href=&quot;http://blogs.salon.com/0001048/index.html&quot;&gt;new weblog page&lt;/a&gt; going, with a Salon look and feel."/>				</outline>			<outline text="Still, I had to switch Radio applications whenever I decided to post to &quot;the other&quot; weblog... Kludgy.">				<outline text="I couldn't find a way to have both Radio applications open and running at the same time.">					<outline text="Besides, this would be a waste of cpu resource, something I try to avoid."/>					</outline>				</outline>			<outline text="The solution to this problem is obvious: publish to the Salon hosted page from my first Radio application as if it were a category of my original weblog."/>			<outline text="Implementing this is less obvious, so here is a step by step rundown of what I did.">				<outline text="It requires some modifications to the Radio.root table in Radio."/>				<outline text="Be advised that a mistake when doing this may cause the loss of the ability to upstream to your regular site."/>				<outline text="Do not attempt it if you are not familiar with handling Frontier/Radio tables."/>				</outline>			</outline>		<outline text="&lt;b&gt;Disclaimer&lt;/b&gt;">			<outline text="What I am about to expose worked for me.">				<outline text="It will eventually work for you, though I will certainly not guarantee it, nor will I consider myself responsible if you mess up your Radio installation."/>				<outline text="If you are experiencing problems, contact me through the &lt;a href=&quot;http://radio.xmlstoragesystem.com/rcsPublic/mailto?usernum=0104487&quot;&gt;feedback&lt;/a&gt; link on &lt;b&gt;s&amp;nbsp;l&amp;nbsp;a&amp;nbsp;m&lt;/b&gt;'s home page."/>				</outline>			<outline text="&lt;b&gt;Please do not bug UserLand with &lt;i&gt;any&lt;/i&gt; problem related to this hack, they have better fish to fry&lt;/b&gt;."/>			</outline>		<outline text="&lt;b&gt;Step 1&lt;/b&gt;: Making a safety backup.">			<outline text="Before making any fatal mistake, I thought it wise to stash away a copy of my &lt;i&gt;regular&lt;/i&gt; &lt;b&gt;Radio Userland&lt;/b&gt; folder, in case I needed to restore a functioning copy of Radio in a hurry."/>			<outline text="I copied the whole folder to another disk, and zipped an additional copy for good measure."/>			</outline>		<outline text="&lt;b&gt;Step 2&lt;/b&gt;: Creating a Salon category.">			<outline text="Using my &lt;i&gt;regular&lt;/i&gt; copy of Radio, I first created a &lt;i&gt;slam in salon&lt;/i&gt; category, via the Radio / Local Pages / New Category menu option."/>			<outline text="I entered the name of my Salon weblog in the Category field, and its description in the Description field.">				<outline text="This way,  I am sure the pages I publish from the &lt;i&gt;slam in salon&lt;/i&gt; category will have the same title and subtitle as the pages I published from the &lt;i&gt;Radio for Salon&lt;/i&gt; application."/>				</outline>			<outline text="I then checked the 'render in HTML' and 'Notify Weblogs.com' preferences and submitted the changes.">				<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/newCat.gif&quot;&gt;"/>				</outline>			<outline text="I now have a &lt;i&gt;slam in salon&lt;/i&gt; category listed on my main weblog local page.">				<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/catList.gif&quot;&gt;"/>				</outline>			</outline>		<outline text="&lt;b&gt;Step 3&lt;/b&gt;: Copying the Salon templates to the new category.">			<outline text="The templates for the &lt;i&gt;slam in salon&lt;/i&gt; category are stored in the &lt;b&gt;categories:slamInSalon&lt;/b&gt; subfolder of my &lt;i&gt;regular&lt;/i&gt; Radio application's &lt;b&gt;www&lt;/b&gt; folder."/>			<outline text="The templates for the &lt;i&gt;Salon&lt;/i&gt; weblog are stored in the &lt;b&gt;www&lt;/b&gt; folder of my &lt;i&gt;Radio for Salon&lt;/i&gt; application."/>			<outline text="I copied all the files starting with a pound sign from &lt;i&gt;Radio for Salon&lt;/i&gt;'s &lt;b&gt;www&lt;/b&gt; folder to my &lt;i&gt;regular&lt;/i&gt; Radio application's &lt;b&gt;www:categories:slamInSalon&lt;/b&gt; folder.">				<outline text="Here is a list of those files :">					<outline text="#dayTemplate.txt"/>					<outline text="#homeTemplate.txt"/>					<outline text="#itemTemplate.txt"/>					<outline text="#javaScript.txt"/>					<outline text="#navigatorLinks.xml"/>					<outline text="#prefs.txt"/>					<outline text="#upstream.xml"/>					<outline text="I actually didn't need #desktopWebsiteTemplate.txt, so I left it alone."/>					</outline>				</outline>			</outline>		<outline text="&lt;b&gt;Step 4&lt;/b&gt;: Copying the Salon images.">			<outline text="The Salonized version of #homeTemplate.txt - the main publishing template - expects to find a number of images in the &lt;b&gt;images&lt;/b&gt; subfolder of my &lt;i&gt;regular&lt;/i&gt; Radio application's &lt;b&gt;www&lt;/b&gt; folder."/>			<outline text="Fortunately, all those image files are conveniently located in the &lt;b&gt;salon&lt;/b&gt; subfolder of the &lt;b&gt;www:images&lt;/b&gt; folder of my &lt;i&gt;Radio for Salon&lt;/i&gt; application."/>			<outline text="I just copied the 16 image files I found in the &lt;b&gt;www:images:salon&lt;/b&gt; folder of my &lt;i&gt;Radio for Salon&lt;/i&gt; application to the &lt;b&gt;www:images&lt;/b&gt; folder of my &lt;i&gt;regular&lt;/i&gt; Radio application.">				<outline text="Here is a list of those files:">					<outline text="audio4_plain_off.gif"/>					<outline text="blog_head.jpg"/>					<outline text="books4_plain_off.gif"/>					<outline text="comics4_plain_off.gif"/>					<outline text="ent4_plain_off.gif"/>					<outline text="mwt4_plain_off.gif"/>					<outline text="news4_plain_off.gif"/>					<outline text="people4_plain_off.gif"/>					<outline text="permalink1.gif"/>					<outline text="politics4_plain_off.gif"/>					<outline text="rankings_bttm.gif"/>					<outline text="salonlogo.gif"/>					<outline text="salonshim.gif"/>					<outline text="sex4_plain_off.gif"/>					<outline text="tech4_plain_off.gif"/>					<outline text="updates_top.gif"/>					</outline>				</outline>			</outline>		<outline text="&lt;b&gt;Step 5&lt;/b&gt;: Customizing the #prefs.txt file for the &lt;i&gt;slam in salon&lt;/i&gt; category.">			<outline text="The first directive in the freshly copied &lt;b&gt;#prefs.txt&lt;/b&gt; file I found in &lt;b&gt;categories:slamInSalon&lt;/b&gt; read: #title weblogData.prefs.title."/>			<outline text="Using a text editor,I replaced it with a 'standard' category directive: #categoryName \&quot;slam in salon&quot;, then saved the result.">				<outline text="All radio categories require a categoryName when rendered and upstreamed to the public site."/>				<outline text="The #title directive is actually already defined in the &lt;b&gt;#prefs.txt&lt;/b&gt; file that sits in the main &lt;b&gt;www&lt;/b&gt; folder."/>				</outline>			</outline>		<outline text="&lt;b&gt;Step 6&lt;/b&gt;: Customizing the #upstream.xml file for the &lt;i&gt;slam in salon&lt;/i&gt; category.">			<outline text="The &lt;b&gt;upstream.xml&lt;/b&gt; file copied into &lt;b&gt;categories:slamInSalon&lt;/b&gt; tells Radio where to upstream the posts to the &lt;i&gt;slam in salon&lt;/i&gt; category.">				<outline text="These posts are not to be upstreamed to my regular public site hosted by Userland, but to Salon's RCS server instead."/>				</outline>			<outline text="Using a text editor again, I made a modification to the &lt;password&gt; entry in &lt;b&gt;upstream.xml&lt;/b&gt;.">				<outline text="The original value for password was &lt;i&gt;default&lt;/i&gt;."/>				<outline text="I replaced it with &lt;i&gt;salon&lt;/i&gt;, and saved the result.">					<outline text="That's because the default password in my &lt;i&gt;regular&lt;/i&gt; copy of Radio is the one for the UserLand server."/>					<outline text="I obvioulsy must specify an additional - different - one for the Salon server."/>					<outline text="Actual passwords are stored in Radio.root, hence step 7."/>					</outline>				</outline>			</outline>		<outline text="&lt;b&gt;Step 7&lt;/b&gt;: Setting Salon's RCS server preferences in Radio.root.">			<outline text="This is the trickiest part, so exercise extra caution."/>			<outline text="I first launched my copy of &lt;i&gt;Radio for Salon&lt;/i&gt;, and brought it to the foreground.">				<outline text="I opened the Radio.root table, by selecting the Window / Radio.root menu option."/>				<outline text="I expanded the user.radio.prefs.passwords table, and wrote down the value for the &lt;i&gt;default&lt;/i&gt; entry.">					<outline text="This value is a string of hexadecimal digits, starting with '0x'."/>					<outline text="I actually copied and pasted the value to a temporary text file."/>					</outline>				<outline text="When finished, I expanded the user.radio.prefs.upstream.servers.rcs.salon.com table.">					<outline text="I selected the serverCapabilities subtable, then the File / Save As... menu option."/>					<outline text="I clicked Ok in the first dialog.">						<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/saveAsDialog.gif&quot;&gt;"/>						</outline>					<outline text="In the second dialog, I provided a file name - serverCapabilities - and saved that file directly on my desktop.">						<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/saveAsDialog2.gif&quot;&gt;"/>						</outline>					</outline>				<outline text="I then quit &lt;i&gt;Radio for Salon&lt;/i&gt;, and checked that I had a &lt;b&gt;serverCapabilities&lt;/b&gt; file on my desktop."/>				</outline>			<outline text="It was time to launch my &lt;i&gt;regular&lt;/i&gt; copy of Radio, and brought it to the foreground.">				<outline text="I opened the Radio.root table again, by selecting the Window / Radio.root menu option."/>				<outline text="I then expanded the user.radio.prefs.passwords table, and selected the &lt;i&gt;default&lt;/i&gt; entry.">					<outline text="I copied it to the clipboard (Edit / Copy menu option), then pasted it in place (Edit / Paste menu option).">						<outline text="A dialog poped up, and I clicked the &lt;i&gt;duplicate&lt;/I&gt; button.">							<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/duplicateDialog.gif&quot;&gt;"/>							</outline>						<outline text="I now had an additional entry in the passwords table, with a name of &lt;i&gt;default #1&lt;/i&gt; and the same value as the default entry."/>						<outline text="By double-clicking on &lt;i&gt;default #1&lt;/i&gt;, I changed the entry's name to &lt;i&gt;salon&lt;/i&gt;.">							<outline text="&lt;i&gt;salon&lt;/i&gt; is the string I had updated in the &lt;b&gt;upstream.xml&lt;/b&gt; file."/>							</outline>						<outline text="By double-clicking on &lt;i&gt;salon&lt;/i&gt;'s value, I changed it to the value I had written down when checking &lt;i&gt;Radio for Salon&lt;/i&gt;'s entry. ">							<outline text="I actually pasted the value from my temporary text file."/>							</outline>						</outline>					<outline text="That took care of my password for accessing the Salon server."/>					</outline>				<outline text="Last, I selected the File / Open menu option in Radio, and opened the &lt;b&gt;serverCapabilities&lt;/b&gt; file I had saved on my desktop.">					<outline text="I just clicked OK in the 'name for imported object' dialog that followed, using the default name.">						<outline text="&lt;img src=&quot;http://radio.weblogs.com/0104487/images/my/openDialog.gif&quot;&gt;"/>						</outline>					<outline text="That took care of telling to my &lt;i&gt;regular&lt;/i&gt; copy of Radio where to store my posts on Salon's RCS server."/>					</outline>				</outline>			<outline text="My last step was to close the Radio.root window, to avoid any accidental modifications to Radio.root."/>			</outline>		<outline text="&lt;b&gt;That's it&lt;/b&gt;: I was all set at this point.">			<outline text="All I had to do then was posting an item to both the home page and the &lt;i&gt;slam in salon&lt;/i&gt; category using my&lt;i&gt; regular&lt;/i&gt; copy of Radio, and checking the &lt;a href=&quot;http://127.0.0.1:5335/system/pages/eventsLog&quot;&gt;Event Log&lt;/a&gt; page after a few minutes, to make sure the proper files were upstreamed to both &lt;b&gt;radio.xmlstoragesystem.com&lt;/b&gt; (UserLand's server) and &lt;b&gt;rcs.salon.com&lt;/b&gt; (Salon's server)."/>			</outline>		<outline text="&lt;b&gt;Step 8&lt;/b&gt;: Or so I thought...">			<outline text="A few days later, I noticed that no links were showing up anymore for &lt;b&gt;slam in salon&lt;/b&gt; on the Salon RCS server referer rankings page (http://rcs.salon.com/rcsPublic/referers?site=1048&amp;group=default)"/>			<outline text="That's because I had forgotten to modify the JavaScript bug in the &lt;i&gt;#homeTemplate.txt&lt;/i&gt; template file.">				<outline text="At the end of that file, one usually finds a macro call that looks like &amp;lt;%radio.macros.staticSiteStatsImage ()%&amp;gt;">					<outline text="This macro expands into some Javascript code that loads a 1 pixel transparent image, sending as parameter the url for the page the image is loaded into."/>					<outline text="But it doesn't account for the possibility of communication with 2 or more community servers at the same time, according to category."/>					<outline text="So what I did was replace the macro call with some direct Javascript code, such as :">						<outline text="&amp;lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&amp;gt;"/>						<outline text="var imageUrl = &quot;http://rcs.salon.com/weblogStats/count.gif&quot;;"/>						<outline text="var imageTag = &quot;&amp;lt;img src=\&quot;&quot; + imageUrl + &quot;?group=default&amp;amp;usernum=1048&amp;amp;referer=&quot; + escape (document.referrer) + &quot;\\&quot; height=\\&quot;1\\&quot; width=\\&quot;1\\&quot;&amp;gt;&quot;;"/>						<outline text="document.write (imageTag);"/>						<outline text="&amp;lt;/script&amp;gt;"/>						</outline>					<outline text="Notice that I provided &lt;i&gt;1048&lt;/i&gt; as user number - RCS's registration for &lt;b&gt;slam in salon&lt;/b&gt; - instead of &lt;i&gt;104487&lt;/i&gt; - UserLand's registration for &lt;b&gt;s l a m&lt;/b&gt;."/>					</outline>				</outline>			<outline text="With this last trick, my referer rankings page on the Salon server was back into shape."/>			<outline text="The only thing I cannot do currently, due to Radio's limitation, is notify the Salon RCS server instead of UserLand's RCS server every time I update the &lt;b&gt;slam in salon&lt;/b&gt; category.">				<outline text="With a little luck, and a little help from Jake, this might change at some point in the future."/>				</outline>			</outline>		</body>	</opml>