<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>DevFuse Forums - Tutorials</title>
	<link>http://www.devfuse.com/forums/index.php?app=tutorials</link>
	<pubDate>Fri, 12 Mar 2010 00:06:21 +0000</pubDate>
	<ttl>1800</ttl>
	<description>Tutorials from all available categories.</description>
	<item>
		<title>Simple Validating Message</title>
		<link>http://www.devfuse.com/forums/tutorials/article/62-simple-validating-message/</link>
		<description><![CDATA[Sometimes, new members (especially those new to forums) may not always be aware they need to validate their account. I used to have a simple message back on 2.x.x to help them and have now done something similar for IP.Board 3.<br />
<br />
It's a very simple skin edit to create a box with a reminder message in it.<br />
<br />
ACP &gt; Look / Feel &gt; Manage Skin Sets / Templates &gt; (choose skin) &gt; Manage Templates / CSS &gt; Global Templates &gt; GlobalTemplate &gt;<br />
<br />
Scroll down about 3/4 of the way down that template and find:<br />
<pre class='prettyprint'>
			&lt;div id='content' class='clear'&gt;
				&lt;a id='j_content'&gt;&lt;/a&gt;
				&lt;if test="mainpageContent:|:$html"&gt;{$html}&lt;/if&gt;
				&lt;br class='clear' /&gt;
			&lt;/div&gt;
</pre><br />
<br />
Add this <strong class='bbc'>above</strong>, after the closing div on a new line:<br />
<pre class='prettyprint'>&lt!-- validating message--&gt;
&lt;if test="authenticating:|:$this-&gt;memberData&#91;'member_group_id'&#93; == $this-&gt;settings&#91;'auth_group'&#93;"&gt;
&lt;div align='center'&gt;
&lt;br /&gt;&lt;div class='general_box' style='width: 75%;'&gt;
&lt;h3&gt;&lt;img src='{$this-&gt;settings&#91;'img_url'&#93;}/comment_new.png'&gt; Thank you for registering!&lt;/h3&gt;
&lt;div align='center'&gt;&lt;br /&gt;&lt;strong&gt;As part of the registration process, we require you to validate your email address. You will need to do this before you can post.&lt;/strong&gt;
&lt;br /&gt;&lt;br /&gt;Please check your inbox for your validation email from us and click the link provided in it. If you did not receive this, please &lt;a href="{parse url="app=core&amp;module=global&amp;section=register&amp;do=reval" base="public"}" title='{$this-&gt;lang-&gt;words&#91;'resend_val'&#93;}'&gt;&lt;strong&gt;Click Here&lt;/a&gt;&lt;/strong&gt; to resend it.&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/if&gt;
&lt!-- end of validating message --&gt;</pre><br />
<br />
Save the template.<br />
<br />
This is the simple message all validating members will now see, along with the extra link to click for a new email if required. You can easily customise the message (for example by allowing validating members to post in a certain forum) as required.<br />
<br />
<img src='http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/ipb3_validating_message.png' alt='Posted Image' class='bbc_img' />]]></description>
		<pubDate>Mon, 08 Mar 2010 19:44:58 +0000</pubDate>
		<guid isPermaLink="false">62</guid>
	</item>
	<item>
		<title>Show message to members with 0 posts</title>
		<link>http://www.devfuse.com/forums/tutorials/article/61-show-message-to-members-with-0-posts/</link>
		<description><![CDATA[Have members that are just not posting? Display a message to the ones with 0 posts.<br />
<br />
First of go to Admin CP / Look & Feel Tab / select a skin / Global Templates / globalTemplate<br />
<br />
Find:<br />
<pre class='prettyprint'>&lt;if test="mainpageContent:|:$html"&gt;{$html}&lt;/if&gt;</pre><br />
<br />
Add ABOVE (Replace # with the forum id):<br />
<pre class='prettyprint'>
&lt;if test="zero_poster:|:$this-&gt;memberData&#91;'member_id'&#93; AND $this-&gt;memberData&#91;'posts'&#93; == 0"&gt;
&lt;div class='block_wrap'&gt;
&lt;h3 class='maintitle'&gt;Need help {$this-&gt;memberData&#91;'members_display_name'&#93;}?&lt;/h3&gt;
&lt;div class='general_box'&gt;&lt;b&gt;Our records indicate you have yet to post, if you are having trouble posting please search through our 
&lt;a href="{parse url="app=core&amp;module=help" base="public"}" title='{$this-&gt;lang-&gt;words&#91;'view_help'&#93;}' rel="help" accesskey='6'&gt;Help Guide&lt;/a&gt;. &lt;br /&gt;If not why not introduce yourself in our 
&lt;a href="{parse url="showforum=#" base="public"}"&gt;Welcome Centre&lt;/a&gt;, and get to know our community.&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/if&gt;</pre><br />
<br />
The if function will see if the member has 0 posts if the member has, it will display the message with in the tag.]]></description>
		<pubDate>Sat, 16 Jan 2010 04:39:09 +0000</pubDate>
		<guid isPermaLink="false">61</guid>
	</item>
	<item>
		<title><![CDATA[Reorder Hooks [Video Tutorial]]]></title>
		<link>http://www.devfuse.com/forums/tutorials/article/60-reorder-hooks-video-tutorial/</link>
		<description><![CDATA[I get asked this quite often so I've put together these instructions and video to show you how to reorder your hooks.<br />
<br />
Step 1. Open your Admin CP &gt; System Tab &gt; Applications & Modules section &gt; Manage Hooks.<br />
Step 2. You'll see a little drag icons to the left of every hook. Click and hold this icon and drag it up or down to reorder your hook. Once the position is found, release your mouse button and the hook will be moved with the use of ajax.<br />
<br />
<object type="application/x-shockwave-flash" height="355" width="425" data="http://www.youtube.com/v/yBIG93aIp4Y"><param name="movie" value="http://www.youtube.com/v/yBIG93aIp4Y"><param name="allowScriptAccess" value="sameDomain"><param name="quality" value="best"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noScale"><param name="salign" value="TL"><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent"/></object>]]></description>
		<pubDate>Fri, 04 Dec 2009 00:56:03 +0000</pubDate>
		<guid isPermaLink="false">60</guid>
	</item>
	<item>
		<title>Add link to ip address on online list.</title>
		<link>http://www.devfuse.com/forums/tutorials/article/59-add-link-to-ip-address-on-online-list/</link>
		<description><![CDATA[Adds a link to ip address on the online list pointing towards the ip lookup tool.<br />
<br />
<img src='http://i46.tinypic.com/n4tmv6.png' alt='Posted Image' class='bbc_img' /><br />
<br />
Open Admin CP &gt; Look & Feel Tab &gt; Select Skin &gt; Online List &gt; showOnlineList<br />
<br />
Find:<br />
<pre class='prettyprint'>( {$session&#91;'ip_address'&#93;} )</pre><br />
<br />
Replace With:<br />
<pre class='prettyprint'>&lt;a href='{parse url="app=core&amp;module=usercp&amp;tab=members&amp;area=mod_ipaddress&amp;do=custom&ip={$session&#91;'ip_address'&#93;}" base="public"}' title='{$this-&gt;lang-&gt;words&#91;'ip_lookup'&#93;} {$session&#91;'ip_address'&#93;}'&gt;( {$session&#91;'ip_address'&#93;} )&lt;/a&gt;</pre><br />
<br />
Save Template Bit]]></description>
		<pubDate>Fri, 04 Dec 2009 00:39:29 +0000</pubDate>
		<guid isPermaLink="false">59</guid>
	</item>
	<item>
		<title>Hiding the language chooser</title>
		<link>http://www.devfuse.com/forums/tutorials/article/58-hiding-the-language-chooser/</link>
		<description><![CDATA[ACP &gt; Look / Feel &gt; Manage Skin Sets / Templates &gt; (edit that skin) &gt; Manage Templates / CSS &gt; "Global Templates" &gt; Global Template<br />
<br />
Scroll right down to the end then scroll up (easier as its about 7/8ths the way down)<br />
<br />
Find...<br />
<pre class='prettyprint'>
&lt;select name="langid" id='newLang'&gt;
								{$footer_items&#91;'lang_chooser'&#93;}
						&lt;/select&gt;
						&lt;input type='submit' class='input_submit alt' value='{$this-&gt;lang-&gt;words&#91;'jmp_go'&#93;}' id='newLangSubmit' /&gt;
</pre><br />
<br />
Simply comment it out (add a &lt!-- to the start and a --&gt; to the end, like this...<br />
<br />
<pre class='prettyprint'>
&lt!--&lt;select name="langid" id='newLang'&gt;
								{$footer_items&#91;'lang_chooser'&#93;}
						&lt;/select&gt;
						&lt;input type='submit' class='input_submit alt' value='{$this-&gt;lang-&gt;words&#91;'jmp_go'&#93;}' id='newLangSubmit' /&gt;--&gt;
</pre><br />
<br />
And save. Repeat for each skin as required. <img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' />]]></description>
		<pubDate>Fri, 27 Nov 2009 16:23:48 +0000</pubDate>
		<guid isPermaLink="false">58</guid>
	</item>
	<item>
		<title><![CDATA[Changing 'leave a link']]></title>
		<link>http://www.devfuse.com/forums/tutorials/article/57-changing-leave-a-link/</link>
		<description><![CDATA[In IP. Board 3.0. the checkbox for leaving "moved" links has been changed to not leave a link by default when moving a topic or group of topics.<br />
<br />
This is very easy to restore if you wish it to be checked by default. <img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' /><br />
<br />
Two very small template edits are needed. Note they have similar names but you need to do both.<br />
<br />
ACP &gt; Look / Feel &gt; Skin Manager &gt; Manage Templates / CSS &gt; (choose skin) Manage Templates / CSS &gt;<br />
<br />
Moderation &gt; MoveTopicForm &gt;<br />
<br />
Find...<br />
<pre class='prettyprint'>&lt;input type='checkbox' id='leave_link' class='input_check' name='leave' value='y' /&gt;</pre><br />
<br />
Replace with...<br />
<pre class='prettyprint'>&lt;input type='checkbox' checked='checked' id='leave_link' class='input_check' name='leave' value='y' /&gt;</pre><br />
<br />
Save.<br />
<br />
Moderation &gt; MoveTopicsForm &gt;<br />
<br />
Find...<br />
<pre class='prettyprint'>&lt;input type='checkbox' id='leave_link' class='input_check' name='leave' value='y' /&gt;</pre><br />
<br />
Replace with...<br />
<pre class='prettyprint'>&lt;input type='checkbox' checked='checked' id='leave_link' class='input_check' name='leave' value='y' /&gt;</pre><br />
<br />
<br />
Save. <img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' /><br />
<br />
The first one is for an individual topic move via the dropdown when you are viewing it. The second edit is for mass moving via the dropdown in the forum view.]]></description>
		<pubDate>Thu, 19 Nov 2009 13:19:42 +0000</pubDate>
		<guid isPermaLink="false">57</guid>
	</item>
	<item>
		<title>Facebook Share bottom</title>
		<link>http://www.devfuse.com/forums/tutorials/article/56-facebook-share-bottom/</link>
		<description><![CDATA[Well this is a simple tutorial how to add a facebook bottom in the share this topic menu and share the topic with the facebook community<br />
<br />
<a class='resized_img' rel='lightbox[56]' id='ipb-attach-url-384-1268352381-55' href="http://www.devfuse.com/forums/index.php?app=core&module=attach&section=attach&attach_rel_module=tutorials&attach_id=384" title="fb.jpg - Size: 9.26K, Downloads: 8935"><img src="http://www.devfuse.com/forums/uploads/monthly_11_2009/tutorials-7992-125782819482_thumb.jpg" id='ipb-attach-img-384-1268352381-55' style='width:100;height:20' class='attach' width="100" height="20" alt="Attached Image" /></a><br />
<a class='resized_img' rel='lightbox[56]' id='ipb-attach-url-385-1268352381-54' href="http://www.devfuse.com/forums/index.php?app=core&module=attach&section=attach&attach_rel_module=tutorials&attach_id=385" title="fbpopup.jpg - Size: 42.74K, Downloads: 12909"><img src="http://www.devfuse.com/forums/uploads/monthly_11_2009/tutorials-7992-125782820703_thumb.jpg" id='ipb-attach-img-385-1268352381-54' style='width:100;height:40' class='attach' width="100" height="40" alt="Attached Image" /></a><br />
Open your Admin CP &gt; Look & Feel Tab &gt; select your skin &gt; Manage Templates & CSS &gt; Global Templates &gt;<br />
Find<br />
<pre class='prettyprint'>&lt!--DEBUG_STATS--&gt;</pre><br />
<br />
Add Below<br />
<pre class='prettyprint'>&lt;script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/j&#097;v&#097;script"&gt;&lt;/script&gt;&lt;script type="text/j&#097;v&#097;script"&gt;FB.init("e9283f1126ceacca89c826e9dac23b2c");&lt;/script&gt;</pre><br />
Save <br />
<br />
Open Topic View &gt; topicViewTemplate &gt;<br />
<br />
Find<br />
<pre class='prettyprint'>{$this-&gt;lang-&gt;words&#91;'topic_download'&#93;}&lt;/a&gt;&lt;/li&gt;</pre><br />
<br />
Add Below<br />
<pre class='prettyprint'>&lt;fb:share-button class="&#91;url=%forum_link%&#93;" href="" type="button"&gt;&lt;/fb:share-button&gt;</pre><br />
<br />
Save it<br />
<br />
Note: You need to have Facebook Connect setup in your forum for this to work]]></description>
		<pubDate>Tue, 10 Nov 2009 03:22:11 +0000</pubDate>
		<guid isPermaLink="false">56</guid>
	</item>
	<item>
		<title>Leave topic post options opened</title>
		<link>http://www.devfuse.com/forums/tutorials/article/55-leave-topic-post-options-opened/</link>
		<description><![CDATA[Simple template edit that leaves the topics post options open by default rather than hidden by default.<br />
<br />
Open Admin CP &gt; Look & Feel Tab &gt; select skin &gt; Post Screen &gt; postFormTemplate<br />
<br />
Find and Remove:<br />
<pre class='prettyprint'>	&lt;span id='toggle_post_options' class='clickable'&gt;&lt;/span&gt;
	
	&lt;script type='text/j&#097;v&#097;script'&gt;
		ipb.post.hideOptions();
	&lt;/script&gt;</pre><br />
<br />
Save]]></description>
		<pubDate>Fri, 06 Nov 2009 11:29:05 +0000</pubDate>
		<guid isPermaLink="false">55</guid>
	</item>
	<item>
		<title>Importing large databases into Wamp</title>
		<link>http://www.devfuse.com/forums/tutorials/article/54-importing-large-databases-into-wamp/</link>
		<description><![CDATA[You can use tools such as bigdump to import large databases as phpmyadmin will only accept relatively small databases to import, but I prefer this on a localhost install as you already have easy access already and its quick and easy to do.<br />
<br />
Download your database from your live site (if that's the one you want to use). Extract the .gz so you have just a .sql file.<br />
<br />
For this example (remember yours will be different) , you need the following...<br />
<br />
The root users name and password (for mysql) , its normally just "root" and no password.<br />
<br />
The name of the new blank database (if you have not already created one, visit your localhost phpmyadmin and create a new blank database now)<br />
<br />
Use windows explorer or a command prompt. Navigate your way to the folder where wamp is installed. You need to go into the folder where mysql.exe is. In my case it is D:&#092;_DEV&#092;bin&#092;mysql&#092;mysql5.1.30&#092;bin . Most cases it will be c:&#092;program files&#092;wamp&#092;bin&#092;mysql&#092;mysql version&#092;bin etc...<br />
<br />
Copy the .sql file into here. It must be in the same directory as mysql.exe<br />
<br />
Open a command prompt in this directory if you have not already. If you have the "command prompt here" powertoy, this can be quicker than having to navigate via a command prompt to here. You can download this from Microsoft if you want it. Failing that, simply navigate your way to the appropriate directory using cd.<br />
<br />
For this example, the database I am importing is called mybackup.sql and the new empty database I created is called test<br />
<br />
Assuming you do NOT have a root password, type in the following...<br />
<br />
mysql.exe -u root test &lt; mybackup.sql<br />
<br />
<br />
This may take a few minutes depending on the database size and your CPU power, your firewall may prompt you so you will have to allow temporary access (should only be mysql wanting localhost access)<br />
<br />
When its finished, remove the mybackup.sql file you put in that directory.<br />
<br />
Done <img src='http://www.devfuse.com/forums/public/style_emoticons/default/grin.png' class='bbc_emoticon' alt=':D' /><br />
<br />
As an extra note, if you have a root password for mysql, you will need to use this instead (changing pass for the password)<br />
<br />
mysql.exe -u root -p pass test &lt; mybackup.sql<br />
<br />
<img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' />]]></description>
		<pubDate>Sun, 25 Oct 2009 15:56:38 +0000</pubDate>
		<guid isPermaLink="false">54</guid>
	</item>
	<item>
		<title>Email Debug</title>
		<link>http://www.devfuse.com/forums/tutorials/article/53-email-debug/</link>
		<description><![CDATA[A simple tutorial to setup email debugging. Ideally this is for your localhost test board, but it will work just fine on a live install too. If you are testing a mod that has email capability, it may be useful to catch these mails to check them amongst other things. <img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' /><br />
<br />
Open /conf_global.php. Before the closing ?&gt; , add this line<br />
<br />
<pre class='prettyprint'>$INFO&#91;'fake_mail'&#93;			=	'1';</pre><br />
<br />
Inside your forum root, create a new directory and name it _mail (it must be exactly that: leading underscore and lowercase)<br />
<br />
If you are doing this on a Linux install (your live board for example) , that folder must be writeable (CHMOD to 777)<br />
<br />
For safety, copy the index.htm out of one of the other directories (such as /public or style_emoticons) and place it into this directory to prevent the directory content being listed, or create a new one if needed. Do not leave this directory without an .htm file present.<br />
<br />
That's it <img src='http://www.devfuse.com/forums/public/style_emoticons/default/happy.png' class='bbc_emoticon' alt=':)' /> , when you send an email it will now log it into this _mail directory instead of sending it out.]]></description>
		<pubDate>Sun, 25 Oct 2009 15:55:34 +0000</pubDate>
		<guid isPermaLink="false">53</guid>
	</item>
</channel>
</rss>