1
wodnick
Simple tinyd SEO trick
  • 2007/1/21 18:12

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi.

For one of my site I have to find a way to change and manage by hand all SEO data inside page header (title, keywords, descriptions).
This site is very static, so almost all information is displayed by tinyd module (Tiny Content hacked to multiple instances).

Tinyd module change only page title by default, simple by adding module name to page title defined to whole site (b.e. My Page Title - James Bond).

Trick is very simple:
1. Find and group together all SEO related data in your default theme file (title, keywords, description).
2. Insert simple Smarty code before and after this data:
<{if ($xoops_dirname|truncate:5:"")!='tinyd'}> 
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}>title>
<{/if}>

3. Put all SEO code into "Common HTML headers" field in admin -> module preferences. All code have to be complete and valid, b.e.
<title>James Bond favorite drinkstitle>
<
meta name="keywords" content="James, Bond, martini, vodka, shake" />
<
meta name="description" content="I’m Bond, James Bond an I like only shacked martini." />


I know that this method is stupid like, but works :)

regards,
wodnick

ps. This trick change default meta tags order, but I’m not sure is this _really_ does meter.

ps. 2 I know, my english... heh... ;)
========
Pozycjonowanie

2
carnuke
Re: Simple tinyd SEO trick
  • 2007/1/21 18:50

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Hey, thanks for that! Not stupid, clever and useful for users who dont want to do the whole SEO thing.

Thanks for bringing that tip to XOOPS
hhttp://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

3
wodnick
Re: Simple tinyd SEO trick
  • 2007/1/21 19:17

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi.

I'm happy for that :)

I forgot to write:
as you see it in Smarty code, this trick is usefull regardless of number tinyd instances, because code ($xoops_dirname|truncate:5:"")!='tinyd'} "detect" all of them: tinyd0, tinyd1, etc.

regards,
wodnick
========
Pozycjonowanie

4
wodnick
Re: Simple tinyd SEO trick
  • 2007/2/2 18:44

  • wodnick

  • Just popping in

  • Posts: 32

  • Since: 2006/12/30


Hi there.

Little addendum.
When setting metatags in both: Module preferences -> Common HTML headers and HTML header for each article, they appear twice (this may be treat as a spam by indexing machines).

But different metatags for all pages and no one page without meta... it's a dream of all SEO engineers.
So, there is a simple trick to avoid doubling meta.

tinydx/include/display.inc.php line 159

Change:
$xoopsTpl->assign'xoops_module_header' $xoopsModuleConfig['tc_common_htmlheader'] . "n" $html_header "n" $xoopsTpl->get_template_vars"xoops_module_header" ) ) ;

to:
$xoopsTpl->assign'xoops_module_header' , ($html_header?"":$xoopsModuleConfig['tc_common_htmlheader']) . "n" $html_header "n" $xoopsTpl->get_template_vars"xoops_module_header" ) ) ;


From now, all pages that have their own meta definitions will display them, and also these without, not lose metas, because tinyd modules main meta definitions.

Unfortunately You have to made this change on all tinyd instances installed, but best way is simple copy one changed file to all /tinydx/include folders (I assume that all have the same content).

Best regards,
wodnick

ps. I know... my english, heh ;)
========
Pozycjonowanie

Login

Who's Online

400 user(s) are online (300 user(s) are browsing Support Forums)


Members: 0


Guests: 400


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits