CheersnGears Posted January 24, 2013 Posted January 24, 2013 https://plus.google.com/112537978953216254522/
Luis Manson Posted January 25, 2013 Posted January 25, 2013 i made it once with a template edit and custom profile field ;)
.Ian Posted December 27, 2013 Posted December 27, 2013 https://plus.google.com/112537978953216254522/
CheersnGears Posted December 29, 2013 Author Posted December 29, 2013 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.
CheersnGears Posted December 29, 2013 Author Posted December 29, 2013 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.
.Ian Posted December 29, 2013 Posted December 29, 2013 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.
CheersnGears Posted December 29, 2013 Author Posted December 29, 2013 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
CheersnGears Posted December 29, 2013 Author Posted December 29, 2013 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 />
CheersnGears Posted December 29, 2013 Author Posted December 29, 2013 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.
.Ian Posted December 30, 2013 Posted December 30, 2013 It should only show if someone adds their G+ account details.
CheersnGears Posted December 30, 2013 Author Posted December 30, 2013 I ended up sorting this whole thing out... I plan to write a blog post on it.
stoo2000 Posted December 30, 2013 Posted December 30, 2013 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...
CheersnGears Posted December 30, 2013 Author Posted December 30, 2013 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.