Jump to content

Google+ tags


Recommended Posts

  • 10 months later...

Just a note to anyone reading this looking for the same advice. I had my original request reversed. Ref=Author needs to link to our user profile and then Ref=Me needs to be inside our user profile linking to our Google+ profile.

Ian's advice is correct except that you need to sub "Rel=Author" in place of "Rel=Me" in his tip.... that was my fault in the original question.

Link to comment
Share on other sites

Hi,

You can add a custom profile field and then in the 'topic view format' box enter some code such as

<span class="fc"><a href="{content}" rel="me"><img src="/path/to/googleplus.png"></a></span>

Note that the full info added to the custom field in the the profile will be shown in raw format on the profile page.

Link to comment
Share on other sites

Hi,

You can add a custom profile field and then in the 'topic view format' box enter some code such as

<span class="fc"><a href="{content}" rel="me"><img src="/path/to/googleplus.png"></a></span>

Note that the full info added to the custom field in the the profile will be shown in raw format on the profile page.

Thank you, but 'topic view format' would be the wrong place I think. The rel=me needs to be in the user profile and be referencing the Google+ profile.

I was looking at "customFieldGroup__contact" as the place to put it, but when I added the custom field name to the If/Else statement, I got errors

Link to comment
Share on other sites

Basically, I think I need to copy and modify this code to reference the Google Plus custom field, but changing the var "website" to my custom profile field name didn't work.
<if test="cf_website:|:$f->raw_data['pf_key'] == 'website'">
<a class='url uid' rel="me" href='{$f->parsed}'>{$f->parsed}</a>
<else />
Link to comment
Share on other sites

The code is correct, the location is wrong. I'm pretty sure it needs to be under Profiles - customFieldGroup__contact

I was trying to get it to parse only if the field is populated, just as when a user fills in Jabber or Skype, those only show in the user profile when populated.

If I could figure out the way to have this code refer to the custom profile field instead of "website" I'd be golden.

Link to comment
Share on other sites

I ended up sorting this whole thing out... I plan to write a blog post on it.

The rel='author' part is going to confuse, IP.Board already uses Schema.org to show who the author is, and their profile.

for this topic...

<link rel='author' href='http://community.invisionpower.com/user/35845-cheersngears/' />

What you're doing now for example on the board index, is telling the search engines that every single user listed on the page is the author...

Link to comment
Share on other sites

The rel='author' part is going to confuse, IP.Board already uses Schema.org to show who the author is, and their profile.

for this topic...


I'm not really concerned with the forums section, but with articles in Content.

Google apparently doesn't get confused because Authorship wasn't working before and now it is.

<link rel='author' href='http://community.invisionpower.com/user/35845-cheersngears/' />

What you're doing now for example on the board index, is telling the search engines that every single user listed on the page is the author...


Google only looks at the first author tag and ignores all subsequent ones. What I really wanted to do was part the "rel=author" only in the article view inside of content, but this is working as well.
Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...