OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Editing / Modification of appearance

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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

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.

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 OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Editing / Modification of appearance

Postby apsc » Sun Mar 12, 2006 11:48 pm

hi,

understand that the application is generally composed by php codes. I am wondering where are the html codes residing which I can make simple adjustments to the appearance or even include graphics or textual icons which will enhance the site.

are the files stored in specific directories which I can include simple modifications to generate the unique html codes?
apsc
 
Posts: 18
Joined: Mon Mar 06, 2006 2:56 am

Postby apsc » Mon Mar 13, 2006 1:13 am

or just to clarify abit more. it would be great fi u can guide me to the specfiic files which stores the text output of the options.

what I meant is like instead of "home" I can edit the text of the variables to "Main", "about" to "History"

I have located the css files but need more information regarding the variable values and I am also very very green to php. thanks
apsc
 
Posts: 18
Joined: Mon Mar 06, 2006 2:56 am

Postby asmecher » Mon Mar 13, 2006 10:40 am

Hi apsc,

The HTML code is all in the templates directory, but it sounds to me like you want to modify the locale keys. Look in locale/en_US/locale.xml if you want to make wording changes; for example, the "Home" link appears as follows:
Code: Select all
<message key="navigation.home">Home</message>
You can change this to:
Code: Select all
<message key="navigation.home">Main</message>
Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8905
Joined: Wed Aug 10, 2005 12:56 pm

Postby apsc » Tue Mar 14, 2006 8:00 pm

Thanks for the locale directory, it was spot on.

As of now, I am trying to include own graphics into the website. as of html which I am more attuned to the command <img src="..."> is used to include pics and graphics.

But in the OJS setup, i studied the codes and found that it is of a different format. Is there another set of records which determines the "approved" graphcis. Or how about where to store the pic files in which directory and any standard syntax to display the pictures? Thanks
apsc
 
Posts: 18
Joined: Mon Mar 06, 2006 2:56 am

Postby apsc » Wed Mar 15, 2006 1:29 am

I actually found out how to maipulate the graphics but one of the wierd problems is that I wasnt able to display every picture i "upload" by modifying the codes.

I am certain I got the pathname right as it works for other working ones, also the graphic formats are .gif and jpg. But what boggles me is that some files just wun get displayed.

Another thing is when i try to upload pictures for the content pages, though .gif,jpg files, the page will still reject and refuse my uploads.
apsc
 
Posts: 18
Joined: Mon Mar 06, 2006 2:56 am

Postby asmecher » Wed Mar 15, 2006 10:42 am

Hi apsc,

If you'd like to send specific information about your server, I can investigate; contact me at pkp-support@sfu.ca with details.

When OJS doesn't recognize image formats, the usual cause is the mime type detector, which is in classes/core/String.inc.php in the mime_content_type function. You'll have to investigate this function yourself, as different servers are configured differently; however, there are a few notes on why this might not be working at http://ca3.php.net/manual/en/function.mime-content-type.php.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8905
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 5 guests