View Single Post
Old 03-19-2024, 03:06 PM   #9379
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Question Addition to [base_xenforoforum] broke removal of tags from title

Recently I started experimenting with manually defining a titlepage for works hosted on XenForo based forums and added the following to [base_xenforoforum]

Spoiler:
Code:
add_to_extra_valid_entries:,normalized_storyUrl
include_in_normalized_storyUrl:storyUrl

add_to_replace_metadata:
 normalized_storyUrl=>(https?:\/\/forums?\..*?\.com\/(threads|posts)\/)(.*\.)?(\d+\/)(\?post.\d+.*\D(\d+))?=>\1\4\5

titlepage_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>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 </head>
 <body class="fff_titlepage">
 <div class="title">
 <h3><a href="${normalized_storyUrl}">${title}</a> by ${authorHTML}</h2>
 </div>
 <hr/>

titlepage_entry:
 <b>${label}:</b> ${value}<br />

titlepage_end:
 </div>
 </body>
 </html>


At the time [base_xenforoforum] contained the following:

Spoiler:
Code:
add_to_exclude_metadata_pre:
 prefix_tags=~Commission

legend_spoilers:true

add_to_extratags:,From CrW Forums

add_to_custom_columns_settings:
 dateUpdated=>#fff_dateupdated
 numChapters=>#fff_chapter_count
 status=>#fff_status
 numWords=>#fff_words


After making changes to [base_xenforoforum] I tried updating a few works using Overwrite Always to test whether my titlepage was generated correctly, and I noticed some of them had titles where the tags in the title were not removed. Some of the ones I noticed this behaviour on are this work, this work, and also this work.

I then tried adding the ini settings to [base_xenforo2forum] instead of [base_xenforoforum] which fixed the tags from title issue but I'd rather not have it in [base_xenforo2forum] as QQ is as of yet not on XF2.

I'm currently running FanFicFare version 4.32.3

I'd appreciate any help in figuring out what's going wrong/what I'm doing wrong.

Last edited by w4tchdoge; 03-19-2024 at 03:09 PM.
w4tchdoge is offline   Reply With Quote