Jump to content

ki

Members
  • Posts

    208
  • Joined

  • Last visited

Posts posted by ki

  1. [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.
  2. 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.
  3. 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
  4. 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
  5. [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
  6. [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
  7. [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
×
×
  • 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.