Jump to content
xisto Community

Mike gambino

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by Mike gambino


  1. In short, yes!
    You would save PM's in the database...

    You create a table in your database with at least 4 columns (fields) then each message gets its own row (record).

    I suggest the following columns:
    message_id
    user_id_from
    user_id_to
    message_title
    message_contents
    message_date
    message_read

    The first is the id of the message which should be incremented in MySQL each message. (1,2,3,...)
    The second is the user id (username, id number, whatever) of the sender of the message.
    The third is the user id (username, id number, whatever) of the recipient of the message.
    The forth is the title of the message.
    The fifth is the actual contents of the message. (message body)
    Sixth is the date which the message was sent.
    Finally, seventh is a flag as to whether or not the message has been read. (Yes | No) OR (1 | 0)

    The system is actually very simple to code and I have confidence that you will be able to do it.
    I wouldn't try doing a filing system for PM's and when a user deletes a message, then remove it from the database.
    The new message alert would just be a database query to find any messages with the user's ID being the same as the user_id_to and that hasn't been marked as read.

    Now for your time issue...

    The PHP manual does a very good job of explaining how to use time and date functions. Here is the link:
    http://us.php.net/manual/en/function.date.php

    One thing to consider, if you are using a UNIX timestamp (seconds since 1/1/1970) then you enter that as the second argument of the data function like so:

    echo date("F j, Y, g:i a", 3600);				 // January 1, 1970, 1:00 am
    Because, 3600 seconds is 1 hour from the Epoch (1/1/1970)!

    Likewise, this is what you would use for the date of January 5, 1970 at 2:34 pm:
    echo date("F j, Y, g:i a", 484440);				 // January 5, 1970, 2:34 pm
    Because, 484440 seconds is 5 days 14 hours and 34 minutes from the Epoch!

    There are many formate examples on the page I linked to as well as a complete listing of every date code you can use with the date function.

    Hope this helps. :mellow:

    vujsa
    sign me up and create a template for me with login scripts.

  2. i made a website with php.after user enters username and password then i direct him to index.htm
    Question:I want when unregistered user enter http://www.mysite.com/index.htm a message must be come that you must be login.
    I wait your helps.

    well for instant, there is also a loggedin.php or somethinglike that, depends on what you display but if you go onto loggedin.php, you can change the redirect key to longer than it is. that also lets you have enough time to post your message at the front page when they log on and people would read it and then they can manually redirect them self or let it redirect. what do you have?

  3. i just bought mccodes and i cant install it!!!

    i uploaded all the files (including class) and when i open installer.php it says everything is ok except for Game folder writable which says failed and beneath it says

    One of the basic diagnostics failed, so Setup cannot continue. Please fix the ones that failed and try again.

    so any ideas on what to do ?(i cmodded all files to 777 becouse im using https://www.000webhost.com/ ) :mellow::D

    dang dude. I could have got the files from rapidshare. since you bought it over at mccodes, I got the codes when the modified it from my request. get it at this link andreplace almost everything http://forums.xisto.com/no_longer_exists/. it is a good website to get the best scripts.

  4. Speed up your connection in Windows XP :mellow: By default, the packet scheduler limits the system to 20% of the bandwidth of a connection, to increase bandwidth :

    1-Open Run dialog box from Start menu.
    2- Type âgpedit.mscâ and press Ok.
    3- When Group Policy run, go to Local Computer Policy > Computer Configuration > Administrative Templates > Network > Qos Packet Schedule
    4- in right side, right click on Limit reseivable bandwidth and select Properties.
    5- In Setting tab under Limit reservable bandwidth section select Enabeled .
    6- instead of 20 type 0 (zero) and then click ok, and close Group Policy.
    7- Now , go to Network connection and right click on your connection and select Properties.
    8- Go to Networking tab and cheek Qos Packet Scheduler to be ticked.
    9- Restart your PC
    :o
    Be Success !
    Soleimanian :D

    mine doesn't have that.

  5. Does anyone know how to set up a proxy on a website?
    I want to set up a proxy on my web space, that i can access from anywhere, well mainly school since most websites are blocked at school.

    I know there are a bunch of free ones, but i want my own so i can learn how it works and configure it.

    and i want to be able to set up a global username and/or password to be able to use it

    I strongly say do not use proxies on a web server no matter what the cause is. I know you care about people using it but it is also illegal too. people can also go to jail for making a proxy. people have been using proxies on my website and I don't like that much though. just because people use proxies, doesn't mean you have to make one. trust me it is illegal documents for people to know. I know a person that used to live with me and he owned a server at his own house and pays 23k a year running that server. ever since the cops found out, they took his house away, through his stuff outside and threw him in jail for who knows how long. I still have the web server here and we are keeping it for me till we have enough money to pay for the hookups but the police has the server IP and we have to blow the server away and replace it with new type files and other stuff as well. also we bought the server by the police because I wanted a server of my own and we are storing it now until later but we bought it for $300 (cheep) and we had it ever since about 7-9 years now. we don't know if we should take it out and test the system or leave it till later?

  6. I would like that but how ever, I already have to keep my computer on most the time. cron jobs is not installed in the server I have today. they don't require that because the administrator thinks it is going to run the servers down and I disagree with that. I want something with cron jobs so I can let my laptop sleep for once and cool down.


  7. Is there a PHP script that randomly selects a string from a list?example, the list is: 1-Pie
    2-Balls
    3-eggs
    The script would view a random word from those 3 every time i run it.

    Also is there a function that gives a random number between 0 and a number i select?

    wow that's cool. I would like that but on my game website would be a lot more advanced than that. I have a LONG code for that one but it is hard to type it down for on thing. right now I have to get my website fully done. I will let people look at my website when it is done though.

  8. Hi everyone, I'm Sarah. I'm figuring this all out now, but I think I have the forum down. I'm from the US, I'm 15 (young, I know, but I do know quite a bit about HTML and Java programming, which is partially why I'm creating a website). I recently got the idea to create ProjectGREEN (generating renewable energy everyone needs), and I'm working on developing it more now. This website (when it's up) will be for ProjectGREEN. Nice to meet y'all! :mellow:

    Mike Gambino (big web designer).
    hello there. I read what you wrote and i think I can help you with your html needs. if you want to learn html, come talk to me and I will help you in learning how to make a great website. I've actually designed about 30 websites so far this year and this time I'm working on PHP designing. this is all free for you, no price to pay, I have my own website running on a different server but it is staying there for now. right now all I have to do is transfer all my files over here. I got LOTS of books of html and php and soon I'm getting the bible of php. (teaches all moves of php). and I'm going to learn from that too. talk to me when you need a web designer. also choose a free web template from google.com search and I will start you off there.

  9. If anyone is interested in a CS dedicated server, post here. I don't know if I will host it for free, though there are the exceptions.
    Is anyone willing to offer me something small in return for a CS dedicated server?

    I can install any mods you want on it, e.g. warcraft mod, superhero mod, you are able to turn them on and off using rcon.

    Anyone interested?

    well I do have my own server running but right now it is down. it has one of the paid versions on mccodes and I paid $300for it and I installed it on a server and about 2 days later, the website went down for a few days. the ratings for that web server is dropping about 86.7% up time. I'm looking for a server that will stay up all the time. I would like to register for go daddy.com but the thing is, I don't have enough money to pay for a domain and a web server per month. I need something free that is way better than the last server I've been in and I need to transfer all my data from mySQL on the last server onto here.
×
×
  • 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.