OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Style sheet urls not complete

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Re: Style sheet urls not complete

Postby mcrider » Wed May 12, 2010 12:06 pm

Hi all,

I've uploaded a patch for this--Please let us know if it fixes up your problem.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Style sheet urls not complete

Postby ianer » Wed May 26, 2010 7:28 am

Dear Matt,

How should I apply this patch on my site ?
I have similar problem after upgraded from 2.1.2.1 to 2.3.1.0 using the complete package. On the source of my site's page the url for the style sheet is

<link rel="stylesheet" href="//lib/pkp/styles/common.css" type="text/css" />
<link rel="stylesheet" href="//styles/common.css" type="text/css" />

FYI the url of my site is http://icgrc.org
ianer
 
Posts: 2
Joined: Wed May 26, 2010 7:12 am

Re: Style sheet urls not complete

Postby mcrider » Wed May 26, 2010 1:11 pm

Hi ianer,

If you're having trouble applying this patch, you can just go into the plugins/blocks/fontSize/FontSizeBlockPlugin.inc.php file and delete the entire first function from function register($category, $path) { to its closing '}'.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Style sheet urls not complete

Postby ianer » Wed May 26, 2010 3:51 pm

After applying the patch, the style sheet url still had error.
So I've decided to hard coding the url for each {$baseUrl} calls on the header.tpl. It's such a temporary solution for the styling problem but it still give me error when another function calls for $baseUrl such as these lines

<!-- Add javascript required for font sizer -->
<script type="text/javascript" src="/lib/pkp/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/lib/pkp/js/fontController.js"></script>
<script type="text/javascript">
$(function(){
fontSize("#sizer", "body", 9, 16, 32, "/"); // Initialize the font sizer
});
</script>
<script language="javascript" type="text/javascript" src="//lib/pkp/js/jquery.pnotify.js"></script>
ianer
 
Posts: 2
Joined: Wed May 26, 2010 7:12 am

Re: Style sheet urls not complete

Postby mcrider » Wed Jun 02, 2010 10:23 am

Hi ianer,

I've uploaded a new patch to http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3106--Could you try this one and let us know if that fixes the problems you're having?

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Previous

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 7 guests