<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>chirale &#187; link</title>
	<atom:link href="http://chirale.wordpress.com/tag/link/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirale.wordpress.com</link>
	<description>watashi no yume...</description>
	<lastBuildDate>Mon, 07 Dec 2009 08:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chirale.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/913d290334c442dca8a7360d648ac1bd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>chirale &#187; link</title>
		<link>http://chirale.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chirale.wordpress.com/osd.xml" title="chirale" />
		<item>
		<title>Different links for authenticated and anonymous users in Drupal: drupal_goto</title>
		<link>http://chirale.wordpress.com/2008/09/03/different-links-for-authenticated-and-anonymous-users-in-drupal-drupal_goto/</link>
		<comments>http://chirale.wordpress.com/2008/09/03/different-links-for-authenticated-and-anonymous-users-in-drupal-drupal_goto/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 08:04:53 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[anonymous]]></category>
		<category><![CDATA[authenticated]]></category>
		<category><![CDATA[conditional link]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal_goto]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[login or register]]></category>
		<category><![CDATA[t]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=173</guid>
		<description><![CDATA[The drupal_goto() drupal function (all 4.x-7.x) can be useful in many situations, here a simple example to place in your template.php theme file.
function conditional_user_goto() {
	$output = '';
	global $user;
	if (in_array('authenticated user', array_values($user-&#62;roles))) {
		$path = 'user/' . $user-&#62;uid . '/some/user/based/link';
		drupal_goto($path);
	}
	else {
		$output = t('&#60;a href="@login"&#62;Login&#60;/a&#62; or &#60;a href="@register"&#62;register&#60;/a&#62; to Some User Based Action.',
      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=173&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://api.drupal.org/api/function/drupal_goto/5" target="_blank">drupal_goto()</a> drupal function (all 4.x-7.x) can be useful in many situations, here a simple example to place in your template.php theme file.</p>
<pre><code>function conditional_user_goto() {
	$output = '';
	global $user;
	if (in_array('authenticated user', array_values($user-&gt;roles))) {
		$path = 'user/' . $user-&gt;uid . '/some/user/based/link';
		drupal_goto($path);
	}
	else {
		$output = t('&lt;a href="@login"&gt;Login&lt;/a&gt; or &lt;a href="@register"&gt;register&lt;/a&gt; to Some User Based Action.',
            array('@login' =&gt; url('user/login', 'destination=alerting'),
            '@register' =&gt; url('user/register', 'destination=alerting')));
	}
	return $output;
}</code></pre>
<p>Using <strong>print conditional_user_goto();</strong> somewhere in your code (e.g. within a PHP block) will display a link to some user page (e.g. user page itself, tracks or <a href="http://drupal.org/project/subscriptions" target="_blank">subscription</a> interface) to authenticated users, and a <a href="http://api.drupal.org/api/function/t/5" target="_blank">translatable</a> &#8220;Login or register&#8221; message to anonymous users (I take this code from <a href="http://drupal.org/project/job_posting" target="_blank">Job Posting</a> module).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chirale.wordpress.com/173/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chirale.wordpress.com/173/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=173&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/09/03/different-links-for-authenticated-and-anonymous-users-in-drupal-drupal_goto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Image rollover on primary links Drupal howto</title>
		<link>http://chirale.wordpress.com/2008/04/18/image-rollover-on-primary-links-drupal-howto/</link>
		<comments>http://chirale.wordpress.com/2008/04/18/image-rollover-on-primary-links-drupal-howto/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 14:31:27 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[rollover]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=61</guid>
		<description><![CDATA[Tested on:

Drupal 5.x
Zen theme
Requirements: JQuery Update

Do you remember my Customize links menu in Drupal mini-howto? You can use it to change text links in image links renaming and customizing theme_links function (from theme.inc) and adding it to your template.php.
On your template.php file, you have something like this:
$imglink_path = path_to_theme() . &#8220;/my_zen_subtheme/menu/&#8221; . str_replace(&#8221; &#8220;,&#8221;_&#8221;,strtolower($link['title']) . [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=61&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tested on:</p>
<ul>
<li>Drupal 5.x</li>
<li>Zen theme</li>
<li>Requirements: <a href="http://drupal.org/project/jquery_update">JQuery Update</a></li>
</ul>
<p>Do you remember my <a title="Permanent Link to " rel="bookmark" href="../2008/02/29/customize-links-menu-in-drupal/">Customize links menu in Drupal</a> mini-howto? You can use it to change text links in image links renaming and customizing theme_links function (from theme.inc) and adding it to your template.php.</p>
<p>On your template.php file, you have something like this:<br />
$imglink_path = path_to_theme() . &#8220;/my_zen_subtheme/menu/&#8221; . str_replace(&#8221; &#8220;,&#8221;_&#8221;,strtolower($link['title']) . $imgsuffix . &#8220;.gif&#8221;);<br />
$imglink = theme_image($imglink_path, $alt = $link['title'], $title = $link['title'], $attributes = NULL, $getsize = FALSE);<br />
if(empty($imglink))<br />
$imglink = $link['title'];</p>
<ol>
<li>Search for images in a defined folder by link title: if link title is &#8220;My Nice Link&#8221;, a &#8220;my_nice_link.gif&#8221; image is used.</li>
<li>Generate HTML code for &#8220;my_nice_link.gif&#8221;. Note: getsize is set to FALSE to avoid errors on rollover</li>
<li>If Drupal cannot generate HTML code for image (e.g. file not found) link is rendered as plain text</li>
</ol>
<p>If you want to add a rollover effect on primary links images, you have to add this JQuery javascript code on page.tpl.php:<br />
<code><br />
&lt;script type="text/javascript"&gt;// &lt;![CDATA[<br />
$(document).ready(function()<br />
{<br />
$("#primary a").mouseover(function ()<br />
{<br />
$rollsrc = $(this).children("img").attr("src");<br />
$matches = $rollsrc.match(/_active.gif$/);<br />
if (!$matches) {<br />
$rollON = $rollsrc.replace(/.gif$/,"_active.gif");<br />
$(this).children("img").attr("src", $rollON);<br />
}<br />
});</code></p>
<p>$("#primary a").mouseout(function ()<br />
{<br />
$(this).children("img").attr("src", $rollsrc);<br />
});<br />
});<br />
// ]]&gt;&lt;/script&gt;</p>
<p>Where "_active" is the rollover image.</p>
<p>See also:</p>
<ul>
<li><a href="http://www.atlantajones.com/2007/09/27/easy-reusable-image-rollovers-with-jquery/" target="_blank">Easy, Reusable Image Rollovers with jQuery</a> (JQuery rollover tips used for this mini-howto)</li>
</ul>
<p><strong>Update</strong>:</p>
<ul>
<li>A module for Drupal 6.x named <a href="http://drupalmodules.com/module/signwriter">Signwriter</a> <a href="http://drupal.org/node/336075">allows to generate text from images</a> even for menus.</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chirale.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chirale.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=61&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/04/18/image-rollover-on-primary-links-drupal-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
	</channel>
</rss>