Google+ rel author on phpBB forum topics

Discussion forum for MOD Writers regarding MOD Development.
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Google+ rel author on phpBB forum topics

Post by ipollesion »

This may be a bit of a long shot here, but I've looked around before posting this question.. I believe it may require those who have knowledge of phpBB source code.

Well after a thorough amount of work and time modifying phpBB to act sort of like a blog/web portal, I have been successful and am very happy with the software.

I would like to take this to the next level by adding per topic authorship.

Google+ has rich snippet functionality and with it properly implemented on a website, the click-through rate is phenomenally improved.

So my question is, where do I intercept this anchor in its function:
Image

Additionally, what I want to do is replace that "by" link with a custom profile field to their Google+ profile which input is a URL (validated by server, if not a URL then it won't save.) OTHERWISE just link to their forum profile if no URL is present.

Image

To make things a bit more tricky,
I want to have this "by" link only replaced on the topic's first post (which is basically the topic itself, this will help not to confuse the search engine per each topic, so it knows who made the topic and doesn't index all the replies as an author)

I hope someone can help, I look forward to achieving this functionality within phpBB and possibly porting it to a phpbb 3.x mod (that is a promise).

Support Request Template
What version of phpBB are you using? phpBB 3.0.11
What is your board's URL? http://www.techimperial.com
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
What styles do you currently have installed? prosilver
What language(s) is your board currently using? English
Which database type/version are you using? SQLite
What is your level of experience? Comfortable with PHP and phpBB
When did your problem begin? 11/10/2012
Please describe your problem. Need to find the way to find a certain point in the phpBB forum code where it generates a link to the member profile for the topic.
Generated by SRT Generator
Last edited by Oyabun1 on Sat Nov 10, 2012 12:20 pm, edited 1 time in total.
Reason: Moved from Support
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: Google+ rel author on phpBB forum topics

Post by ipollesion »

Nevermind guys, figured it out. Thanks for the resources!
TheDonSansone
Registered User
Posts: 4
Joined: Fri Apr 24, 2009 9:21 am
Location: USA
Name: Martin Sansone
Contact:

Re: Google+ rel author on phpBB forum topics

Post by TheDonSansone »

@ipollesion
Glad that you worked it out before folks could assist you, how about sharing your solution in here to help others with similar goals?
Taking the impact of tourism seriously with destinations in Belize, Jersey Shore, Scotland, Tenerife and many more!
User avatar
zummolo
Registered User
Posts: 8
Joined: Tue Jan 01, 2013 4:16 pm

Re: Google+ rel author on phpBB forum topics

Post by zummolo »

Hi there! There is another solution to display image "author rank" in you phpbb3.

not only as regards your image, but also for that of your any close collaborators.

Simply plug in your signature, this code (of course this is related to my profile google plus):

[html] <link href="https://plus.google.com/102336545165301007264" rel="author" /> [/ html]

is important, however, that in your forum, you have installed the mod "HTML" to use to specific users or groups of users, pure HTML code.

HERE IS AN EXAMPLE OF RESULTS WITH MY FORUM IN WHICH HAVE IMPLEMENTED THIS TECHNIQUE:

- All open discussions on the forum by Frederick Bergna will appear on google like this:http://www.google.com/webmasters/tools/ ... html&html=

- All open discussions on the forums by Daniel Orlandi, will appear on google like this: http://www.google.com/webmasters/tools/ ... html&html=

- but here's an example where in the same debate, two users have signed in your own code. The question is this: http://www.zummolo.com/sardegna-f106/co ... -t167.html
and Google does appear in the serp the first signature is that with this code: http://www.google.com/webmasters/tools/ ... html&html=

Also, google within a discussion, it will display in the serp result of the first user that signature, that code. So if in the same discussion more than one user has the signature in its "rel author", google will index the first signature of the first user with this signature.

Sorry for my bad English, I hope you understand something ...
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: Google+ rel author on phpBB forum topics

Post by ipollesion »

Thanks for sharing zummolo, but I'd say it's much easier and by far more secure to just use a custom BBcode made for the administrator or hidden ones for users.

You could also implement it through a profile link which would require mysql.
User avatar
zummolo
Registered User
Posts: 8
Joined: Tue Jan 01, 2013 4:16 pm

Re: Google+ rel author on phpBB forum topics

Post by zummolo »

Hi ipollesion, thanks for your advice. In my specific case, I just put this code in my signature:

<link href="https://plus.google.com/102336545165301007264" rel="author" />

but in my phpbb3 i have installed the simple mod "enable HTML". The mod is easy to install and you can set permission post pure HTML only users or group of users you want.

5 minutes for this modification.
User avatar
Shakensoul
Registered User
Posts: 77
Joined: Fri Mar 20, 2009 9:37 am
Location: India
Contact:

Re: Google+ rel author on phpBB forum topics

Post by Shakensoul »

I have tried all the above options and also verified my email address, still authorship is not working on my forum.

Infact I had added <link rel="author" href="https://plus.google.com/103760963677392586029"/> to the header section, but still authorship is not working.

E.g. link http://www.google.com/webmasters/tools/ ... -t115.html

However, authorship is working on my main site, e.g. link

http://www.google.com/webmasters/tools/ ... dabad.html

What could be missing or done incorrectly ?
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Google+ rel author on phpBB forum topics

Post by Oyabun1 »

ipollesion wrote:I look forward to achieving this functionality within phpBB and possibly porting it to a phpbb 3.x mod (that is a promise).
Where is the MOD you promised?
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Shakensoul
Registered User
Posts: 77
Joined: Fri Mar 20, 2009 9:37 am
Location: India
Contact:

Re: Google+ rel author on phpBB forum topics

Post by Shakensoul »

Any help would be appreciated, I seriously want this to work.
jaiak
Registered User
Posts: 43
Joined: Wed Oct 25, 2006 10:46 pm

Re: Google+ rel author on phpBB forum topics

Post by jaiak »

any news?

in phpBB 3.1 don't appear "google+" form

thanks
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: Google+ rel author on phpBB forum topics

Post by ipollesion »

Oyabun1 wrote:
ipollesion wrote:I look forward to achieving this functionality within phpBB and possibly porting it to a phpbb 3.x mod (that is a promise).
Where is the MOD you promised?
Nearly forgot, I finished a new computer build with new SSDs, etc. I will begin working on this mod over the weekend. (It's not difficult at all, and to do it the right way is simple.)

I'd say the main reason why I didn't create it already is because the MOD install process is a bit bulky last I remember it. Although, I'd like to make it modx compatible, so I'll be reading up on that.

Regards,
iPollesion
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: Google+ rel author on phpBB forum topics

Post by ipollesion »

I went ahead and created it anyway earlier because I wanted a challenge.

https://www.phpbb.com/customise/db/mod/ ... ile_links/
Ozo
Registered User
Posts: 330
Joined: Mon Dec 13, 2010 7:57 pm

Re: Google+ rel author on phpBB forum topics

Post by Ozo »

ipollesion wrote:I went ahead and created it anyway earlier because I wanted a challenge.

https://www.phpbb.com/customise/db/mod/ ... ile_links/
I am interested in this as MOD but not sure what you are linking there.
The contribution you requested could not be found.

thanks
User avatar
ipollesion
Registered User
Posts: 140
Joined: Thu Nov 08, 2007 1:54 am

Re: Google+ rel author on phpBB forum topics

Post by ipollesion »

Ozo wrote:
ipollesion wrote:I went ahead and created it anyway earlier because I wanted a challenge.

https://www.phpbb.com/customise/db/mod/ ... ile_links/
I am interested in this as MOD but not sure what you are linking there.
The contribution you requested could not be found.

thanks
that's the link for the download. the moderators have not approved the mod yet, it usually takes about four weeks from the submission date.
Ozo
Registered User
Posts: 330
Joined: Mon Dec 13, 2010 7:57 pm

Re: Google+ rel author on phpBB forum topics

Post by Ozo »

They'll probably ask you to 'correct' it a few times before it gets approved.

thanks anyway.
Locked

Return to “[3.0.x] MOD Writers Discussion”