How to close a TinyBox with Javascript? - tinymce

I have a login in TinyBox. When click login it redirect to file which echo with PHP login successful or wrong password or user, how to close that tinybox with JavaScript or something other?

this works for me:
window.parent.TINY.box.hide()

Related

ISPConfig 3 Cannot login after installation

I have just finished ISPConfig 3 installation. The problem is that when I try to login at main panel: remote_host:8080, entering admin and admin as user and password the page is reloaded and nothing happens. It won't go to the index.php page. But it also won't say the the login information is incorrect. I have tried wrong information as login and then it will say that the information is invalid.
What could be happening?
Thanks in advance for the help!
Henrique
Try to delete cookies, it worked for me.
Had the same problem and deleting cookies works
Had the same error and did some research.
I could login on https://$IP:8080/ but not on https://$DOMAIN:8080/.
Deleting cookies did not work for me.
The problem is a login-cookie, it sets the ip-adress as "login-domain" and if this doesnt match, login fails without a message/info/error.
Found here (german)

Create a change password page

I have added a plugin called "force password" which will force members to change their password on their first login.
However, because I redirect the users to a profile page I have done myself, I don't want them to be redirected to the dashboard or to be able edit my profile page.
Instead, I want a screen to popup with a "change my password" box or a change password box to be loaded on a similar page as the login page. After they change their password they will be logged into their profiles.
I'm not sure what your question is, but what you need to do is to hook into the wp init action that runs when a request starts. There you can check if the password has changed, put up the form, check the post values and do your redirects.
Redirects must be done in the init before Wordpress starts writing to the response.

Correct way to redirect to a facebook tab after authentication for an app?

We're hosting a PHP facebook canvas application (http://apps.facebook.com/myapp). One of the pages (http://apps.facebook.com/myapp/foobar) requires authentication from facebook so we can access some information about the user. This is achieved by using the PHP-SDK's $facebook->getLoginUrl() method to generate the url for authentication and works as expected.
We have since added the app to as a Tab (iFrame) to our Page (http://www.facebook.com/MyPage?sk=app_nnnnn). Now when we try to authenticate the user they are redirected to the app's url (http://apps.facebook.com/myapp/foobar) rather than having the /foobar page load in the Tab's iFrame as expected.
Is it possible to set the auth so that it doesn't bounce to the app's url but stays within the Tab using the PHP-SDK? If so, what is the workflow I should follow to achieve this?
I would simply add code to http://apps.facebook.com/myapp/foobar to check for authentication, and if it is, echo:
<script type="text/javascript">
top.location.href = 'http://www.facebook.com/MyPage?sk=whatever';
</script>
That should break out of the iframe and redirect you to where you want to go.
The way I have achieved this is to do the following:
On the /myapp/foobar page I check to see whether the user has been authenticated. If they haven't I set a session value and use the PHP-SDK's $facebook->getLoginUrl() to generate the auth url and send a response back containing just the javascript to redirect window.top.
Once they've authenticated they're redirected back to the main page. When this page loads it checks for the session value and, if set, removes it and issues a redirect header to /myapp/foobar.
It's a little convoluted but seems to be quite a stable solution.

Redirection between pages in zend framework

how to redirect between pages..for eg.if i click on login link then it should be redirect on login page..
If your question is about:
Generating a url for page associated to your application, then I recommend checking out the Url view-helper.
Displaying a url, then I recommend checking out view-scripts and layouts.
Redirecting to a url - say, from within a controller, after successful login - then I recommend checking out the Redirector action helper.
I'm not really sure I understand your question....
If you want to create a link on a page to a controller / action, for example if your login script was in the controller users and the action was called login, you could put a link in the view script of a page by using the baseUrl:
Login

Facebook | redirect error

I have facebook connect button on a page of my site and I want user to redirect to a page after a successful login: here's the code snippet:
</script>
<fb:login-button onlogin="facebook_onlogin();">
</fb:login-button> <script type="text/javascript">
FB.init("API_KEY", "http://myip/facebookapp/xd_reciver.html/");
function facebook_onlogin() {
window.location="http://myip/facebookapp/mypage/"
}
</script>
But when I logged in it redirects to the page INSIDE the pop-up, how can I redirect to the page out side of the popup..
In my experience, this is generally caused by not having the cross-domain receiver file set up properly.
Assuming you copied the cross-domain receiver file that Facebook provides, then in your code snippet above, it looks like you misspelled "receiver" in xd_receiver.html. Double-check that it is a valid URL by copying and pasting it into your browser and making sure it can be loaded... my guess is you'll have to fix the spelling and remove the trailing slash, ie. http://myip/facebookapp/xd_receiver.html. Double-check the API key while you're at it, Facebook Connect can be quite frustrating to set up sometimes.
Are you using latest connect javascript sdk by facebook or the oldest one ?
checkout the latest javascript sdk by facebook http://developers.facebook.com/docs/reference/javascript/
Here you'll see nice working example.