<?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/"
	>

<channel>
	<title>KAV Design Blog</title>
	<atom:link href="http://kavdesign.net/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://kavdesign.net/wordpress</link>
	<description>Here you could get web development news and some more info about our team members.</description>
	<lastBuildDate>Tue, 09 Mar 2010 12:16:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to redirect your-site.com to www.your-site.com</title>
		<link>http://kavdesign.net/wordpress/posts/233</link>
		<comments>http://kavdesign.net/wordpress/posts/233#comments</comments>
		<pubDate>Mon, 01 Mar 2010 21:01:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Програмиране]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=233</guid>
		<description><![CDATA[Enter this code in your .htaccess file after the
RewriteEngine On line:
RewriteCond %{HTTP_HOST} ^your-site\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?blablabla\.bg[NC]
RewriteRule (.*) http://www.your-site.com/$1 [L,R=301]
Redirect 301 /home http://www.your-site.com/
]]></description>
			<content:encoded><![CDATA[<p>Enter this code in your .htaccess file after the</p>
<p>RewriteEngine On line:</p>
<p>RewriteCond %{HTTP_HOST} ^your-site\.com [NC,OR]<br />
RewriteCond %{HTTP_HOST} ^(www\.)?blablabla\.bg[NC]<br />
RewriteRule (.*) http://www.your-site.com/$1 [L,R=301]</p>
<p>Redirect 301 /home http://www.your-site.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/233/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a 404 redirect page in Joomla</title>
		<link>http://kavdesign.net/wordpress/posts/229</link>
		<comments>http://kavdesign.net/wordpress/posts/229#comments</comments>
		<pubDate>Mon, 01 Mar 2010 20:49:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Програмиране]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=229</guid>
		<description><![CDATA[Copy the error.php file from your-site/templates/system to your template main directory.
Then just open the error.php file from your Joomla template and edit it.
If you want to redirect to a sitemap on your site  for example use this code at the top of the error.php file before everything in the file write:
&#60;?php
defined( &#8216;_JEXEC&#8217; ) or die( [...]]]></description>
			<content:encoded><![CDATA[<p>Copy the error.php file from your-site/templates/system to your template main directory.</p>
<p>Then just open the error.php file from your Joomla template and edit it.</p>
<p>If you want to redirect to a sitemap on your site  for example use this code at the top of the error.php file before everything in the file write:</p>
<p>&lt;?php</p>
<p>defined( &#8216;_JEXEC&#8217; ) or die( &#8216;Restricted access&#8217; );<br />
if (($this-&gt;error-&gt;code) == &#8216;404&#8242;) {<br />
header(&#8217;Location: http://www.yoursite.com/sitemap&#8217;);<br />
exit;<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/229/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get page title for Joomla 1.5</title>
		<link>http://kavdesign.net/wordpress/posts/224</link>
		<comments>http://kavdesign.net/wordpress/posts/224#comments</comments>
		<pubDate>Fri, 20 Nov 2009 11:27:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Програмиране]]></category>
		<category><![CDATA[Item title]]></category>
		<category><![CDATA[Joomla 1.5]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=224</guid>
		<description><![CDATA[This is the code:
&#60;?php

$mydoc =&#38; JFactory::getDocument();
$mytitle = $mydoc-&#62;getTitle();

?&#62;
]]></description>
			<content:encoded><![CDATA[<p>This is the code:</p>
<pre><span style="color: #000000; font-weight: bold;">&lt;?php</span>

<span style="color: #0000ff;">$mydoc</span> =&amp; JFactory::<span style="color: #006600;">getDocument</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;
<span style="color: #0000ff;">$mytitle</span> = <span style="color: #0000ff;">$mydoc</span>-&gt;<span style="color: #006600;">getTitle</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;

<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to style the Joomla search module and component?</title>
		<link>http://kavdesign.net/wordpress/posts/220</link>
		<comments>http://kavdesign.net/wordpress/posts/220#comments</comments>
		<pubDate>Sun, 08 Nov 2009 19:41:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Програмиране]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=220</guid>
		<description><![CDATA[If  you want to change the look of the Joomla search module and Joomla search component:
Copy the file:
    /components/com_search/views/search/tmpl/default.php
to
    /templates/my_template/html/com_search/search/default.php
Now make a few changes in that file and refresh your site.
In a similar fashion, you can also override the Search Module layout file. Copy the file:
   [...]]]></description>
			<content:encoded><![CDATA[<p>If  you want to change the look of the Joomla search module and Joomla search component:</p>
<p>Copy the file:</p>
<p>    /components/com_search/views/search/tmpl/default.php</p>
<p>to</p>
<p>    /templates/my_template/html/com_search/search/default.php</p>
<p>Now make a few changes in that file and refresh your site.</p>
<p>In a similar fashion, you can also override the Search Module layout file. Copy the file:</p>
<p>    /modules/mod_search/tmpl/default.php</p>
<p>to</p>
<p>    /templates/my_template/html/mod_search/default.php</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/220/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add additional field in the Joomla article administrator page</title>
		<link>http://kavdesign.net/wordpress/posts/208</link>
		<comments>http://kavdesign.net/wordpress/posts/208#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:51:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Програмиране]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=208</guid>
		<description><![CDATA[To add custom article submission field:
Files needed to edit:
i.      jos_content table in joomla database
ii.     root/components/com_content/views/article/tmpl/default.php
iii.    root/components/com_content/views/article/tmpl/form.php
iv.     root/administrator/components/com_content/models/article.xml
v.      root/administrator/components/admin.content.html.php
vi.     root/administrator/components/config.xml
vii.    root/libraries/joomla/database/table/content.php
1.      jos_content table update
1.1.    Open up phpMyAdmin or your respective mysql database editor
1.1.i.  If you’re working on your local server
1.1.i.a.   [...]]]></description>
			<content:encoded><![CDATA[<p>To add custom article submission field:</p>
<p>Files needed to edit:<br />
i.      jos_content table in joomla database<br />
ii.     root/components/com_content/views/article/tmpl/default.php<br />
iii.    root/components/com_content/views/article/tmpl/form.php<br />
iv.     root/administrator/components/com_content/models/article.xml<br />
v.      root/administrator/components/admin.content.html.php<br />
vi.     root/administrator/components/config.xml<br />
vii.    root/libraries/joomla/database/table/content.php<span id="more-208"></span></p>
<p>1.      jos_content table update</p>
<p>1.1.    Open up phpMyAdmin or your respective mysql database editor<br />
1.1.i.  If you’re working on your local server<br />
1.1.i.a.        Copy this link in you’re browser window <a rel="nofollow" href="http://localhost/phpmyadmin/index.php" target="_blank">http://localhost/phpmyadmin/index.php</a><br />
1.1.i.b.        If you have a lamp set up with xampp open the control panel a<br />
click on admin on the apache row and click on phpMyAdmin<br />
1.2.    Choose the respective database for the needed Joomla installation<br />
1.3.    Open the jos_content table<br />
1.4.    Click on structure<br />
1.5.    Scroll add form and add rows with the name of the custom fields<br />
you will be adding</p>
<p>2.      default.php<br />
2.1.    Open “root/components/com_content/views/article/tmpl/default.php”<br />
2.2.    Scroll to line 25 and insert the following code replace<br />
“custom_field” with the name of its corresponding row in the<br />
jos_content table:</p>
<p>&lt;?php echo $this-&gt;escape($this-&gt;article-&gt; custom_field); ?&gt;</p>
<p>2.3.    If you will be adding parameters to the field (i.e.: show<br />
custom_field, link custom_field, etc..) use the following code:</p>
<p>&lt;?php if ($this-&gt;params-&gt;get(&#8217;show_ custom_field &#8216;)) : ?&gt;</p>
<p>&lt;sub width=&#8220;100%&#8220;&gt;<br />
&lt;?php if ($this-&gt;params-&gt;get(&#8217;link_ custom_field &#8216;) &amp;&amp; $this-</p>
<div id="qhide_484408" style="display: block;">&gt;article-&gt;readmore_link != &#8220;) : ?&gt;</div>
<p>&lt;a href=&#8220;&lt;?php echo $this-&gt;article-&gt;readmore_link; ?&gt;&#8220;<br />
&gt;<br />
&lt;?php echo $this-&gt;escape($this-&gt;article-&gt; custom_field); ?&gt;&lt;/a&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;?php echo $this-&gt;escape($this-&gt;article-&gt; custom_field); ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/sub&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>3.      form.php<br />
3.1.    Let’s add our field to the front end submission form!<br />
3.2.    Open root/components/com_content/views/article/tmpl/form.php<br />
3.3.    Scroll to line 79<br />
3.4.    Insert &lt;label&gt; and &lt;input&gt; fields<br />
3.4.i.  Label Code:</p>
<p>&lt;label for=&#8220;title&#8220;&gt;<br />
&lt;?php echo JText::_( &#8216;custom_field &#8216; ); ?&gt;:<br />
&lt;/label&gt;</p>
<p>3.4.i.a.        Replace “custom_field” with the text you would like to appear<br />
on the submission form screen.<br />
3.4.i.b.        This code renders the label text next to the field box<br />
3.4.ii. Input Code</p>
<p>&lt;input type=&#8220;text&#8220; id=&#8220; custom_field &#8220; name=&#8220;<br />
custom_field &#8220; size=&#8220;50&#8243; maxlength=&#8220;100&#8243; value=&#8220;&lt;?php echo $this-</p>
<div id="qhide_484409" style="display: block;">&gt;escape($this-&gt;article-&gt; custom_field); ?&gt;” /&gt;</div>
<p>3.4.ii.a.               Replace “custom_field” with the name of its corresponding<br />
row in the “jos_content” table<br />
3.4.ii.b.       This code will render the text field for user entry</p>
<p>4.      article.xml<br />
4.1.    Follow these intructions if you’d like to add parameters to<br />
control the visibility and/or linkability of your field. And you can<br />
disseminate these instructions to add more parameters.<br />
4.2.    Open root/administrator/components/com_content/models/article.xml<br />
4.3.    Scroll to line 27<br />
4.4.    To add a parameter to choose whether or not your field will be<br />
visible on the front page add this code:</p>
<p>&lt;param name=&#8220;show_ custom_field &#8220; type=&#8220;list&#8220; default=&#8220;" label=&#8220;Show<br />
custom_field &#8220; description=&#8220;Show/Hide the articles subtitle&#8220;&gt;<br />
&lt;option value=&#8220;"&gt;Use Global&lt;/option&gt;<br />
&lt;option value=&#8220;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8220;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;</p>
<p>4.4.i.  Replace “custom_field” with the name its corresponding row in<br />
the jos_content table<br />
4.4.ii. The “name” field must match the variable used in the<br />
default.php to evaluate whether or not this parameter is set.</p>
<p>To add a parameter to make the field linkable to the current article<br />
insert the following code:</p>
<p>&lt;param name=&#8220;link_ custom_field&#8220; type=&#8220;list&#8220; default=&#8220;" label=&#8220;Linked<br />
custom_field &#8220; description=&#8220;TIPIFYESTITLECONTENTITEMS&#8220;&gt;<br />
&lt;option value=&#8220;"&gt;Use Global&lt;/option&gt;<br />
&lt;option value=&#8220;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8220;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;</p>
<p>4.4.iii.        Replace “custom_field” with the name its corresponding row in<br />
the jos_content table<br />
4.4.iv. The “name” field must match the variable used in the<br />
default.php to evaluate whether or not this parameter is set.<br />
4.5.    Both above codes render in the article editing view in the<br />
administrator Backend</p>
<p>5.      admin.content.html.php<br />
5.1.    Open root/administrator/components/admin.content.html.php<br />
5.2.    Scroll to line 797 (Just after the &lt;tr&gt; that contains &lt;?php echo<br />
$lists[‘state’]; ?&gt;<br />
5.3.    Insert the following code:</p>
<p>&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;label for=&#8220; custom_field &#8222;&gt;<br />
&lt;?php echo JText::_( &#8216; custom_field &#8216; ); ?&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input type=&#8220;text&#8220; name=&#8220; custom_field &#8220; id=&#8220;<br />
custom_field &#8220; size=&#8220;40&#8243; maxlength=&#8220;255&#8243; value=&#8220;&lt;?php echo $row-&gt;<br />
custom_field; ?&gt;&#8220; /&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>5.3.i.  Replace “custom_field” with the label used for its<br />
corresponding row in the jos_content table.<br />
5.3.ii. This code will create a new row just below the “title” field<br />
on the article submission form in the administrator backend.</p>
<p>6.      config.xml<br />
6.1.    The following will add parameters to the article manager page<br />
parameter list<br />
6.2.    Open “root/administrator/components/config.xml”<br />
6.3.    Scroll to line 16 and insert:</p>
<p>&lt;param name=&#8220;show_subtitle&#8220; type=&#8220;radio&#8220; default=&#8220;1&#8243; label=&#8220;Show<br />
Article SubTitle&#8220; description=&#8220;Show/Hide the articles subtitle&#8220;&gt;<br />
&lt;option value=&#8220;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8220;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;<br />
&lt;param name=&#8220;link_subtitles&#8220; type=&#8220;radio&#8220; default=&#8220;1&#8243; label=&#8220;Linked<br />
SubTitles&#8220; description=&#8220;TIPIFYESTITLECONTENTITEMS&#8220;&gt;<br />
&lt;option value=&#8220;0&#8243;&gt;No&lt;/option&gt;<br />
&lt;option value=&#8220;1&#8243;&gt;Yes&lt;/option&gt;<br />
&lt;/param&gt;</p>
<p>6.3.i.  The top &lt;param&gt; is the parameter defining whether the field<br />
will be visible on the front end<br />
6.3.ii. The bottom &lt;param&gt; defines whether the field is a link<br />
6.3.iii.        Compare with previous xml edit.</p>
<p>7.      Content.php<br />
7.1.    Open “root/libraries/joomla/database/table/content.php”<br />
7.2.    Scroll to line 33<br />
7.3.    Insert:</p>
<p>var $subtitle   = null;<br />
/** @var string */</p>
<p>8.      Extra notes<br />
8.1.    Steps 1,2,3, and 5 must be completed for a field to appear in the<br />
submission forms(both front and back), and render on the front end.<br />
8.2.    Steps 4 and 6 are parameter creations that add extra control over<br />
the fields.<br />
8.3.    To add the custom fields to the Section and Category view add:</p>
<p>&lt;?php echo $this-&gt;escape($this-&gt;this-&gt; custom_field); ?&gt;</p>
<p>to the proper location and follow the page convention.</p>
<p>8.3.i.  Insert in section/tmpl/blog_item.php line 25<br />
8.3.ii. Add to section query compnents/com_content/models/section.php<br />
line 414<br />
8.3.iii.        “a.subtitle”<br />
8.3.iv. Add module query models/category/php line 361<br />
8.3.v.  “a.subtitle”<br />
8.4.    The parameters for section and category blog and list view can be<br />
inserted in the same manner as the article parameters above.  Find the<br />
proper xml file and add parameters for the custom field!</p>
<p>Original article by Dan &#8222;Diggler&#8220; Proczko from http://groups.google.com/group/joomlagrandrapids/browse_thread/thread/10d2610576fadab5?pli=1</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/208/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add and extra field to Jcomments</title>
		<link>http://kavdesign.net/wordpress/posts/206</link>
		<comments>http://kavdesign.net/wordpress/posts/206#comments</comments>
		<pubDate>Sat, 12 Sep 2009 19:08:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Програмиране]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=206</guid>
		<description><![CDATA[Let&#8217;s add two additional fields in the form of comments: Town (City) and AcceptTerms (I agree with the rules). the user will need to check.
Adding new fields to the table jos_jcomments 



Code: 



ALTER TABLE  jos_jcomments ADD COLUMN `town`  varchar ( 255 ) ;   and







Code: 



ALTER TABLE jos_jcomments ADD COLUMN `acceptterms` tinyint [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s add two additional fields in the form of comments: Town (City) and AcceptTerms (I agree with the rules). the user will need to check.<span id="more-206"></span></p>
<p><strong>Adding new fields to the table jos_jcomments </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code>ALTER TABLE  jos_jcomments ADD COLUMN `town`  varchar ( 255 ) ;   and</code></p>
<hr /></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code>ALTER TABLE jos_jcomments ADD COLUMN `acceptterms` tinyint (1) DEFAULT 0; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p>Jcomments.class.php open the file and add the data fields in the class JCommentsDB, for example after the following lines:</p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> var $editor  = '' ; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong>we would get like this:</strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code>var $editor ='';<br />
var $town ='';<br />
var $acceptterms =''; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong><br />
Open the file jcomments.ajax.php and after the lines: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> $comment -&gt; userid  = $my -&gt; id  ? $my -&gt; id  : 0 ; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p>add 2 more:</p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> $comment -&gt; town  = isset( $values ['town' ] )  ? $values ['town' ]  : '' ;<br />
$comment -&gt; acceptterms  = isset($values ['acceptterms'] ) ? $values ['acceptterms']:0 ; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong><br />
Open the file / tpl / default / tpl_form.php and before the lines:</strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> &lt;p&gt;&lt;textarea id= "comments-form-comment" name= "comment" cols= "65" rows= "8" tabindex= "5" &gt;&lt;/textarea&gt;&lt;/p&gt; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong>We add our new fields: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code>&lt;p&gt; &lt;input type= "text"  name= "town"  value= ""  id= "comments-form-town"  /&gt;<br />
&lt;label for = "comments-form-town" &gt;Town&lt;/label&gt; &lt;/ p&gt;</code></p>
<p>&lt;p&gt;&lt;input type= &#8222;checkbox&#8220;  name= &#8222;acceptterms&#8220;  value= &#8222;1&#8243;  id= &#8222;comments-form-acceptterms&#8220;  /&gt;<br />
&lt;label for = &#8222;comments-form-acceptterms&#8220; &gt;Accept Terms of Use&lt;/label&gt; /p&gt;</p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong>Open the file jcomments.php, we find in it the line: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> $query  = "SELECT c.id, c.object_id, c.object_group, c.userid, c.name, c.username, c.title, c.comment" </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong>and replace it with: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code><br />
$query  = "SELECT c.id, c.object_id, c.object_group, c.userid, c.name, c.username, c.title, c.comment, c.town, c.acceptterms"</code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong>This way, we add a sample of information on these fields from the database.</strong></p>
<p><strong>Now open the template file: / tpl / default / tpl_comment.php and admit after lines: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code> &lt;span class = "comment-date" &gt;&lt;?php echo date ( 'Ymd H:i' , $comment -&gt; datetime ) ; ?&gt;&lt;/span&gt; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p><strong><br />
add the the following: </strong></p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center" summary="fireboard">
<tbody>
<tr>
<td><strong>Code: </strong></td>
</tr>
<tr>
<td>
<hr /><code>&lt;span class = "comment-town" &gt;&lt;?php echo $comment -&gt; town ; ?&gt;&lt;/span&gt;<br />
&lt;span class = "comment-accept" &gt;&lt;?php echo $comment -&gt; acceptterms ? 'Accepted' : 'Not accepted' ; ?&gt;&lt;/span&gt; </code></p>
<hr /></td>
</tr>
</tbody>
</table>
<p>You are now done go and see if it works.<br />
Note if it does not work first time round check all your code again step by step check for spaces that should not be there ect</p>
<p>After this add the field to the admin list:</p>
<p>Open admin.jcomments.html.php</p>
<p>Find this lines</p>
<p>&lt;?php<br />
if ($row-&gt;email != &#8220;) {<br />
?&gt;<br />
&lt;tr valign=&#8220;top&#8220; align=&#8220;left&#8220;&gt;<br />
&lt;td&gt;&lt;?php echo JText::_(&#8217;A_COMMENT_EMAIL&#8217;); ?&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&#8220;text&#8220; size=&#8220;35&#8243; name=&#8220;email&#8220; value=&#8220;&lt;?php echo $row-&gt;email; ?&gt;&#8220; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>and add this lines before them:</p>
<p>&lt;tr valign=&#8220;top&#8220; align=&#8220;left&#8220;&gt;<br />
&lt;td&gt;&lt;?php echo JText::_(&#8217;A_COMMENT_TELEPHONE&#8217;); ?&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&#8220;text&#8220; size=&#8220;35&#8243; name=&#8220;email&#8220; value=&#8220;&lt;?php echo $row-&gt;telephone; ?&gt;&#8220; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>That&#8217;s it.</p>
<p>The original post is from:</p>
<p>http://www.joomlapro.co.uk/forum/components/add-and-extra-field-to-jcomments.html</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Имаме нов сайт :)</title>
		<link>http://kavdesign.net/wordpress/posts/185</link>
		<comments>http://kavdesign.net/wordpress/posts/185#comments</comments>
		<pubDate>Mon, 10 Aug 2009 20:44:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Дизайн]]></category>
		<category><![CDATA[Екип]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[kavdesign]]></category>
		<category><![CDATA[new website]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=185</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_184" class="wp-caption alignnone" style="width: 510px"><a href="http://kavdesign.net"><img class="size-full wp-image-184" title="kavdesign-new" src="http://kavdesign.net/wordpress/wp-content/uploads/2009/08/kavdesign-new.jpg" alt="new website" width="500" height="468" /></a><p class="wp-caption-text">new website</p></div>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/185/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Как да разрешим регистрация с еднакви email-и в Joomla 1.5</title>
		<link>http://kavdesign.net/wordpress/posts/182</link>
		<comments>http://kavdesign.net/wordpress/posts/182#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:19:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Програмиране]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[unique email]]></category>
		<category><![CDATA[user registration]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=182</guid>
		<description><![CDATA[Отворете
your-site/libraries/joomla/database/table/user.php
намерете тези редове:
 $xid = intval( $this-&#62;_db-&#62;loadResult() );
if ($xid &#38;&#38; $xid != intval( $this-&#62;id )) {
$this-&#62;setError( JText::_( &#8216;WARNREG_EMAIL_INUSE&#8217; ) );
return false;
}
и ги коментирайте.
]]></description>
			<content:encoded><![CDATA[<p>Отворете</p>
<p>your-site/libraries/joomla/database/table/user.php</p>
<p>намерете тези редове:</p>
<p><em> $xid = intval( $this-&gt;_db-&gt;loadResult() );<br />
if ($xid &amp;&amp; $xid != intval( $this-&gt;id )) {<br />
$this-&gt;setError( JText::_( &#8216;WARNREG_EMAIL_INUSE&#8217; ) );<br />
return false;<br />
}</em></p>
<p>и ги коментирайте.</p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/182/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Банер за партитата на &#8222;Tropical Beach&#8220; &#8211; Лозенец</title>
		<link>http://kavdesign.net/wordpress/posts/172</link>
		<comments>http://kavdesign.net/wordpress/posts/172#comments</comments>
		<pubDate>Tue, 23 Jun 2009 00:19:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Дизайн]]></category>
		<category><![CDATA[flash banner]]></category>
		<category><![CDATA[Groovy Sessions]]></category>
		<category><![CDATA[lozenetc]]></category>
		<category><![CDATA[mo'horizons]]></category>
		<category><![CDATA[tropical beach]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=172</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="250" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://kavdesign.net/wordpress/stuff/banners/tropical-beach/tropical-beach.swf" /><embed type="application/x-shockwave-flash" width="300" height="250" src="http://kavdesign.net/wordpress/stuff/banners/tropical-beach/tropical-beach.swf"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack for a problem with the search module in Joomla 1.5.11</title>
		<link>http://kavdesign.net/wordpress/posts/168</link>
		<comments>http://kavdesign.net/wordpress/posts/168#comments</comments>
		<pubDate>Mon, 22 Jun 2009 23:04:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Други]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[joomla 1.5.11]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://kavdesign.net/wordpress/?p=168</guid>
		<description><![CDATA[If you don&#8217;t want all your search results to open on the front page of your website just use this hack. After it they will open on a separate page.
Just open your-site/components/com_search/controller.php
Find this part:
// No need to guess Itemid if it&#8217;s already present in the URL
if (JRequest::getInt(&#8217;Itemid&#8217;) &#62; 0) {
$post['Itemid'] = JRequest::getInt(&#8217;Itemid&#8217;);
} else {
// set [...]]]></description>
			<content:encoded><![CDATA[<p><!--:bg-->If you don&#8217;t want all your search results to open on the front page of your website just use this hack. After it they will open on a separate page.</p>
<p>Just open<strong> your-site/components/com_search/controller.php</strong></p>
<p><strong>Find this part:</strong><strong><strong><!--:--><span id="more-168"></span><!--:bg--></strong></strong></p>
<p>// No need to guess Itemid if it&#8217;s already present in the URL<br />
if (JRequest::getInt(&#8217;Itemid&#8217;) &gt; 0) {<br />
$post['Itemid'] = JRequest::getInt(&#8217;Itemid&#8217;);<br />
} else {</p>
<p>// set Itemid id for links<br />
$menu = &amp;JSite::getMenu();<br />
$items    = $menu-&gt;getItems(&#8217;link&#8217;, &#8216;index.php?option=com_search&amp;view=search&#8217;);</p>
<p>if(isset($items[0])) {<br />
$post['Itemid'] = $items[0]-&gt;id;<br />
}</p>
<p>}</p>
<p><strong>Change it to this:</strong></p>
<p>// set Itemid id for links<br />
$menu = &amp;JSite::getMenu();<br />
$items    = $menu-&gt;getItems(&#8217;link&#8217;, &#8216;index.php?option=com_search&amp;view=search&#8217;);</p>
<p>if(isset($items[0])) {<br />
$post['Itemid'] = $items[0]-&gt;id;<br />
}</p>
<p><!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://kavdesign.net/wordpress/posts/168/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
