Jump to content

ki

Members
  • Posts

    208
  • Joined

  • Last visited

Everything posted by ki

  1. ki

    img resolutions

    so is it possible to make it so i can make another thing that will create a thumbnail image on upload?
  2. Okay Im looking for how to cut down an image to a good sized small thumbnail when its big, but i dont want another image.
  3. What you could do, ive seen this on some forums, is put time for another field in `forum_new` and make each page check if its been over a certain period of time that the person hasnt looked at it and make it delete it.
  4. [code]<? if (isset($_COOKIE['name'])) { echo "You've got cookies!"; } else { echo "No cookies for you!"; } ?>[/code] Try that
  5. [quote author=ToonMariner link=topic=120957.msg496758#msg496758 date=1167911159] the easiest method woul dbe to use a cookie that stores a delimited string of all the threads the users has visited. simply explode that string and use array_keys() like so: [code] $ids = explode('|',$_COOKIE['threads']); if (array_keys($ids, $viewing_thread_id)) { // seen it. } else { //mark New } [/code] this board probably uses something similar. If you choose not to have cookies then perhaps you could implement the same process in a database table. [/quote] nah this board doesnt use cookies, or i think any board at that matter uses cookies, it uses mysql like the other boards. my explanation is all you need to achieve this.
  6. Okay this is what I did for mine, but I havent implemented yet because im to lazy but it works, first you make a new mysql table, lets say `forum_new`, add all the fields like the username, topic id, forum id, and whatever else you want. Okay now thats all done, on the listing of the topics or forums for that matter is when your listing them check each one to see if itsnew or not. Now thats all done when a user is viewing the new topic you make a script all the way at the bottom and you make it delete new one. This should work, if you wanna get more technical about make a thread id row on your table.
  7. ki

    ip ban?

    actually theyre signing up for my site, and then posting. :/ also i got this error Warning: Wrong parameter count for in_array() in /home/tragical/public_html/index.php on line 29
  8. ki

    ip ban?

    ok ive been working on an ip banning script, but its not working so im pissed off, because these people wont stop spamming my site and theyre using the same ip so this is what i got. [code] $ipArray = array('217.159.200.187'); if($_SERVER['REMOTE_ADDR'] == $ipArray) { header("Location: http://www.google.com/"); die(); }[/code] the array is for others to come
  9. You could try an AJAX script? Or possibly a cookie, but i doubt that would do the trick.
  10. ki

    yes or no?

    [quote author=kenrbnsn link=topic=120641.msg495087#msg495087 date=1167712447] You want to be able to send SMS messages via PHP.  I just did a Google search "sms php" and got many pages of answers. Check them out and pick the one that most suits your needs. Most of the gateways charge for the service. You can all send text messages to most phones via email. You just have to figure out the correct format. I know for VerizonWireless the format is numericphonenumber@vtext.com Ken [/quote] that works great, now all i need is all the other service providers mainly in the us
  11. ki

    yes or no?

    is it possible for php to send text messages to your phone? going through a hosting service
  12. HTML code does not need to be enabled since it is decoded by the browser. Every code should work as long as it has a closing tag.
  13. nah its the echo thing kids get the feeling they can do: [code]echo "hi these are "quotation marks" see?";[/code] when it should be [code]echo "hi these are \"quotation marks\" see?";[/code] and also people ending the code with ;
  14. is it possible to post with header()?
  15. you could also use both accessing a cookie and then turning it into a session
  16. instead of dbquery user mysql_query
  17. ki

    points

    Meaning would I makre a new table in mysql (wasting memory) or just make a new slot for my members and just use a simple math equation
  18. ki

    points

    how would I go about giving a points reward system?
  19. ki

    image

    [quote author=wildteen88 link=topic=120228.msg493245#msg493245 date=1167416127] Looks like you are after a WYSIWYG editor. Search google for tinyMCE or FCKEditor Is that what you are after? [/quote] I think, I saw it on this forum that uses aspx
  20. ki

    image

    but its not being used as a background
  21. ki

    idk

    [quote author=bljepp69 link=topic=120230.msg492976#msg492976 date=1167360460] You have to use some kind of function to accomplish this.  Check out this post - [url=http://www.phpfreaks.com/forums/index.php/topic,119892.msg491766.html#msg491766]http://www.phpfreaks.com/forums/index.php/topic,119892.msg491766.html#msg491766[/url] [/quote] that worked, but i modified it so it replaces the < > and checks to see it theres still any thing to high light, and thorpe, thats what I was thinking of at first
  22. ki

    idk

    ?I took that into consideration before, but i realized before i post that I thought there was another method.
  23. ki

    idk

    Im sorry im really off today, but whats the code (i think theres one) where it highlights a certain text in the page. Its used for search results.
  24. ki

    image

    Ok Ive seen this done before, I wanna know how I can put an image in a textarea with all the other text and still be able to write with it.
  25. Thanks corbin that worked fine, and addlsashes is auto.
×
×
  • Create New...

Important Information

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.