OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



splash screen

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.

splash screen

Postby nelson » Mon Feb 19, 2007 8:17 am

Hallo,
i read in Customizing OJS:

This is done by simply creating an index.html file for the splash screen,


ok, so where do I have to put the index.html file?

thanks
Alfredo
nelson
 
Posts: 36
Joined: Fri Jan 12, 2007 6:17 am

Postby asmecher » Mon Feb 19, 2007 10:41 am

Hi Alfredo,

Put the index.html file in the OJS installation directory (i.e. the same location is OJS's index.php and config.inc.php files). The web server should give it precedence over the index.php file, which is OJS's controller script.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Postby nelson » Mon Feb 19, 2007 10:44 am

Thanks Alec,
so, is not possible to set a different splash page for each review?
:(
nelson
 
Posts: 36
Joined: Fri Jan 12, 2007 6:17 am

Postby asmecher » Mon Feb 19, 2007 10:49 am

Hi Nelson,

In Journal Setup page 5 there is a Journal Homepage Content field that allows you to enter free-form HTML on a per-journal basis. It'll still be displayed within the OJS page layout. If you want to modify the surrounding HTML, you'll need to edit templates/index/journal.tpl.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Postby nelson » Mon Feb 19, 2007 11:25 am

Thanks Alec,

you'll need to edit templates/index/journal.tpl


but in this way I change all the journals.

Should be nice something like that:

if --> in journal dir (may be the same of journal css)

find a file called --> index.html

overwrite--> the Journal Home Page

This condition should be added in ojs index.php file (lines: 48-51)? Changing the code like this:

supposing that indexoverwrite() is a funct that verifies the exitence of the index.html file in Journal dir

Code: Select all
else {
                  if(indexoverwrite())
                    {include($reviewpath/index.html);}
               else
                   {// Call the selected handler's index operation
                 call_user_func(array(HANDLER_CLASS, 'index'), Request::getRequestedArgs());
                  }
   }


I don't know how to write right the if because I don't know ojs APIs, but I can arrive to do this if supported.

What do you think about?

Alfredo
nelson
 
Posts: 36
Joined: Fri Jan 12, 2007 6:17 am

Postby asmecher » Mon Feb 19, 2007 2:03 pm

Hi Alfredo,

The best way to stay consistent with the OJS codebase would be this: add a new journal setting in Journal Setup, page 5, that allows you to upload an HTML splash file. You can follow all the stylesheet upload code on that page (and in the associated form class etc.) as an example. You should be able to grep the source code for journalStyleSheet / uploadJournalStyleSheet for an indication of the files you need to modify to add the setting.

If you do implement the new setting in this manner, consider submitting a patch back to the team -- this might be worth considering for inclusion in the next release.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Postby arachne » Wed Feb 28, 2007 2:34 pm

asmecher wrote:
Put the index.html file in the OJS installation directory (i.e. the same location is OJS's index.php and config.inc.php files). The web server should give it precedence over the index.php file, which is OJS's controller script.



- okay, today my install will not show my index.htm but instead goes immediately to index.php - so instead of

http://www.thirdspace.ca/index.htm (my HTML splash page)

it will skip directly to:

http://www.thirdspace.ca/journal (the OJS journal home page)

help?

jenea
arachne
 
Posts: 52
Joined: Sun Feb 11, 2007 3:46 pm
Location: Vancouver

Postby asmecher » Wed Feb 28, 2007 2:42 pm

Hi Jenea,

Try naming it index.html instead of index.htm -- whether or not this works will depend on your server configuration, but generally, .html gets priority over .php.

It looks like you're using rewriting; you may have to fine-tune the rewrite rules so that requests for "/" go to /index.html instead of /index.php/...

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Postby arachne » Wed Feb 28, 2007 3:06 pm

Thanks, changing to .html did the trick.

jenea
arachne
 
Posts: 52
Joined: Sun Feb 11, 2007 3:46 pm
Location: Vancouver


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests