View Single Post
Old 11-13-2021, 12:04 PM   #6691
icecold
Enthusiast
icecold began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Mar 2020
Device: Android,
I've been having an issue with how I've been adding the word count and date posted to SB/SV/QQ with custom output and I'm pretty sure that it's mostly a mistake on my end that's causing it. I think that when I'm updating a story it for some reason re-adding the word count and date.


Spoiler:
Code:
[base_xenforoforum:epub]
## base_xenforoforum stories with threadmarks have a few additional
## pieces of metadata available that most adapters don't. 'date';
## 'words'--word count as number only: "12104"; and kwords--the
## threadmark human-readable string for word count with parens:
## "(12.1k)" These can be used with custom output (see
## https://github.com/JimmXinu/FanFicFare/wiki/CustomOutput ) or with
## chapter_title_*_pattern settings.
## Examples for epub:
#[base_xenforoforum:epub]
tocpage_entry:
 <a href="file${index04}.xhtml">${chapter}</a> Posted: ${date} Word Count: ${kwords}<br /><br />
tocpage_start:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 </head>
 <body class="fff_tocpage">
 <div>
 <h3 class="tocpage-notes">Notes</h3>
 <li>This is probably best read with dark mode. Quotes and Spoilers probably won't be easily readable</li>
 <li>Date posted is in mm/dd/yyyy format.</li>
 <hr>
 <h3>Table of Contents</h3>

chapter_start:<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${chapter}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="chapterurl" content="${url}"></meta>
 <meta name="chapterorigtitle" content="${origchapter}"></meta>
 <meta name="chaptertoctitle" content="${tocchapter}"></meta>
 <meta name="chaptertitle" content="${chapter}"></meta>
 </head>
 <body class="fff_chapter">
 <h4 style="text-align: right; margin: 0px;">Posted: ${date} <br>Word Count: ${kwords}</h4><br/>
 <h3 class="fff_chapter_title">${chapter}</h3>

## The 'date' value for chapters mentioned above can be formated with
## datethreadmark_format.  Otherwise it will default to
## dateCreated_format
#datethreadmark_format:%%Y-%%m-%%d %%H:%%M
datethreadmark_format:%%m/%%d/%%Y


Worst case scenario I just stop inserting kwords and date in every chapter and just rely on the toc.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20211113_114047.png
Views:	117
Size:	100.9 KB
ID:	190196  

Last edited by icecold; 11-13-2021 at 12:40 PM.
icecold is offline   Reply With Quote