<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Tempest Fury]]></title>
		<link>http://tempestfury.d2g.com/forum/index.php</link>
		<atom:link href="http://tempestfury.d2g.com/forum/extern.php?action=feed&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent topics at Tempest Fury.]]></description>
		<lastBuildDate>Fri, 04 Mar 2016 20:07:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[New Project]]></title>
			<link>http://tempestfury.d2g.com/forum/viewtopic.php?id=4&amp;action=new</link>
			<description><![CDATA[<p>New Project - Where is the Tardis</p><p><a href="http://whereisthetardis.d2g.com">http://whereisthetardis.d2g.com</a> </p><p>Work in progress</p>]]></description>
			<author><![CDATA[null@example.com (Tempest Fury)]]></author>
			<pubDate>Fri, 04 Mar 2016 20:07:58 +0000</pubDate>
			<guid>http://tempestfury.d2g.com/forum/viewtopic.php?id=4&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[email notifications]]></title>
			<link>http://tempestfury.d2g.com/forum/viewtopic.php?id=3&amp;action=new</link>
			<description><![CDATA[<p>Blacknova Trader uses the built in mail function that is part of php.&nbsp; </p><p>If you use gmail to send out email notifications this will not work as gmail needs a secure connection via SSL on port 465.&nbsp; </p><p>So the question becomes, how does a new user sign up and get the welcome email with their password now ? </p><p>I have created a extra table that hold the new information and a trigger that would detect a new user.&nbsp; There is a external program that monitors the new table, and then sends a welcome email.&nbsp; Here are the steps.</p><br /><p>1. Create a extra table in the bnt database. I called this one bnt_znotifications, here is the SQL statement that I used to create it. </p><p>&nbsp; &nbsp; &nbsp; CREATE TABLE bnt_znotification (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id int(11) NOT NULL AUTO_INCREMENT,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ship_name char (20) NOT NULL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;character_name char(20) NOT NULL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;password char(60) NOT NULL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;email char(60) NOT&nbsp; NULL,<br />&nbsp; &nbsp;&nbsp; sent bool, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PRIMARY KEY (id)<br />&nbsp; &nbsp; &nbsp;)</p><p>2&nbsp; Next is the trigger.&nbsp; When a new user signs up, the trigger will populate the bnt_znotificatoin table.<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;USE BNT;<br />&nbsp; &nbsp; &nbsp;DELIMITER $$<br />&nbsp; &nbsp; &nbsp;CREATE TRIGGER before_ship_update<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; AFTER INSERT on bnt_ships<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; FOR EACH ROW <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BEGIN<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; INSERT INTO bnt_znotification (ship_name, character_name, password, email, sent)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES(New.ship_name, NEW.character_name, NEW.password, NEW.email, FALSE);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END$$<br />&nbsp; &nbsp; &nbsp;DELIMITER ;</p><br /><p>3.&nbsp; External Program runs ever 30 seconds, checks bnt_znotifications table for entries.&nbsp; If an entry is found it will use the information in the table . i.e. email address, ship name, character name, and send a welcome email to the new user.</p><p>The extrenal program is a program written in visual basic 6.&nbsp; <br />&nbsp; &nbsp; &nbsp;It uses CDO to send an email using the smtp for gmail on port 465, using SSL.&nbsp; <br />&nbsp; &nbsp; &nbsp;It uses the mysql ODBC connector to connect to the mysql database.</p><br /><p>#3 is still a work in progress. The email part work, the mysql part works, both need to be combined into one program.</p>]]></description>
			<author><![CDATA[null@example.com (Tempest Fury)]]></author>
			<pubDate>Sat, 01 Nov 2014 19:30:12 +0000</pubDate>
			<guid>http://tempestfury.d2g.com/forum/viewtopic.php?id=3&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Tempest Fury BBS]]></title>
			<link>http://tempestfury.d2g.com/forum/viewtopic.php?id=2&amp;action=new</link>
			<description><![CDATA[<p>The&nbsp; Tempest Fury BBS has finally made a resurgence.&nbsp; &nbsp;The server that was hosting the BBS was down with a hard error and was not recoverable.&nbsp; </p><p>I finally decided to create a new server and move all files over and re set up the server.</p><p>Things to do :<br />Create new user / pass to connect to VERT<br />Create a entry in the BBS to advertise it again<br />Setup a call out to VERT<br />Find out about league 10 games</p>]]></description>
			<author><![CDATA[null@example.com (Tempest Fury)]]></author>
			<pubDate>Fri, 31 Oct 2014 15:52:53 +0000</pubDate>
			<guid>http://tempestfury.d2g.com/forum/viewtopic.php?id=2&amp;action=new</guid>
		</item>
	</channel>
</rss>
