<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "ERROR: Warning: fread(): Length parameter"]]></title>
		<link>https://proxy2.de/forum/posts/list/5.php</link>
		<description><![CDATA[Latest messages posted in the topic "ERROR: Warning: fread(): Length parameter"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>ERROR: Warning: fread(): Length parameter</title>
				<description><![CDATA[ Hi Everybody,<br /> <br /> I had the good idea to go in and edit out the "Add Homepage" form field on the AGB signing page to deter spammers. Seems all the really want to do is leave link backs. I did some other minor things and all is workiing except I now have this error code at the top of the AGB index / first page. I found the file and the line but need help with the fix.  <br /> <br /> Can anybody help? <br /> Thanks<br /> nl<br /> -------------------------------------------------<br /> Here's error and the code. I bolded it for reading. <br /> <br /> Warning: fread(): Length parameter must be greater than 0. in /home/MYNAME/public_html/guestbook/lib/template.class.php on line 53<br /> <br /> <br />  }<br /> <br />     function get_template($tpl) {<br />         if (!isset($this-&gt;template[$tpl])) {<br />             $filename = "$this-&gt;root_dir/templates/$tpl";<br />             if (file_exists("$filename")) {<br />                 $fd = fopen ($filename, "r");<br />                [b] $this-&gt;template[$tpl] = fread ($fd, filesize ($filename));[/b]<br />                 fclose ($fd);<br />                 $this-&gt;template[$tpl] = ereg_replace("\"", "\\\"", $this-&gt;template[$tpl]);<br />             }]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19598.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19598.php</link>
				<pubDate><![CDATA[Fri, 10 Feb 2006 19:29:34]]> GMT</pubDate>
				<author><![CDATA[ NewtonLoops]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ it means one of your templates is either missing or blank and the AG template code does not like that. Just put a space in the empty file.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19599.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19599.php</link>
				<pubDate><![CDATA[Fri, 10 Feb 2006 20:23:34]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Need a little help still ...</title>
				<description><![CDATA[ Carbon,<br /> I don't savvy php so well. Can you tell me where / what to do? <br /> <br /> Much appreciated.<br /> <br /> NL]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19607.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19607.php</link>
				<pubDate><![CDATA[Sat, 11 Feb 2006 22:00:16]]> GMT</pubDate>
				<author><![CDATA[ NewtonLoops]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ When you were making your changes you must of edited one of the template files and left it blank. I couldn't say which file but possibly url.php or form_url.php in templates folder.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19610.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19610.php</link>
				<pubDate><![CDATA[Sun, 12 Feb 2006 08:10:02]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Maybe you can make a patch</title>
				<description><![CDATA[ Yes, that is what I was doing. The idea was to remove the message homepage url link fields so people couldn't post fake messages just so they could leave a link back to their site or some other junk site.<br /> <br /> I think it's a good fix to the spam problem. Maybe you can make a patch for anybody wanting to try it that way.<br /> <br /> Ok, I'll go back and look for the problem.<br /> <br /> Thanks for the info.<br /> <br /> NL]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19620.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19620.php</link>
				<pubDate><![CDATA[Sun, 12 Feb 2006 20:39:03]]> GMT</pubDate>
				<author><![CDATA[ NewtonLoops]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Well I assume you just removed <br /> [code]  &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/home.gif&quot; width=&quot;16&quot; height=&quot;16&quot;&gt; $LANG&#91;FormUrl&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;gb_url&quot; size=&quot;42&quot; value=&quot;http&#58;//&quot; maxlength=&quot;45&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt; [/code]<br /> <br /> from form.php<br /> <br /> then just remove $URL from entry.php and <br /> <br /> $gb_post-&gt;url = (isset($_POST["gb_url"])) ? $_POST["gb_url"] : '';<br /> <br /> from addentry.php]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19623.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19623.php</link>
				<pubDate><![CDATA[Sun, 12 Feb 2006 20:44:50]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Do you have a howto up anywhere</title>
				<description><![CDATA[ Carbon,<br /> I was looking at the guestbook you use and saw you have removed the add homepage field form the sign the guestbook page . This is what I was going for when I deleted the wrong code.<br /> <br /> Do you have a howto up anywhere to do it like you did?<br /> <br /> Also, curiosity has me wondering why you are not using Lazarius on this site?<br /> <br /> NL]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19626.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19626.php</link>
				<pubDate><![CDATA[Sun, 12 Feb 2006 21:07:50]]> GMT</pubDate>
				<author><![CDATA[ NewtonLoops]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I use Lazarus which is a fork of the Advanced Guestbook where removing the homepage is an option.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5369/19630.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5369/19630.php</link>
				<pubDate><![CDATA[Sun, 12 Feb 2006 21:14:39]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>