<?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>
									Improved Text Size Option - Feature Requests				            </title>
            <link>https://efiction.org/community/feature-requests/improved-text-size-option/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 15 Sep 2026 02:22:04 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Re: Improved Text Size Option</title>
                        <link>https://efiction.org/community/feature-requests/improved-text-size-option/#post-20239</link>
                        <pubDate>Sun, 16 Aug 2015 18:51:15 +0000</pubDate>
                        <description><![CDATA[So, life has been crazy and I&#039;m just now getting around to adding this code to my site. I did all of the edits suggested. The text size preference appears just fine in the edit preferen...]]></description>
                        <content:encoded><![CDATA[So, life has been crazy and I&#039;m just now getting around to adding this code to my site. I did all of the edits suggested. The text size preference appears just fine in the edit preferences page. However, when I choose my text size and click submit I get the following error:<br><br>A fatal MySQL error was encountered.<br>Query: UPDATE allfanfiction_authorprefs SET sitetextsize = &#039;1&#039;, alertson = &#039;1&#039;, newreviews = &#039;1&#039;, newrespond = &#039;1&#039;, ageconsent = &#039;1&#039;, tinyMCE =&#039;1&#039;, userskin = &#039;TWCS&#039;, storyindex = &#039;0&#039;, banner = &#039;&#039;, sortby = &#039;1&#039; WHERE uid = &#039;1&#039;<br>Error: () <br><br>I&#039;m not sure how what went wrong. <br><br>Would it be possible to set a default text size for all stories in the coding in the storyblock.php file listed in the Includes folder?<br><br>I&#039;m sorry to ask so many questions but I&#039;m not very knowledgeable in programming language so any help anyone here can give is appreciated more than you could ever know :)<br><br><b>UPDATE:</b><br>I found it and fixed it. I used the Viewstory.php file and made the following edits:<br>Find:<br><pre>if(isset($_GET&#091;&#039;textsize&#039;]) &amp;&amp; isNumber($_GET&#091;&#039;textsize&#039;])) $textsize = $_GET&#091;&#039;textsize&#039;];<br>else $textsize = 0;</pre><br><br>I changed the 0 for the textsize to 10 and it only increased the font on the view story pages. I&#039;m so excited that I worked through it and figured it all out :)]]></content:encoded>
						                            <category domain="https://efiction.org/community/feature-requests/">Feature Requests</category>                        <dc:creator>Jennmc75</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/feature-requests/improved-text-size-option/#post-20239</guid>
                    </item>
				                    <item>
                        <title>Re: Improved Text Size Option</title>
                        <link>https://efiction.org/community/feature-requests/improved-text-size-option/#post-20109</link>
                        <pubDate>Sun, 15 Feb 2015 17:13:39 +0000</pubDate>
                        <description><![CDATA[Wow, thanks for that suggestion.I don&#039;t know if every user would like the text to be larger. I just know I&#039;ve had a handful of members suggest text size be an option they can set a...]]></description>
                        <content:encoded><![CDATA[Wow, thanks for that suggestion.<br><br>I don&#039;t know if every user would like the text to be larger. I just know I&#039;ve had a handful of members suggest text size be an option they can set and not have to go back to unless they want to.<br><br>I think I&#039;ll post a poll and see if they are happy with me increasing the general text size on the site and go from there.<br><br>Thanks again for all of the hard work you are putting into the new programming :)]]></content:encoded>
						                            <category domain="https://efiction.org/community/feature-requests/">Feature Requests</category>                        <dc:creator>Jennmc75</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/feature-requests/improved-text-size-option/#post-20109</guid>
                    </item>
				                    <item>
                        <title>Re: Improved Text Size Option</title>
                        <link>https://efiction.org/community/feature-requests/improved-text-size-option/#post-20096</link>
                        <pubDate>Mon, 12 Jan 2015 20:17:37 +0000</pubDate>
                        <description><![CDATA[This intrigued me since I figured my members would like it as well. I know that a number of them use the +text size option when viewing stories, and you&#039;re right, they would prefer not ...]]></description>
                        <content:encoded><![CDATA[This intrigued me since I figured my members would like it as well. I know that a number of them use the +text size option when viewing stories, and you&#039;re right, they would prefer not to have to hit the button when they begin/change stories. I came up with a way to change the default text size for the whole site. I figured that if they needed bigger story text, then they needed it all over when browsing the entire site. You could change things to just change story text, if that&#039;s all you want. This requires quite a few edits, and there&#039;s probably an easier way to do it since I&#039;m not a professional, but it works&nbsp; :biggrin: .<br><br>First, in the SQL box of your database, enter this to save the text size preference. It defaults all current and new users to the normal size:<br><pre>ALTER TABLE `fanfiction_authorprefs` ADD `sitetextsize` tinyint(1) NOT NULL default &#039;0&#039;;</pre><br><br>Next, open includes/pagesetup.php. After:<br><pre>unset($catresult, $result, $classresults, $classtyperesults, $ratlist, $type, $rate, $class, $char, $cat);<br>$action = escapestring($action);</pre><br>Add: (if a user is logged in, the site checks what their default text size is. If they aren&#039;t logged in, they get the default size)<br><pre>if(USERUID) {<br>$textpref = dbquery(&quot;SELECT sitetextsize FROM &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs WHERE uid = &#039;&quot;.USERUID.&quot;&#039;&quot;);<br>list($sitetextsize) = dbrow($textpref);}<br>else $sitetextsize = 0;	</pre><br><br>Find:<br><pre>if($action != &quot;printable&quot;) $tpl-&gt;newBlock(&quot;header&quot;);</pre><br><br>After it, add:<br><pre>$tpl-&gt;assign(&quot;sitetextsize&quot;, &quot;style=&#039;font-size: &quot;.(100 + ($sitetextsize * 20)).&quot;%;&#039;&quot;);</pre><br><br>Next, open your header.tpl file. If you have more than one skin, each skin may have its own header.tpl file located in the skin folder. If that&#039;s the case, you need to edit them all for this to work on all your skins. If your skins don&#039;t have their own tpl files, you just need to edit the one in the default_tpls folder. Find:<br><pre>&lt;div id=&quot;mainpage&quot;&gt;</pre><br><br>Change it to:<br><pre>&lt;div id=&quot;mainpage&quot; {sitetextsize}&gt;</pre><br><br>Finally, open user/editprefs.php to make the section where users can select their default text size. After:<br><pre>$sortby = isset($_POST&#091;&#039;sortby&#039;]) &amp;&amp; $_POST&#091;&#039;sortby&#039;] == 1 ? 1 : 0;</pre><br><br>Add:<br><pre>$text = isset($_POST&#091;&#039;text&#039;]) &amp;&amp; isNumber($_POST&#091;&#039;text&#039;]) ? $_POST&#091;&#039;text&#039;] : 0;</pre><br><br>Change:<br><pre>dbquery(&quot;UPDATE &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs SET alertson = &#039;$useralertson&#039;, newreviews = &#039;$newreviews&#039;, newrespond = &#039;$newrespond&#039;, ageconsent = &#039;$ageconsent&#039;, tinyMCE =&#039;$tinyMCE&#039;, userskin = &#039;$skinnew&#039;, storyindex = &#039;$storyindex&#039;, banner = &#039;$showbanners&#039;, sortby = &#039;$sortby&#039; WHERE uid = &#039;&quot;.USERUID.&quot;&#039;&quot;);</pre><br><br>To:<br><pre>dbquery(&quot;UPDATE &quot;.TABLEPREFIX.&quot;fanfiction_authorprefs SET sitetextsize = &#039;$text&#039;, alertson = &#039;$useralertson&#039;, newreviews = &#039;$newreviews&#039;, newrespond = &#039;$newrespond&#039;, ageconsent = &#039;$ageconsent&#039;, tinyMCE =&#039;$tinyMCE&#039;, userskin = &#039;$skinnew&#039;, storyindex = &#039;$storyindex&#039;, banner = &#039;$showbanners&#039;, sortby = &#039;$sortby&#039; WHERE uid = &#039;&quot;.USERUID.&quot;&#039;&quot;);</pre><br><br>Then, after:<br><pre>$output .= &quot;&lt;label for=&#039;tinyMCE&#039;&gt;&quot;._USETINYMCE.&quot;:&lt;/label&gt; &lt;INPUT name=&quot;tinyMCE&quot; type=&quot;checkbox&quot; class=&quot;checkbox&quot;&quot;.($user&#091;&#039;tinyMCE&#039;] ? &quot; checked&quot; : &quot;&quot;).&quot;&gt;&lt;A HREF="&quot;#&quot;" class=&quot;pophelp&quot;&gt;&lt;span&gt;&quot;._HELP_TINYMCE.&quot;&lt;/span&gt;&lt;/A&gt;&lt;br /&gt;&quot;;</pre><br><br>Add:<br><pre>$output .=&nbsp; &quot;Text size: &lt;input type=&quot;radio&quot; class=&quot;radio&quot; id=&quot;normtext&quot; value=&quot;0&quot; name=&quot;text&quot;&quot;.(empty($user&#091;&#039;sitetextsize&#039;]) || $user&#091;&#039;sitetextsize&#039;] == 0 ? &quot;checked=&#039;checked&#039;&quot; : &quot;&quot;).&quot;&gt;&lt;label for=&quot;normtext&quot;&gt;Normal&amp;nbsp;&amp;nbsp;&lt;/label&gt;&lt;input type=&quot;radio&quot; class=&quot;radio&quot; id=&quot;medtext&quot; value=&quot;1&quot; name=&quot;text&quot;&quot;.(!empty($user&#091;&#039;sitetextsize&#039;]) &amp;&amp; $user&#091;&#039;sitetextsize&#039;] == 1 ? &quot;checked=&#039;checked&#039;&quot; : &quot;&quot;).&quot;&gt;&lt;label for=&quot;medtext&quot;&gt;Medium&amp;nbsp;&amp;nbsp;&lt;/label&gt;&lt;input type=&quot;radio&quot; class=&quot;radio&quot; id=&quot;largetext&quot; value=&quot;2&quot; name=&quot;text&quot;&quot;.(!empty($user&#091;&#039;sitetextsize&#039;]) &amp;&amp; $user&#091;&#039;sitetextsize&#039;] == 2 ? &quot;checked=&#039;checked&#039;&quot; : &quot;&quot;).&quot;&gt;&lt;label for=&quot;largetext&quot;&gt;Large&lt;/label&gt;&lt;/span&gt;&lt;br /&gt;&quot;;</pre><br><br>Hope this helps!]]></content:encoded>
						                            <category domain="https://efiction.org/community/feature-requests/">Feature Requests</category>                        <dc:creator>SJP</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/feature-requests/improved-text-size-option/#post-20096</guid>
                    </item>
				                    <item>
                        <title>Re: Improved Text Size Option</title>
                        <link>https://efiction.org/community/feature-requests/improved-text-size-option/#post-20095</link>
                        <pubDate>Mon, 12 Jan 2015 04:01:26 +0000</pubDate>
                        <description><![CDATA[Hi Jennmc75! Do you mean readers want a different size? Or authors? If ALL of your readers want the larger text size, I would recommend changing the default text size is your skin&#039;s CSS...]]></description>
                        <content:encoded><![CDATA[Hi Jennmc75! Do you mean readers want a different size? Or authors? <br><br>If ALL of your readers want the larger text size, I would recommend changing the default text size is your skin&#039;s CSS file.]]></content:encoded>
						                            <category domain="https://efiction.org/community/feature-requests/">Feature Requests</category>                        <dc:creator>banshee</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/feature-requests/improved-text-size-option/#post-20095</guid>
                    </item>
				                    <item>
                        <title>Improved Text Size Option</title>
                        <link>https://efiction.org/community/feature-requests/improved-text-size-option/#post-3449</link>
                        <pubDate>Sat, 10 Jan 2015 05:14:31 +0000</pubDate>
                        <description><![CDATA[All of my members are not happy with the text sizing options currently available. They have to change the text size every time they change chapters or stories.They would like a way to set th...]]></description>
                        <content:encoded><![CDATA[All of my members are not happy with the text sizing options currently available. They have to change the text size every time they change chapters or stories.<br><br>They would like a way to set the text size in the  screen that way their story text size will always be the same. Not sure if this is a possibility but I would have a LOT of happy members if so.]]></content:encoded>
						                            <category domain="https://efiction.org/community/feature-requests/">Feature Requests</category>                        <dc:creator>Jennmc75</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/feature-requests/improved-text-size-option/#post-3449</guid>
                    </item>
							        </channel>
        </rss>
		