<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Fix duplicate meta description errors in sNews with this quick hack</title>
<link>http://www.mdj.us/</link>
<description>Fix sNews CMS meta description duplicate error with this quick and easy hack in the title function.</description>
<language>en</language>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1380</link>
<pubDate>Mon, 18 Apr 2011 03:34:45 +0000</pubDate>
<content:encoded><![CDATA[Gerry,<br />
<br />
That's just the default way sNews does it. It's all in the above mentioned title function if you want to re-arrange things, it shouldn't take too much effort I wouldn't think.<br />
<br />
--Matt]]></content:encoded>
</item>
<item>
<title>Gerry</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1379</link>
<pubDate>Sat, 16 Apr 2011 23:40:24 +0000</pubDate>
<content:encoded><![CDATA[Thanks, Matt. It's working perfectly meanwhile, as I am also using the &quot;SEO search mod&quot;. Just one thing: is it me or why reads the title &quot;search term -- site title&quot; instead of &quot;search term -Search- site title&quot;? I know this is actually the wrong article to comment on this, but it is not entirely off-topic, as we are concerned about SEO, or we would not talk about meta description errors in the first place.<br />
Cheers, Gerry]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1377</link>
<pubDate>Sat, 16 Apr 2011 21:45:56 +0000</pubDate>
<content:encoded><![CDATA[Hi Gerry,<br />
<br />
Yes, the above only works if you're using the &quot;SEO search mod&quot;.<br />
<br />
You could do it for the default sNews install by checking for the search_query variable. Something like;<br />
<br />
if ($_POST['search_query']) {<br />
    $_DESCR = &quot;Searching results for all items containing the term(s); &quot;.cleanXSS($_POST['search_query']);<br />
}]]></content:encoded>
</item>
<item>
<title>Gerry</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1374</link>
<pubDate>Tue, 12 Apr 2011 14:51:27 +0000</pubDate>
<content:encoded><![CDATA[Matt, this is one useful mod; there's one thing I don't really get though. Even though you provide a description for all of the cases, search included, the description for search results remains unchanged (the default site description that is). It's not to do with the page title (to fix that the SEO search mod is needed), I'm talking about the page description, which should actually read: &quot;Searching results for all items containing the term(s); [here term]&quot;, but it doesn't. Pertinent information: I do use the tags mod (which works great, also with page titles, as promised), but not (yet) the SEO search mod.<br />
Cheers, Gerry]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1215</link>
<pubDate>Sun, 25 Jul 2010 00:16:56 +0000</pubDate>
<content:encoded><![CDATA[Bintang,<br />
<br />
You need to re-direct the url, try this;<br />
<br />
<a href="http://www.mdj.us/web-development/force-the-trailing-slash-on-your-urls-with-modrewite-and-htaccess/" rel="nofollow">http://www.mdj.us/web-development/force-the-trailing-slash-on-your-urls-with-modrewite-and-htaccess/</a>]]></content:encoded>
</item>
<item>
<title>Bintang Sembilan</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1210</link>
<pubDate>Thu, 22 Jul 2010 14:00:01 +0000</pubDate>
<content:encoded><![CDATA[Matt, thanks for your modd. I have apply it to my snewscms, but i have a problem with url. I have duplicate title tag for example:<br />
<a href="http://teknologi.bintang9.co.cc/web/funny-logo-search-engine/" rel="nofollow">http://teknologi.bintang9.co.cc/web/funny-logo-search-engine/</a><br />
<a href="http://teknologi.bintang9.co.cc/web/funny-logo-search-engine" rel="nofollow">http://teknologi.bintang9.co.cc/web/funny-logo-search-engine</a><br />
<br />
How can prevent it?]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1029</link>
<pubDate>Sat, 27 Mar 2010 03:14:15 +0000</pubDate>
<content:encoded><![CDATA[Tina, give this a try;<br />
<a href="http://www.mdj.us/snews-cms/hacks-mods/add-meta-keywords-to-your-categories-in-snews-17/" rel="nofollow">http://www.mdj.us/snews-cms/hacks-mods/add-meta-keywords-to-your-categories-in-snews-17/</a><br />
<br />
And thanks for the kind words, I do appreciate it :)]]></content:encoded>
</item>
<item>
<title>Tina</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1025</link>
<pubDate>Wed, 24 Mar 2010 23:12:18 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
yes, I checked the orignal 1.7 again and as you say it's not implemented. I suppose I got confused. I have another hack implement which allows me to see the contact, sitemap, archive pages as &quot;Pages&quot; which I can thus edit. Thus, I can define META descs and META keywords for those. However, this is not the case for categories. I realise you mod above does more than just adding META Desc for those originally hard-coded pages.<br />
<br />
It would be great, if you find the time to publish your mod for category META Keywords :)<br />
<br />
At this point, I'd like to say ... Thank you very much for your great page and the hard work you have put into optimizing snews. Your hacks and mods have helped me a lot (I currently use the search engine mod, the archive mod etc.) and make it real fun to work with snews. Thank you so much for this :)]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1024</link>
<pubDate>Wed, 24 Mar 2010 14:23:39 +0000</pubDate>
<content:encoded><![CDATA[OK, I just did this mod on my test site, works fine, not too hard, I'm going to test it for a bit, then I'll implement it on my own site and see about writing up a tutorial.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/fix-duplicate-meta-description-errors-in-snews-with-this-quick-hack/#comment-1023</link>
<pubDate>Tue, 23 Mar 2010 23:18:47 +0000</pubDate>
<content:encoded><![CDATA[Hi Tina,<br />
<br />
I don't believe this has been integrated into sNews 1.7 at all, I have a test site running the latest 1.7 release (Update 1.5) and all the hard-coded pages (sitemap, contact,etc) still use the default site description.<br />
<br />
As to my &quot;fix&quot; for categories keywords/descriptions... I haven't really fixed much :/<br />
<br />
The categories by default use the description for each category and insert that as the meta description.<br />
<br />
My category meta keywords are still the same default &quot;site setting&quot; keywords.<br />
<br />
You are correct though, there needs to be a proper meta keywords field added to the DB for each category. If I get around to fixing this, I'll certainly post the how-to.]]></content:encoded>
</item>
</channel>
</rss>

