Jump to content
xisto Community

maddog39

Members
  • Content Count

    214
  • Joined

  • Last visited

Everything posted by maddog39

  1. Can someone please help me. I need to restore my IPB database and for some reason its not letting me so I need an admin to do it according to people at invision power services. Its really kinda urgent so could an admin please help me out and help me restore my forum. Thanks Alot!
  2. I would probabl put some Javascripts to do it in my front page and then insert sessions into the pages so it knows when to do it and to see if the person already saw the quiz, things like that.
  3. Hi all,I cant stand it anymore. Everytime MySQL is down you have to wait like 3 hours for it to come back on again. Today for example, just as im about to install my invision power board, oops MySQL Critical Error: Cannot connect to database. I mean isnt there anyway to try and prevent this from happening all the time, at least slow down the amount of times it happens. Does anyone see what im saying?
  4. LOL. I got 52.26 days left of hosting credits, lol. Better get posting.
  5. Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it doesnt do anything special but I am going to make an email mod for it so that it will email results to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text editor and paste in the following code. <?php$qid = "Quiz ID-00";?><html><head><title><? echo "Gamers Pub $qid"; ?></title></head><body><p><h3><? echo "SiteName $qid"; ?></h3></p><form action="results.php" method="post"><p>Username: <input type="text" name="name"></p><p>1.) Question number one is?<br><input type="radio" name="q1" value="Answer1"> Answer1<br><input type="radio" name="q1" value="Answer2"> Answer2</p><p>2.) Question number two is?<br><input type="radio" name="q2" value="Answer1"> Answer1<br><input type="radio" name="q2" value="Answer2"> Answer2</p><p>3.) Question number three is?<br><input type="radio" name="q3" value="Answer1"> Answer1<br><input type="radio" name="q3" value="Answer"> Answer2</p><p>4.) Question number four is?<br><input type="radio" name="q4" value="Answer1"> Answer1<br><input type="radio" name="q4" value="Answer2"> Answer2</p><p>5.) Question number five is?<br><input type="radio" name="q5" value="Answer1"> Answer1<br><input type="radio" name="q5" value="Answer2"> Answer2</p><p><input type="submit" name="submit" value="Submit Quiz"></p><input type="hidden" name="qp" value="quiz00.php"></form></body></html>and then save it as quiz00.php and edit it obiously, lol to what you want. I shouldnt be hard because its mostly just html. But NOTE that if you go over 5 questions then you need to modifiy the php script that shows the results to display those added questions. Here is the results page which displays the results from the forms. Open up a new page in your text editor and paste in the following code. <?php$title = "Quiz Results";echo "<title>$title</title>";// Below gets the answers from the page before //if (isset ($_POST['submit'])) { $name = $_POST['name']; $q1 = $_POST['q1']; $q2 = $_POST['q2']; $q3 = $_POST['q3']; $q4 = $_POST['q4']; $q5 = $_POST['q5']; $qp = $_POST['qp'];}// Below checks to see if you forgot anything //if ($name == "") { die ("You forgot something, go back and check over your quiz.");}if ($q1 == "") { die ("You forgot something, go back and check over your quiz.");}if ($q2 == "") { die ("You forgot something, go back and check over your quiz.");}if ($q3 == "") { die ("You forgot something, go back and check over your quiz.");}if ($q4 == "") { die ("You forgot something, go back and check over your quiz.");}if ($q5 == "") { die ("You forgot something, go back and check over your quiz.");}// Below is where the answers are actually displayed //{ echo<<<EOT<p>Results: $name<br>1.) $q1<br>2.) $q2<br>3.) $q3<br>4.) $q4<br>5.) $q5</p><p><a href="$qp">Go Back To Quiz?</a>EOT;}?>and then save it as results.php. Also this time I put comments in there which should give you some hints to what is going on in the process of getting and displaying the answers. I will be making a mod soon that will be added on to this and it will email the forms to a selected email address so that they are sent to something to be reviewed by a person... you know what I mean? Also if you want a demo, I have one set up on my website: Demo: CLICK HERE If you need any help or some more understanding of the script then just ask by reply ing to this post. Enjoy!
  6. I tried self-instruction in the beggining and I dont think that works the best. So I bought a PHP book and that worked out alot better for me. Im still learning it too and I can code on my own while still learning the language. Thats probably the better route.
  7. Yes you are correct. The way I think this goes is...1 Credit Posted = 1 Day/point of hosting1 Hour Inactive = -0.1 or 0.5 points/points1 Day Inactive = -1.0 Days/pointsThats the way I believe the points system works. If not then just correct me.
  8. Nah... I dont think that the delayed signals is a problem. I mean, c'mon, Your satillite television doesnt have any problems or delays. I have DirectTV and there are no delays or anything. The picutre comes right up and thats transerfer like twice the amount of data per second because its video. See what I mean.
  9. de nada umm.. karlo it doesnt really matter. Just login to your cPanel and where it says account stats or something, there should be an IP address other than yours. Put that IP in there and point your URL on the dynamic DNS in addon domains in cPanel also. An example is my site. http://forums.xisto.com/no_longer_exists/ That should help you out some.
  10. Great tutorial. I am going to use this very much. I also posts the link in a tutorials mod on this websites forums.
  11. For dynamic DNS which uses the IP address in your cPanel the only ones I know of are http://forums.xisto.com/no_longer_exists/ and http://forums.xisto.com/no_longer_exists/ they are both really short DNS, FREE dns domains.
  12. Okay, first it looks at the filename and gets that. Then it counts all of the logged hits in hits.txt and displays it. After that it counts the new hits from the person coming in and writes them to hits.txt to be logged. Does that clear it up anymore?
  13. Ahhh I dont like that way. I used something similar before.... <?php$Page = $_GET['page'];@include ($Page . ".php");?>and I didnt like it at all.
  14. Yeah im learning from a PHP 5 book and some of that stuff doesnt look familar to me. I think its PHP 3 also.
  15. Well I dont know specifics but I can tell you some good sites I know. There is... Invision Skins Invisionize GetSkinned.co.uk Hope these help you out some. I think they will.
  16. I have re-constructed my last PHP Navigation system and it works great. So I have it here for you guys. Here are the instructions. INSTRUCTIONS: Open your main page for your site in your text editor and paste in the following code where the main content goes. <?phperror_reporting (E_ALL ^ E_NOTICE);if(!$page){ $page = $HTTP_GET_VARS['page']; } //You can change 'page' to whatever you want.//Default Pageif($page == "" or $page == "index"){ include("main.php"); //You can change 'main.php' to whatever you want.}//Secondary Pagesif($page == "something") { //Change 'something to what you want. include("something.php"); //Change 'something.php' to the page your including.}if($page == "something") { include("something.php"); //^Follow Above^//}if($page == "something") { include("something.php"); //^Follow Above^//?>Also when your doing this, take any other content in the main content box and put it into another file, probably main.php since that is set default but you may change that. You can also add pages by adding another... if($page == "something") { include("something.php");}under the existing pages in that php block. Then save the page to your server and make sure that all other pages of your site are plain text or just dont have the site template in them. Also make sure that your index page has an ending of '.php' or this will not work. When changing the URLs your pages will now be accessed by 'index.php?page=something' but obiously change 'something' and the 'page' to page names you put in the php code. Got it? Well thats about it and if you need any help just ask me.
  17. Thats overly long and completcated. Mine works fine and I dont see the point in doing what your saying. Just having it the way I have it is alot simpler to understand.
  18. Okaay here si the code with added comments. Here is counter.php. <?php //The file where IPs are logged. $filename = "hits.txt"; //Counting the hits from hits.txt. $file = file($filename); $file = array_unique($file); $hits = count($file); echo $hits; //Writing the IPs to the file hits.txt $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); ?> I think that should clear some things up. Also I will add a cookie system since that would probably be the best for this since cookies are not deleted and easier to do than sessions.
  19. Thats an Invision Power Board feature only as far as I know. You can buy it at https://invisionpower.com/features/apps However it cost $70.00 or I can give you a copy of v1.3 Final under there old lisence when IPB was free.
  20. Theres nothing, just forms. But if I do-do something fancy it will be copyrighted and stuff. I will have restrictions to and it will be under the GPL lisence like my other PHP Programs.
  21. In my book thats not needed and it makes things complicated. It can mis count thats true. However its sensitive in different ways. So what you said depends.
  22. No GM. This is ok. He is not pointing out specific hosts and providing links. Hes simply just say what is required for the best free webhost in his opinion. So this is completley appropriate.
  23. maddog39

    God

    This is getting annoying just by reading these posts, lol. I am not a religious person at all. I only went to church once in my entire life and I dont really believe in anything except maybe christmas. I think its better to just not believe in something like that but just a little bit if you want. But thats just my personal opinion.
  24. Yes this script is completley self contained and it doesnt need anything special. I havnt seen any mailer scripts in cPanel. Plus perl scripts are a pain in the butt. I like my script alot better.
  25. It counts unique. The first couple hits are counted as page views till it kicks in. try it on my site at the bottum of the page. http://forums.xisto.com/no_longer_exists/
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.