Page 1 of 1

Posted: Thu Oct 06, 2005 7:20 pm
by Magicfinger
not via html if you had php then you can do it

Posted: Thu Oct 06, 2005 7:23 pm
by DeVice
Mmmm do you want the data saved on the server or client side ?

Posted: Fri Oct 07, 2005 2:42 am
by theseer
Can Javascript catch form data and edit files? Find out, and if it can use it.

If you want a cheapy html blog, head to blogger.com. Why use freewebs at all :) Its ... decently customisable, not as much as wordpress mind you but still good.

Posted: Fri Oct 07, 2005 8:47 pm
by velocityGFX
Freako wrote:OMG! I dont want a cheapy blog. i have access to php, mysql, postresql and all the rest. I am making one for people who dont have it
They can use Xanga, Blogger, or some other service like those.

Posted: Fri Oct 07, 2005 11:51 pm
by Magicfinger
sokay freako i know where you are coming from :)

ive spend about 2 hours writing a templating class this eveing no idea what im going to do with it yet :)

Posted: Sat Oct 08, 2005 11:47 pm
by theseer
i was looking at the "kill monster" script on chipmunk-scripts.com and i picked it up by looking around the source code.

Posted: Sun Oct 09, 2005 12:40 pm
by Magicfinger
the problem with php is that there is no single tutorial without buying a book that covers everything what you need to do is be able to create a design spec for you project even if its really basic and look up the info you need for each section - once you have done that keep the code you write into a class and youve got re-usable code

for example, whenever i create a site i have a basic code base to generate error messages, then add on to it as required.

Code: Select all

class Error
	{
	
		var $ErrorModule;
		var $ErrorNumber;
		var $ErrorMessage;
		var $ErrorDescription;
		var $ErrorStatus;
	
			function Error()
			{
			
			}
			
			function SetErrorNumber($Number)
			{
				$this->ErrorNumber=$Number;
			}
			
			function SetErrorModule($Module)
			{
				$this->ErrorModule=$Module;
			}
			
			function SetErrorMessage($Message)
			{
				$this->ErrorMessage=$Message;
			}
			
			function SetErrorDescription($Description)
			{
				$this->ErrorDescription=$Description;
			}
			
			function SetErrorStatus($Status)
			{
				$this->ErrorStatus=$Status;
			}
	
			function DisplayError()
			{
?> Add your HTML output here 
								<?
			
			    die();
			}
	}
so then to create an error page i just do a ...

Code: Select all

Error::SetErrorModule('Templating');
					Error::SetErrorNumber(1);
					Error::SetErrorMessage('<p>The file : '.$this->TemplatePath.$this->TemplateFile.' could not be found.</p>');
					Error::SetErrorDescription('<p>please check the SetTemplatePath and SetTemplateFile variables used and ensure that the template file physically exsists. </p>');
					Error::SetErrorStatus('Die');
					
					Error::DisplayError();
So you said you wanted to create a blog so the basics are (the suggested google terms are in red :) ):-

a way to create, login, logout, check permissions of users - PHP User Authentiacation and Sessions

a way to post comments and reply to comments and delete comments PHP SQL and Database
coding

Posted: Sun Oct 09, 2005 8:43 pm
by Magicfinger
you shouldnt need a book (i havent got one :) ) everything is online try ... http://www.tutorialized.com/tutorial/Co ... ystem/9035 for the user management stuff

Posted: Tue Oct 11, 2005 11:36 am
by Magicfinger
oops dbl post :)

of course if you do want a book....

http://print.google.com/print?q=php&btnG=Search+Print