<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology, Computer, Network and Games Cheat &#187; PHP-Nuke</title>
	<atom:link href="http://www.gamescheat.ca/tag/php-nuke/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gamescheat.ca</link>
	<description>Day to day technical how to - by Andrew Lin</description>
	<lastBuildDate>Thu, 26 May 2011 18:48:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to include a HTML file in a PHP-Nuke module.</title>
		<link>http://www.gamescheat.ca/2008/02/how-to-include-a-html-file-in-a-php-nuke-module/</link>
		<comments>http://www.gamescheat.ca/2008/02/how-to-include-a-html-file-in-a-php-nuke-module/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 22:04:42 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP-Nuke]]></category>
		<category><![CDATA[SOFTWARE]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/2008/02/16/how-to-include-a-html-file-in-a-php-nuke-module/</guid>
		<description><![CDATA[From what we have said about the structure of a PHP-Nuke module (see Section 21.1), it is easy to include a HTML file in a module &#8211; all we have to do is use the PHP include command, to include it between the calls to OpenTable() and CloseTable() functions: Create a folder under the modules [...]]]></description>
			<content:encoded><![CDATA[<p>From what we have said about the structure of a PHP-Nuke module (see Section 21.1), it is easy to include a HTML file in a module &#8211; all we have to do is use the PHP include command, to include it between the calls to OpenTable() and CloseTable() functions:</p>
<p>Create a folder under the modules directory. Call it whatever you like, but take care to replace blanks with underscores in the name.</p>
<p>Using a decent text editor (see Chapter 11), create a text file called index.php in that newly created directory.</p>
<p>Copy the following code in index.php:</p>
<p>&lt;?php<br />
/********************************/<br />
/* PHP-NUKE: Web Portal System */<br />
/* =================  */<br />
/*  */<br />
/* PHP-Nuke-HOWTO module for &lt;application&gt;PHP-Nuke&lt;/application&gt; */<br />
/*  */<br />
/* Copyright (c) 2003 index.php  */<br />
/* by Chris   */<br />
/* www. karakas-online. */<br />
/* */<br />
/* See licence.html for the Licence of the other files */<br />
/* distributed together with this index.php file.  */<br />
/*  */<br />
/* This program is free software. You can redistribute it and/or modify */<br />
/* it under the terms of the General Public License as published by */<br />
/* the Free Software Foundation; either version 2 of the License.Â  */<br />
/***********************************/<br />
if (!eregi(&#8220;modules.php&#8221;, $PHP_SELF)) {<br />
Â  die (&#8220;You can&#8217;t access this file directly&#8230;&#8221;);<br />
}<br />
$index = 0;Â Â  // 0 : do not show right blocks &#8211; 1:show right blocks<br />
require_once(&#8220;mainfile.php&#8221;);<br />
$module_name = basename(dirname(__FILE__));<br />
include(&#8220;header.php&#8221;);<br />
OpenTable();<br />
include(&#8220;path/to/the/html/file&#8221;); // &lt;&#8211; CHANGE THIS!<br />
CloseTable();<br />
include(&#8220;footer.php&#8221;);<br />
?&gt;</p>
<p>Change the licence to reflect your decisions. Of course, I urge you to use the GNU General Public License whenever possible, to help the cause of free software &#8211; PHP-Nuke is itself set under the GPL, after all, so why would you want a different licence for your module?.</p>
<p>Then just enter the right path to the HTML file you want to include, replacing the &#8220;path/to/the/html/file&#8221; string. This can be either a full filesystem path, or a relative one &#8211; relative to the PHP-Nuke root directory, which is always the same directory where config.php is located. But it may also very well be a URL to a HTML file of another site. Examples:</p>
<p>include(&#8220;/usr/local/httpd/htdocs/myfile.html&#8221;); // absolute filesystem path<br />
include(&#8220;modules/PHP-Nuke_HOWTO/cookies.html&#8221;); // relative filesstem path<br />
include(&#8220;http://www.wiivil.com/ filexx.html&#8221;); // full URL</p>
<p>Finally, activate the module from the modules administration (see Section 9.3).</p>
<p>Â Javascript in modules<br />
Â  There is nothing that prevents you from including a file that contains Javascript code in a module. As long as the Javascript functions defined in the included file are not also present in the includes/javascript.php file (see Section 21.9.1), and the HTML page created with the Javascript does not break the table layout of your theme, there should be no problem. In this way you could create a PHP-Nuke Guestbook module, for example, if you already had the Javascript code for a guestbook (see Javascript in themes).<br />
Â </p>
<p>If you want to include two files in the module, so that they appear side-by-side, rather than one after the other, you can use the usual HTML table trick to show the files in two separate cells of the same table row (see Using &#8220;include&#8221; for HTML pages):</p>
<p>OpenTable();<br />
echo &#8220;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&#8221;;<br />
include (&#8220;page.html&#8221;);<br />
echo &#8220;&lt;/td&gt;&lt;td&gt;&#8221;;<br />
include (&#8220;page2.html&#8221;);<br />
echo &#8220;&lt;/td&gt;&lt;/tr&gt;&lt;/table&#8221;;<br />
CloseTable();</p>
<p>An alternative way to include a HTML file in the module, is to terminate PHP interpretation of the file with a closing ?&gt;, include the HTML code verbatim and then reopen the PHP context with a new &lt;?php line:</p>
<p>&lt;?php<br />
if (!eregi(&#8220;modules.php&#8221;, $PHP_SELF)) {<br />
die (&#8220;You can&#8217;t access this file directly&#8230;&#8221;);<br />
}<br />
$index = 0;Â Â  // 0 : do not show right blocks &#8211; 1:show right blocks<br />
require_once(&#8220;mainfile.php&#8221;);<br />
$module_name = basename(dirname(__FILE__));<br />
include(&#8220;header.php&#8221;);<br />
OpenTable();<br />
?&gt;<br />
PUT YOUR HTML CODE HERE, WHATEVER COMES BETWEEN THE &lt;html&gt; AND &lt;/html&gt;<br />
TAGS OF YOUR HTML FILE<br />
&lt;?php<br />
CloseTable();<br />
include(&#8220;footer.php&#8221;);<br />
?&gt;</p>
<p>Note that we have inserted a closing ?&gt; after the call to OpenTable() and an opening &lt;?php before the call to CloseTable(). Whatever comes in between, should be plain HTML code, not PHP. This method is suitable for small HTML texts, for larger texts the include method is recommended.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2008/02/how-to-include-a-html-file-in-a-php-nuke-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpNuke default theme corrupted and I am getting a blank display.</title>
		<link>http://www.gamescheat.ca/2007/11/phpnuke-default-theme-corrupted-and-i-am-getting-a-blank-display/</link>
		<comments>http://www.gamescheat.ca/2007/11/phpnuke-default-theme-corrupted-and-i-am-getting-a-blank-display/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 14:29:08 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[PHP-Nuke]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/2007/11/05/phpnuke-default-theme-corrupted-and-i-am-getting-a-blank-display/</guid>
		<description><![CDATA[Well, I downloaded this phpNuke theme and uploaded to my site.Â  After I applied the new theme my site went blank.Â  All the pages displayed a blank white page.Â  The quickest and simplest solution was to copy a known working theme and rename the folder to the same name as the new theme.]]></description>
			<content:encoded><![CDATA[<p>Well, I downloaded this phpNuke theme and uploaded to my site.Â  After I applied the new theme my site went blank.Â  All the pages displayed a blank white page.Â  The quickest and simplest solution was to copy a known working theme and rename the folder to the same name as the new theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2007/11/phpnuke-default-theme-corrupted-and-i-am-getting-a-blank-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oops I forgot my phhNuke admin password and I need to reset it.</title>
		<link>http://www.gamescheat.ca/2007/11/oops-i-forgot-my-phhnuke-admin-password-and-i-need-to-reset-it/</link>
		<comments>http://www.gamescheat.ca/2007/11/oops-i-forgot-my-phhnuke-admin-password-and-i-need-to-reset-it/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 14:21:32 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[PHP-Nuke]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/2007/11/05/oops-i-forgot-my-phhnuke-admin-password-and-i-need-to-reset-it/</guid>
		<description><![CDATA[It&#8217;s been a while since I logged on as site admin to my other site Wiivil Computer Help.Â  I tried all the passwords I can possibly think of and none was correct.Â  Being security conscious I have different passwords for the many credentials.Â  But that is hard to manage as I have to remember all [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I logged on as site admin to my other site Wiivil <a href="http://www.wiivil.com">Computer Help</a>.Â  I tried all the passwords I can possibly think of and none was correct.Â  Being security conscious I have different passwords for the many credentials.Â  But that is hard to manage as I have to remember all the passwords without writing them down somewhere.Â  Now, I am locked out of my <a href="http://www.wiivil.com">Network help</a> site.Â  Luckily this is a common occurrence and there are solutions available.Â  Simply doing a search on the internet reveals many <a href="http://www.wiivil.com">solutions</a>.</p>
<p>Well the fix that I use requires access to the MySql database for phpnuke.Â  PhpMyadmin is suggested as the means to access the <a href="http://www.wiivil.com">database</a>.Â Â  Since I use Navicat for all my MySQL databases backup I decided to use that.Â  It does the job just as well as PhpMyadmin, I have both installed on my server.<br />
Here is the instruction to change it the admin password.<br />
Using Navicat go to the nuke_authors table and make your pass dc647eb65e6711e155375218212b3964 that will make it Password, then just login and change it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2007/11/oops-i-forgot-my-phhnuke-admin-password-and-i-need-to-reset-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

