Make Single Chapter Story Links More Prominent Mod 2026/09/19 Ami Sapphire Updated 2026/09/23 [Table of Contents oversights in Display Word and ePubVersion are fixed.] This exists to make the link to print or download a document that is only one chapter more prominent instead of having to click on a tiny icon. viewstory.php Around Line 229 Original: $printicon = ""._PRINTER.""; Replace with: $printicon = ""._PRINTER." "._STORY.""; Around Line 251 Original: $tpl->assign("printicon", ""._PRINTER.""); Replace with: $tpl->assign("printicon", ""._PRINTER." "._STORY.""); Around Line 346 Original: $printicon = ""._PRINTER.""; 'Fixed Line': $printicon = ""._PRINTER.""; Actual Fixed Line: $printicon = ""._PRINTER.""; Replace With: $printicon = ""._PRINTER." "._STORY.""; This will also have to be done in third-party modules that allow to create or print. Display Word (Doesn't matter the version) storyblock.php Line 31 Original: else $printword = ""._MSWORD.""; Original ('Fixed'): else $printword = ""._MSWORD.""; Replace with: else $printword = ""._MSWORD." "._STORY.""; [Notes 2026/09/23: This is fixed in DisplayWord 1.8.] Segment: if($current == "viewstory") { if(file_exists(_BASEDIR."modules/displayword/languages/{$language}.php")) include_once(_BASEDIR."modules/displayword/languages/{$language}.php"); else include_once(_BASEDIR."modules/displayword/languages/en.php"); if(!empty($chapter) && $chapters > 1) $printword = ""._MSWORD." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printword = ""._MSWORD.""; else $printword = ""._MSWORD.""; $tpl->assign("printword", $printword); } Replace with: if($current == "viewstory") { if(file_exists(_BASEDIR."modules/displayword/languages/{$language}.php")) include_once(_BASEDIR."modules/displayword/languages/{$language}.php"); else include_once(_BASEDIR."modules/displayword/languages/en.php"); if(!empty($chapter) && $chapters > 1) $printword = ""._MSWORD." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printword = ""._MSWORD." "._STORY.""; else $printword = ""._MSWORD." "._STORY.""; $tpl->assign("printword", $printword); } ePubVersion (Doesn't matter the version) storyblock.php Line 43 Original: else $printepub = ""._EPUB.""; Original ('Fixed'): else $printepub = ""._EPUB.""; Replace with: else $printepub = ""._EPUB." "._STORY.""; Line 47 Original: else $printepub = ""._EPUB.""; Original ('Fixed'): else $printepub = ""._EPUB.""; Replace with: else $printepub = ""._EPUB." "._STORY.""; [Notes 2026/09/23: This is fixed in latest ePubVersion 1.3u1_20260923.] Segment: if($current == "viewstory") { if(file_exists(_BASEDIR."modules/epubversion/languages/{$language}.php")) include_once(_BASEDIR."modules/epubversion/languages/{$language}.php"); else include_once(_BASEDIR."modules/epubversion/languages/en.php"); $epubs = dbquery("SELECT sid, epub FROM ".TABLEPREFIX."fanfiction_stories WHERE sid = '".$sid."'"); $epub = dbassoc($epubs); $title_san = preg_replace("/ /", "_", $storyinfo['title']); $title_san = preg_replace("/\@/", "at", $title_san); $title_san = preg_replace("/\&/", "and", $title_san); $title_san = preg_replace("/\W/", "", $title_san); if (!empty($epub['epub']) && $epub['epub'] == "1") { if(!isMEMBER && !$epubanon) accessDenied( ); if($epubrw == "1") { if(!empty($chapter) && $chapters > 1) $printepub = ""._EPUB." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printepub = ""._EPUB.""; else $printepub = ""._EPUB.""; } else { if(!empty($chapter) && $chapters > 1) $printepub = ""._EPUB." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printepub = ""._EPUB.""; else $printepub = ""._EPUB.""; } $tpl->assign("printepub", $printepub); } } Replace with: if($current == "viewstory") { if(file_exists(_BASEDIR."modules/epubversion/languages/{$language}.php")) include_once(_BASEDIR."modules/epubversion/languages/{$language}.php"); else include_once(_BASEDIR."modules/epubversion/languages/en.php"); $epubs = dbquery("SELECT sid, epub FROM ".TABLEPREFIX."fanfiction_stories WHERE sid = '".$sid."'"); $epub = dbassoc($epubs); $title_san = preg_replace("/ /", "_", $storyinfo['title']); $title_san = preg_replace("/\@/", "at", $title_san); $title_san = preg_replace("/\&/", "and", $title_san); $title_san = preg_replace("/\W/", "", $title_san); if (!empty($epub['epub']) && $epub['epub'] == "1") { if(!isMEMBER && !$epubanon) accessDenied( ); if($epubrw == "1") { if(!empty($chapter) && $chapters > 1) $printepub = ""._EPUB." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printepub = ""._EPUB." "._STORY.""; else $printepub = ""._EPUB." "._STORY.""; } else { if(!empty($chapter) && $chapters > 1) $printepub = ""._EPUB." "._CHAPTER." "._OR." "._STORY.""; else if(($displayindex && empty($chapter)) || !empty($_GET['index'])) $printepub = ""._EPUB." "._STORY.""; else $printepub = ""._EPUB." "._STORY.""; } $tpl->assign("printepub", $printepub); } }