<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Dashboard Formatting Issues]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6806&amp;type=atom" />
	<updated>2017-06-19T03:19:14Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6806</id>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28032#p28032" />
			<content type="html"><![CDATA[<p>The <strong>pre</strong> tag is a security measure to avoid malicious / unintended html constructs and possible php escapes.</p><p>Somewhere the <strong>nowrap</strong> has been set and needs to be removed out of the css classes &quot;reminder_overdue, reminder_due, reminder&quot; that is in <strong>$extra</strong> or some inheritance.</p><p>Hope you have installed the dashboard theme and edited the <strong>default.css</strong> there by removing the erroneous last &quot;*/&quot; as per this <a href="https://github.com/apmuthu/frontaccounting/commit/24eee9882da484aa98690488ea775dfbf40d6f68">commit</a>.</p><p>There are several instances of <strong>white-space: nowrap;</strong> in the dashboard theme&#039;s default css file (as in all other themes) that may have got inherited suffers defaults.</p><p>https://www.w3schools.com/cssref/css3_pr_word-wrap.asp<br />https://www.w3schools.com/cssref/css3_pr_flex-wrap.asp<br />https://www.w3schools.com/cssref/css3_pr_text-wrap.asp<br />https://stackoverflow.com/questions/3949762/how-to-wrap-text-using-css<br />http://www.xanthir.com/b4U10</p><p>The better option if you cannot control user input, it is to establish the css property, <strong>overflow:hidden</strong>, so if the string is superior to the width, it will not deform the design.</p><p>The following should work everywhere:<br /></p><div class="codebox"><pre><code>&lt;div style=&quot;word-wrap: break-word; width: 100px&quot;&gt; gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg&lt;/div&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-06-19T03:19:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28032#p28032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28030#p28030" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>A screenshot of how it now appears would be useful.</p><p>The <strong>pre</strong> tag should have the same effect. What browser and version are you using?<br />If the <strong>description</strong> has malicious code, it could compromise the output.</p><p>The <strong>pre</strong> tag also exists in the core code (from lines in FA 2.3):<br /></p><div class="codebox"><pre><code>Line 1379: includes/ui/ui_view.php
Line  57: includes/db/connect_db.inc</code></pre></div></blockquote></div><p>Here is the screenshot of how it appears after I removed the code that was causing the problem.<br />https://drive.google.com/open?id=0B6yNa5cxS_7HV2xnR3JTTUN1MU0</p><p>I am using Chrome Version 59.0.3071.104 (Official Build) (64-bit)</p><p>As you can see from the text that was used as my sample text, there isn&#039;t anything in there other than just a message, no random code used.</p><p>Not sure why the <strong>pre</strong> was causing the problem but once it was removed from that part of the code it formatted correctly. I think it has to do with how it was placed in the code in the quotation marks?&nbsp; &nbsp;That&#039;s been the only area where I have had issues with the formatting.</p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-06-17T21:00:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28030#p28030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27936#p27936" />
			<content type="html"><![CDATA[<p>A screenshot of how it now appears would be useful.</p><p>The <strong>pre</strong> tag should have the same effect. What browser and version are you using?<br />If the <strong>description</strong> has malicious code, it could compromise the output.</p><p>The <strong>pre</strong> tag also exists in the core code (from lines in FA 2.3):<br /></p><div class="codebox"><pre><code>Line 1379: includes/ui/ui_view.php
Line  57: includes/db/connect_db.inc</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-06-02T07:23:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27936#p27936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27933#p27933" />
			<content type="html"><![CDATA[<p>Oh my, I am persistent if nothing else.&nbsp; I found where the issue was coming from!</p><p>In file <strong>/modules/dashboard/widgets/reminders.php</strong></p><p>Original code at line 67 </p><div class="codebox"><pre><code> label_cell(&quot;&lt;pre&gt;&quot;.$myrow[&quot;description&quot;].&quot;&lt;/pre&gt;&quot;,$extra);</code></pre></div><p>Removed </p><div class="codebox"><pre><code> &quot;&lt;pre&gt;&quot;</code></pre></div><p> and </p><div class="codebox"><pre><code>&quot;&lt;/pre&gt;&quot;</code></pre></div><p> so it is now changed to </p><div class="codebox"><pre><code>label_cell($myrow[&quot;description&quot;], $extra);</code></pre></div><p>I also had to make the same change at line 95 to <strong>/modules/dashboard/widgets/reminders_setup.php</strong></p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-06-01T03:42:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27933#p27933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27932#p27932" />
			<content type="html"><![CDATA[<p>Ok, I have removed all my customization, it was only 2 additional widgets that were added and the problem still exists with the original module and theme.&nbsp; I have tired playing with the css file all day today and every change I made in the css file didn&#039;t make any change in the theme at all.&nbsp; Maybe I am working with the wrong css file.&nbsp; I was trying to edit default.css in the dashboard theme file.&nbsp; At this point I am at a complete lost.&nbsp; Please help <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-06-01T03:13:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27932#p27932</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27931#p27931" />
			<content type="html"><![CDATA[<p>Never mind, the formatting is still messed up in the main company file as well.&nbsp; I just had started new lines just to keep the message from running off the screen.</p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-06-01T01:44:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27931#p27931</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27930#p27930" />
			<content type="html"><![CDATA[<p>OK, when I go to my main company to uninstall this module and theme everything it working perfect.&nbsp; It&#039;s when I go into one of my other company files that it doesn&#039;t format right.&nbsp; What may be causing that it to only effect all my other companies and not the main company file?</p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-05-31T23:20:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27930#p27930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27929#p27929" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Looks like the css should have wrap enabled (nowrap disabled).</p><p>Since you are using a customised dashboard, you will need to first see what differences there are between the original and your customised one when the customisation was done. The original one itself may have had the bugs and then got rectified in the mainstream itself. It is possible that the customisation may have been done in the core files as well.</p><p>The original Dashboard <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Themes/dashboard_theme">theme</a> and <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Extensions/dashboard">extension</a> are available in <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions">my repo</a>.</p></blockquote></div><p>Ok, where would I find this.&nbsp; The customization that was done was only adding 2 different reports to show up and that was created by the author of this module.</p><p>I just ran a compare plugin to check everything and the css file is identical to the one in your repo.&nbsp; Checked the widget codes along with all the rest of the basic files with this theme and module..&nbsp; I think I&#039;ll try uninstalling it and reinstalling.&nbsp; maybe something will correct it&#039;s self there.</p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-05-31T22:23:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27929#p27929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27915#p27915" />
			<content type="html"><![CDATA[<p>Looks like the css should have wrap enabled (nowrap disabled).</p><p>Since you are using a customised dashboard, you will need to first see what differences there are between the original and your customised one when the customisation was done. The original one itself may have had the bugs and then got rectified in the mainstream itself. It is possible that the customisation may have been done in the core files as well.</p><p>The original Dashboard <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Themes/dashboard_theme">theme</a> and <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Extensions/dashboard">extension</a> are available in <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions">my repo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-28T15:22:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27915#p27915</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dashboard Formatting Issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27906#p27906" />
			<content type="html"><![CDATA[<p>I am having an issue with the dashboard module.&nbsp; I am using FA 2.3.25 on my system right now.&nbsp; The creator of the module made some modifications for me a year or so back and I can&#039;t find his contact info to ask him this question.</p><p>Anyways, when I am using the reminders, if I time a really long message as a new reminder, instead of text wrapping it just continues off the screen.&nbsp; How do I fix this?</p><p>I am trying to put a screen shot on here but I am not sure how.&nbsp; Here&#039;s a link to the screen shot I took.</p><p><a href="https://drive.google.com/file/d/0B6yNa5cxS_7HZ1REMmttMVhxdWs/view?usp=sharing">https://drive.google.com/file/d/0B6yNa5 … sp=sharing</a></p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2017-05-28T05:18:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27906#p27906</id>
		</entry>
</feed>
