OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS social media block plugins

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
If you post a plugin here, please include information on which versions of which applications it is compatible with. Attach a tarball of the plugin (e.g. tar cvzf myPlugin-0.1.tar.gz plugins/generic/myPlugin). Thanks for contributing!

OJS social media block plugins

Postby tug » Wed Aug 15, 2012 1:48 am

The social-media plugins include a facebook-, twitter- and googleplus plugin. They enable the user to read the newest updates of the journals' social-media-pages at all times. At the moment to are running on example-pages, how to change the configurations, is explained in detail. Moreover there is a rss-feed-plugin, which offers the possibility of getting the sites' announcements as rss-feed.

For more detailed descriptions find a readme with each plugin.

Author: TU Graz
Software: OJS
Language: English

Conact: tugtc@tugraz.at
Attachments
social_media_plugins.zip
(261.65 KiB) Downloaded 772 times
tug
 
Posts: 14
Joined: Mon Nov 15, 2010 3:21 am

Re: OJS social media block plugins

Postby Laura » Wed Aug 22, 2012 6:20 am

Thanks so much for posting the plug-in. It's great. Do you happen to know if the Twitter plugin can be adjusted for use in OCS as well? I changed the OJS reference to OCS and uploaded it. It uploads fine, but doesn't show up in the plug-in listing.
Laura
 
Posts: 2
Joined: Wed Aug 22, 2012 6:14 am

Re: OJS social media block plugins

Postby Laura » Wed Aug 22, 2012 1:47 pm

I found a workaround. I used the Custom Block Plugin to load Twitter widget code for my Twitter site. That worked really well.
Laura
 
Posts: 2
Joined: Wed Aug 22, 2012 6:14 am

Re: OJS social media block plugins

Postby evisdd » Fri Mar 15, 2013 11:20 am

Hello. I need this plugin but for OHS. thanks
evisdd
 
Posts: 5
Joined: Wed Feb 20, 2013 10:03 am

Re: OJS social media block plugins

Postby wblandon » Mon May 06, 2013 10:02 am

Hi all.

We have several journals in our OJS site.

How can we configure this plugin to use it in every journals with different accounts, twitter for example?


Regards,

Walter Blandón
wblandon
 
Posts: 26
Joined: Fri Apr 27, 2012 2:25 pm

Re: OJS social media block plugins

Postby dsully » Tue Jan 21, 2014 1:04 pm

Hi everyone,

Could any of you help me install these social media plugins into OCS 2.3.5? That would be awesome because I have had no success.

Thanks,
David
dsully
 
Posts: 33
Joined: Mon Jan 13, 2014 7:47 am

Re: OJS social media block plugins

Postby asmecher » Tue Jan 21, 2014 1:28 pm

Hi David,

OJS plugins are unlikely to work with OCS without some modification; the two have slightly different APIs.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS social media block plugins

Postby dsully » Wed Jan 22, 2014 9:54 am

Has anyone used the custom block plugin option to create a live feed of tweets about their conference like the one in these plugins and on the pkp 2013 demo site ( http://pkp.sfu.ca/pkp2013/index )? I appreciate all the help

David
dsully
 
Posts: 33
Joined: Mon Jan 13, 2014 7:47 am

Re: OJS social media block plugins

Postby asmecher » Mon Jan 27, 2014 6:35 am

Hi David,

As far as I'm aware, we did this by pasting the Twitter code directly into the custom block manager's "contents" field. Have you been able to create a custom block?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS social media block plugins

Postby dsully » Mon Jan 27, 2014 7:04 am

Hi Alec,

That is what I have done, but it only creates a link to the Twitter page. Let me know of any suggestions and thank you for the response!

Sincerely,
David
dsully
 
Posts: 33
Joined: Mon Jan 13, 2014 7:47 am

Re: OJS social media block plugins

Postby asmecher » Mon Jan 27, 2014 7:28 am

Hi David,

The specific code we used was...
Code: Select all
<a class="twitter-timeline" href="https://twitter.com/search?q=%23pkpconf+OR+pkp.sfu.ca%2Fpkp2013+-%40pkp2013" data-widget-id="346121348608847874">Tweets about "#pkpconf OR pkp.sfu.ca/pkp2013 -@pkp2013"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS social media block plugins

Postby dsully » Mon Jan 27, 2014 7:50 am

Hi Alec,

That code is the same as mine except for the tweets it shows (the search). When I plugged your code in, the same result occurred - it placed a link in that custom block plugin to the twitter page displaying tweets with that hash tag. I'm not sure why this isn't working the same for me as it is you.

Thanks,
David
dsully
 
Posts: 33
Joined: Mon Jan 13, 2014 7:47 am

Re: OJS social media block plugins

Postby asmecher » Mon Jan 27, 2014 7:57 am

Hi David,

Do you have a URL you could share with me?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS social media block plugins

Postby dsully » Mon Jan 27, 2014 8:04 am

Alec,

Here is my conference page. On the right sidebar you see a link to the twitter widget. This plugin is a custom block plugin with the code you posted above.

http://ocs.demo.pinetec.com/ocs/index.p ... 14/RMS2013

Thanks for the help,
David
dsully
 
Posts: 33
Joined: Mon Jan 13, 2014 7:47 am

Re: OJS social media block plugins

Postby asmecher » Mon Jan 27, 2014 9:57 am

Hi David,

Looking at the source for both pages, it looks like your JavaScript is getting escaped, leading to syntax errors. For example, looking at the working PKP site...
Code: Select all
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
...and on yours...
Code: Select all
<script type="text/javascript">// <![CDATA[
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
// ]]></script>
I'm not sure why these are different if you've just pasted our code into your custom block plugin; perhaps your server has PHP's magic quotes enabled or something similar?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Next

Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 0 guests

cron