Page 1 of 1

Strange source cod.

Posted: Fri 8. Dec 2006, 18:53
by Stim
In last version of phpwcms meta tags shows weird I think! First you see this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
	phpwcms | free open source content management system
	created by Oliver Georgi (oliver at phpwcms dot de) and licensed under GNU/GPL.
	phpwcms is copyright 2003-2006 of Oliver Georgi. Extensions are copyright of\
	their respective owners. Visit project page for details: http://www.phpwcms.org/

That’s not strange, but after that I see something like this:

Code: Select all

//-->
<title>??</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="content-style-type" content="text/css" />
  <script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
  <style type="text/css" media="all">
  /* <![CDATA[ */
    body {
      margin: ??;
      padding-top: ?;
      padding-bottom: ?px;
      padding-left: 5px;
      padding-right: 5px;

      background-color: #4F4F40;
      color: #000000;
    }
    a, a:link, a:active, a:visited, a:hover { color: #FF9900; }
    a:visited { color: #FF9900; }
    a:active { color: #FF9900; }
  /* ]]> */
  </style>
  <style type="text/css">
  /* <![CDATA[ */
    @import url("phpwcms_template/inc_css/frontend.css");
  /* ]]> */
  </style>
After that meta tags start. I’m not proof with meta tag but with an older version of phpwcms I am ranked as 2 and 3 on goggle, and first rank on MSN and i dont like what nwe version shows in source cod. Shouldn’t meta show before margin, padding and all that’s stuffs?

Posted: Fri 8. Dec 2006, 21:19
by Oliver Georgi
That's absolutely no problem! There is no ranking for those!

Oliver

Posted: Fri 8. Dec 2006, 22:16
by Stim
Sounds nice Oliver but are you sure about it? After I upgrade my rank fell down from rank 2-3 on goggle to 7-8 and from MSN I had rank 1 and fell down to rank 5!

I don’t like this Oliver really! Because I always have good rank with my older version of phpwcms 1.1-RC4 from 2004. I know its sounds faraway from it maybe has something to do with it but am also sure I didn’t change anything apart from upgrading.

Before it I had this nice goggle and msn rank some nice years with 1.1

Posted: Fri 8. Dec 2006, 23:25
by Oliver Georgi
I'm not the specalist in SEO - and no friend of it. What you can try at first:

- change back to HTML mode.
- change comments back from CDATA mode to <!-- --> see default.inc.php

The body sytle part is not neccessary - so check your pagelayout setting - there is a checkbox which allows disabling this.

What I can not see is what you have inside of your custom meta tags - check quality of the source code.

Oliver

Posted: Sat 9. Dec 2006, 03:25
by Stim
Thank you Oliver. I will try this solution.

Btw, about “OpenBC” in your post, that site it’s on Swedish!! – How can it be? Sorry I asked for questions and maybe you busy with phpwcms version 55 or something. Don’t know but it would be nice with phpwcms version 55

Posted: Thu 4. Jan 2007, 14:10
by Shapeshifter
Hi,

wie genau kann ich nun abstellen, dass dieser Code erzeugt wird? Ich weiß weder wo ich zur "HTML mode" zurückswitche noch habe ich eine checkbox im Seitenlayout, bei der ich den body style part deaktivieren kann?!

Danke und Grüße

Posted: Mon 8. Jan 2007, 01:42
by Stim
I have better rank now. First I fell down to rank 7-8 on goggle but have better rank now. Have rank 4 on Google and 2 on MSN.

It’s Ok I think. Thank you Oliver for a nice CMS. I try my best to get rank 1 on google and msn but I believe it’s impossible

Posted: Mon 8. Jan 2007, 08:36
by flip-flop
Hi,

please insert margin, background, color and so on into your frontend.css.
E.g.:

Code: Select all

body {
	margin: 0;
	padding: 0;
	font-family: arial, verdana, sans-serif;
	font-size: 13px; /* the basic font size */
	font-weight: normal;
	line-height: 15px; /* the basic line height */
	color: #000;
	text-align: center;
	background: #C1D2E2 url(/picture/bg/background.jpg) repeat-x;
}

html, body { /* Gekos right scrollbar visible at all */
/*	height:100.01%; */
	min-height: 100.01%;
}
And do this switches in your backend at page layout:

Image
And you will find in your generated source only this:

Code: Select all

//-->
<title>??</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="content-style-type" content="text/css" />
  <script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
  <style type="text/css">
  /* <![CDATA[ */
    @import url("phpwcms_template/inc_css/frontend.css");
  /* ]]> */
  </style>
Regards Knut