-
Posts
208 -
Joined
-
Last visited
Everything posted by ki
-
so is it possible to make it so i can make another thing that will create a thumbnail image on upload?
-
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.
-
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.
-
[code]<? if (isset($_COOKIE['name'])) { echo "You've got cookies!"; } else { echo "No cookies for you!"; } ?>[/code] Try that
-
[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.
-
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.
-
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
-
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
-
You could try an AJAX script? Or possibly a cookie, but i doubt that would do the trick.
-
[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
-
is it possible for php to send text messages to your phone? going through a hosting service
-
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.
-
I am making a list of common PHP mistakes and I need your opinion!!!!
ki replied to regindk's topic in PHP Coding Help
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 ; -
you could also use both accessing a cookie and then turning it into a session
-
instead of dbquery user mysql_query
-
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
-
how would I go about giving a points reward system?
-
[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
-
[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
-
?I took that into consideration before, but i realized before i post that I thought there was another method.
-
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.
-
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.
-
Thanks corbin that worked fine, and addlsashes is auto.