Strange source cod.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Strange source cod.

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9928
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

That's absolutely no problem! There is no ranking for those!

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9928
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post 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
Shapeshifter
Posts: 46
Joined: Tue 25. Oct 2005, 22:27

Post 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
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post 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
)-= 1.3.0 user =-(
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply