Greeting everyone! I recently started to work in the journal department of my university and they use the OJS 2.2.2 to handle the journals. The thing is, they want to make some changes in the structure of the site and journals but no one there know how to do it. That's why I'm here
I had read some of other topics to learn more about how it works and to know how and what to ask exactly. I need to add some scripts in the structure of some places, like the index page, journals, and some articles. The script i need to add right now is the Google Analytics script.
1.- Is there a way to know the exact structure of the templates? I know is different in 2.2 and 2.3 versions. I suposse the common handles the entire place, the article just an article, and rt for reading tools. But i couldn't find the journal place exactly.
2.- I add the script in the template/common/header.tpl, supossing that was the path for general pages. But it returned an error, something like "error in line x (something with var) and something with smarty". I was reading about it, and what i could know was it was a problem with some php - html difference in the handle of the ojs.
3.- I tryed the script in a blogger and it worked perfectly.
I wait for your response
PD: I apologize if i make some mistakes in the language, but i still have problems with my english
PD2: this is the google analytics script
var _gaq = _gaq || ;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script'); s.parentNode.insertBefore(ga, s);