<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Guestbook Customization"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Guestbook Customization"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Guestbook Customization</title>
				<description><![CDATA[ How do I add custom headers to the PHP code for Advanced Guestbook?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2227/5747.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2227/5747.php</link>
				<pubDate><![CDATA[Wed, 6 Aug 2003 20:56:12]]> GMT</pubDate>
				<author><![CDATA[ lbn1124]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ the easy way is just modify the [b]header.php[/b] in the [b]Admin Panel -&gt; Templates[/b]. The header.php needs write permission for everyone. This works if you don't have a separate header php file. If you have a separate php header file you would like to include, then it's a little harder.<br /> <br /> My site uses a separate header php file. [url]http://www.auburn.edu/ald[/url]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2227/5748.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2227/5748.php</link>
				<pubDate><![CDATA[Wed, 6 Aug 2003 21:11:05]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Advanced Guestbook Customization</title>
				<description><![CDATA[ Yes, that's what I am having such a time with.  I have a custom header that I am attempting to implement into the existing header.php.  I've done nothing but make a mes so far.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2227/5749.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2227/5749.php</link>
				<pubDate><![CDATA[Wed, 6 Aug 2003 21:16:13]]> GMT</pubDate>
				<author><![CDATA[ lbn1124]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ the problem with Guestbook 2 is that it doesn't really interpret header.php (and any other template php files) as php files; it simply copy the template files and paste them into main page.<br /> <br /> The whole story is complicated so this is what I did. First I wrote the following function and put it in [b]template.class.php[/b] gb_template class:<br /> <br />     //**************************************************************<br />     // Author: Chih Wang, 2003-2004 Auburn University ALD webmaster<br />     //**************************************************************<br />     function custom_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 />                 $this-&gt;template[$tpl] = fread ($fd, filesize ($filename));<br />                 fclose ($fd);<br />                 //$this-&gt;template[$tpl] = ereg_replace("\"", "\\\"", $this-&gt;template[$tpl]);<br />             }<br />         }<br />         return $this-&gt;template[$tpl];<br />     }<br /> <br /> Second, I search all php files for the word [b]header[/b] and replace this line:<br /> eval("\$guestbook_html = \"".$this-&gt;template-&gt;get_template($this-&gt;db-&gt;GB_TPL['header'])."\";");<br /> <br /> with this line:<br /> eval($this-&gt;template-&gt;custom_get_template($this-&gt;db-&gt;GB_TPL['header']));<br /> <br /> Last make sure your header.php is a valid PHP file, that means all [b]"[/b] needs to be replaced by [b]\"[/b], but it doesn't need [b]&lt;?php [/b]and [b]?&gt;[/b], and include your header file in the header.php.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2227/5751.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2227/5751.php</link>
				<pubDate><![CDATA[Wed, 6 Aug 2003 21:52:03]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>