<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>YALD - Themes and Mods</title>
        <description>Post your themes and modifications here.</description>
        <link>http://www.yaldirectory.com/support/list.php?9</link>
        <lastBuildDate>Thu, 09 Sep 2010 01:17:26 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,341,341#msg-341</guid>
            <title>3-Column Template and index.php mod (no replies)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,341,341#msg-341</link>
            <description><![CDATA[ As Mr. Mac requested I am uploading the following files:<br />
<br />
3coltemplates/classic/directory.html<br />
3coltemplates/classic/header.html<br />
3coltemplates/classic/footer.html<br />
<br />
and<br />
<br />
index.php<br />
<br />
I did nothing to change either suggest.html or search.html<br />
<br />
To see the results, take a look at <a href="http://www.tucsonsam.com/vpx" rel="nofollow" >Virtual Postcard Exchange</a><br />
<br />
Glad you like what I did.]]></description>
            <dc:creator>tucsonsam</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Thu, 10 Jul 2008 13:02:46 -0500</pubDate>
        </item>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,263,263#msg-263</guid>
            <title>Dark-Blue Theme (7 replies)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,263,263#msg-263</link>
            <description><![CDATA[ Hi,<br />
<br />
I'm in the process of creating a new theme which has a nice simple clean layout, with a blue colour scheme.<br />
<br />
Coming soon... let me know if there's any interest in this. I've attached a screen shot.<br />
<br />
Note that his theme will have a slight mod that it will not show the link to the admin panel, or the suggest- a link page unless the visitor is logged in as an admin. If you don't want this, it will be trivial to undo it.]]></description>
            <dc:creator>sherri</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Mon, 02 Jun 2008 11:23:36 -0500</pubDate>
        </item>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,209,209#msg-209</guid>
            <title>German Classic Theme [YALD v2.4] (1 reply)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,209,209#msg-209</link>
            <description><![CDATA[ Here is the German translation of the classic theme.]]></description>
            <dc:creator>high-heel</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Thu, 15 May 2008 18:55:42 -0500</pubDate>
        </item>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,188,188#msg-188</guid>
            <title>Shorten display URLs (no replies)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,188,188#msg-188</link>
            <description><![CDATA[ I expect to eventually incorporate this into the YALD codebase, but here is the modification for now. This will cause your directory to only display a link preview instead of the entire link.<br />
<br />
I.E, instead of example.com/this_page/waljrhejrh2lhr2hrk/elwrjhwekjrw, it would be more like example.com/this_page...elwrjhwekjrw. If you want to have more control over the width of your page, you should probably make this modification.<br />
<br />
First, add the following to inc/functions.php on a new line at the bottom before ?&gt;:<br />
<br />
<pre class="bbcode">function url_preview($ret){
	$maxlength = 50;
	$thelength=strlen($ret);
	if($thelength &gt; $maxlength){
		$delchars=$thelength-$maxlength;
		$firsthalf = round($thelength/2-$delchars/2);
		$sechalf = round($thelength/2+$delchars/2);
		$ret = substr($ret,0,$firsthalf) . &quot;...&quot; . substr($ret,$sechalf,$thelength);
	}
	return $ret;
}</pre>
<br />
The next modification is also in functions.php.<br />
<br />
On line 503 (yald version 2.4), replace <br />
<br />
<pre class="bbcode">$links[] = array('id'=&gt;$row['id'],'linkurl'=&gt;$url,'url'=&gt;$row['url'],'name'=&gt;$row['name'],'description'=&gt;$row['description']);</pre>
<br />
with<br />
<br />
<pre class="bbcode">$links[] = array('id'=&gt;$row['id'],'linkurl'=&gt;$url,'url'=&gt;url_preview($row['url']),'name'=&gt;$row['name'],'description'=&gt;$row['description']);</pre>]]></description>
            <dc:creator>newbie455</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Tue, 01 Apr 2008 19:28:07 -0500</pubDate>
        </item>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,122,122#msg-122</guid>
            <title>modified submission form- count characters remaining (7 replies)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,122,122#msg-122</link>
            <description><![CDATA[ I made a small addition and change to the suggest a link page that will show how many characters are remaining for the description field.<br />
<br />
Added the following as /inc/charcount.js:<br />
<br />
-----START HERE-----<br />
//shamelessly stolen from: [<a href="http://www.reconn.us/" rel="nofollow" >www.reconn.us</a>] - Count Words Left script<br />
<br />
// function parameters are: field - the string field, count - the field for remaining characters  number and max - the maximum number of characters<br />
   function CountLeft(field, count, max) {<br />
// if the length of the string in the input field is greater than the max value, trim it<br />
    if (field.value.length &gt; max)<br />
     field.value = field.value.substring(0, max);<br />
    else<br />
    // calculate the remaining characters<br />
     count.value = max - field.value.length;<br />
  }<br />
-----END HERE-----<br />
<br />
then modified /templates/[templatename]/header by adding:<br />
<br />
&lt;script src=&quot;/inc/charcount.js&quot;&gt;&lt;/script&gt;<br />
just before the &lt;/head&gt; tag.<br />
<br />
finally, modified /templates/templatename/suggest.html:<br />
<br />
    &lt;td&gt;Description:&lt;/td&gt;<br />
    &lt;td&gt;&lt;textarea name=&quot;description&quot; cols=&quot;30&quot; rows=&quot;4&quot; onKeyDown=&quot;CountLeft(this.form.description,this.form.left,&lt;!--{$description_length}--&gt;);&quot; onKeyUp=&quot;CountLeft(this.form.description,this.form.left,&lt;!--{$description_length}--&gt;);&quot;&gt;&lt;!--{$description_value}--&gt;&lt;/textarea&gt; &lt;input readonly type=&quot;text&quot; name=&quot;left&quot; size=3 maxlengh=3 value=&quot;&lt;!--{$description_length}--&gt;&quot;&gt; chars&lt;/td&gt;<br />
<br />
And that's it!  Hope someone else finds this useful, and maybe it will be included in the next release...?!<br />
<br />
PS: dadblameit...where the smiley face is  should be a closeparen!]]></description>
            <dc:creator>racooper</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Thu, 19 Jun 2008 10:26:52 -0500</pubDate>
        </item>
        <item>
            <guid>http://www.yaldirectory.com/support/read.php?9,5,5#msg-5</guid>
            <title>Themes (no replies)</title>
            <link>http://www.yaldirectory.com/support/read.php?9,5,5#msg-5</link>
            <description><![CDATA[ This forum is for posting themes you have made so that other people here can use them. If you post a theme, please make it available as a .zip archive. Do NOT ever copy theme code from other websites. For help making themes, post in the general support forum.<br />
<br />
Best of luck.]]></description>
            <dc:creator>newbie455</dc:creator>
            <category>Themes and Mods</category>
            <pubDate>Thu, 19 Jul 2007 02:06:51 -0500</pubDate>
        </item>
    </channel>
</rss>
