![]() |
|
password form in colorbox - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: password form in colorbox (/thread-9453.html) Pages:
1
2
|
password form in colorbox - vincent3569 - 2012-01-07 hi, on the next version of my theme, I posted the login form in colorbox. You can see the result here: http://test.vincentbourganel.fr/ I would have the same function for displaying the password form (for protected album for example). is it possible to do that ? password form in colorbox - acrylian - 2012-01-07 Since the password protection is php and the colorbox not you need to relead the page the colorbox was called from to see the change. (=if you close the colorbox nothing is loaded new). You could probably do a direct redirection to a new page from the page called within the colorbox. That might be possible if you call a custom theme page with the form within the colorbox (/page/). password form in colorbox - sbillard - 2012-01-07 The logon redirect will happen within the colorbox unless you find a way to close the colorbox when the logon button is pressed. You can do that with javascript, and probably attach the js to the button in the code that loads the form in colorbox. There are details here that would need to be worked out, though. password form in colorbox - acrylian - 2012-01-07 True, that is a problem. Perhaps not really worth the work to follow this idea. password form in colorbox - vincent3569 - 2012-01-07 go to my test site (http://test.vincentbourganel.fr/) and try to connect with invite/guess! I wish to do the same thing with password form password form in colorbox - acrylian - 2012-01-07 Well, your test credentials do not work for me. Anyway if the colorbox is closed on a button there must be a js call attached to that button. There is a publich method for that: Anyway, if the colorbox is closed without the page behind reloaded that page will not reflect you are logged in until you do so manually or accessing another page. password form in colorbox - vincent3569 - 2012-01-07 longin : invite / password : guess! (with "!" at the end) in fact, the login form is in the footer : colorbox use inline content. for password form, maybe, there is another story (maybe use iframe content) password form in colorbox - sbillard - 2012-01-08 Because it is inline content that form goes away on the redirect. (it does actually reload the page, by the way.) But the form you get from visiting a password protected ablum came from the page load. The If instead you want to change the link to the album if it is password protected, you could then make a colorbox. Of course, the normal template functions do not do that, so you would have to code your own album link functions. Those functions could test to see if the viewer has access rights to the album, and if not present a colorbox login form like you do for the footer. The password form in colorbox - vincent3569 - 2012-01-08 Quote:Because it is inline content that form goes away on the redirect. (it does actually reload the page, by the way.) so, for my personnal use, I don't need to have a new redirect parameter in the call of nevertheless it is an interesting idea, especially since printPasswordform use this parameter. Quote:If instead you want to change the link to the album if it is password protected, you could then make a colorbox. Of course, the normal template functions do not do that, so you would have to code your own album link functions. Those functions could test to see if the viewer has access rights to the album, and if not present a colorbox login form like you do for the footer password form in colorbox - sbillard - 2012-01-08 For the album bit it would most likely need to be a theme implementation given the way the href normally encompases the thumbnail. You can test password form in colorbox - vincent3569 - 2012-01-08 hi I need your help : password form in colorbox - sbillard - 2012-01-09 Your analysis above is faulty. you can tell if a viewer may browse an album with BTW, there is no simple way to tell if a user [i]could[/i] access the album. password form in colorbox - vincent3569 - 2012-01-09 I feel that something does not work well with plugin userlogin_out. I did some tests with the theme zenpage: But, if you connect to a protected album using the login / password of the album, you have the link "Logout" not included in the tags In fact, if you use the login/password of a protected object, you are considered as not connected ( if (zp_loggedin()) returns false ). But at the same time, in printUserLogin_out, it seems you are considered as connected and the logout link is displayed. password form in colorbox - acrylian - 2012-01-09 Looking at the sidebar.php of the Zenpage theme the login/register links are always within password form in colorbox - sbillard - 2012-01-09 You should also be sure you are testing with the RC3 candidate since this area has been changed to close out your ticket. [note: the login menu is separate from the custom/standard menu selection, so is always with the password form in colorbox - vincent3569 - 2012-01-09 yes ! with RC3, it works very well and it is an improvement which greatly simplifies the operation of the plugin. however, there is a problem : the function js() (the call of colorbox) is not called by other themes : so it works only with zenpage, and not with zpardoise, so I can't benifit of this improvement :-( a note: I found a trick to force the display of colorbox if there is error message I will add the modified file to the ticket http://www.zenphoto.org/trac/ticket/2054 password form in colorbox - sbillard - 2012-01-10 You can use it with your theme as well,just have to use the same undocumented code that Zenpage does use. That is, it sets the Login Form option to 2 in its functions.php script. Thanks for the modification, a good addition. password form in colorbox - vincent3569 - 2012-01-12 Hi, I have some tests with new printUserLogin_out and my personnal themes : I use the same undocumented code that Zenpage does use. I don't undderstand : the following script, applied in the header with zenpage theme, is not applied with other themes. ` // ` to be more simple, why don't you add this code in why don't write this script next to the generated HTML (and not in the header), as you did with the search parameters or colorbox slideshow parameters ? I have another request : password form in colorbox - sbillard - 2012-01-12 Are you sure you copied all the code that zenpage has added? In particular, the code that sets the "form" option to 2? We can move the script, but you will still have to be sure that colorbox is enabled on the page--setting the option takes care of that as well. No problem with the innerwidth. I will add that. password form in colorbox - vincent3569 - 2012-01-13 zenpage code is `
` ` ` |