Adding bios to the editorialTeam page

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
gsk3
Posts: 17
Joined: Mon Jun 20, 2005 10:15 am
Contact:

Adding bios to the editorialTeam page

Postby gsk3 » Tue Jul 19, 2005 5:54 pm

In case this might help anyone, here is some code to add biographies to the About the editorial team page, as seen here: http://www.copyrightjournal.org/index.p ... torialTeam .

In templates/about/editorialTeam.tpl, find the line "{$editor->getFullName()}{if strlen($editor->getAffiliation()) > 0}, {$editor->getAffiliation()}{/if}"

replace it with:
<b>{$editor->getFullName()}</b>
{if strlen($editor->getAffiliation()) > 0}, {$editor->getAffiliation()}{/if}
<br>
{if strlen($editor->getBiography()) > 0}{$editor->getBiography()}{/if}
<br><br>




Now go to classes/user/User.inc.php and add the following to the end (but before the final ?> :
function getBiography() {
return $this->getData('biography');
}





Clean, simple, does what it's supposed to (hopefully!). Do the same thing for your section editors section.

If you want to have their names become links to e-mail them, add another section to your User.inc.php:
function getEmail() {
return $this->getData('email');
}


and then wrap the "{$editor->getFullName()}" code that we just mucked around with with "<a href="mailto:{$editor->getEmail()}">" and "</a>"

Good luck,
Ari

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

Editorial Team bio

Postby ramon » Wed Jul 20, 2005 6:30 am

Ari,

This code is really nice.. It will massage the ego of any member of the journal. It would be great to be able to also publish the Reviewers of each issue, with a page like this too.

This has been a request from many journals we have trained in the software. On 1.x they used the Add Item in the About Journal setup to copy and paste the names of the reviewers, but I'm sure this could be made dynamically, pretty easily too.

Of course, in the future, they will love to add their pics, pets, children, resume, blogs.......

gsk3
Posts: 17
Joined: Mon Jun 20, 2005 10:15 am
Contact:

Re: Editorial Team bio

Postby gsk3 » Thu Jul 21, 2005 6:37 am

ramon wrote:Ari,
This code is really nice.. It will massage the ego of any member of the journal. It would be great to be able to also publish the Reviewers of each issue, with a page like this too.


Hi Ramon,
Glad you like it. Adding reviewers is a little tricker, it seems. If I come up with anything I'll post it here.
Best,
Ari


Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests