OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Bootstrappish Theme

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!

Bootstrappish Theme

Postby tikidream » Tue Aug 20, 2013 6:51 am

The latest bootstrappish theme is at https://github.com/cul/cdrs-bootstrappish/
This theme, developed by the Center for Digital Research and Scholarship at Columbia University applies bootstrap styling and scripts to OJS/OCS without modifying core. This is accomplished through PKP functions to include stylesheets and javascript and using LESS files to remap bootstrap classes to OJS/OCS elements.
tikidream
 
Posts: 6
Joined: Mon Apr 08, 2013 11:48 am

Re: Bootstrappish Theme

Postby angelspatial » Mon Aug 26, 2013 1:52 pm

I am really excited to try and implement this, but when I do I get an error.

PHP Fatal error: Call to undefined method TemplateManager::addJavaScript() in C:\inetpub\wwwroot\projects\website\plugins\themes\bootstrappish\BootstrappishThemePlugin.inc.php on line 56

I can't seem to figure out how to fix this. Is anyone else having this problem?
angelspatial
 
Posts: 3
Joined: Mon Aug 26, 2013 1:49 pm

Re: Bootstrappish Theme

Postby asmecher » Mon Aug 26, 2013 2:05 pm

Hi angelspatial,

What version of OJS are you using?

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

Re: Bootstrappish Theme

Postby angelspatial » Mon Aug 26, 2013 2:13 pm

Sorry, I meant to add that:

OCS 2.3.5

Thanks...
angelspatial
 
Posts: 3
Joined: Mon Aug 26, 2013 1:49 pm

Re: Bootstrappish Theme

Postby asmecher » Mon Aug 26, 2013 2:50 pm

Hi angelspatial,

This won't work with OCS without some adaptation. However, porting that code to OCS won't be a large amount of work, if you're handy with PHP.

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

Re: Bootstrappish Theme

Postby angelspatial » Tue Aug 27, 2013 8:22 am

Oh ok... I am pretty handy with it, but I am still relatively new to the OCS framework.

It mentioned OCS in the original description so I figured I would give it a try.

Thanks!
angelspatial
 
Posts: 3
Joined: Mon Aug 26, 2013 1:49 pm

Re: Bootstrappish Theme

Postby mgsolipa » Thu Oct 10, 2013 7:33 am

Hi @angelspatial and @asmecher,

I solved this issue adding the missing function and now my OCS v2.3.5 is up and runing. If is useful for you, please review the file BootstrappishThemePlugin.inc.php at https://github.com/mgsolipa/cdrs-bootstrappish.
mgsolipa
 
Posts: 1
Joined: Thu Oct 10, 2013 7:20 am

Re: Bootstrappish Theme

Postby asmecher » Thu Oct 10, 2013 7:53 am

Hi mgsolipa (and all),

I haven't tested the theme yet, but the code looks good -- I just posted one comment on github. By the way, we're just working on a new theming system that will be released in OJS 3.0; we'd love to have you in on the discussion at http://pkp.sfu.ca/support/forum/viewtopic.php?f=9&t=9381&start=15.

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

Re: Bootstrappish Theme

Postby tikidream » Mon Oct 14, 2013 1:31 pm

Apologies on the delay in my reply. Yes, getting it cross-compatible is important. I'm going to give the additions on github a test run on some of our instances.

I'll hop in to the discussion on that post.

Thanks!
tikidream
 
Posts: 6
Joined: Mon Apr 08, 2013 11:48 am


Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 0 guests