Jump to content

hackalive

Members
  • Posts

    652
  • Joined

  • Last visited

Everything posted by hackalive

  1. Hi guys, Im am (slowly but surely) implementing oAuth into my existing service to form the base for my RESTful API. However I am unable to get the system to prompt (as in display) the permissions oAuth is trying to gain access to. I know that make not a whole lot of sense so take a look at "Consent Page Experience" on this link https://developers.google.com/accounts/docs/OAuth2Login Im basically looking to know how do I make my consent page say dynamically which permissions is the App (through the oAuth API) trying to gain access to. All help is greatly appreciated. Thanks in advance (And a happy Easter too).
  2. hackalive

    Overflow

    How can I calculate the width needed? Or how can I place two instances of isotope in the same div to get out of this issue? (or is there some other jquery/css way out of this? how do they do it with the HTML5 presentation apps?)
  3. hackalive

    Overflow

    Well there is no way to tell that. How about jquery appending the CSS?
  4. hackalive

    Overflow

    Thanks for your reply, however what if I don't know the width as a number? Im placing two jQuery isotope instances side by side so I have no idea what the overflow is.
  5. hackalive

    Overflow

    Hi guys, I have the following code: CSS * { margin: 0 0 0 0; } body, html { overflow: hidden; } #container { } #setA { float: left; display: inline-block; margin-left: 0.75in; } #setB { float: left; display: inline-block; margin-left: 0.75in; } #setC { float: left; display: inline-block; margin-left: 0.75in; } .item { background: blue; width: 500px; height: 500px; } PHP <div id="container"> <div id="setA"> <div class="item"></div> </div> <div id="setB"> <div class="item"></div> </div> <div id="setC"> <div class="item"></div> </div> </div> On my screen "SetC" goes onto a new line and does not overflow the screen horizontally (and then need to scroll to see it) like it should. How can I fix this?
  6. Hi guys, I am building my new web-service in a way that makes it use its own API (like Twitter is now). However I have no idea and cannot find a helpful resource on how to turn oAuth 2 (PHP) into an Authentication method and not just for authorizing the display of content. Any and all help is much appreciated. Cheers in advance
  7. Hey guys I am always getting a returned value of "undefined" for the below code, but cant figure out why. <div id="wrapper" title="MEMEME"> <div class="container" onclick="getTitle();"> </div> </div> function getTitle() { var gt= $(this).parent().attr('title'); alert(gt); }
  8. So my absolute final question would have to be how to make such a unique hash value? I found this: http://php.net/manual/en/function.uniqid.php What do you think? Better ways of doing it?
  9. @smery: Thanks for pointing out how Facebook does it and how i could something else (better) to achieve what I am after. So if I was to store all my files outside the wwwroot and rename them on upload to a hashtag (of some from), then store that hashtag in a table which also has the permission (of say 1 - which allows uploader to see it) that would solve my issue I think i have interpreted that right My next point (question) is, would this be efficient on a large scale? Or could I make it more efficient in some way? Thanks again smerny for your help so far.
  10. Hi guys, I am making a site where users upload files (like images, pdfs, etc) to the server. My question is, how does Facebook handle file permissions, restricting access to files uploaded to their servers based on what a user sets? Because I need to implement a similar thing and have no idea how to do it in a clean way. I have had two thoughts on storing the files 1) in a DB or 2) in a folder out of the wwwroot, which would prevent access by anyone without knowing the path (or some such) but it is the more "real" permissions implementation I am stuck on. I obviously would like to achieve this with PHP and MySQL(i). Any help is much appreciated. Cheers in advance.
  11. Maybe I need to be clearer : Into which lines on the code provided (in this post) should I add $dbConnection = new PDO('mysql:dbname=mydb;host=localhost', 'user', 'pass'); ?
  12. I know "dbname=mydb, host=localhost, user, and pas" etc BUT WHERE IN THE CODE POSTED DO I PUT $dbConnection = new PDO('mysql:dbname=mydb;host=localhost', 'user', 'pass'); WHERE?
  13. Im getting nothing, i dont know where to put the DB details for the PDO!
  14. Someone has to know how to go about this .... please? ....
  15. Never could get it to work, no one provided a real answer that solved the issue.
  16. The developer writes But where? I have been so far unable to get it to work. Hopefully someone with better understanding of PDO can help me out. Thanks
  17. Is anyone able to get this https://github.com/csrui/oauth2-php oAuth PDO example to work? I cannot see where to enter the DB details. Thanks in advance.
  18. At least one person on this site must have an idea on this ..... come on guys .....
  19. Esentially, This http://jsfiddle.net/ryleyb/Y5fzX/1/ Allows me to swap divs of different (variable) heights. While http://jqueryui.com/demos/sortable/#display-grid Allows me to swap divs of different (variable) widths. My requirement is: Allow me to swap divs of different (variable) heights & widths. That should be clearer I hope
×
×
  • 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.