nl-google-plus-for-ez-publish
Last updated: Saturday 20 September 2025 22:08
Version |
Compatible with |
N/A
|
N/A
|
Template operator to generate a Google+ feed
=== What is it ? ===
This extension adds a template operator to easily add a Google+ feed.
=== How to install ? ===
- Create "nl_googleplus" directory in your "extension" folder.
- Put all files you get (classes, design, modules, settings, etc.)
- Activate the extension using admin ezpublish interface, and regenerate autoloads
- Go on https://code.google.com/apis/console/, to create your project and activate Google+ API.
- Check the nlgoogleplus.ini.append.php to fill settings with api information : ClientId, ClientSecret, DeveloperKey.
- You can also feel UserId and MaxResults
- Add the template operator in your template :
- Feed : {nlgoogleplusfeed()} or {nlgoogleplusfeed('0123456789')} for a specific userId
- Activity Feed : {nlgooglepluscomments('z12ruz3wmuzrhtn4p04cdlmajqamcln4vkk0k', $node.name|wash)}
- Clear all caches.
=== How to get activity id ? ===
It is quite difficult, and not displayed in url.
You have to look at the source code :
- Inspect the code with Chrome or Firefox the top right button of your post (the one to edit post)
- Find the div of your post : <div id="update-z12ruz3wmuzrhtn4p04cdlmajqamcln4vkk0k" tabindex="0" aria-live="polite" ...
- Copy/paste the id of the post : z12ruz3wmuzrhtn4p04cdlmajqamcln4vkk0k
=== Who is the author ? ===
Nicolas Lescure