<?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/"
	xmlns:pnd="http://www.phpnukedownloads.com/"
		>

	<channel>
		<title>Phpnuke Downloads &#187; Phpnuke Text Tutorials</title>
		<atom:link href="http://www.phpnukedownloads.com/phpnuke-tutorials/phpnuke-text-tutorials/feed/" rel="self" type="application/rss+xml" />
		<link>http://www.phpnukedownloads.com</link>
		<description>Free Themes, Blocks, Modules, Tutorials, Mods</description>
		<lastBuildDate>Thu, 24 Nov 2011 15:20:48 +0000</lastBuildDate>
		<generator>http://wordpress.org/?v=2.9.2</generator>
		<language>en</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
						<item>
			<title>Demo Splash Screen</title>
		<link>http://www.phpnukedownloads.com/demo-splash-screen/</link>
		<comments>http://www.phpnukedownloads.com/demo-splash-screen/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 02:21:56 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Mods]]></category>
		<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Clan Themes]]></category>
		<category><![CDATA[Demo Splash Screen]]></category>
		<category><![CDATA[Splash Screen]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=1608</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2010/08/1143001737splash_preview.jpeg]]></pnd:image>
		<description><![CDATA[Ped @ Clan Themes has released a simple splash screen entrance hack.  It is very easy to implement and modify.  Perfect for someone trying to create their own splash screen entrance.

This is a simple Splash Screen to modify / amend for use on your  PHPNuke site, simply upload the contents of the http folder [...]]]></description>
		<content:encoded><![CDATA[<p>Ped @ <a title="Clan Themes" href="http://www.clanthemes.com" target="_blank">Clan Themes</a> has released a simple splash screen entrance hack.  It is very easy to implement and modify.  Perfect for someone trying to create their own splash screen entrance.<span id="more-1608"></span>
<div style="clear:both;"></div>
<blockquote><p>This is a simple Splash Screen to modify / amend for use on your  PHPNuke site, simply upload the contents of the http folder to your  PHPNuke install directory and then visit yoursite.com it should load  yoursite.com/index.html first as an entrance screen.</p>
<p>It is currently styled with a flash movie and is 100% XHTML and CSS compliance.</p></blockquote>
<p>Download <a title="Demo Splash Screen" href="http://www.clanthemes.com/downloaddetails-11-1274-demo-splash-entrance-screen.html" target="_blank">Demo Splash Screen</a> (link opens in new window / No registration required)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/demo-splash-screen/feed/</wfw:commentRss>
	<slash:comments>0</slash:comments>
		</item>
		<item>
			<title>6 Ways to Debug a Raven Nuke or Phpnuke Problem Quickly</title>
		<link>http://www.phpnukedownloads.com/6-ways-to-debug-a-phpnuke-problem-quickly/</link>
		<comments>http://www.phpnukedownloads.com/6-ways-to-debug-a-phpnuke-problem-quickly/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 03:18:39 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Phpnuke]]></category>
		<category><![CDATA[Phpnuke Problems]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=1094</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/10/lyb_clan.png]]></pnd:image>
		<description><![CDATA[This is 6 ways you can debug a phpnuke problem quickly including installing forum mods.  This tutorial should make you a better developer and help you find the answers to your questions much faster.]]></description>
		<content:encoded><![CDATA[<p>Everyday, I see users installing new modules, blocks, or themes.  What happens when a new installation messes up your site?  Do you just remove the new installation or do you try to fix the problem?  I can teach you 6 different techniques that I use all the time to find phpnuke problems fast and fix them.  Some of this tutorial deals with general phpnuke and some of it deals with installing forum mods for phpnuke.<br />
<span id="more-1094"></span>
<div style="clear:both;"></div>
<h2>1) Make a backup (OMG)</h2>
<p>Anytime you change something you need to make a backup of the original.  I prefer to put my backups on my server or on my storage drive.  You need to keep these backups for more than a few days.  My standard policy is to keep a backup for at least a month.  Why?  You might see a problem later down the road or your members might notice it before you do.  BACKUP, BACKUP, BACKUP!!!  So important, but your gonna learn this one the hard way like everyone always does.</p>
<h2>2) $display_errors = true;</h2>
<p>Much like the post thumb I used for this tutorial, you can see only half of the page is loading.  If that user would turn on $display_errors in the config.php they might know what is causing that.  Display errors is part of phpnuke&#8217;s way of handling the built in error reporting functions that come with PHP.</p>
<blockquote><p>The PHP errors which are normally returned can be quite helpful to a     developer who is trying to debug a script, indicating such things     as the function or file that failed, the PHP file it failed in,     and the line number which the failure occurred in. This is all     information that can be exploited.  It is not uncommon for a php     developer to use <a href="http://www.php.net/manual/en/function.show-source.php">show_source()</a>,     <a href="http://www.php.net/manual/en/function.highlight-string.php">highlight_string()</a>, or     <a href="http://www.php.net/manual/en/function.highlight-file.php">highlight_file()</a> as a debugging measure, but in     a live site, this can expose hidden variables, unchecked syntax,     and other dangerous information. Especially dangerous is running     code from known sources with built-in debugging handlers, or using     common debugging techniques. If the attacker can determine what     general technique you are using, they may try to brute-force a page,     by sending various common debugging strings:</p>
<p>Source: <a title="PHP Error Reporting" href="http://php.net/manual/en/security.errors.php" target="_blank">PHP-&gt;Error Reporting</a></p></blockquote>
<p>Off</p>
<pre class="brush: php; light: true;">$display_errors = false;</pre>
<p>On</p>
<pre class="brush: php; light: true;">$display_errors = true;</pre>
<blockquote><p><strong>Noob Note:</strong> For Evolution and Evo Extreme, the errors are recorded in the admin section.</p></blockquote>
<p>Turning this on only when you have an issue will give you more insight into what the underlying problem is and it is definitely the first step you want to take into debugging a problem with phpnuke.</p>
<h2>3) Error Logs</h2>
<p>Error Logs are becoming more and more common in phpnuke.  An error log is basically a file somewhere on the server (most of the time) that records any errors that phpnuke produces.  You may need to consult with the author of whatever script / theme your using to find out the location of the log or if one exist.</p>
<blockquote><p><strong>Noob Note:</strong> If you have cpanel or something like it.  You may find an error logs icon that will display some errors recorded by your server.  I will not go into too much detail about this, but they can be helpful in finding all sorts of problems.</p></blockquote>
<h2>4) Re-Upload or Re-Install</h2>
<p>If you just installed a mod and $display_errors is reporting no error, the next step is to double check you have all the files uploaded in the right place.  Many many times, to fix someone&#8217;s problem all I do is re-upload the files.  I never know if they are really missing one, but it never hurts to check.</p>
<blockquote><p><strong>Noob Note:</strong> I always backup the config.php so I can just re-upload it again quickly since it has the database connection information.  It is a pain in the butt to look that up again and re-enter it.  It saves time.</p></blockquote>
<p>If it is a completely new installation I will run the installer again or re-load the .sql.  I wrote a tutorial on <a title="Loading SQL through PhpMyAdmin" href="http://www.phpnukedownloads.com/inserting-sql-through-phpmyadmin/" target="_blank">loading .sql files through phpmyadmin</a> that might help you with that.  A fresh install might reveal an error you missed before and especially if you still have $display_errors set to true.</p>
<h2>5) Tips for Forum Mods</h2>
<p>When a coder converts or writes a forum mod, They usually write it for one distribution (ex: raven nuke).  It is tough work to convert that mod for some distributions like phpnuke evolution extreme.  What you the user doesn&#8217;t realize is that sometimes they are not that much different.  You sort of have to use your ingenuity and if you have backed everything up this will not be a problem if you go wrong.</p>
<p>For Instance this is part of the ribbon forums mod for Clan Roster&#8230;</p>
<p>In standard phpnuke or Raven Nuke  I tell you to find</p>
<pre class="brush: php; light: true;">$template-&gt;assign_block_vars('postrow', array(</pre>
<p>In Evo or Evo Extreme  the code is actually</p>
<pre class="brush: php; light: true;">$template-&gt;assign_block_vars('postrow',array_merge( array(</pre>
<p>You can see how the two are similar, but slightly different.  You can solve this problem by only searching for part of the variable.  This skill takes some practice and like I said, backup everything..</p>
<h2>6) Ask the Developer for Support</h2>
<p>Many times you can find the developer of a mod / theme by just looking at the top of an actual file.  For instance,</p>
<pre class="brush: xml;">/********************************************************/
/* Theme Designed and coded by                          */
/* Clan Themes (admin@clanthemes.com)                          */
/* http://www.clanthemes.com                            */
/********************************************************/</pre>
<p>Provide your damn url.  I know your all secretive about some huge project that is going to explode on to the web, but a picture is worth a thousand words.  It is gonna be the first question I ask you anyways.</p>
<p>One of the biggest challenges even for me is learning to debug problems.  You need to gather all the intel you can before ever thinking of asking for support.  Why?  Developers have a life too&#8230;  If you come to me with a detailed problem, the likely hood of finding the answer is great.  If I have to walk you through the above 5 steps first it is possibly going to take awhile.  The more information you can provide, the faster we can solve the problem.</p>
<p>If you can&#8217;t find support for a mod, you might want to try asking on different sites only after you have exhausting all efforts to bother the developer.  A developer is going to know more about that mod than anyone else or so they think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/6-ways-to-debug-a-phpnuke-problem-quickly/feed/</wfw:commentRss>
	<slash:comments>2</slash:comments>
		</item>
		<item>
			<title>Protected: Writing a New Post for Phpnuke Downloads</title>
		<link>http://www.phpnukedownloads.com/writing-a-new-post-for-phpnuke-downloads/</link>
		<comments>http://www.phpnukedownloads.com/writing-a-new-post-for-phpnuke-downloads/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 02:01:25 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Phpnuke Downloads]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>
		<category><![CDATA[Phpnuke Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=818</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/10/newpost.png]]></pnd:image>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
		<content:encoded><![CDATA[<form action="http://www.phpnukedownloads.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-818">Password:<br />
<input name="post_password" id="pwbox-818" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/writing-a-new-post-for-phpnuke-downloads/feed/</wfw:commentRss>
	<slash:comments>0</slash:comments>
		</item>
		<item>
			<title>Creating Php nuke Blocks from Scratch</title>
		<link>http://www.phpnukedownloads.com/creating-php-nuke-blocks-from-scratch/</link>
		<comments>http://www.phpnukedownloads.com/creating-php-nuke-blocks-from-scratch/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 02:39:11 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Center Blocks]]></category>
		<category><![CDATA[Phpnuke]]></category>
		<category><![CDATA[Phpnuke Blocks]]></category>
		<category><![CDATA[Phpnuke Hacks]]></category>
		<category><![CDATA[Phpnuke Mods]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>
		<category><![CDATA[Side Blocks]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=513</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/blocks.png]]></pnd:image>
		<description><![CDATA[This is a beginner tutorial and it includes just about everything you need to know about creating your own php nuke blocks from scratch.]]></description>
		<content:encoded><![CDATA[<p>I am going to teach you everything you need to know about creating Php nuke blocks from scratch.  The built in editor for creating new blocks that comes with the latest distributions or forks of php nuke can not handle a lot of custom coding like some javascript for example.  So this is almost a necessary evil and you need to learn how to do this the old fashion way if you plan to customize your nuke site.<span id="more-513"></span>
<div style="clear:both;"></div>
<p style="clear:both;">
<h3>Where are all my current Php Nuke Blocks located?</h3>
<p>All of your existing blocks are located in your <strong>blocks</strong> folder just below your nuke root.  So if your nuke root directory is public_html then the path to blocks folder is public_html/blocks.  This is standard for every distribution or fork of nuke I have ever seen.  When you create a new block it should be placed in your blocks folder or <strong>else you will not be able to add it via the nuke admin panel</strong>.</p>
<h3>Block File Names</h3>
<p>Php nuke blocks have a particular naming schema they use to identify themselves as blocks.  They use block-your_name.php, broken down block- is the prefix and anything the rest uses underscores in replacement for spaces.  This format is used so php nuke can list them for you in the admin section.  That list I am referring too is the drop down you see when you  are adding a new block.</p>
<p>This is how that list is formed and why the naming schema is so important.</p>
<pre class="brush: php;">$blocksdir = dir(&quot;blocks&quot;);
 $blockslist = '';
 while($func=$blocksdir-&gt;read()) {
 if(substr($func, 0, 6) == &quot;block-&quot;) {
 $blockslist .= &quot;$func &quot;;
 }
 }
 closedir($blocksdir-&gt;handle);
 $blockslist = explode(&quot; &quot;, $blockslist);
 sort($blockslist);
 for ($i=0; $i &lt; sizeof($blockslist); $i++) {
 if($blockslist[$i]!=&quot;&quot;) {
 $bl = ereg_replace(&quot;block-&quot;,&quot;&quot;,$blockslist[$i]);
 $bl = ereg_replace(&quot;.php&quot;,&quot;&quot;,$bl);
 $bl = ereg_replace(&quot;_&quot;,&quot; &quot;,$bl);
 echo &quot;&lt;option value=\&quot;$blockslist[$i]\&quot; &quot;;
 if ($blockfile == $blockslist[$i]) { echo 'selected=&quot;selected&quot;'; }
 echo &quot;&gt;$bl&lt;/option&gt;\n&quot;;
 }
 }</pre>
<blockquote><p><strong>Noob Note</strong>:  I would avoid using any type of punctuation or special characters when deciding your block filename.  Best practice would be to simply use underscores ( _ ) to identify a space.  (ex: block-New_Block.php)</p></blockquote>
<p>The above code pretty much says that if the block isn&#8217;t already active and being used, put it in this list of available or new blocks that can be added.  So if you want your title in the list to show up as &#8220;<strong>New Block</strong>&#8220;, then your actual block filename is <strong>block-New_Block.php</strong>.  If your naming schema is correct and it exist in your blocks folder, you should be all set here.</p>
<h3>Coding Syntax</h3>
<p>So I have created a file on my desktop named <strong>block-New_Block.php</strong> and I have opened it in my text editor of choice, UltraEdit.  I suggest not using windows notepad for editing scripts as it sometimes interrupts code differently or removes needed characters upon saving.  Your better off using a high end editor like <a title="NotePad++" href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">notepad++</a> or UltraEdit.   If all your ever going to do is create blocks, then something free like notepad++ should do.</p>
<p>I use a standard snippet for each block I create because it saves a lot of time and I don&#8217;t have to remember all that syntax everytime I want to toss an image into a new block.  My snippet looks like this.</p>
<pre class="brush: php;">&lt;?php
if ( !defined('BLOCK_FILE') ) {
 Header(&quot;Location: ../index.php&quot;);
 die();
}
//Require Mainfile (once means don't if its already included/required)
require_once 'mainfile.php';
//Set Your Globals
global $db, $prefix;
//Start Content
$content  =  'my content';
$content .= 'my content continued';
$content .= 'my content continued again';
//End Content
?&gt;</pre>
<p>I am going to break that down into sections so we can discuss what each part does.  The first line of course is the opening statement &lt;?php.</p>
<blockquote><p><strong>Noob Note</strong>: Do not use shorthand here as your script might not work and it is just a bad php practice.  When I stay shorthand I am referring to using &lt;? instead of &lt;?php.  &lt;?php is the correct way of doing things.</p></blockquote>
<p>Lines 2-5 of the above block snippet are a security check to reassure that this an actual block file for php nuke.  The catch here is for some distributions like  Nuke Evolution, it can be different.  The best way to figure out what you should use is to grab the block-Modules.php file from your blocks folder and duplicate the security check.  I believe this all started with ChatServ Patches, but don&#8217;t quote me on it.  So lines 2-5 for you might be different from mine depending on what distribution or patch level your using.</p>
<p>Line 6 &amp; 7 are the inclusion of mainfile.php which contains the majority of the nuke functions.  I have set it to require_once just as a good practice to make sure we didn&#8217;t conflict with another module / block.  It is a good practice.</p>
<pre class="brush: php;">//Require Mainfile (once means don't if its already included/required)
require_once 'mainfile.php';</pre>
<p>Next is the globals, if your going to be pulling something from the database or using functions from mainfile.php you will need some of these.  I have only included the main two so we can use the database.  Some other basic ones are $user, $admin, $nukeurl, and $cookie.</p>
<pre class="brush: php;">//Set Your Globals
global $db, $prefix;</pre>
<p>Last, but surely not least is the inclusion of the $content string.  One php concept you need to understand about building blocks is <a title="String Operators" href="http://us2.php.net/manual/en/language.operators.string.php" target="_blank">string operators</a> and <a title="String Concatenation" href="http://phphowto.blogspot.com/2006/12/concatenate-strings.html" target="_blank">string concatenation</a>.  Basically, it is how to join two string instances together.  I call it continuation, but whatever floats you.</p>
<p>You will notice below how this technique is used to continue a string.</p>
<pre class="brush: php;">//Start Content
$content  =  'my content';
$content .= 'my content continued';
$content .= 'my content continued again';
//End Content
</pre>
<p>As you can see we continue the $content string by using $content .= .  You don&#8217;t have to concatenate with the $content either you can use a different string name.  However at the end of the block $content must be used.  See below.</p>
<pre class="brush: php;">&lt;?php
if ( !defined('BLOCK_FILE') ) {
 Header(&quot;Location: ../index.php&quot;);
 die();
}
//Require Mainfile (once means don't if its already included/required)
require_once 'mainfile.php';
//Set Your Globals
global $db, $prefix;
//Custom Variable
$myblock  =  'my content';
$myblock .= 'my content continued';
$myblock .= 'my content continued again';
//End Custom Variable

//Define Custom Variable as $content
$content = $myblock;
?&gt;</pre>
<p>Your code can be a simple or complex as you wish to make it, but those are the very basics to creating your own phpnuke blocks from scratch.</p>
<h3>Trick for Beginners</h3>
<p>Another decent trick I used when I first started creating blocks that my good friend Ped taught me so many years ago was this one.</p>
<pre class="brush: php; html-script: true;">&lt;?php
if ( !defined('BLOCK_FILE') ) {
 Header(&quot;Location: ../index.php&quot;);
 die();
}
//Require Mainfile (once means don't if its already included/required)
require_once 'mainfile.php';
//Set Your Globals
global $db, $prefix;
//Start Content
?&gt;
&lt;!-- Close Php Tag --&gt;
&lt;!-- Paste Html or Javascript Content Here--&gt;
&lt;!-- Now Open the Php Tag again --&gt;
&lt;?php
$content  =  'You can include more php content here';
$content .= 'and here';
$content .= 'or here';
//End Content
?&gt;</pre>
<p>This technique allows you to combine html or javascript with php very easily.  I found most useful when I ran across 3rd party websites that required me to include some javascript they provided.  I don&#8217;t suggest becoming addicted to using that method, because it has its limitations.  However, as a beginner your end goal is most likely to just get it working.</p>
<h3>Uploading and Activating your Php Nuke Block</h3>
<p>I sort of feel I don&#8217;t need to go into this in much detail if you have gotten this far.  Basically, your gonna upload the nuke block to your blocks folder and activate it (or add new) through that drop down we discussed in the beginning of the tutorial via the nuke blocks admin panel.</p>
<p>If you are confused by any of this you should watch Dread&#8217;s <a title="Phpnuke Block Break Down" href="http://www.phpnukedownloads.com/phpnuke-block-break-down-video-tutorial/" target="_blank">Phpnuke Block Break Down Video Tutorial</a>.</p>
<p>Thanks for reading and I hope it will be as useful to you as it has been to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/creating-php-nuke-blocks-from-scratch/feed/</wfw:commentRss>
	<slash:comments>1</slash:comments>
		</item>
		<item>
			<title>Nofollow, Bold,  and Underline for Forum Links</title>
		<link>http://www.phpnukedownloads.com/nofollow-bold-underline-for-forum-links/</link>
		<comments>http://www.phpnukedownloads.com/nofollow-bold-underline-for-forum-links/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 14:15:46 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Forum Mods]]></category>
		<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Phpnuke]]></category>
		<category><![CDATA[Phpnuke Mods]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=421</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/button.png]]></pnd:image>
		<description><![CDATA[This is a phpnuke forum mod to make all links bold, underline, and external links nofollow in the phpbb2 forums.]]></description>
		<content:encoded><![CDATA[<p>Much like its inspiring brother <a title="Phpnuke Nofollow News Mod" href="http://www.phpnukedownloads.com/make-all-phpnuke-news-links-bold-underline-open-in-new-window-and-external-links-nofollow/" target="_self">phpnuke nofollow news mod</a>, the forum mod is basically the same code with integration into the phpbb2 forums for phpnuke.   The only real difference is where the mod is implemented or which file.<br />
<span id="more-421"></span>
<div style="clear:both;"></div>
<p style="clear:both;">To get started Open /includes/bbcode.php</p>
<p style="clear:both;">Find</p>
<p style="clear:both;">
<pre class="brush: php;">// Remove our padding..
 $ret = substr($ret, 1);</pre>
<p style="clear:both;">After Add</p>
<p style="clear:both;">
<pre class="brush: php;">//Floppy's Underline and Bold Phnuke Forums Post Hack (www.clanthemes.com)
 $ret = preg_replace('#&lt;a(.*?)&lt;/a&gt;#','&lt;strong&gt;&lt;u&gt;&lt;a$1&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;',$ret);
//Floppy's Nofollow External Links for Phpnuke Forums Hack (www.clanthemes.com)
$your_domain = 'clanthemes.com';//Change this to your domain
preg_match_all('#href=&amp;quot;((http://www.|http://|www.)(.*?))&amp;quot;#',$ret,$matches);
foreach($matches[0] as $link){
 if(stristr($link, $your_domain) == false){
 $ret = str_replace($link, $link.' rel=&amp;quot;nofollow&amp;quot;', $ret);
 }
}</pre>
<p style="clear:both;">Once again, only the nofollow tag is added to external links that do not match your set domain in the code above.  If you want to remove that portion you can just eliminate the below code from the mod.</p>
<p style="clear:both;">
<pre class="brush: php;">//Floppy's Nofollow External Links for Phpnuke Forums Hack (www.clanthemes.com)
 $your_domain = 'clanthemes.com';//Change this to your domain
 preg_match_all('#href=&amp;quot;((http://www.|http://|www.)(.*?))&amp;quot;#',$ret,$matches);
 foreach($matches[0] as $link){
 if(stristr($link, $your_domain) == false){
 $ret = str_replace($link, $link.' rel=&amp;quot;nofollow&amp;quot;', $ret);
 }
}</pre>
<p style="clear:both;">Just put your new edited bbcode.php file back in place on your server to complete the hack.  Let me know if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/nofollow-bold-underline-for-forum-links/feed/</wfw:commentRss>
	<slash:comments>3</slash:comments>
		</item>
		<item>
			<title>Make all Phpnuke News Links Bold, Underline, Open in New Window, and External Links Nofollow</title>
		<link>http://www.phpnukedownloads.com/make-all-phpnuke-news-links-bold-underline-open-in-new-window-and-external-links-nofollow/</link>
		<comments>http://www.phpnukedownloads.com/make-all-phpnuke-news-links-bold-underline-open-in-new-window-and-external-links-nofollow/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 04:25:28 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Mods]]></category>
		<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Phpnuke]]></category>
		<category><![CDATA[Phpnuke News]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=398</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/bold_underline_news.png]]></pnd:image>
		<description><![CDATA[This phpnuke mod will make all news link that don't belong to your domain bold, underline, and nofollow.]]></description>
		<content:encoded><![CDATA[<p>For a lot of our themes, we don&#8221;t have special classes just for links that are in the news. So it makes them hard to pin point sometimes. So I wrote this little hack and I thought I would share.</p>
<p>Most likely in your current theme&#8217;s theme.php file you will find a function called themearticle. Below is an example, but yours may not look exactly like it.</p>
<p><span id="more-398"></span>
<div style="clear:both;"></div>
<p style="clear:both;">
<pre class="brush: php;">function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $notes) {  //montego - added $notes for RavenNuke
 global $admin, $sid, $tipath, $index;</pre>
<p>On a new line after the global call add</p>
<pre class="brush: php;">//Floppy's Underline and Bold Phnuke News Hack (www.clanthemes.com)
 $thetext = preg_replace('#&lt;a(.*?)&lt;/a&gt;#','&lt;strong&gt;&lt;u&gt;&lt;a$1&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;',$thetext);
 //Floppy's Nofollow External Links for Phpnuke News Hack (www.clanthemes.com)
 $your_domain = 'clanthemes.com';//Change this to your domain
 preg_match_all('#href=&quot;((http://www.|http://|www.)(.*?))&quot;#',$thetext,$matches);
 foreach($matches[0] as $link){
 if(stristr($link, $your_domain) == false){
 $thetext = str_replace($link, $link.' rel=&quot;nofollow&quot; target=&quot;_blank&quot;', $thetext);
 }
 }</pre>
<p>Save and Upload.  You should be done.  If you don&#8217;t want it to be nofollow you can remove rel=&#8221;nofollow&#8221; from the below line.</p>
<pre class="brush: php; light: true;"> $thetext = str_replace($link, $link.' rel=&quot;nofollow&quot; target=&quot;_blank&quot;', $thetext);</pre>
<p>The same goes for opening in a new window.  If you don&#8217;t want it to be bold or underline you can modify this line.</p>
<pre class="brush: php; light: true;"> $thetext = preg_replace('#&lt;a(.*?)&lt;/a&gt;#','&lt;strong&gt;&lt;u&gt;&lt;a$1&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;',$thetext);</pre>
<blockquote><p><strong>Noob Note</strong>: Only external links will be nofollow.  If you set your domain correctly all of your links will be followed by search engines.</p></blockquote>
<p>Example:<a title="Operation Flashpoint 2 Theme for Phpnuke" href="http://www.clanthemes.com/article398-operation-flashpoint-2-theme-released.html" target="_blank">http://www.clanthemes.com/article398-operation-flashpoint-2-theme-released.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/make-all-phpnuke-news-links-bold-underline-open-in-new-window-and-external-links-nofollow/feed/</wfw:commentRss>
	<slash:comments>2</slash:comments>
		</item>
		<item>
			<title>Inserting SQL through Phpmyadmin</title>
		<link>http://www.phpnukedownloads.com/inserting-sql-through-phpmyadmin/</link>
		<comments>http://www.phpnukedownloads.com/inserting-sql-through-phpmyadmin/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 23:08:18 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Phpmyadmin]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=323</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/phpmyadmin.png]]></pnd:image>
		<description><![CDATA[Inserting .sql files or mysql entries manually through phpmyadmin is something your eventually going to run across in your developer career.    I am going to walk you through both methods of inserting tables or queries into a database in just a few short steps.]]></description>
		<content:encoded><![CDATA[<p>Inserting .sql files or mysql entries manually through phpmyadmin is something your eventually going to run across in your developer career.    I am going to walk you through both methods of inserting tables or queries into a database in just a few short steps.  The first thing you need to do before we even get started though is figure out how to access your phpmyadmin interface.<br />
<span id="more-323"></span>
<div style="clear:both;"></div>
<p style="clear:both;">
<h2>Working with .SQL Files</h2>
<p>Your going to run across some mods that are released with a .sql file containing the necessary tables to store information.  Working with these are simple.</p>
<h3>The Contents</h3>
<p>If you were to open a .sql file you would probably see something like the below.</p>
<pre class="brush: sql;">--
-- Table structure for table `nuke_sf_slider`
--

CREATE TABLE IF NOT EXISTS `nuke_sf_slider` (
`slid` int(11) NOT NULL auto_increment,
`title` varchar(255) default NULL,
`longdesc` varchar(255) default NULL,
`shortdesc` varchar(255) default NULL,
`url` varchar(255) default NULL,
`image` varchar(255) default NULL,
PRIMARY KEY  (`slid`)
) ENGINE=MyISAM</pre>
<p>It is not a very optimized example, but it serves the purpose.</p>
<h4>Insertion Method #1 (Pasting)</h4>
<p>The first method is simply pasting the code from within the .sql file you received.  How you ask?  In PhpMyAdmin, select the database you wish to insert the queries/tables into by clicking on it in the far left sidebar.</p>
<p><img class="aligncenter size-full wp-image-334" title="Inserting SQL into PhpMyAdmin" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/phpmyadmin21.png" alt="Inserting SQL into PhpMyAdmin" width="620" height="251" /></p>
<p>After clicking your desired database, you want to hit the SQL tab located at the top in the right hand side panel.</p>
<p><img class="aligncenter size-full wp-image-337" title="Inserting SQL into PhpMyAdmin" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/phpmyadmin3.png" alt="Inserting SQL into PhpMyAdmin" width="620" height="142" /></p>
<p>As you can see I have already pasted the contents from the .sql file.  The last step is to hit <strong>GO</strong> down in the bottom left hand corner.</p>
<blockquote><p><strong>Noob Note</strong>: You can also paste the commented text into the query box because the engine will just ignore any commented text.  Commented text looks like this  &#8211; - Commented Text.  Basically, it is always prefixed with dashes.</p></blockquote>
<p>If you get an error after you hit <strong>GO</strong> you should recheck your steps and contact the author if error can not be resolved.</p>
<h4>Insertion Method #2 (Uploading)</h4>
<p>After you have selected your desired database, you need to find the <strong>Import Tab</strong> located at the very top on the right hand side panel.</p>
<p><img class="aligncenter size-full wp-image-338" title="Insert Sql into PhpMyAdmin" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/phpmyadmin4.png" alt="Insert Sql into PhpMyAdmin" width="620" height="226" /></p>
<p>Next you are going to click browse and select your .sql file.  The last step is to hit GO in the bottom left hand corner.  You should be done and if you have specific questions about a .sql file you should ask the author.</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/inserting-sql-through-phpmyadmin/feed/</wfw:commentRss>
	<slash:comments>1</slash:comments>
		</item>
		<item>
			<title>Google Ajax API Block</title>
		<link>http://www.phpnukedownloads.com/google-api-block/</link>
		<comments>http://www.phpnukedownloads.com/google-api-block/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:34:25 +0000</pubDate>
		<dc:creator>Ped</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Side Blocks]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PHPNuke Block]]></category>
		<category><![CDATA[PHPNuke Tutorial]]></category>
		<category><![CDATA[Side Block]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=213</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/googleapitut.jpg]]></pnd:image>
		<description><![CDATA[The Google AJAX Search API lets you put Google Search in your web pages with JavaScript. You can embed a simple, dynamic search box and display search results in your own web pages or use the results in innovative, programmatic ways.



Using an AJAX API Key
The Google AJAX Search API lets you put Google Search in [...]]]></description>
		<content:encoded><![CDATA[<p>The Google AJAX Search API lets you put Google Search in your web pages with JavaScript. You can embed a simple, dynamic search box and display search results in your own web pages or use the results in innovative, programmatic ways.</p>
<p style="clear:both">
<p><span id="more-213"></span>
<div style="clear:both;"></div>
<h3>Using an AJAX API Key</h3>
<p>The Google AJAX Search API lets you put Google Search in your web pages with JavaScript. You do not need a key to use this API. Using a key in your application/site is completely optional. However, it is useful to have one. Here is why &#8211; when a key is present, if we detect any problem or issue that involves your application/site, with a key in hand, we will attempt to contact you. If we do not have a key, we have no way to contact you should something go wrong.</p>
<p>If you are ready, go ahead and <a rel="nofollow" href="http://code.google.com/apis/ajaxsearch/signup.html" target="_blank">sign up for an API key</a></p>
<h3>What will this block do?</h3>
<p>The Google Ajax Search block is coded specifically for PHPNuke and will show in real time what you type in the search box and reveal search results in real time as soon as you start typing it will start pulling in results for the letters and words you type. It is designed so it will search Google and another site of your choice.</p>
<h3>Preview it working</h3>
<p style="text-align: center">This is a short screen cast of the block in action on a local server.</p>
<p style="text-align: center"><p><a href="http://www.phpnukedownloads.com/google-api-block/"><em>Click here to view the embedded video.</em></a></p></p>
<h3>Installation</h3>
<ul>
<li>If you want the option to search from yoursite as well as Google, then you will need a <a title="Google Ajax API Block" href="http://code.google.com/apis/ajaxsearch/signup.html" target="_blank">Google API</a> key which is free and can be obtained from the <a title="Google Ajax API Block" href="http://code.google.com/apis/ajaxsearch/signup.html" target="_blank">Google API</a> site.</li>
<li>Once you have the API key, open the block called <span style="color: #ff6600">block-Ajax_Google_Search.php</span> and enter your API key in the $key variable at the top.</li>
<li>Whilst you have the block open you may also see a variable called $themecolor this is for your themes colour so the stlye css matches, if you use a dark theme set the variable to <strong>true</strong> and if you use a light theme set it to <strong>false</strong></li>
<li>If you do not want people to search from yoursite then you can skip the first step and leave the API key alone (you do not need an API key for it to work)</li>
</ul>
<h3>Troubleshooting</h3>
<ul>
<li>The block by default is set to a fixed width of 180 pixels, if your PHPNuke blocks are not as wide as 180 pixels and you find the block pushing them apart you can rectify this by opening the 2 .css files in the includes folder in a decent text editor (CTRL+F to search a file) for 180 and change it to your desired width (there are 3 references in each .css sheet)</li>
</ul>
<h3>Want to learn more?</h3>
<p>If you want to lean more about the Google Ajax API and what add-ons you can make, then head on over the the <a title="Google Ajax API" rel="nofollow" href="http://code.google.com/apis/ajax/" target="_blank">Google Ajax API</a> site.</p>
<h3>Download the PHPNuke Source Code</h3>
<p>You can download the <a title="Google Ajax API PHPNuke Block" href="http://www.clanthemes.com/downloaddetails-8-918-google-ajax-api-search-block.html" target="_blank">Google Ajax API PHPNuke Block</a> (<em>no registration required</em>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/google-api-block/feed/</wfw:commentRss>
	<slash:comments>0</slash:comments>
		</item>
		<item>
			<title>Unban Yourself from Nuke Sentinel</title>
		<link>http://www.phpnukedownloads.com/unban-yourself-from-nuke-sentinel/</link>
		<comments>http://www.phpnukedownloads.com/unban-yourself-from-nuke-sentinel/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 19:55:27 +0000</pubDate>
		<dc:creator>Floppy</dc:creator>
				<category><![CDATA[Phpnuke Text Tutorials]]></category>
		<category><![CDATA[Nuke Sentinel]]></category>
		<category><![CDATA[Phpnuke]]></category>
		<category><![CDATA[Phpnuke Security]]></category>
		<category><![CDATA[Phpnuke Tutorials]]></category>

		<guid isPermaLink="false">http://www.phpnukedownloads.com/?p=56</guid>
		<pnd:image>http://www.phpnukedownloads.com/wp-content/themes/wooituts/inc/timthumb.php?src=<![CDATA[http://www.phpnukedownloads.com]]>/<![CDATA[wp-content/uploads/2009/09/blocked_ips.png]]></pnd:image>
		<description><![CDATA[How to unban yourself from nuke sentinel and prevent it from happening again.]]></description>
		<content:encoded><![CDATA[<p>It is a very common mistake for new website owners to ban their self with nuke sentinel.  I have done it countless times and it can be sort of scary trying to figure out how to unban yourself.</p>
<p>Today I am going to show you how to unban yourself manually in just a few short steps.  When sentinel bans you from your website it happens in two places.</p>
<ol>
<li>The database table (nuke_nsnst_blocked_ips)</li>
<li>The .htaccess in your nuke root</li>
</ol>
<h2><span id="more-56"></span>
<div style="clear:both;"></div>
<p>1. Your Ip</h2>
<p>The very first thing we need to do is find out what you IP, because that is your social security number for the internet.  If you don&#8217;t know it off the top of your head you can use a free service like <a title="Find out your IP easy" href="http://www.whatsmyip.org/" target="_blank">whatsmyip.org</a></p>
<h2>2. Lets remove your IP from the Database</h2>
<p>I can not really guide you through getting to phpmyadmin or your similar too, because everyone&#8217;s could be different.  If your host is using cpanel you can find it in the main menu or under the mysql database icon.</p>
<p>Once your in phpmyadmin and you have selected your nuke database.  You need to find the <strong>nuke_nsnst_blocked_ips </strong>table.</p>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 573px"><img class="size-full wp-image-65  " title="Unban Yourself from Nuke Sentinel" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/blocked_ips.png" alt="Unban Yourself from Nuke Sentinel" width="563" height="47" /><p class="wp-caption-text">Unban Yourself from Nuke Sentinel</p></div>
<p>Once you have found the nuke_nsnst_blocked_ips table you want to click the browse icon just to the right of the table name.</p>
<blockquote><p><strong>Noob Note:</strong> The main goal here is just to browse the contents of the nsnst_blocked_ips table.  You can scroll the far left pane to find the table name faster, but at the end of the day we just want to see the contents of the table.</p></blockquote>
<p>After you can see the contents of the nuke_nsnst_blocked_ips table, we want to sort them so we can find your IP faster.  What you want to do is sort the table contents by Date (descending) since you were one of the last entries.</p>
<p style="text-align: left;">
<div id="attachment_69" class="wp-caption aligncenter" style="width: 573px"><img class="size-full wp-image-69  " title="Unban Yourself from Nuke Sentinel" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/sort_by.png" alt="Unban Yourself from Nuke Sentinel" width="563" height="266" /><p class="wp-caption-text">Unban Yourself from Nuke Sentinel</p></div>
<p>After the page reloads, your IP should be listed somewhere very close to the top.  All you have to do is click the <strong>red x</strong> icon to delete that record from the database.  Now lets remove your IP from the .htaccess.</p>
<h2 style="text-align: left;">3. Removing Your Ip from the .hatccess</h2>
<p style="text-align: left;">Using your ftp software download your .htaccess from your nuke root to your desktop.  Using some type of editor (<a href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">notepad plus</a> if you have nothing else)  open the .htaccess you just downloaded.  Down towards the very bottom you are going to find a very long list of ip of addresses.  Yours should be one of the last few at the bottom of that list.</p>
<blockquote>
<p style="text-align: left;"><strong>Noob Note:</strong> Depending on well you setup your sentinel in the first place.  You might not have to do this step.  If you sentinel is setup properly though it should be required to remove your ip from the .htaccess.</p>
</blockquote>
<p style="text-align: left;">
<pre class="brush: php;">deny from 127.0.0.1</pre>
<p style="text-align: left;">Save and Reupload your .htaccess with your IP removed.  You should be able to access your site again now.  If you can not review the above steps again.</p>
<h2 style="text-align: left;">4. Preventing Nuke Sentinel from Banning the Admin</h2>
<p style="text-align: left;">Preventing this from happening again is pretty easy.  Basically the only thing your gonna do is add your IP to the protected range list.</p>
<p style="text-align: left;">In your nuke sentinel admin section click Protected Range Menu -&gt; Add Protected Range</p>
<p style="text-align: center;">
<div id="attachment_72" class="wp-caption aligncenter" style="width: 573px"><img class="size-full wp-image-72  " title="Unban Yourself from Nuke Sentinel" src="http://www.phpnukedownloads.com/wp-content/uploads/2009/09/protected_range.png" alt="Unban Yourself from Nuke Sentinel" width="563" height="342" /><p class="wp-caption-text">Unban Yourself from Nuke Sentinel</p></div>
<p style="text-align: left;">All you have to do is select your country and add the proper ranges for your IP.  If your IP was 127.0.0.1, then your ranges would look like 127.0.0.0 to 127.0.0.1.</p>
<p style="text-align: left;">That is all there is too it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpnukedownloads.com/unban-yourself-from-nuke-sentinel/feed/</wfw:commentRss>
	<slash:comments>0</slash:comments>
		</item>
</channel>
</rss>

