<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									[MODULE] ePubVersion - Version 3.x Mod Discussion and Development				            </title>
            <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 10 Mar 2026 15:37:50 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20651</link>
                        <pubDate>Thu, 09 Mar 2017 08:28:36 +0000</pubDate>
                        <description><![CDATA[so today i installed this mod to our website. it&#039;s all fine, even though we had to hack our way in the database to change NONE setting to PURE, but it works nonetheless. now, two proble...]]></description>
                        <content:encoded><![CDATA[<blockquote><br>so today i installed this mod to our website. it&#039;s all fine, even though we had to hack our way in the database to change NONE setting to PURE, but it works nonetheless. now, two problems:<br><br>&gt; some stories (not all of them) return a corrupt epub file. <br>&gt; turkish characters don&#039;t exist at all. i tried the basic things from changing character settings to iso-8xxx-9 for turkish, to change the language from story settings etc. any suggestions?<br></blockquote><br><br>Through lots of trial and error, what I&#039;ve found is the Epub version seems to return invalid epubs when there is an ampersand(&amp;) or any accented letter in the story title OR any of the chapter titles. I tried adding the code for ampersand to what appears to be an &quot;allowed characters&quot; section in the epubversion.php (I think) but no change. As far as I can tell, it&#039;s only when those characters appear in the Story and Chapter titles that is causes trouble, not in the rest of the story text.<br><br>It&#039;s an extra step but so far the program Calibre has been able to open all epub files I&#039;ve downloaded from our archive even when iBooks or other apps won&#039;t. In Calibre it will let you convert the file to whatever, even &quot;back&quot; to an epub files, which will then open in the various eReader programs. If you&#039;re only having trouble with some stories, converting with Calibre may be an okay workaround? http://calibre-ebook.com/]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>LD-MTT</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20651</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20650</link>
                        <pubDate>Mon, 06 Mar 2017 22:19:02 +0000</pubDate>
                        <description><![CDATA[We have tinymce so tags aren&#039;t a problem. All Turkish characters öü&#287;&#305;&#351; are absent.]]></description>
                        <content:encoded><![CDATA[We have tinymce so tags aren&#039;t a problem. All Turkish characters öü&#287;&#305;&#351; are absent.]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>guest17300</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20650</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20648</link>
                        <pubDate>Sun, 05 Mar 2017 09:21:23 +0000</pubDate>
                        <description><![CDATA[ePub files can be corrupt when users use tags and don&#039;t close them properly.Like &lt;b&gt;&lt;i&gt;Whatever&lt;/b&gt;&lt;/i&gt;Closed in the wrong order, this will crash some readers.Sp...]]></description>
                        <content:encoded><![CDATA[ePub files can be corrupt when users use tags and don&#039;t close them properly.<br>Like <pre>&lt;b&gt;&lt;i&gt;Whatever&lt;/b&gt;&lt;/i&gt;</pre><br>Closed in the wrong order, this will crash some readers.<br><br>Special characters, only turskish or anything non-ANSI like äöüç ?]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>Sheepcontrol</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/9/#post-20648</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20647</link>
                        <pubDate>Sun, 05 Mar 2017 01:01:41 +0000</pubDate>
                        <description><![CDATA[so today i installed this mod to our website. it&#039;s all fine, even though we had to hack our way in the database to change NONE setting to PURE, but it works nonetheless. now, two proble...]]></description>
                        <content:encoded><![CDATA[so today i installed this mod to our website. it&#039;s all fine, even though we had to hack our way in the database to change NONE setting to PURE, but it works nonetheless. now, two problems:<br><br>&gt; some stories (not all of them) return a corrupt epub file. <br>&gt; turkish characters don&#039;t exist at all. i tried the basic things from changing character settings to iso-8xxx-9 for turkish, to change the language from story settings etc. any suggestions?]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>guest17300</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20647</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20517</link>
                        <pubDate>Mon, 17 Oct 2016 17:08:15 +0000</pubDate>
                        <description><![CDATA[Is there a way to add the epub downloads to the top ten section? I&#039;d love for people to see who is most downloaded etc?]]></description>
                        <content:encoded><![CDATA[Is there a way to add the epub downloads to the top ten section? I&#039;d love for people to see who is most downloaded etc?]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>SnoWhiteSally</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20517</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20499</link>
                        <pubDate>Fri, 23 Sep 2016 00:14:32 +0000</pubDate>
                        <description><![CDATA[*Personally, I want only registered/logged in users to be able to download ePub files, but when I disable anon downloads in the module settings, then attempt to download, it just sends me to...]]></description>
                        <content:encoded><![CDATA[<blockquote><br>*Personally, I want only registered/logged in users to be able to download ePub files, but when I disable anon downloads in the module settings, then attempt to download, it just sends me to a page that reads: &quot;We are sorry, but we have chosen to disable ePub eBook creation for non logged-in users.&quot; Trouble is I AM logged in! Any clue where to start looking to fix this?<br><br>*On the Table of Contents page (the storyindex.tpl) of a multi-chapter story, when I click the ePub download it will only render the first chapter. When I&#039;m viewing the story (viewstory.tpl) it will give me both &quot;chapter&quot; or &quot;story&quot; download options. How to I get it to render the whole story if a user clicks the download link in the table of contents?<br></blockquote><br><br>Did a little more tinkering and at least figured out the download chapter problem. In the ePub module folder, I went to the storyblock.php and on line 47 where it says:<br><br><pre>else $printepub = &quot;&lt;a href="&quot;modules/epubversion/epubversion.php?sid=$sid&amp;amp;chapter=1&quot;&gt;<br><br>I changed it to &quot;chapter=all&quot; . I also did the same change in &quot;storyblock2.php&quot; for good measure. <br><br>Now with the disabling anon download, I found this around line 141<br><pre>if(!isMEMBER &amp;&amp; !$settings&#091;&#039;epubanon&#039;]) {<br>die(_EPUBERRORANON);<br>}</pre><br><br>and changed it to <br><pre>if(!isMEMBER &amp;&amp; !$settings&#091;&#039;epubanon&#039;] == &quot;0&quot;) {<br>die(_EPUBERRORANON);<br>}</pre><br><br>Adding the &#039;== &quot;0&quot;&#039; at least seems to solve the problem before where I wasn&#039;t able download the ePub even if I was logged in, now anon users don&#039;t see any ePub download links while logged-in users do.<br><br>However I actually <i>want</i> non-logged in users to see the ePub download links and then click and get the &quot;registered users only&quot; message, and/or have the number of ePub downloads be on display to everyone (with the disable anon downloads selected) as right now that download total disappears if anon downloads are disabled. This isn&#039;t essential, but still something I&#039;d like!]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>LD-MTT</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20499</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20498</link>
                        <pubDate>Thu, 22 Sep 2016 21:44:49 +0000</pubDate>
                        <description><![CDATA[So after some poking around I got this module mostly working (finally!) but there are still several annoying things going on so any assistance with this is appreciated!Firstly, it looks like...]]></description>
                        <content:encoded><![CDATA[So after some poking around I got this module mostly working (finally!) but there are still several annoying things going on so any assistance with this is appreciated!<br><br>Firstly, it looks like the storyportal site is down right now, but the module is available here: https://github.com/geekbrat/ePubVersion<br><br><b>How I got it to work!</b><br>* First, I replace the install.php code with what <a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="https://efiction.org/forums/index.php?topic=7887.msg44930#msg44930">SJP posted</a> upthread.<br>* Next I went into the epubversion.php file and on line 9 changed the error reporting value from E_ALL to 0 (zero)<br>At this point I can install the module no problem and, once the {printepub} tag is on the proper TPL files, I could download a file, except the ePub file downloaded just had errors. <br>So now I -<br>* go to admin&gt;module&gt;epub version options and for &quot;HTML Filters?&quot; I select &quot;PURE&quot;<br>(<b>EDIT</b>: I figured out how to turn on TIDY, most hosts/servers have it installed but the user has to initiate it. You can do this in your CPanel, or if you have DreamHost like we do you can do it this other somewhat convoluted way, let me know if you have DH and need help! I don&#039;t know if there&#039;s a noticeable difference but TIDY is apparently faster. Either way, you need the HTML filters set to <i>something</i> and not just &quot;none&quot; to get this to work!)<br><br>Now I can actually download a functional ePub file! <br>Here&#039;s my tester site: http://jimothy.just-once.net/fanfiction/ &lt;---I sometimes keep it in maintenance mode just in case one of our users stumble onto it, you can log in with username and password &quot;<b>admintest</b>&quot;<br><br>So that&#039;s the good news, <b>now onto some of the issues!</b><br><br>*Personally, I want only registered/logged in users to be able to download ePub files, but when I disable anon downloads in the module settings, then attempt to download, it just sends me to a page that reads: &quot;We are sorry, but we have chosen to disable ePub eBook creation for non logged-in users.&quot; Trouble is I AM logged in! Any clue where to start looking to fix this?<br><br>*On the Table of Contents page (the storyindex.tpl) of a multi-chapter story, when I click the ePub download it will only render the first chapter. When I&#039;m viewing the story (viewstory.tpl) it will give me both &quot;chapter&quot; or &quot;story&quot; download options. How to I get it to render the whole story if a user clicks the download link in the table of contents?<br><br>I&#039;m also having all the same problems detailed upthread in <a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="https://efiction.org/forums/index.php?topic=7887.msg42829#msg42829">this reply</a>: <br>* There&#039;s no break or other delineation between the chapter notes and the chapter text<br>* Some stories won&#039;t work in eReaders especially if there is certain punctuation or accented letters in the story title or chapter title.<br>* The user that&#039;s uid=1 is put as a co-author on many of the stories. <br><br>I think that&#039;s it, mostly minor but still annoying. The disabling anon downloads is what I most want to fix (I&#039;m hoping to use this feature as incentive for people to sign up and log in!) but help with anything is appreciated!]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>LD-MTT</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20498</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20474</link>
                        <pubDate>Mon, 29 Aug 2016 08:37:59 +0000</pubDate>
                        <description><![CDATA[I am also trying to install this. I was having the same problem as Sally, but then I replaced the install.php code with the code that SJP posted upthread and appeared to be able to install t...]]></description>
                        <content:encoded><![CDATA[I am also trying to install this. I was having the same problem as Sally, but then I replaced the install.php code with the code that <a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="https://efiction.org/forums/index.php?topic=7887.msg44930#msg44930">SJP posted upthread</a> and appeared to be able to install the module.<br><br>However I&#039;m now getting the same error Heatherlly posted about above, trying to download an epub and getting these error messages:<br><br><blockquote>Notice: Array to string conversion in /home/ladama/jimothy/fanfiction/modules/epubversion/epubversion.php on line 164<br><br>Notice: Undefined variable: img_filename in /home/ladama/jimothy/fanfiction/modules/epubversion/cover_img.php on line 90<br><br>Error: Unable to send file Anywhere But Here .epub. HTML Headers have already been sent from /home/ladama/jimothy/fanfiction/modules/epubversion/epubversion.php in line 164</blockquote><br><br>Piper said to turn off error reporting but as far as I know it&#039;s turned off, I have the &quot;Display Debug Info&quot; setting switched off in the &quot;Site Settings&quot;&nbsp; of eFiction, is there also some code I should be adding or removing somewhere like in the header.php?<br>]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>LD-MTT</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20474</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20473</link>
                        <pubDate>Sun, 28 Aug 2016 18:58:06 +0000</pubDate>
                        <description><![CDATA[When I try and install this module, I get this error, any ideas?A fatal MySQL error was encountered.Query: select `epubimg` from `settingsfanfiction_settings` limit 0Error: ()]]></description>
                        <content:encoded><![CDATA[When I try and install this module, I get this error, any ideas?<br><br>A fatal MySQL error was encountered.<br>Query: select `epubimg` from `settingsfanfiction_settings` limit 0<br>Error: ()]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>SnoWhiteSally</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20473</guid>
                    </item>
				                    <item>
                        <title>Re:  ePubVersion</title>
                        <link>https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20397</link>
                        <pubDate>Tue, 03 May 2016 19:59:53 +0000</pubDate>
                        <description><![CDATA[I just did a fresh install of Efiction, followed by an install of this module. Everything went fine until I tried downloading an EPUB. It gave me a bunch of errors, most of which had to do w...]]></description>
                        <content:encoded><![CDATA[<blockquote><br>I just did a fresh install of Efiction, followed by an install of this module. Everything went fine until I tried downloading an EPUB. It gave me a bunch of errors, most of which had to do with the time/date. I edited all of those instances out of the PHP files, which solved that issue, but I&#039;m still having trouble with these:<br><br><blockquote>Notice: Array to string conversion in /homepages/5/d609431004/htdocs/whimsicalwanderings/writing/modules/epubversion/epubversion.php on line 162<br><br>Notice: Undefined variable: img_filename in /homepages/5/d609431004/htdocs/whimsicalwanderings/writing/modules/epubversion/cover_img.php on line 90<br><br>Error: Unable to send file A Test Story .epub. HTML Headers have already been sent from /homepages/5/d609431004/htdocs/whimsicalwanderings/writing/modules/epubversion/epubversion.php in line 162</blockquote><br><br>Any ideas?<br></blockquote><br><br>Honestly, the 2 notices are just that, notices and that kind of error reporting should be turned off in a production site. The one fatal error stems from the fact that you have the error reporting turned on and so it&#039;s creating a page-header before the page header the script sends. Which causes a fatal error. If you turn off error reporting you should be fine, but I will try and work to improve my coding practices.<br><br>-Piper]]></content:encoded>
						                            <category domain="https://efiction.org/community/version-3-x-mod-discussion-and-development/">Version 3.x Mod Discussion and Development</category>                        <dc:creator>Piper</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/version-3-x-mod-discussion-and-development/module-epubversion/paged/8/#post-20397</guid>
                    </item>
							        </channel>
        </rss>
		