maddog39
Members-
Content Count
214 -
Joined
-
Last visited
Everything posted by maddog39
-
That first php script is incorrect and thats why it didnt work. Its supposed to be... <?php include ("Path to Xoops"); ?>Also since your using PHP-Nuke now it wont work since PHP-Nuke uses alot of backend stuff plus xoops wouldnt have work either because it also uses backend and the images need to be link remotley and a hole bunch of junk that you need to do. Just isnt going to happen with php. So your best bet is to use that meta tag or the HTML that other person gave you.
-
I got tons of GMail invites if anyone wants. Also to protect my email from the world I am going to have people use the contact form on my site and a link will be provided. Here my info. # Contact: http://forums.xisto.com/no_longer_exists/ # Number of Invites: 47 So just email me with that form on the link given and send me your email and who you are and I will send an invitation to the exact email you send me. Also I will do anyone for nothing so feel free to just ask.
-
Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site to email you just by filling out a form. So here is what you need to do to set it up. First open up a new page in your text editor and paste in the following code. <?php$Name = $_POST['Name'];$Subject = $_POST['Subject'];$Email = $_POST['Email'];$Site = $_POST['Site']; $Message=$_POST['Message'];$align = $_POST['align'];$to = "$EmailTo";$subject = "$Subject";$body = "$Message\n\n\n$Site\nBy: $Name";$headers = "From: $Email\n";mail($to,$subject,$body,$headers);// After they've clicked "Send", this is where they are going... Change it to where you want them to go.header("Location: sent.htm");?>then save this file as mailform.phpNext open up another new page in your text editor and paste in the following code. <form action="mailform.php" method="post"><input type=hidden name=EmailTo value="You@mail.com"> <!-- // Change to your email address // -->Your Name: <input type=text name=Name><br>Subject: <input type=text name=Subject><br>Your Email: <input type=text name=Email><br>Your Site: <input type=text name=Site><br>Message: <br><textarea name=Message rows=6 cols=30></textarea><br><input type=submit value="Send"> <input type=reset value="Reset"></form>then save that page as contact.htmFor the the last page, open up a new page in your text editor and paste in this code. <p>Your message has been sent to the webmaster. You should recieve a reply shortly. </p><p><a href="index.php" target="_self">Go Back To Index?</a></p>and then save that page as sent.htmUpload all of the files to your server and your done. *Also note that you can just take the code from 'contact.htm' and put it in another of your webpages on your site and do whatever you want with it but dont do anything with the other files or code unless you really know what your doing. Comments are always appreciated and enjoy!
-
Hello all, Here is a neat and helpful PHP script that can count unique page views on your website. First you need to open up a new page in your text editor and paste in this code. <?php$filename = "hits.txt";$file = file($filename);$file = array_unique($file);$hits = count($file);echo $hits;$fd = fopen ($filename , "r");$fstring = fread ($fd , filesize ($filename));fclose($fd);$fd = fopen ($filename , "w");$fcounted = $fstring."\n".getenv("REMOTE_ADDR");$fout= fwrite ($fd , $fcounted );fclose($fd);?>then save the page as counter.php Next open up another new page in your text editor and just save it as hits.txt Then upload all of the files onto your server and CHMOD hits.txt to 0777 or just 777. After that open up your main page or the page you will be placing the counter on and pste in the following code. <?phpinclude ('counter.php');?>then save and close that page. If needed, re-upload the file(s) to your server. Very simple and easy to use. Comments are allways appreciated.
-
haha, lol. I guess theres not really anymore need for GMail lite anymore. Neat but I still like the regular javascript version better. The html one is all wierd to me. But anyway, they are coming out with new features all of the time. Its about time they finaly released something like this to the people who really need it/want it.
-
I Want To Create A Forum Site Can anyone help?
maddog39 replied to hansley's topic in Websites and Web Designing
phpBB is plain old and boring. Also Invision Power Board is really the best but you need to pay for the one that Xisto has. Also If you buy Inivion they give you converters to convert your database backup from phpBB SQL to IPB SQL. SO Yes you can easily change forums if you want to. -
Wow quoting that post was majorly cheating hosting points but whatever. Also, I dont see any MySQL what so ever and I also dont think its hard to make an install file and yeah you forgot a database connector file. That really needs to be fixed.
-
Yeah I have 50 GMail invites also. Just PM me and I will be glad to give you one if you want. Just PM me.
-
You all gotta understand that just like math, there is many many different ways to code and use php. There is always another way to do things. For instace the echo function can also be replaced the the print function because they do the exact same thing. Also if you are trying to get an enviornment like HTTP_USER_AGENT or REMOTE_ADDR you can do it by either the $_SERVER variable or the getenv(''); function. See what I mean. So if your trying to correct someone , chances are that there PHP is right and your just showing them another way to do the same thing. Get my point. Well I hope so, lol.
-
What you can do for the CSS thing is just put the date into a separate file like this... <?phpecho date("g:i:s");?>Then save it as date.php and in your main page or whatever just go... <?phpinclude ('date.php');?>and then the date will show up with the stye according to your CSS file on your main page. Hope that solves your problem, always works for me.
-
Yeah im not having any problems with it at all. The pages come up perfectly. Must be something wrong on your end, maybe with your ISP or something. Just guessing.
-
eh... I doubt its safe at all. Im just going to stick with GMails JS thing. Plus I havnt had any problems with that one anyway.
-
Secure Dynamic Pages Another good php tutorial.
maddog39 replied to maddog39's topic in General Discussion
Well the way to fix that problem is to make another php snippet and put it into every single page but I cant figure out what that would be. I have been trying all different things and I cant figure it out. There must be some simple solution that I just not thinking of. -
I am very serious and I feel like I wanna throw up on people who dont like mac, lol. Mac is the best out there except the fact that there isnt much in the way of games for it. But theres tons of regular softwarre for it and its like 10 times more stable than windows and alot more secure then windows OR linux, and he has very very few memory leeks. Plus the OS is alot easier to use than windows or linux. So basicaly I saw mac is practicaly th best. Also I have 2 macs and soon to be 3 and I still cant understand why people make comments about mac when they have probably only used it for 5 minutes at an apple store and didnt even own one themselves to actually find out how good and useful and better it can be than windows or any othe of those OSs. Anyway its just an opinion so it doesnt really matter.
-
Secure Dynamic Pages Another good php tutorial.
maddog39 replied to maddog39's topic in General Discussion
No I think you use the more simple: $Page = $_GET['id'];@include ($Page . ".php"); -
Well guys since you asked anyway. I have made and posted a Javascript version thats I also believe is alot better. Its got tons more capabilities and stuff. I posted the code to. So just go to: http://forums.xisto.com/topic/7499-js-calculator/
-
Hello all, Recently a friend of mine gave me this code to make your site completley dynamic and secure at the same time. Here is what you have to do. Open a new page in your text editor and paste in this code. <?phperror_reporting (E_ALL ^ E_NOTICE);if(!$page){ $page = $HTTP_GET_VARS['page']; }if($page=="" or $page=="main"){ include("main.php");}if($page=""){ die("You cannot access this page directly...");}?>Then save the file as index.php. After that upload the file onto your server and make your main content page 'main.php' but dont put any template graphics or things like that. Just leaave it as plain text and links, things like that. Also make all your pages end with the extenstion '.php' and you can access them by 'http://ww2.yourname.com/?page=index&page=somepage' Also the pages are now secure because if you dont put anything after the '=' sign it will think you are trying to access the page directly so thats where the 'die();' message comes in and blocks anything from going into the files. This will ensure that hackers cant get to things that easily. So enjoy and protect your site against evil dooers.
-
Well you should get a better one anyway. I found http:// smartdots.com which has like 15 or somtin domains with no ads at all and there awsome domains to. Like they have .net.tc, .us.tc, .de.tc, etc., etc. They are really good and alot better than .tk.
-
[php]password Protect W/o Db A good php tutorial
maddog39 replied to maddog39's topic in General Discussion
No if you want registered members than a MySQL database IS required. There is not possible way to do without it as far as I know. -
Hello all, Here is yet another cool Javascript I found. Its very useful to, its a javascript calculator. I use this thing about everyday because it has nearly the same features as your regular everyday calculator. Here is a demo to try it out if you want. If you just want the code here it is. <FORM name="Keypad" action=""><TABLE><B><TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5><TR><TD colspan=3 align=middle><input name="ReadOut" type="Text" size=24 value="0" width=100%></TD><TD></TD><TD><input name="btnClear" type="Button" value=" C " onclick="Clear()"></TD><TD><input name="btnClearEntry" type="Button" value=" CE " onclick="ClearEntry()"></TD></TR><TR><TD><input name="btnSeven" type="Button" value=" 7 " onclick="NumPressed(7)"></TD><TD><input name="btnEight" type="Button" value=" 8 " onclick="NumPressed(8)"></TD><TD><input name="btnNine" type="Button" value=" 9 " onclick="NumPressed(9)"></TD><TD></TD><TD><input name="btnNeg" type="Button" value=" +/- " onclick="Neg()"></TD><TD><input name="btnPercent" type="Button" value=" % " onclick="Percent()"></TD></TR><TR><TD><input name="btnFour" type="Button" value=" 4 " onclick="NumPressed(4)"></TD><TD><input name="btnFive" type="Button" value=" 5 " onclick="NumPressed(5)"></TD><TD><input name="btnSix" type="Button" value=" 6 " onclick="NumPressed(6)"></TD><TD></TD><TD align=middle><input name="btnPlus" type="Button" value=" + " onclick="Operation('+')"></TD><TD align=middle><input name="btnMinus" type="Button" value=" - " onclick="Operation('-')"></TD></TR><TR><TD><input name="btnOne" type="Button" value=" 1 " onclick="NumPressed(1)"></TD><TD><input name="btnTwo" type="Button" value=" 2 " onclick="NumPressed(2)"></TD><TD><input name="btnThree" type="Button" value=" 3 " onclick="NumPressed(3)"></TD><TD></TD><TD align=middle><input name="btnMultiply" type="Button" value=" * " onclick="Operation('*')"></TD><TD align=middle><input name="btnDivide" type="Button" value=" / " onclick="Operation('/')"></TD></TR><TR><TD><input name="btnZero" type="Button" value=" 0 " onclick="NumPressed(0)"></TD><TD><input name="btnDecimal" type="Button" value=" . " onclick="Decimal()"></TD><TD colspan=3></TD><TD><input name="btnEquals" type="Button" value=" = " onclick="Operation('=')"></TD></TR></TABLE></TABLE></B></FORM></CENTER><font face="Verdana, Arial, Helvetica" size=2><script LANGUAGE="JavaScript"><!-- Beginvar FKeyPad = document.Keypad;var Accum = 0;var FlagNewNum = false;var PendingOp = "";function NumPressed (Num) {if (FlagNewNum) {FKeyPad.ReadOut.value = Num;FlagNewNum = false; }else {if (FKeyPad.ReadOut.value == "0")FKeyPad.ReadOut.value = Num;elseFKeyPad.ReadOut.value += Num; }}function Operation (Op) {var Readout = FKeyPad.ReadOut.value;if (FlagNewNum && PendingOp != "=");else{FlagNewNum = true;if ( '+' == PendingOp )Accum += parseFloat(Readout);else if ( '-' == PendingOp )Accum -= parseFloat(Readout);else if ( '/' == PendingOp )Accum /= parseFloat(Readout);else if ( '*' == PendingOp )Accum *= parseFloat(Readout);elseAccum = parseFloat(Readout);FKeyPad.ReadOut.value = Accum;PendingOp = Op; }}function Decimal () {var curReadOut = FKeyPad.ReadOut.value;if (FlagNewNum) {curReadOut = "0.";FlagNewNum = false; }else{if (curReadOut.indexOf(".") == -1)curReadOut += "."; }FKeyPad.ReadOut.value = curReadOut;}function ClearEntry () {FKeyPad.ReadOut.value = "0";FlagNewNum = true;}function Clear () {Accum = 0;PendingOp = "";ClearEntry();}function Neg () {FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;}function Percent () {FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum);}// End --></SCRIPT>
-
Hello all, I found a Javascript hyper searcher on another website that can search all the major search enignes and then display all of teh results in one single page. Its really cool and if you would like to view a demo then just click here. Its all set up for you there and if you just want the code then here it is. <script>Yahoo = "http://search.yahoo.com/bin/search?p=";Alta = "http://forums.xisto.com/no_longer_exists/ = "http://search.opentext.com/omw/simplesearch?SearchFor=";Lycos = "http://forums.xisto.com/no_longer_exists/ = "http://forums.xisto.com/no_longer_exists/ = "http://guide-p.infoseek.com/Titles?qt=";DejaNews = "http://search.dejanews.com/nph-dnquery.xp?query=";Inktomi = "http://204.161.74.8:1234/query/?query=";MetaCrawler = "http://metacrawler.cs.washington.edu:8080/htbin-post/nph-metaquery.p?general=";SavySearch = "http://guaraldi.cs.colostate.edu:2000/search?KW=";Excite = "http://forums.xisto.com/no_longer_exists/ = "http://forums.xisto.com/no_longer_exists/ = "http://point.lycos.com/cgi-bin/pursuit?query=";Galaxy = "http://forums.xisto.com/no_longer_exists/ got=0;var url = "";var plus="";var mag="";function search4(item){ stringPlus(); resultsWindow=window.open(); resultsWindow.document.open(); resultsWindow.document.write("<head><title>Close this window to return to Total Search</title></head>"); resultsWindow.document.write("<FRAMESET ROWS=50%,50%><FRAMESET COLS=50%,50%><FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'><FRAME NAME='frame1' SRC='" + computeFrameSrc(1) + "'></FRAMESET>"); resultsWindow.document.write("<FRAMESET COLS=50%,50%><FRAME NAME='frame2' SRC='" + computeFrameSrc(2) + "'><FRAME NAME='frame3' SRC='" + computeFrameSrc(3) + "'></FRAMESET></FRAMESET>"); resultsWindow.document.close(); got = 0;}function search2(item){ stringPlus(); resultsWindow=window.open(); resultsWindow.document.open(); resultsWindow.document.write("<head><title>Close this window to return to Total Search</title></head>"); resultsWindow.document.write("<FRAMESET ROWS=50%,50%><FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'><FRAME NAME='frame1' SRC='" + computeFrameSrc(1) + "'></FRAMESET>"); resultsWindow.document.close(); got = 0;}function stringPlus(){ for (var j=0; j < window.document.choose4.text.value.length; j++){ if (window.document.choose4.text.value.charAt(j) == " ") mag += "+"; else mag += window.document.choose4.text.value.charAt(j);}}function numChecked(item){ plus = escape(item.text.value); var h=0; num=0; for (var l=0; l < item.check1.length; l++) { if (item.check1[l].checked){ h++; if (h++ <= 4){ if (l == "0"){ num = 1;} else if (l == "1"){ num = 2;} else if (l == "2"){ num = 3;} else if (l == "3"){ num = 4;} else if (l == "4"){ num = 5;} else if (l == "5"){ num = 6;} else if (l == "6"){ num = 7;} else if (l == "7"){ num = 8;} else if (l == "8"){ num = 9;} else if (l == "9"){ num = 10;} else if (l == "10"){ num = 11;} else if (l == "11"){ num = 12;} else if (l == "12"){ num = 13;} } } } if (h == 2) Results(num-1); else if (h == 4) search2(item); else search4(item);}function computeFrameSrc(num){ var k=-1; for (var j=got; j < document.choose4.check1.length; j++) { if (document.choose4.check1[j].checked){ k++; if (k++ <= num){ if (j == "0"){ url = Yahoo + plus; got = 1;} else if (j == "1"){ url = Magellan + mag; got = 2;} else if (j == "2"){ url = Point + plus; got = 3;} else if (j == "3"){ url = Alta + plus + "&mode=and"; got = 4;} else if (j == "4"){ url = Open + plus + "&mode=and"; got = 5;} else if (j == "5"){ url = Lycos + plus + "&backlink=217&maxhits=25"; got = 6;} else if (j == "6"){ url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb"; got = 7;} else if (j == "7"){ url = Crawler + plus + "&maxHits=25"; got = 8;} else if (j == "8"){ url = InfoSeek + plus + "&col=WW"; got = 9;} else if (j == "9"){ url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25"; got = 10;} else if (j == "10"){ url = Inktomi + plus + "&hits=25&disp=Text+Only"; got = 11;} else if (j == "11"){ url = MetaCrawler + plus + "&logic=0Žion=The+World&orgType=Any&maxwait=1&score=0"; got = 12;} else if (j == "12"){ url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1"; got = 13;} return url; } } } url = "http://members.xoom.com/mp_home/empty.htm"; return url;}function Results(place){ stringPlus(); resultsWin = open("","results"); if (place == "0") url = Yahoo + plus; else if (place == "1") url = Magellan + mag; else if (place == "2") url = Point + plus; else if (place == "3") url = Alta + plus + "&mode=and"; else if (place == "4") url = Open + plus + "&mode=and"; else if (place == "5") url = Lycos + plus + "&backlink=217&maxhits=25"; else if (place == "6") url = Excite + plus + "&category=default&mode=relevance&showqbe=1&display=html3,hb"; else if (place == "7") url = Crawler + plus + "&maxHits=25"; else if (place == "8") url = InfoSeek + plus + "&col=WW"; else if (place == "9") url = DejaNews + plus + "&defaultOp=AND&svcclass=dncurrent&maxhits=25"; else if (place == "10") url = Inktomi + plus + "&hits=25&disp=Text+Only"; else if (place == "11") url = MetaCrawler + plus + "&logic=0Žion=The+World&orgType=Any&maxwait=1&score=0"; else if (place == "12") url = SavySearch + plus + "&classic=on&t1=x&Boolean=AND&Hits=10&Mode=MakePlan&df=normal&AutoStep=on&AutoInt=on&lb=1"; resultsWin.location = url;}</SCRIPT><FONT SIZE=+1>Total Search</FONT><P>This script will runn the same search across all ofthe major search engines at one time.<P><FORM NAME="choose4" ACTION="javascript:numChecked(document.choose4) //"><P><FONT SIZE=4><B>Search and display 1-4 databases simultaneously:</B></FONT><BR><TABLE><TR><TD><B><A HREF="temp.html">Directories</A></B><BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Yahoo" ONCLICK="choose4.check1.value='Yahoo'">Yahoo<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Magellan" ONCLICK="choose4.check1.value='Magellan'">Magellan<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Point" ONCLICK="choose4.check1.value='Point'">Point<BR><BR></TD><TD WIDTH="15"></TD><TD><B><A HREF="temp.html">Search Engines</A></B><BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Alta" ONCLICK="choose4.check1.value='Alta'">Alta Vista<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Open" ONCLICK="choose4.check1.value='Open'">Open Text<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Lycos" ONCLICK="choose4.check1.value='Lycos'">Lycos<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Excite" ONCLICK="choose4.check1.value='Excite'">Excite<BR></TD><TD><BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Crawler" ONCLICK="choose4.check1.value='Crawler'">Webcrawler<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="InfoSeek" ONCLICK="choose4.check1.value='InfoSeek'">InfoSeek<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="DejaNews" ONCLICK="choose4.check1.value='DejaNews'">DejaNews<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="Inktomi" ONCLICK="choose4.check1.value='Inktomi'">Inktomi<BR></TD><TD WIDTH="15"></TD><TD><B><A HREF="temp.html">Meta Searches</A></B><BR><INPUT TYPE="checkbox" NAME="check1" VALUE="MetaCrawler" ONCLICK="choose4.check1.value='MetaCrawler'">MetaCrawler<BR><INPUT TYPE="checkbox" NAME="check1" VALUE="SavySearch" ONCLICK="choose4.check1.value='SavySearch'">SavySearch<BR><BR><BR></TD></TR></TABLE><P><B>Enter text to find</B>:<BR><INPUT TYPE="text" NAME="text" SIZE=30><INPUT TYPE="submit" NAME="send" VALUE="Search"><INPUT TYPE="reset" NAME="clear" VALUE="Clear All"></FORM><script></SCRIPT>
-
Yeah! Invision Power Board rocks the big one! I have a lisenced copy of v2.0.3. But i have also used SMF, YaBB SE, phpBB, and XMB for many other different applications. But just like cse-icons said, I like Invision Power Board the most of all because of its features and what not.
-
What Is The Meaning Of Life? you tell me the meaning of life
maddog39 replied to electriic ink's topic in General Discussion
The basic meaning in life is to, secceed and forfull your set goals. Also to learn the lessons in life and to succeed in school. After that get a good job, live life as it is, have a great time, and live your life to the max and the longest. Thats what I truley think. -
I Can't Keep My Website Alive!
maddog39 replied to ElBandoneonWEbsite's topic in Web Hosting Support
Yes I believe he did. -
[php]password Protect W/o Db A good php tutorial
maddog39 replied to maddog39's topic in General Discussion
Your welcome, I think I have fixed all of the bugs in it. Just tell if there are anymore. I have been testing and changing it like all night.