Hi
I'd like to have this option on my site, but it seems I've messed with something in the installation ...
Here are the errors I get when visualizing one story
Notice: Constant _UNINSTALLWARNING already defined in /home/jagenlig/www/efic/modules/epubversion/languages/en.php on line 35
Notice: Use of undefined constant epub - assumed 'epub' in /home/jagenlig/www/efic/modules/epubversion/storyblock.php on line 36
Notice: Use of undefined constant epub - assumed 'epub' in /home/jagenlig/www/efic/modules/epubversion/storyblock.php on line 36
I do not have tidy on my server but I used the "pure" option, it seems to work fine, but I can't get the ebook on my ipad. But then I'm running this morning to the Applestore as my device is running weird 🙁
I just visualized the file in calibre, it seems to be ok, so I just need to understand what all these notice are aboutAny idea?
Can you tell me what version of ePubVersion you are running?
the first warning references something that doesn't exist in my language file, the 2nd and 3rd should be taken care of in my beta code that I should be releasing soon.
-P/KAF/PT
P.S. I will be relasing a Beta/RC publicly (as opposed to privately to certain users) this time, so that we can refine some things and look for which errors are resolved since I have so many reports at once, and only a few that I can replicate myself.
I'm getting the same error. And when I go to put the ePub file into Adobe Digital Editions to read it, it won't let me. It comes at me with an error - "The document appears to have minor errors that might cause it to be displayed incorrectly".
I am using ePubVersion v1.2
Going by your demo though, this looks like an AWESOME module! Thank you!
I wanted to let everyone know, that I have NOT forgotten about you, I've just picked up some actual PHP coding for $$ work, as well as helping rescue some sites from the servers of a friend whom recently passed away and I've just been REALLY REALLY BUSY!
If I were to setup a proper bug tracker and SVN would anyone else be interested in contributing code? It might help me get this next version finished faster.
-HuGgLeS-
-P/KAF/PT
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Quick question for everyone that has 1.2 installed... I need you to check your database.... Or the eFiction Admin panel (Click Admin then Modules) and tell me WHAT version of ePubVersion does it say you are using? I ask this as my system reports 1.1 but I'm using live code, and I need to know if other 1.2 installs are reporting 1.1 or 1.2...
I just finished coding some new features and upgrading the core ePub class that this module uses... I need to upgrade HTML Purifier source and a few other things, and hopefully fix the encoding issues before I'm ready for a full release... But if anyone has a "beta" site they want to try it on, just send me a message to GeekBrat@Gmail.Com or leave a comment on the ePub page @ http://storyportal.net/software/epub and I will ship you over some "test" code to try out.
-HuGgLeS-
-P/KAF/PT
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Here' RC1 of the 1.3 Release which includes the following improvements...
v1.3 – Added support for changing the ePub “Language” identifier.
v1.3 – Added support for site wide “Cover” images for stories.
v1.3 – Added support for author uploaded/custom “Cover” images for stores.
v1.3 – Upgraded EPub.php to current released version.
v1.3 – Upgraded HTML Purifier to current released version.
v1.3 – Added the ability to use “Cover” images on your eFiction Front page and Stories pages…
v1.3 – Improved handling of extraneous character sets.
v1.3 – Fixed several reported errors.
This code is running live @ TGFiction.Net but I HIGHLY recommend you test this on your test sites first! DO NOT run this on live sites, as I am not responsible when for it eating all the stories on your archive and bringing the forward the wrath of your server ROOT administrator.
http://tgfiction.net/epubversion-1.3rc1.tar.gz
I've not written proper documentation for the cover features that add fuctionality to the site yet... But here is the code I use for TGFiction.Net
This is the code I use in my index.tpl files... The important parts are {printthumb} which prints a thumbnail of the book "cover" image if it's set by the user/author. This code will resize the image to max width/height of 100px whlst keeping proper aspect ratio. I use the DIV STYLE code to make it auto resize the description box as needed. It keeps it a min size so that it doesn't make the page look ugly.
<!-- START BLOCK : recentblock -->
<div style="min-height:100px; height:auto!important; height:100px;">
<span style="font-weight: bold; font-size: 1.2em; border-bottom: 1px dashed #999; margin-bottom: 5px;">{printthumb}
{title} by {author} {printepub}</span><br />
<span class="label">Summary: </span>{summary}<br />
<span class="label">Rated:</span> {rating} {score} <span class="label">Categories:</span> {category} {classes}</span>
<br />
</div>
<hr>
<!-- END BLOCK : recentblock -->
This code is used in listing.tpl, the tag to look for here is {cover}. This one resizes the image dynamically to no larger than 250x250 whilst keeping the proper aspect ratio. Again, I alo use DIV STYLE code to keep min box height that auto resizes as needed.
<!-- START BLOCK : storyblock -->
<div class="listbox {oddeven}">
<div class="title"><span class="t2">{title}</span> by {author} <span class="label">Rated:</span> {rating} {roundrobin} {score} [{reviews} - {numr$
<div style="min-height:250px; height:auto!important; height:250px;">
{cover}
<div class="content"><span class="label">Summary: </span>{featuredstory}{summary}<br />
<span class="label">Categories:</span> {category} <br />
<span class="label">Characters: </span> {characters}<br />
{classifications}
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed}
<span class="label">Word count:</span> {wordcount} <span class="label">Read Count:</span> {count} <span class="label">ePub Downloads:</span> {ep$
{adminlinks}</div></div>
<div class="tail"><span class="label">{printepub} {addtofaves} {reportthis} Published: </span>{published} <span class="label">Updated:</span> {up$
</div>
{comment}
<!-- END BLOCK : storyblock -->
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Put it up quickly on one of my testing grounds. Updater told me the update was already run and now it throws mySQL errors.
Tried to uninstall and reinstall and got this:
A fatal MySQL error was encountered.
Query: ALTER TABLE `fanfiction_settings` ADD `epubimg` TINYINT( 1 ) NOT NULL default '0'
Error: ()
Skins made by Kali are no longer supported!
Quick question for everyone that has 1.2 installed... I need you to check your database.... Or the eFiction Admin panel (Click Admin then Modules) and tell me WHAT version of ePubVersion does it say you are using? I ask this as my system reports 1.1 but I'm using live code, and I need to know if other 1.2 installs are reporting 1.1 or 1.2...
Mine says 1.2.
Put it up quickly on one of my testing grounds. Updater told me the update was already run and now it throws mySQL errors.
Tried to uninstall and reinstall and got this:
A fatal MySQL error was encountered.
Query: ALTER TABLE `fanfiction_settings` ADD `epubimg` TINYINT( 1 ) NOT NULL default '0'
Error: ()
I quite stuffed the install/update/uninstall scripts. Writing a new fix, will take a day or so. -sighs-
Sorry about that 🙁
-P/KAF/PT
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Description: Module to create and download .ePub versions of stories.
Current Version: 1.3 (1.3 fixes installer errors found in 1.3rc1 as well as some other errors I found)
Demo: http://www.tgfiction.net (visit any story, and look for the ePub icon under DisplayWord and Printer friendly)
Requirements:
- efiction 3.x
- PHP – 5.3.2 because of functions used in the ePub Class
- I use don’t use any specialized MySQL functions. I use MySQL5 for testing and development, but again, have no specific requirements other than that.
- PHP needs to be compiled with TIDY in order to use the TIDY option.
- Apache Mod_Rewrite is needed for Search/Stanza friendly URL’s
- PHP needs to be compiled with CURL support to enable CURL as an option for image retrieval.
- PHP needs to have URL_FOPEN enabled to enable URL_FOPEN/get_file_contents() as an option for image retrieval.
- I make GREAT use of preg_match/preg_replace so your webhost needs to have perl regular expressions (regexp) enabled in PHP.
.
Mod History:
- v1.3 – Added {printepub} {epubcount} {cover} {printthumb} tags to available TPL coding tags.
- v1.3 - Added support for changing the ePub "Language" identifier.
- v1.3 – Added support for site wide "Cover" images for stories.
- v1.3 – Added support for author uploaded/custom "Cover" images for stores.
- v1.3 – Upgraded EPub.php to current released version.
- v1.3 – Upgraded HTML Purifier to current released version.
- v1.3 – Added the ability to use "Cover" images on your eFiction Front page and Stories pages...
- v1.3 – Improved handling of extraneous character sets.
- v1.3 – Fixed several reported errors.
- v1.3 – Fixed Dynamic Banner code.
Download: http://storyportal.net/software/epub/
Current Issues:
- All Formatting is currently hardcoded into ePubVersion (I will work on putting the Template.Power template support back in in a later release, but I was having issues mixing the EPub class and the Template.Power class).
Basic Documentation:
To install this module:
1. Upload the entire epubversion folder to the the modules folder within your
eFiction installation.2. Go to http://yoursite.com/admin.php?action=modules or
http://www.yoursite.com/modules/epubversion/install.php where
www.yoursite.com is your eFiction site's address.3. Goto the main default_tpls folder. Open up viewstory.tpl and
storyindex.tpl and add {printepub} where you want the ePub icon/options
to appear.4. Do the same for any skins with their own viewstory.tpl and/or storyindex.tpl
You can define $epubicon in your skin's variables.php to override the
default ePub icon if you so desire.There is one language definition in the en.php file in the languages folder
that provides the alt text for the ePub icon as well as the various text bits
for the rest of the expanded modules..The configuration variables that used to be set at the top of epubversion.php
are now set via the modules admin options panel. You can access this by
visiting http://yoursite.com/admin.php?action=modules&module=epubversion&admin=true
or by goting to the "Admin" page, clicking on "Modules" and then clicking on the
"Options" link next to ePubVersion.These variables are used to configure you "Brought to you by" line on the cover
page, and the OPF's publisher information lineThis module now has the ability for Authors to turn on/off ePub editions for
each of their stories. This is done via the User/Account menu, by clicking on
"Manage ePub Stories". By default, the ePub bit is set to "0" or "Off" for
all authors. They must "Opt In"5) We have added several new tags to ePubVersion that can be added to your templates.
{printepub} -- Displays a direct Download link for ePub version of a Story.
{printthumb} -- Displays a thumbnail Image of the epub/Book Cover is one has been
set in "Manage ePub Stories". Cover image is dynamicaly resized so that max width
or height is no larger than 100px. Original Aspect ratios are kept.
Requires PHP Compiled with GD, and GD compiled with PNG/JPG/GIF support.{cover} -- Displays an Image of the epub/Book Cover is one has been set in "Manage
ePub Stories". Cover image is dynamicaly resized so that max width
or height is no larger than 250px. Original Aspect ratios are kept.
Requires PHP Compiled with GD, and GD compiled with PNG/JPG/GIF support.{epubcount} -- Returns the number of times a Story has been downloaded as "epub"
in numerical form.Below you will find sample usage of the new skin tags as found in my index.tpl (recentblock)
and listings.tpl (storyblock). I have made use of CSS to make the various "boxes" size
properly around the images.<!-- START BLOCK : recentblock -->
<div style="min-height:100px; height:auto!important; height:100px;">
<span style="font-weight: bold; font-size: 1.2em; border-bottom: 1px dashed #999; margin-bottom: 5px;">
{printthumb}{title} by {author} {printepub}</span><br />
<span class="label">Summary: </span>{summary}<br />
<span class="label">Rated:</span> {rating} {score} <span class="label">Categories:</span> {category} {classes}</span>
<br />
</div>
<hr>
<!-- END BLOCK : recentblock --><!-- START BLOCK : storyblock -->
<div class="listbox {oddeven}">
<div class="title"><span class="t2">{title}</span> by {author} <span class="label">Rated:</span> {rating} {roundrobin} {score} [{reviews} - {numreviews}] {new} </div>
<div style="min-height:250px; height:auto!important; height:250px;">
{cover}
<div class="content"><span class="label">Summary: </span>{featuredstory}{summary}<br />
<span class="label">Categories:</span> {category} <br />
<span class="label">Characters: </span> {characters}<br />
{classifications}
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed}
<span class="label">Word count:</span> {wordcount} <span class="label">Read Count:</span> {count} <span class="label">ePub Downloads:</span> {epubcount}
{adminlinks}</div></div>
<div class="tail"><span class="label">{printepub} {addtofaves} {reportthis} Published: </span>{published} <span class="label">Updated:</span> {updated}</div>
</div>
{comment}
<!-- END BLOCK : storyblock -->
Please leave my info in any derivative works, as I have left Tammy’s. This module is released under GPL and is free to use. Use it to your hearts content.
You can post comments/complaints here or @ my wordpress site, but the wordpress site (storyportal.net) will probably get replies first.
-HuGgLeS-
-P/KAF/PT
ePubVersion v1.3 is OFFICIALLY Released! 🙂
This version takes into account any errors that may have been introduced by the v1.3rc1 installer. If you run into problems installing this over the top of 1.3rc1, then uninstall it, but leave user data in place, the new installer has been written to allow for existing user data. if all else fails, run modules/epubversion/dropall.php which will remove ALL TRACES of ePubVersion from your database completely.
As usual, the official download links can be found on the http://storyportal.net/software/epub/ blog page.
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Got an error when I tried to installed 1.3 on test server
Parse error: syntax error, unexpected '}' in /localhost/modules/epubversion/install.php on line 142
Line 108/109 should look like this:
}
} else {
just erase the first "}" on the line by itself so that all you have is this:
} else {
or you can download a gzip compressed version of the updated install.php here:
http://www.tgfiction.net/modules/install.php.gz
I will be updating the website archives shortly.
I updated the download archives on the website but didn't change the links. I just updated the actual zip/7z/tar.gz/tar.bz2 archives.
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
I seem to enjoy running into bugs. Yet another for your perusal.
A fatal MySQL error was encountered.
Query: select `epubimg` from `fanfiction_settings` limit 0
Error: ()
I get this error when I try to install that module with ether yes option.
I seem to enjoy running into bugs. Yet another for your perusal.
A fatal MySQL error was encountered.
Query: select `epubimg` from `fanfiction_settings` limit 0
Error: ()I get this error when I try to install that module with ether yes option.
Sighs, I've had to re-write the update.php and install.php files.... Sorry for all the errors...
Main site archives have been updated. But here are .zip and .7z files of the updated files.
http://www.tgfiction.net/modules/epubversion-1.3updates.zip
http://www.tgfiction.net/modules/epubversion-1.3updates.7z
-HuGgLeS-
-P/KAF/PT
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
Still not working for us for whatever reason. Tried to run the drop all and got.
A fatal MySQL error was encountered.
Query: ALTER TABLE `fanfiction_settings` DROP `epubcover`
Error: ()
Looking at the database, it looks like all the data is removed (I went to do it manually) but the install script throws mysql errors too.
Skins made by Kali are no longer supported!
The dropall script should throw errors but still continue when it encounters one. What errors is the installer encountering?
-P
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
The dropall script should throw errors but still continue when it encounters one. What errors is the installer encountering?
-P
The one I posted. Then nothing else happens. Then when I try to install, I get
A fatal MySQL error was encountered.
Query: select `epubimg` from `fanfiction_settings` limit 0
Error: ()
Skins made by Kali are no longer supported!

