September 10, 2010, 01:30:58 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
Pages: [1]
  Print  
Author Topic:

index.template.php should I change meta tags here too

 (Read 2486 times)
0 Members and 1 Guest are viewing this topic.
IKShadow
Jr. Member
**

Points: 0
Offline Offline

Posts: 23


« on: December 08, 2006, 17:59:41 »

iam considering puting in my description and keywords in index.template.php.

Original
Code:
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' :

To
Code:
<meta name="description" content="my description here" />', empty($context['robot_no_index']) ? '' :
« Last Edit: December 08, 2006, 18:55:15 by TheGodFather » Logged


TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #1 on: December 08, 2006, 18:46:16 »

Seo4SMF also can change the description and keywords for each page. Just check Smiley

Regards
Logged

IKShadow
Jr. Member
**

Points: 0
Offline Offline

Posts: 23


« Reply #2 on: December 09, 2006, 02:57:10 »

I run few checks with http://www.hypergurl.com ( my domain: www.razprave.com )

On my index page the desription is mydomain.com - Index.
Logged
Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #3 on: December 09, 2006, 06:59:34 »

Just an idea:

is ist possible within SSI.php to get the Description and Keywords for wrapped pages?
That would be a great thing.

Bye

Sven
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #4 on: December 09, 2006, 07:05:33 »

I don't understand you, be more accurate.

Thanks
Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #5 on: December 09, 2006, 07:19:50 »

Beside my forum SSI is wrapping articles from another application.

Keywords and Description from posts are beautyful. But Keaywords from articles are "standard" (like insert in seo4SMF Admin) without recognizing the real content of the page.

Perhaps like an string that we can insert in those wrapped pages?
Sorry for my english Smiley

Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #6 on: December 09, 2006, 07:56:28 »

I will look forward after this ... but this depends from app to app.

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #7 on: December 09, 2006, 08:02:15 »

THX Smiley
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #8 on: December 09, 2006, 08:07:24 »

What app do you use  ? Please give me your forum link.

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #9 on: December 09, 2006, 08:22:17 »

This is an external CMS which leans on SIXcms.

You'll find an article here:

http://www.creadoo.com/Content68047

To wrap it with SMF just simply added following code to the article Page:

Code:
$ssi_gzip = true;
$ssi_ban = true;
$ssi_layers = array ('main');
$context['page_title'] = $titel. " @ creadoo";
ob_start();
include('forum/SSI.php');

The title comes from an SQL query which i did before to get the title.

After changing from phpNuke with integrated phpBB to SMF since 1 year it's very discusting to see, that my forum with more than 1 Mio Posts and 60.000 Articles gets ignored by Google, etc.

PR 7 turns to PR4 in this Year Sad
« Last Edit: December 09, 2006, 08:33:17 by Pandos » Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #10 on: December 09, 2006, 08:55:46 »

Hi,

Is possible to change the description and keywords for each page.
just add in your code
$context['description_']='description';
$context['keywords_']='keyword1, keyword2, etc';

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #11 on: December 09, 2006, 09:44:34 »

Too simple Smiley
Thank's again..


Logged
Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #12 on: December 09, 2006, 10:46:27 »

One last question...

If i type:
Code:
$context['description_'] = $title;
everything works allright.
But how to get an second array in there:
Code:
$context['description_'] = "$title $rubrik_name";
By typing this, no description will be shown. Only $title $rubrik_name in clear text Sad

Thanks

Sven
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #13 on: December 09, 2006, 10:47:34 »

Try this:

Code:
$context['description_'] = $title." ".$rubrik_name;

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #14 on: December 09, 2006, 10:50:52 »

Thanks a lot again Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!