Hello
I'm wanting to edit the site info. Currently on the home page these are listed.
Members
Series
Stories
Chapters
Word Count
Authors
Reviews
Newest members
I'd like to remove 2:
Chapters
Word Count
I've clicked around and cannot see an option to remove those 2.
Thanks
Go into admin/blocks/info and open info.php. Then edit out what you must after backing up the file in case you break it.
if(!empty($blocks['info']['style']) && $blocks['info']['style'] == 2) {
$tpl->assignGlobal("totalstories", $stats['stories']);
$tpl->assignGlobal("totalauthors", $stats['authors']);
$tpl->assignGlobal("totalmembers", $stats['members']);
$tpl->assignGlobal("totalreviews", $stats['reviews']);
$tpl->assignGlobal("totalreviewers", $stats['reviewers']);
$tpl->assignGlobal("totalwords", $stats['wordcount']); <-- Strike this
$tpl->assignGlobal("totalchapters", $stats['chapters']); <-- Strike this
$tpl->assignGlobal("totalseries", $stats['series']);
$tpl->assignGlobal("newestmember", "<a href="""._BASEDIR."viewuser.php?uid=".$stats['newestmember'"]."">$newmember</a>");
if(isMEMBER) $tpl->assignGlobal("loggedinas", _LOGGEDINAS." ".USERPENNAME.". ".($noskin ? " "._NOSKIN : ""));
$tpl->assignGlobal("submissions", $adminnotices);
That's not the only instance, though, so:
if(isMEMBER) $loggedinas = _LOGGEDINAS." ".USERPENNAME.". ".($noskin ? " "._NOSKIN : "");
else $loggedinas = "";
if(empty($blocks['info']['style'])) {
$content = "<div id='infoblock'>
<div><span class='label'>"._MEMBERS.": </span>".$stats['members']."</div>
<div><span class='label'>"._SERIES.": </span>".$stats['series']."</div>
<div><span class='label'>"._STORIES.": </span>".$stats['stories']."</div>
<div><span class='label'>"._CHAPTERS.": </span>".$stats['chapters']."</div> <-- Strike this
<div><span class='label'>"._WORDCOUNT.": </span>".$stats['wordcount']."</div> <-- Strike this
<div><span class='label'>"._AUTHORS.": </span>".$stats['authors']."</div>
<div><span class='label'>"._REVIEWS.": </span>".$stats['reviews']."</div>
<div><span class='label'>"._REVIEWERS.": </span>".$stats['reviewers']."</div>
<div><span class='label'>"._NEWESTMEMBER.": </span><a href="""._BASEDIR."viewuser.php?uid=".$stats['newestmember'"]."">$newmember</a></div>";
That, too, is not the last instance, so:
else if($blocks["info"]["style"] == 1) {
$replace = array($stats['authors'], $stats['members'], $stats['reviews'], $stats['reviewers'], $stats['wordcount'], $stats['chapters'], $stats['stories'], $stats['series'],"<a href="""._BASEDIR."viewuser.php?uid=".$stats['newestmember'"]."">$newmember</a>", $loggedinas, $adminnotices);
$search = array("@{authors}@", "@{members}@", "@{reviews}@", "@{reviewers}@", "@{totalwords}@","@{chapters}@", "@{stories}@", "@{series}@", "@{newest}@", "@{loggedinas}@", "@{submissions}@");
$content = preg_replace($search, $replace, (!empty($blocks['info']['template']) ? stripslashes($blocks['info']['template']) : _NARTEXT));
Strike them up above, too, where it says 'wordcount' and 'chapters', making sure that you don't take an extra comma or something. And again where it says totalwords and chapters, again making sure you get all of it.
After you back up the original info.php file so you can restore it if it doesn't work. XD