8ennett
Members-
Content Count
435 -
Joined
-
Last visited
Everything posted by 8ennett
-
Ok so here's the sample code I was telling you about. It's a simple form which submits its data to the clickatell website. Now this form POSTS instead of using GET because the GET method can only process up to 100 telephone numbers. <form action="http://api.clickatell.com/http/sendmsg" method="post" name="sendsms"> <table width="600" border="0" cellspacing="5" cellpadding="5"> <tr> <td colspan="2" align="center" valign="middle"><strong>Send Text Message</strong> </td> </tr> <tr> <td width="300" align="right" valign="middle">Registered Subscribers</td> <td width="300" align="left" valign="middle"><?php $showsubs = mysql_query("SELECT mobile FROM subs WHERE mobile!='0' AND validated='Yes'"); echo number_format(mysql_num_rows($showsubs)); ?></td> </tr> <tr> <td colspan="2" align="center" valign="middle"><textarea name="text" cols="60" rows="3" id="text"></textarea></td> </tr> <tr> <td colspan="2" align="center" valign="middle"><input name="sendtext" type="submit" id="sendtext" value="Send Text" /> <input name="cancel" type="button" value="Cancel" onclick="document.location='sendtext.php'" /> <input name="user" type="hidden" value="myusername" /> <input name="password" type="hidden" value="mypassword" /> <input name="api_id" type="hidden" value="3232167" /> <input name="to" type="hidden" value="<?php $countit = mysql_num_rows($showsubs); $countitmore = 1; while($row = mysql_fetch_assoc($showsubs)){ echo '447624'.$row['mobile']; if ($countitmore != $countit){ echo ','; } $countitmore++; } ?>" /></td> </tr> </table> </form> So you can see above the form posts several pieces of information, both in the textarea tag and in hidden inputs as well. Now you need to keep the names of these inputs the same because that's how clickatell identifies the values. So along with the textarea (use javascript to limit the max letters/numbers of the textarea to 160 as the message cannot be longer for a single message, longer will cost more) there are also the hidden inputs. user : This is the username you use to login to clickatell password : Password to login to clickatell api_id : Clickatell provide you with this id number to : A list of telephone numbers to send the message to, seperated by a comma only So I have written a quick script that tells you how many subscribed users there are and also one to input those numbers in to the hidden field. The query only selects users that have validated their accounts from the database as well. When a user inputs their phone number, because it was only a local business I only required them to input the last 6 digits and I would put in the country code and area code (447624) so you can get rid of that bit if you want and have users enter their full mobile number. Can't find the php file I used to process received messages strangely so sorry about that, but it's very simple to do anyway. Clickatell should have all the info you need on all this anyway.
-
I implemented a similar system in to a website I made for a friend. It was an off-license website where you could sign up to receive special offers and discounts via text message and they would confirm their number by replying to a confirmation text they receive. Then when they were on the mailing list my friend simply filled out a form I built on his website and clicked either send to all or send to specific number and he could send out mass text messages. The site was called Clickatell and they have a really simply system. Using php when a person entered their details on the sign up form first I would input all the details to the database then using php I would send a request to the clickatell server using the GET variable to input the information eg. "?username=accountname&pass=MYPASS&number=0791253447&message=To confirm signup reply YES to this message" or something similar. Then when the user replied I would configure clickatell to call one of my php pages using the GET variable again eg "receive.php?from=0791253447&message=YES" then using php I would update the database to add the user to the mailing list ONLY IF the return message says YES. Now you have to pay for each individual message you send out, I think it's about 0.01p per message or something which you pre-pay for, but you can also charge for incoming messages I think. I'm not too sure about making money from the process though because I never configured the clickatell account to do that. So that's my experience with clickatell and they were quite efficient. You also get 10 free test messages to make sure your system is working properly before buying credit.
-
Apache Query: Requirements To Run Own Web-Server?
8ennett replied to sandeep1405241520's topic in Software
I would NOT recommend hosting your site from a hostel. It would be unfair on everyone else who uses the internet there as hosting your own website will take up a lot of your bandwidth depending on the amount of visitors you have and how 'heavy' the website content is. Now yes you can host your own website off your computer and it is quite a popular option, however you will need to open the ports on your computer and your router and to do this you will need full adminsitrative access to your router. So download and install the latest version of the apache http server and when prompted allow the program access through the firewall. If you aren't prompted then you can manually open the port by opening your computers firewall application and inputting a new exception, name it HTTP and set the port to 80. This will allow access from the internet to your computer through the http port only so people will only be able to access your server and nothing else. Now that you have your web server up and running you can upload your website files to C:\Program Files\Apache Group\Apache 2.x\htdocs (for Winblows users) or something similar. You can also edit your web servers configuration by opening the file C:\Program Files\Apache Group\Apache 2.x\conf\httpd.conf. The next thing you will need to do is forward all external connections from your router to your pc. Now every router has its own version of port forwarding and you can look up the method for your particular router at PortForward and if they don't have your router in their database then use google to search it up. You are wanting to forward port 80 to your LAN ip (which is different to your internet ip). So use your router again to find out what your computers local ip is (if you are the only computer on the router then it will usually be either 192.168.0.2 or 192.168.1.2) and forward port 80 to it. Now your website can be accessed by people on over the internet. If you want to test it out then visit WhatIsMyIP, copy your ip address off the page and paste it in to your browser. If the setup was succesful you should see your website. Now other users will have to type in this ip address as well if they want to view your website so now we need to setup a domain name. Visit a website like DynDNS and sign up for a domain. Now you can pick what ever you want so http://www.mysite.com/ and you will need to enter your websites current ip which you found out from WhatIsMyIP and then anyone who types in http://www.mysite.com/ will be forwarded to your router, which in turn forwards them to your server. If your ISP has given you a dynamic IP then when ever you disconnect then reconnect your router from the phone line or turn it off and on again then your ip will be different. So visit the ip website again, write down your new ip address, go back to DynDNS and change the forward ip to your new one. It's also worth noting that when your PC or router is turned off then your website will not be available to the internet and will return an page not found message when people visit http://www.mysite.com/. Hope this helps anyone who needs it. -
Well if you want to create a free basic website then you can use a program called Dreamweaver, it has a great wysiwig interface so you can design your website easily and without any programming knowledge. Also for the advanced user it offers loads of great features such as a virtual server, direct site uploads and colour co-ordination on code. Once you have made your html website you can sign up for free hosting with CJB.net. They offer free web hosting for html sites and even give you a domain name (yoursite.cjb.net/). They also do free image hosting now as well if you aren't wanting to host the images on your own account. If you want a full wizard-style format for creating a website then I would suggest using Freewebs. They offer more advanced website editing for the laman and widgets as well (website add-ons) like forums, chatrooms, calenders and so on. You also get a domain yoursite.freewebs.com or freewebs.com/yoursite. Another option would be to use advanced hosting like Xisto where you can get premium web hosting and your own custom domain names (yoursite.com/) and you pay for it by posting in the forums here and over at Xisto. This type of hosting offers php support, mysql databases, cgi support and much more including automatic setup of the google mail app so you can have loads of email addresses like me@yoursite.com. If you are just wanting to create basic html sites though then I wouldn't recommend using Xisto as it's a waste and there are much simpler hosts designed for this type of site. So there are loads of different options out there for you, it's just finding the right one for you. First decide what exactly it is you want to create, start planning the layout of the site and a popular choice is to draw it out on an image file then cut the image up and lay out your site with the image snippets. Once you have your layout then you can start building and find the right type of web hosting account for you.
-
Welcome to Xisto MIAsun, looking forward to your contributions.
-
Ok this is going to be the last tutorial now for this. Instead I have started up an open-source project which you can find at the temporary address http://forums.xisto.com/no_longer_exists/. The project is named Praetorian and is designed to offer a complete rpg game engine which is fully configurable through the admin panel. Also I've just finished building a module manager and add-on manager. This means you can download individual add-ons and modules and use the manager to install/uninstall them with the click of a button. This also opens up the possibility of user development for the engine. Also built in a styles manager as well so you can download different styles and completely change the look of the site easily. Here's a few screenshots of the new code. So as you can see I've completely reworked the code and the entire layout of the site is dependant upon css. Version 0.8a is going to be released soon so even though it's not a complete engine you can start getting to grips with the style and module formats. So keep an eye out on the PGE (Praetorian Game Engine) website for updates.
-
I've been doing a bit of research in to how a car powered by water actually works. It's not quite what I thought it would be but I'll share some of my findings with you. There is a practical and cost effective solution already implemented where you have a hydrogen fuel cell placed in to your car. The cell uses an electrical current to convert the water in to hydrogen oxygen, and when in this gas form is then used to power the vehicle. For the non-technical user there is a simple system which creates the gas on demand without need to store it, however this can drain your cars battery a lot faster than usual so the cost of recharging the battery can mount up. There is also talk of man named Stan Meyer who invented a Dune Buggy that ran solely on water before the technology became publicly available. The Dune Buggy itself featured in a one-off television appearance and Stan Meyer has succesfully applied for the patents on his technology when he was suspiciously poisoned and died in a parking lot in his home town of Grove City, Ohio in march 1998. A week after his death his Dune Buggy and all his experimental equipment were stolen, or at least so his brother Steve claimed. Stan said while he was alive, that he was threatened many times and would not sell out to Arab Oil Corp. An Arab even offered him $1,000,000,000 to stop the project and not release the technology, but he refused and said it was for the people. So it seems obvious from these sketchy reports than hydrogen powered vehicles are a threat to the oil companies, it's fully understandable but I don't think people have fully grasped how far these people would be willing to go to protect their profits. I still believe that ethanol based fuels are a more efficient means of fuelling vehicles, the cost works out cheaper than the amount of electricity required to run HHO fuel cells, but obviously either are more efficient and healthier for the environment than gasoline.
-
From what I have been led to understand, water powered cars do not have a very powerful engine at all, less powerful than electric cars. Because of this they would be like driving a golf cart around which wouldn't really appeal to many people. I know that California was used as a testing ground for ethanol powered cars, not sure if that would be cheaper than regular fuel or not once it becomes more common place but California gas stations (well the majority) all had ethanol pumps fitted for the trials. There are bio fuels, but pure ethanol fuel is by far better. Not sure if it has been a success or not yet though. Anyway ethanol powered cars would mean a massive drop in porfits for the oil companies but they would still have other economies to fall back on such as plastics, lubricants and heating oil. I welcome the idea of ethanol fuel though, much cleaner and would give a massive profit boost to the farming community.
-
So as some of you may have noticed by now I've been writing a series of tutorials designed to aid people in the creation of text-based mmorpg games. Well, since the project has grown I've decided to make it an open-source project and expand the already created examples in to a user friendly environment for designing their own games. I've named the project Praetorian (Roman elite guard) because I couldn't think of anything else, plus I want to make this an easier to use yet more advanced game engine compared to others out there. So the engine is going to be name PGE (Praetorian Game Engine) and the site for the new project is already up and running. I've got the forums running as well (phpBB) to try and get a community together when the final release is out. Anyway the project is currently at The old DrugMann site (temporary until I buy a different domain) so have a look and let me know if you think this project has potential. Oh and also, the site only has two translations so far, english and french and I doubt the french translation is very accurate lol but if you can think of any other languages that might be useful to put in there then please let me know.
-
I'm considering making part 6 the last one. I've started building the site to make this tutorial in to an open-source project at Project Praetorian. Is it just the end result you are looking for or are you genuinely interested in learning more about programming your own game?
-
Finished part 6 yesterday but it's still waiting approval
-
Before starting on this tutorial be sure to run through the first 5. Part 1: Advanced User Account System Part 2: Welcome Home Part 3: Administrative Part 4: Profiles Part 5: Messaging & Inventory ######################## Part 6: Forums ######################## Download Example6.rar So in this tutorial we are going to cover the features of our new forums. So first of all once you have uploaded the new files to your server load up the install.php and input your database details and super admin account details. Once you have succesfully run through the installation program delete install.php (or move it outside public access) you can login with your new account and visit the forums. Now the features of our new forums are as follows. Forums.php So when you click on the Forums link on the left-side menu you should see a screen similar to this (without the already created forums of course). Now if you are an admin or super admin you will also see the table row at the bottom with the options to add forums, edit forums and delete forums. Also notice I have put in a little script to change the colour of each forums table row on mouseover and the entire row is clickable instead of just the link. The css also changes the mouse cursor to the pointer when mousing over the table row. So if you want to create a couple of new forums we will be able to test out the rest of our forum system. So as you can see after clicking the 'Add Forum' link we get our form layout asking for the forum details. Now obviously the name and description are what they are. In the who can post section we can choose between admins, mods and users. This is the access rights for creating new posts in this forum. Now 99 times out of 100 the admins will be permitted full access to all forums, but I put the option in just in case. I have also written in some simple javascript which automatically fills in the other permissions for each user type. So when you click Admins can post, then it will check admins can reply and admins can view. Unchecking it will uncheck admins can reply as well since it assumes if they can't post they can't reply either. If you check the admins can reply box then this will also check admins can view but not post, because obviously you need to view the forum before you can reply to any topics. Unchecking admins can reply however will not uncheck view. Checking view will not check any of the others. This gives a tier effect so if you only want to check individual boxes then you work from the bottom up. So this javascript rule also applies to the mods and users checkboxes as well. So if everything checks out and you have set permissions then this will create the new forum. Next we move on to editing the forums. Now all this is pretty self explanatory. I decided just to have all forums displayed for editing divided by seperate background colours. None of the checkboxes work on the javascript used to creare the forums as it's assumed most of the permissions are correct anyway and help avoid mistakes. Also the forums id number is displayed next to the name and description titles to help distinguish each forum. Finally we have the delete forum option. NOTE: The mouse cursor is currently over the News forum row and you will notice the background colour is different. Mousing out again will revert it back to normal. The background colour change also applies to the forum names in the delete table. I've also written in something extra, so if you want to select a forum to delete from the database simply click it once and it will then be highlighted in blue. Clicking the forum General Chat again will deselect the forum for deletion and turn the background colour back to its original. Right so as you can see above we also have all our forum information which tells us how many topics are in each forum, the total amount of replies to all topics and when the last post/reply was made. If we click on one of our forums we will then be taken to the topics list using the $_GET values. So this will display a list of the 20 most recently active topics in the select forum. At the very top there are links for navigation back to the forum. Where it says Page 1, this will also display a next page/previous page button depending on wether there are more topics or you can go back. Also the new topic button will only appear if the current user has permission to post in this forum. All the new topic, edit topic and reply to topic pages have all got the proper permission checking on them and divert the user back to their previous page if they try to access something they don't have permission to access. So above you can see how many views the topic has had, this does not increment if it is your own post. It also shows the amount of replies and which user created the topic. It also shows all topics marked as a sticky first, however these don't count toward the 20 topics per page. It will display ALL sticky topics with no limit at the top of each page before showing the regular topics beneath it which means if you create a load of stickys the page will get very crowded. It would be best to reserve the sticky topics for forum rules and FAQ's. So if we choose to create a new topic we will get the next screen. Now using a javascript located in the sites root called bbcode.js we are able to automatically insert our bbcode in to the main topic content. So clicking the B button will create the forum code but also if you were to type something in to the message box and highlight it eg. This is bold text, then click the B button it will change the highlighted text to This is bold text. This is also the same for the others including the colour pad. The only one that isn't affected by the highlighting rule is the youtube video button. This will write over any highlighted text with the new information. Simply enter the reference id for the youtube video (http://forums.xisto.com/no_longer_exists/ you would use only the xlC9SzWsCPo part). Also, if you use the URL link on highlighted text it will only ask for the URL and will use the highlighted text as the display text for the link. The sticky checkbox will only display if you are either a mod, admin or super admin as well. So when we click on a topic our page is displayed like so, also if we did not create the topic the view count is incremented by one. We have all the usual display. Where it says Replies Page 1, this will display a Next page/Previous page button either side depending on wether or not there are more replies. The replies are displayed in lists of 10 instead of 20 like the topics. They are also displayed in ascending order from the time they were posted, so oldest to newest. The delete button on the replies only appears to mods, admins and super admins. On the main topic options the reply button is displayed to all users, the edit button is only displayed to mods, admins, super admins or the topic creator, the same with the delete button. The report button is displayed to everyone as well and inserts an alert in to the admin alerts table. So when we go to add a reply to a topic we get a similar page to the new topic one, but without the subject field. All the bbcode still works the same as well. If the user who created the topic has put you on their blocked list you will not be able to post a reply in their topics. Next we have the edit topic page as well. Again it is just the same however there is a reason for editing field as well. If you fill this in then on the topic page it will display at the bottom of your message who edited the topic and the time and date it was edited with the reason for editing just below it. If you do not fill in the reason for editing field then it will still display the time of editing and who did it but it will skip displaying the reason. So that's about it for this tutorial. I've probably missed some bits out but if you run through all the code in the files under modules/forums then you can see how each effect and feature was achieved and modify it to suit your needs. As usual, comments and questions are welcome.
-
I had the same problem so I didn't bother updating my laptops version. This happened to me in the past with previous 3.x versions of firefox as well (but I can't remember which ones) and I was happy when it started working again. Also the sciphone is an ok phone for a cheap touch screen. I got mine for ÂŁ80 off ebay and it came with an 8gb micro sd card and all the necessary converters for it (MSD -> SD -> USB). Also came with a car charger for plugging in to the lighter socket. The only problem I had was having to buy an adapter for my headphones because the ones that come with it are rubbish. Also has the tilt function for movies and images and so on. Good little phone. Also didn't realise the forums had a double-click feature to look up information, very useful to know!
-
My browsers aren't on here either. I use Firefox 3.5 (some of my addons aren't compatible with 3.6) and IE7 (For checking cross browser compatability). Oh, I also use Opera on my sciphone.
-
When Will Mycents Be Credit To Your Account? [solved]
8ennett replied to labstuffs's topic in Websites and Web Designing
lol I was only messing around, although if you pm'd him something along the lines of "Remove the warning from my account now before I shove my foot up your" then I suppose you wouldn't get the warning removed lol I'll be honest, when I first joined I put a massive piece of plagiarised content in a forum post and forgot to add the quote tags. My account was in negative for a week or two after that. -
When Will Mycents Be Credit To Your Account? [solved]
8ennett replied to labstuffs's topic in Websites and Web Designing
Well as long as you are nice to yordan, hold off on the plagiarising and hold off on the double posting then he should lift the warning -
Yeah sorry, I'm always studying or teaching so that's usually my first response
-
Welcome to Xisto. Well if you're interested in learning different things then you can visit the tutorials section, it's full of hundreds of tutorials for many different aspects of computing. Maybe have a read through the einstein factor and find out some things that may be of interest.
-
When Will Mycents Be Credit To Your Account? [solved]
8ennett replied to labstuffs's topic in Websites and Web Designing
To convert your myCents to $ for your hosting simply login to the billing and support section on the menu on the left -
Thanks Wait until you see the forums i'm writing for it at the minute. Once the forums are finished though I might start work on building the site for the open-source project. Try and get a few more developers involved once it is at a easily modifiable stage. That way eventually this could become an entirely GUI based system which is highly customisable (basically able to edit everything including layout and appearance) and user-friendly. Maybe get a module database on the go with a seperate installer. Anyway, that's the hope lol
-
Why don't you have a look through the tutorials section on the forums. I've written a shoutbox tutorial, shoutbox being the new name for most browser-based chatrooms after the banning of most online chatrooms. It uses PHP, MySQL and AJAX (Javascript).Basically the way it works is, obviously you can't have live php running on the page as it is a server-side script. This is where ajax comes in. Instead of having to continuously keep refreshing the page to view the latest content ajax calls a php file in to the current document. So index.php loads up once and the page stays the same, ajax keeps updating a div on the page with the content output of chat.php without index.php having to refresh.
-
How Many Mycents Do U Need For A .com Domain(1year Only) mycents
8ennett replied to addict's topic in Web Hosting Support
For instance, including this post I have at this time made 321 seperate posts and have earned in total $82.36, that averages out at around $0.26 per post, however a lot of those posts are small. Most of my money has come from writing tutorials. A decent sized post which isn't full of plagiarised content and is detailed but not bulky (say about 2 medium paragraphs) will probably earn you about 50.00mC, so to be able to order a years domain it will take you around 20 good sized posts. Now writing a tutorial you can sometimes write the equivalent of 8 or 9 medium paragraphs if you detail your work and make it clear and easy to understand. I've earned a good few $ from some of my tutorials, one of my more recent being around $3.50. Had I actually inserted the code as well (in CODE tags obviously) instead of providing the code to download then the comments surrounding each section of code could have earned me even more, however I avoided doing that because it would have made the tutorial much harder to follow. Basically my point here is, if you do write tutorials don't just think about the mC, think about how easy it will be for the readers to follow first before worrying about how much you can make from it. If a tutorial is indecipherable or isn't actually classed as a tutorial but more of a guideline then it is likely the moderators won't approve it and you won't earn your credits. Domain prices aren't a standard $9.99 either, I've entered my domain name and it has asked for $13.95 or similar. I bought manxsingles.com for a year and it has cost me $12.95. It's probably also worth pointing out that unless you already own your own domain name or purchase one from xisto then you will be unable to open a hosting account. At least in my experience that is what I found. I have opened 3 seperate hosting accounts on xisto and each time I was required to either purchase a domain name or transfer one before I could get my hosting. -
Can Someone Help Me Modify This Login Script? [solved]
8ennett replied to sylvanasp's topic in Programming
Brilliant, that's good news. Remember though, if you upload this script to a linux server then you will need to change the file permissions of the images/users directory to 0777 otherwise you will not be able to upload images, but like I said that's only on a linux server. Best of luck with your exam, let me know how you did. -
Can Someone Help Me Modify This Login Script? [solved]
8ennett replied to sylvanasp's topic in Programming
Ok I've finished the login page for you, you can download it from http://forums.xisto.com/no_longer_exists/. Now like I said I've fully commented all the lines of php code in there so you will have to remove them before submitting the site. The features I've made for you are: Login Page: Depending on what type the user is they are taken to different home pages 1 = Admin, 2 = User, 3 = Guest Registration Page: All users who register are users by default (2) I've also made it so users can't access admin and guest home pages, and so on for guests. And the other part you wanted is in there as well which is the image uploader. It uploads an image to images/users/userid.jpg so if your user id is 5 then when you upload an image it will be images/users/5.jpg but if the user hasn't uploaded an image or deleted their image (there's a delete button as well) then it will display an image with a human silhouette to indicate they have no image. So I hope that's everything you wanted in the script, when you want to set it up just edit the setup.php file and change the variable values to your database information (host, username, passsword and database name) and it will work fine. Also I've included a text file called tables.txt which has the queries in it to create the 'users' table and insert three users in to it. Each user has a different security level (1, 2 and 3) and the password to login to these accounts is just 'password'. Any problems just give me a shout and I'll help you out.