Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
December 29, 201311 yr Author 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.
December 29, 201311 yr Author I'm still looking for a way to add a custom field and have it parse in the user profile with the "rel=me" if anyone has any ideas.
December 29, 201311 yr 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.
December 29, 201311 yr Author 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
December 29, 201311 yr Author 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 />
December 29, 201311 yr Author 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.
December 30, 201311 yr Author I ended up sorting this whole thing out... I plan to write a blog post on it.
December 30, 201311 yr 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...
December 30, 201311 yr Author 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.
Archived
This topic is now archived and is closed to further replies.