techiefreak05
-
Posts
494 -
Joined
-
Last visited
Never
Posts posted by techiefreak05
-
-
Hello.
I am creating widgets on my website. but right now I am limited. because the ones I have are hard coded into the page. Like (if i have the notepad widget, then show it here), etc. How would I make an API type system to allow people to make their own, similar to Facebok, Google, and now Meebo. Well not like Google. more like Facebook.
I know Google is my friend, but when your friend is lost, so are you.
Thanks.
-
Thanks, I came up with this:
<?php $postedTime="1192909166"; $nowTime=time(); $diff=$nowTime-$postedTime; echo "Posted" . $diff . " seconds ago<br>"; echo "Posted " . $diff/60 . " minutes ago<br>"; echo "Posted " . $diff/3600 . " hours ago<br>"; echo "Posted " . $diff/86400 . " days ago<br>"; ?>
-
How could I take the time(); function and put it against an old value of time(); from a database and display "XX minutes ago"
-
Ah, didnt catch that. Ill do it now.
-
Uh oh, wait. it's not quite working yet.
I had this, which selected the flip name just fine, but not the ID..
<?php while($db = mysql_fetch_array($queryFlips)){ $flipId=$db['id']; // this didnt work. $flipName=$db['name']; // this DID work. ?>
Then I changed it to this, and now name doesnt work as well as ID.
<?php while($db = mysql_fetch_array($queryFlips)){ $flipId=$db['f.id']; //this doesnt work.. $flipName=$db['f.name']; ///this doesnt work either. ?>
-
I was JUST going to ask about that Thanks again.
-
It works great! Thanks a lot! I needed to change the "f.flipID" to "f.id" because in the "flips" table, the id column is called "id". and I added a while loop:
<?php $queryFlips = mysql_query("SELECT f.name FROM flips f LEFT JOIN userFlips uf ON uf.flipID = f.id AND uf.userID = '$_SESSION[id]' WHERE uf.flipID IS NULL"); while($db = mysql_fetch_array($queryFlips)){ $flipId=$db['id']; $flipName=$db['name']; echo '<tr> <td><form action="" method="post"><input type="submit" name="add" value="Add"><input type="hidden" name="addID" value="' . $flipId . '"></form></td><td>' . $flipName . '</td> </tr>'; } ?>
-
Oh ok, thanks a lot, I'll give it a try and return with the results.
-
should that work right away? anything I need to change?
Also, what is "f.name" and "uf" ??
-
I have a widget system on my site Im trying to make, where users can choose which widgets they want to display on their home page.
I have the following code that selects which "widgets" the user has, and then the second query in the code is supposed to pick out the widgets that the user doesnt already have..
<?php $queryFlips = mysql_query("SELECT flipID FROM userFlips WHERE `userID` = '$_SESSION[id]'") or die(mysql_error()); //Get FLIPS user has. $db = mysql_fetch_array($queryFlips); $fid=$db[flipID]; $queryFlips2 = mysql_query("SELECT * FROM flips WHERE `id` != '$fid'") or die(mysql_error()); // Get info of flips that user doesnt have. while ($db2 = mysql_fetch_array($queryFlips2)){ $flipName=$db2['name']; $flipId=$db2['id']; echo '<tr> <td><form action="" method="post"><input type="submit" name="add" value="Add"><input type="hidden" name="addID" value="' . $flipId . '"></form></td><td>' . $flipName . '</td> </tr>'; } ?>
But.. it is displaying widgets that I already have... I'm not great at joining queries or what ever its called, so id love some help!
-
Hey man, you didnt tell me about this project, ive gone done this road, and its not an easy one by far . . . gogle started out the same way, so keep at it and ill like to see where you go
-
oh wow! haha thanks for that!
-
The Browse Form:
haha, you found that. thats funny. I made the page, and at one point tried to make one, but failed. haha, Ill try again soon.
The Profile Problem:
It should have never let you sign up with the underscore ... That was a bug in my reg system.For some reason underscores dont work.... No mater what Rewrite Rule I try, nothing works with an underscore - but I did fix your profile.
-
the main purpose was for me to learn more yes, but it is also there for people to use. I like seeing people getting use out of my sites, so I like their feedback good OR bad.
-
it doesnt look like facebook anymore, ive had a new design up for a few weeks now.
I know.. it used to look a LOT like myspace, but its hard not too, I dont know how to setup the home page. haha
-
Glad it's working for everybody.
Note: If you have T-Mobile ... their sytsem is being funky, it took me over 24 hours to recieve 3 of my messages sent a few days ago... it was really strange.
-
-
Yeah, it is really fast.
-
That's strange it took so long ... because I get mine less than 30 seconds after sending, and I have T-Mobile.
-
Well, as of right now I have some plans for the suture.
I plan on adding an optional member registration system, which then would allow for extra features such as an address book, instead of typing in a number, just select a name. Also it would allow for replying and would send from your own specified number.
I MIGHT add another replying option, that when they reply it would go into your "inbox" on the actual site and youd be able to read the message, like an email, but I have no idea how to setup a mail server to handle that, so maybe, maybe not.
-
Remember, I'm the creator of the site, and I plainly said above, I DID NOT PLAN on going anywhere with it, JUST AS a learning tool for me to increase my javascript/ajax knowledge. I have no intentions of trying to market it, its just there. I did not ask to be critiqued on the usefulness, i asked for critique on the design.
Thank You.
I do plan on expanding it but, again, just to see what I, alone, can do.
-
Well so far, it's either
you like i t(even a little)
or you dont. period.
haha. Like i said, its just a learning experience for me, and it was fun to make, i do not plan on making it "popular", if thats even possible for a site like that.
I appreciate the feedback (good or bad)
-
haha. sweet.
-
Thank You!
I personally think it's neat.
I do plan on makinhg a non-JS version of the site, as well as an exclusive iPhone version!
It'll be pretty neat, also I'm working with a couple site deleopers who want to use my site's backend to send mass messages to users cellphones, they are people i know personally, so if that sounds like they plan to spam, no they dont, haha.
An API System?
in PHP Coding Help
Posted
Not really. Im not really sure on how to go about doing this. I believe somethign along the lines of API system, like gicing a devloper a unique key and they include that in their "app" or something.. just so all the widgets that are made arent hard-coded into the system