Registering my website with Bing

Permalink
Hello,

I am trying to register my website with live, and in order to verify my identity bing requests:

add a <meta> tag containing the authentication code to the <head> section of your default webpage.

<meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />

which folder should I put the above tag in...please help.

Jay

 
jordanlev replied on at Permalink Reply
jordanlev
Log into your site, go to the home page, click "Edit Page" in the toolbar, then click the "Properties" button in the toolbar, and click the "custom attributes" tab. From the "**Add Attributes" dropdown list, choose "Header Extra Content". This will add a new textbox down below -- paste your code into there, then save and publish the page.
onelife replied on at Permalink Reply
Thank you for the clear instructions, but I keep getting:
Unexpected Error...any advice is greatly appreciated.
creativesolutions replied on at Permalink Reply
creativesolutions
You could always plug that meta tag directly into the header.php of the site. It'll be in your main theme folder inside the elements folder there. Put it above the links to the CSS and you'll be good to go. No errors that way.
onelife replied on at Permalink Reply
I tried putting the tag inside the header.php file but
I'm still getting an unexpected error. Here is the tag I pasting:

<meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />
creativesolutions replied on at Permalink Reply
creativesolutions
That tag wouldn't show up an error even if it were wrong. There's possibly something else going on with either the install, the site or the coding of the header.php itself. Without looking at the header.php I wouldn't know where to begin.
onelife replied on at Permalink Reply
here's a copy of the header.php:

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!-- add your meta tags here -->

<!-- Site Header Content //-->

<style type="text/css">@import "<?php echo $this->getStyleSheet('main.css')?>";</style>
<style type="text/css">@import "<?php echo $this->getStyleSheet('typography.css')?>";</style>

<!--[if lte IE 7]>
<link href="<?php echo $this->getThemePath()?>/css/patch_tcc.css" rel="stylesheet" type="text/css" />
<![endif]-->

<?php Loader::element('header_required'); ?>

</head>
<body>
<div class="page_margins">
<div id="topnav">
<!-- start: skip link navigation -->
<a class="skip" title="skip link" href="#navigation">Skip to the navigation</a><span class="hideme">.</span>
<a class="skip" title="skip link" href="#content">Skip to the content</a><span class="hideme">.</span>
<!-- end: skip link navigation -->
<?php
$uinfo = new User();
if($uinfo->IsLoggedIn()){ ?>
<a href="<?php echo $this->url('/login/-/logout')?>"></a><a href="<?php echo $this->url('/profile')?>"></a><a href="<?php echo $this->url('/imprint')?>"></a>
<?php
} else { ?>
<a href="<?php echo $this->url('/login')?>">Login</a><a href="<?php echo $this->url('/register')?>"></a><a href="<?php echo $this->url('/imprint')?>"></a>
<?php }?>
</div>
<div id="border-top">
<div id="edge-tl"></div>
<div id="edge-tr"></div>
</div>
<div class="page">
<div id="header">
<?php
$a_header = new Area('Header');
$a_header->display($c);
if ($a_header->getTotalBlocksInArea() > 0) { ?>
<div class="divider"></div>
<?php }
if ($c->isEditMode()) { ?>
<div style="min-height: 80px">
<?php } ?>
</div>
<?php if ($c->isEditMode()) { ?>
</div><!-- end isEditMode //-->
<?php } ?>
<div id="nav">
<!-- skiplink anchor: navigation -->
<a id="navigation" name="navigation"></a>
<div class="hlist">
<!-- main navigation: horizontal list -->
<?php
$a_headerNav = new Area('Header Nav');
$a_headerNav->display($c);
if ($a_headerNav->getTotalBlocksInArea() > 0) { ?>
<div class="divider"></div>
<?php } ?>
</div>
</div>
Magneticdud replied on at Permalink Reply
I did it with the xml file, much easier, don't edit the header.php, updates will remove your edits.
onelife replied on at Permalink Reply
I tried doing it with the xml file;
I created a folder on the c5 server then uploaded the xml file then tried to access it via my browser as said in the instructions but I keep getting:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
jordanlev replied on at Permalink Reply
jordanlev
Could you please be more specific about your error message? Does it only say "Unexpected Error" and nothing else? Is it showing up in just a blank white page or within the design of your site? Does it happen when you try to save the custom attribute, when you try to publish the page, or when you view the page? Does it happen on any other pages? Was it happening before? (As someone else pointed out, it's very unlikely that the tag you pasted in would cause such an error).
onelife replied on at Permalink Reply
I apologize for the confusion. The website was fully functional; all the links and plugins are working.
When I added “ <meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />” to the attributes of my home page, I actually see the code on the page when I publish the changes. When I go back to bing to verify ownership, I click verify and on the same bing screen “Error” (in orange letters) appears and underneath it “Unexpected Error”. When I click continue on the same bing page, I am taken back to the very ownership page of Bing. Even with this error, my page loads without a problem however, I see: “ <meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />” at the top of my page (and so does the viewing public). I hope that I was able to give you a visual picture of my issue.
jordanlev replied on at Permalink Reply
jordanlev
Hmmm... the meta tag should definitely *not* be viewable on the web page itself (you should only see it if you "view source" on the page). If this is happening, that would explain why bing is getting an error.

What version of Concrete5 are you running?
And can you post a link to the site?
onelife replied on at Permalink Reply
mkly replied on at Permalink Reply
mkly
@onelife my friend, you are having such a tough time with something that should be so straight forward. Sorry to see. Ok..

1. When you put
<meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />

in header.php you probably put it inside of a php section
<?php
// some other php stuff
<meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />
// maybe some more stuff here
?>

That's bad and you'll get that error. Take it out. Take everything you put in header.php out.

2. Go to the home page of your site. The one you get when you go to http://www.example.com Replace "http://www.example.com" with your site.
3. Click "Edit Page" in the top left.
4. Click "Properties"
5. Click the "Custom Attributes" tab
6. From the "** Add Attribute" dropdown select "Extra Header Content"
7. paste
<meta name="msvalidate.01" content="580F68540AF14308C9E7F7662A641946" />

into that box.

8. Click "Save"
9. Click "Exit Edit Mode"
onelife replied on at Permalink Reply
Thank you for contributing to the discussion.
The error that I am receiving appears after I edit my home page attributes (take a look at my previous response).

Thank you again.
mkly replied on at Permalink Reply
mkly
If you don't post the error no one will know what is causing it.
mkly replied on at Permalink Reply
mkly
Ok I just looked at your site. Are you sure that you followed the steps I posted above exactly? There appears to be some additional markup in that tag.
jordanlev replied on at Permalink Reply
jordanlev
Yeah, I agree with @mkly -- something strange got accidentally pasted in with your code. I would try the steps that @mkly and I have laid out again -- but make sure you're only pasting in the meta tag and not anything else.
onelife replied on at Permalink Reply
I did a cut and paste, I will key it in manually.
onelife replied on at Permalink Reply
when I keyed it in the got the same results.
mkly replied on at Permalink Reply
mkly
Ok. It looks like you are using the TinyMCE(or other Rich Text editor) editor in your attribute boxes. Did you change something to use the full rich text editor?
onelife replied on at Permalink Reply
No I didn't.
mkly replied on at Permalink Reply
mkly
hmmm... when you type in the text. In that box. Is it just a box or is there little icons above the box?
onelife replied on at Permalink Reply
There is a box and above the box is the following icons.

Add Image
Add File
Insert Link to Page
Customize Toolbar
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Something got set weird on your site.
Go to Dashboard -> Pages and Themes -> Attributes. Click "Header Extra Content", change the "Input Format" dropdown to "Plain Text", click "Update Attribute". Now go back to the home page and try setting the custom attribute again.
onelife replied on at Permalink Reply
Yesssss....it worked...
but now I'm getting: Ownership Verification Failed from bing..
anyideas..
jordanlev replied on at Permalink Reply
jordanlev
oy vey!
Well now it's a problem with Bing, not your site. Perhaps the code you got expired? I'd try getting a new code from them.
mkly replied on at Permalink Reply
mkly
woooo! problem solved!
onelife replied on at Permalink Reply
Thank you again everyone for your input.
It is greatly appreciated.
mkly replied on at Permalink Reply
mkly
no problem, good luck.