Jump to content

jimfog

Members
  • Posts

    1,803
  • Joined

  • Last visited

Everything posted by jimfog

  1. I do not quite understand that...the importance of a hash in the URL. Regarding the other comments...I understand... but how am I going to translate these into code...specifically how am I going to achieve transitions within this code context.
  2. No I did not know it...nonetheless I am not surprised hearing it. Either way, I want to do it....so as to provide a better UX for my users
  3. I am following this ...http://code.tutsplus.com/tutorials/how-to-load-in-and-animate-content-with-jquery--net-26 Concentrate on line 25 on step 5. The whole tutorial is about using ajax to load in content when a link is clicked...and the function on line 25 just adds an effect to it. The question: In the context of the code you see there could a page transition be applied....in the function I mention?The code accomplishes what I want...I just want to add a transition effect when the new content gets loaded.
  4. Do you know of any good jquery page transtion plugin that has also good support?
  5. I am trying to follow this tutorial here http://smoothstate.com/typical-implementation.html A demo is here http://smoothstate.com/demos/typical/index.html It is a plugin about page transitions. And there is something I do not understand though....if you look into the css in dev tools you will see that the properties related to chrome(webkit prefix) have a strike-through line. Why that...? These are supposed to be there specifically for chrome....why then,do they have a strike-through line?
  6. jimfog

    blog creation

    What are my other options? There is a compelling reason not to use any platform(whether it is WordPress or anything else)...security. By using a well known platform an attacker might know its "holes".
  7. jimfog

    blog creation

    I want to create a blog section for my web app....nonetheless I have no idea from which parts it will be comprised of.... For example it must have pagination... What frameworks/plugins are out there to help me in that respect... I do not use any platform (wordpress for example)...so that for example I can "attach" a plugin to it.
  8. I want construct a modal for a contact form...what library/tool do you propose for that? What do you use for such a case?
  9. jimfog

    session timeout

    Do you make any use of session.gc_maxlifetime...in the way I describe it?
  10. jimfog

    session timeout

    I want to implement session timeout....my site has two different users and the timeout requirement is different for them. After a search I found that when adjusting session timeout....the time that the session will last..must also be set in session.gc_maxlifetime. If that is the case how am I going to accomplish this...since we are dealing here 2 different timeouts and session.gc_maxlifetime accepts only one value. How do you think I should deal the issue given the fact we are dealing with two different users with different timeout requirements.
  11. I missed that crucial detail... Totally agree with you in the other things you say.
  12. here is the source of my confusion: as I said this site has two types of users....a regular user and a business user....some pages are only for the first and some pages are only for the second...to view. Suppose now that the regular users is logged in(has ticked "remember me")....and then the business_user goes to access a page. Since the business user has not ticked the remember me option he will be redirected to the login page...and here is where the problem begins. This is the code in login.php: if(isset($_COOKIE['cookiename_reg']))//cookie related to the regular user { $username=checkcookie_reg($conn,true);//here the cookie is checked and if correct perform redirect delete_cookie_token($conn,$username);//delete cookie setcookie_pers($conn,$username,'regular_user');//create a new one } elseif(isset($_COOKIE['cookiename_buz']))//cookie related to the business user { $username= checkcookie_buz($conn,true); delete_cookie_token($conn,$username); setcookie_pers($conn,$username,'buz_user'); } Since the regular user is already logged in...the first if statement runs and t business user is presented with regular_user_member.php So I was confused by the above fact...until I realized that in the real world the regular users's machine will be different from the business_users's machine Unless the reason for the above behavior is something else... What do you think?I am just afraid that I miss something....maybe...I do not know.
  13. what complicates things is that I have to check for the session also...along with the cookie.
  14. If they have ticked the remember me option...then of course they will be able to go in whatever page they want without entering their credentials.. That means...put such code in every page...which to leads to my current...problem...testing for session and/or remember me cookie seems to be non-trivial...especially if the site has two type of users(as in my case)... I am trying to think the conditionals combination that will do the work here....
  15. Suppose the user has ticked the remember me option and comes back to the site...at which point I create a new cookie for him. Of course there must be a check first IF a cookie has been set....so as to automatically login the user. Question: Code that checks the existence of coookie...should it be present at every site page?
  16. jimfog

    $_POST udenfined

    I found what the problem was...it was just a typo...there was a space between the dollar sign and the underscore.
  17. jimfog

    $_POST udenfined

    Take a look at this code.... var_dump($_POST['email']); if(($_POSĪ¤['email'])) { var_dump($_POST['email']); } The above code is found in a script which accepts ajax requests from a form...one field of which is the e-mail.... The strange part: While vardumping $_POST['email'] gives the value of it... Inside the IF statement the same variable gets to be undefined...how can that be?
  18. jimfog

    modal showing

    yes I found it thanks... The only thing that puzzles me is why despite the fact I had set a mouse click breakpoint(in dev tools)...this did not led me to connect.js. Connect.js did not appear on the call stack It only led me to the code in the HTML(onclick handler on the a tag.)
  19. jimfog

    modal showing

    I suppose this...modal.open is a method object...where it is located? Can you trace its origins?
  20. go to this site https://taxibeat.com/...click the contact link...you will see a modal appearing from the top. My question is how this modal is produced...is it part of a library...and if yes...which library? I used devtools to track the code...and the only thing I saw that a method(modal.open) is called upon click event... Apart from that I have not managed to gather other info regarding it... I just want to implement the same effect on my site...thanks.
  21. jimfog

    session cookie

    I do not understand...what exactly is the session used by session_start()....in contrast with the user's login session.
  22. Would i do the same thing(clear the token from the db)if the user clicked the link and reset his/her password?I mean i should invalidate the token when the timeout has expired and when the password was reset?
  23. Another question is how do you actually invalidate the token...what method do you use?
  24. Ok after the user clicks the link...i suppose you invalidate the token-delete it.After invalidation...suppose the user clicks the link in its mail again...and redirect him to the page...what message do you display on them?"Invalid!link dear user"?
  25. I qm trying to implementin forgotten password functionality...as such i have some questions.What hash function should i use for creating the token?Do you append the token to an url where the use must click?...and this url is sent with e-mail of course.How do you check that the user has already clicked the link?Do you use a dedicated table for storing token and its expiry date...apart from these what other would you store in such a table?I do not want to ask other questions for now... Thanks
×
×
  • Create New...