Jump to content

RottenBananas

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

RottenBananas's Achievements

Member

Member (2/5)

0

Reputation

  1. Great Thanks! Any suggestions on the lightbox idea or any other particular advice?
  2. Hi everyone, My friend created her first website and any advice or suggestions would be greatly appreciated! Here it is: www.dreamerinme.com Tell me what you think.
  3. Hey there, Thanks a ton for taking the time to make such a thorough review! Couple questions, For the xhtml validation...how can I fix it? What does it affect if it is broken? I'll see if I can make the search box a bit bigger, thats a good idea. The <p> tags aren't supposed to be there, I thought i removed them, i'll fix that I will cut the ads down as well...thanks for the tip. This is my first time, i still dont know what a good baseline is for the number of ads. I see how the CPM works now after your explanation. I think i'll remove most of the google ads for now. Any tips for other ad sites (alternatives to adsense)? And what can I use to log where users are clicking? Thanks so much again!
  4. Hey everyone, well here it is... http://bhaviksblog.com Very open to changes, its about a month old...i'll be adding many more tutorials soon. Please leave as much feedback as you can! Thanks!
  5. Hey guys, Im making a website that has users and profiles. The users can join groups. One user can be in many groups. All of this works fine. What im not sure on is having a home page for each group. Every user has a homepage. I want every group to also have a homepage showing what users are in the group. I think i need to dynamically add a .php file every time a user creates a group? Is this the way to do it or is there a better idea? Thanks
  6. Should I post this in a different category?
  7. Thanks for the reply, I have all this code written already though does anyone know whats wrong with it? How can I do it using ajax? Could you give me some sample code? Im not understanding why my method isn't working Thanks again
  8. Thanks for the reply, The users will always have an account, Ok I dont know how to code at all and im kinda pullin all this outta nowhere and hoping it works...reading through random tutorials and such. If im approaching it the wrong way please tell me (I dont know any better) Here's what I tried... 2 Javascript fucntions function getpos() { var Top = document.getElementById('mydiv').offsetTop ; var Left = document.getElementById('mydiv').offsetLeft; return {Top:Top,Left:Left} } function init() { var pos = getpos(); document.myform.Top.value = pos.Top; document.myform.Left.value = pos.Left; } Then the html hidden fields in my form <form name="myform" action="savepos.php" method="post"> <input type="hidden" name="Top"> <input type="hidden" name="Left"> <input type="submit" name="submit" value="Save" onClick=init()> </form> And finally savepos.php which writes it to my db $Top = $_POST['Top']; $Left = $_POST['Left']; $sql = "SELECT profile_id FROM positions WHERE profile_id=".$_SESSION['uid'].";"; $res = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($res) == 0) { $sql2 = "INSERT into positions (profile_id,Top,Left) VALUES(".$_SESSION['uid'].",'$Top','$Left');"; $res2 = mysql_query($sql2) or die(mysql_error()); } else { $sql3 = "UPDATE positions SET Top='$Top',Left='$Left' WHERE profile_id=".$_SESSION['uid'].";"; $res3 = mysql_query($sql3) or die(mysql_error()); } echo "<script language=\"Javascript\" type=\"text/javascript\"> alert(\"Your profile layout has been updated\") document.location.href='home.php'</script>"; } This example only shows one divider that you can drag but you get the idea for adding more. The problem is that if the user doesnt drag it and leaves it as is it resets the positions to 0. For example I have 2 divs, mydiv and yourdiv...if the user moves mydiv to top=250; left=250; but doesnt touch yourdiv and clicks save...its sets yourdiv to top=0; left=0; Any suggestions? Am I approaching this the right way? Thanks alot
  9. Hey guys, For my site im using javascript to allow users to customize their profiles by dragging content around. Now I need a way to save the positions of each divider so that when anyone visits user X's profile they see the position user X saved everything to last. I was thinking of using javascript to return offsetLeft and offsetTop and save the values into a mysql database and then spit them back out when that users page is visited. Is their a better way or is the db idea good? Can I save a cookie when user X saves positions and send the cookie with saved positions to anyone that visits his page so they see his customization? Hope this isnt too vague Thanks
  10. Hey thanks for the info, Sorry for this being in the wrong section So the dragging of the windows work now after using some ajax. Now my question is how can I only allow the user that is logged in to drag stuff and no one else? Basically the user has a profile page that anyone can see. I want only the user to be able to position elements and save them so that when someone else views their profile it shows it how the user customized it. I hope that makes sense. Can i do this with cookies? Thanks
  11. Hey guys, I wanna know how google created the igoogle page where you can click and drag toolbars to customize positioning of elements. www.pageflakes.com has it too. Is this done in php? javascript? Can anyone point me to a tutorial or tell me what this technique is called so I can get more information? Thanks
  12. Thanks for the help, After reading about foreign keys stuff started making alot more sense Thanks again
  13. I fixed it, the SERVER[document_root] was takin it too far back on xampp. Anyway is this a good idea? Or should i just stick everything into one folder?
×
×
  • 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.