Jump to content

techiefreak05

Members
  • Posts

    494
  • Joined

  • Last visited

    Never

Posts posted by techiefreak05

  1. 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

  2. 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.

  3. 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>";
    ?>
    

  4. 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.
    ?>
    

  5. 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>';
    }
    ?>
    

  6. 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!

  7. 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.

  8. 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.

  9. 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.

  10. 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)

  11. 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.

     

×
×
  • 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.