<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Tempest Fury]]></title>
	<link rel="self" href="http://tempestfury.d2g.com/forum/extern.php?action=feed&amp;type=atom" />
	<updated>2016-03-04T20:07:58Z</updated>
	<generator>PunBB</generator>
	<id>http://tempestfury.d2g.com/forum/index.php</id>
		<entry>
			<title type="html"><![CDATA[New Project]]></title>
			<link rel="alternate" href="http://tempestfury.d2g.com/forum/viewtopic.php?id=4&amp;action=new" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Tempest Fury]]></name>
				<uri>http://tempestfury.d2g.com/forum/profile.php?id=2</uri>
			</author>
			<updated>2016-03-04T20:07:58Z</updated>
			<id>http://tempestfury.d2g.com/forum/viewtopic.php?id=4&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[email notifications]]></title>
			<link rel="alternate" href="http://tempestfury.d2g.com/forum/viewtopic.php?id=3&amp;action=new" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Tempest Fury]]></name>
				<uri>http://tempestfury.d2g.com/forum/profile.php?id=2</uri>
			</author>
			<updated>2014-11-01T19:30:12Z</updated>
			<id>http://tempestfury.d2g.com/forum/viewtopic.php?id=3&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Tempest Fury BBS]]></title>
			<link rel="alternate" href="http://tempestfury.d2g.com/forum/viewtopic.php?id=2&amp;action=new" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Tempest Fury]]></name>
				<uri>http://tempestfury.d2g.com/forum/profile.php?id=2</uri>
			</author>
			<updated>2014-10-31T15:52:53Z</updated>
			<id>http://tempestfury.d2g.com/forum/viewtopic.php?id=2&amp;action=new</id>
		</entry>
</feed>
