Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
redirect after popup close
rbrahmson "You may say I'm a dreamer / But I'm not the only one"NY ✭✭✭
I am displaying a form that is popped up via the style popup. The form shows up as expected. Following the user submission of data I am trying to redirect (e.g. /Discussions). The effect I get is that the redirection is shown on the Informmsg overlay rather than "full screen". I suspect that the popup form (which Vanilla implements as an overlay) interferes with the process.
I will provide code if required, but it would take time to extract it from the original, so I hope the above explanation is sufficient.
Thanks in advance!
Try setting a redirect url instead of using
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thank you @Bleistivt, that worked.
_So I wonder what is the proper technique to close a popped up form and proceed normally . _
Appreciate any suggestions (the routing solution is working, but is just wrong...)
If you see a form, php is already done with rendering. That's why every
echocan have no effect.
OK, insightful but in the authenticatedPostBack mode logic (which obviously is post submission) I do two things:
You would have to make that call as an AJAX call to a custom function and return error if needed. Then you would have to write js which adds your error messages in such a div.Messages.Errors
If there are no errors, you could show a success popup (with js again)
Vanilla is improving their form management so that you could expect you can do this with simply adding the right classes in the future, but what's happening behind the scenes will be what I've described above (only more elegant)
Thanks! I think that given my priorities I'll stick with the bypass (route) method for now and wait for a better form handling.
Yes, @R_J, I understand. I actually found a work around the validation and popup that I am testing on a newer version of the DiscussionTopc plugin. Watch for it very soon;-)
If your problem is how to add a form, any form you want to open in a popup, Look at
this code for My Contact plugin . I made a contact form that submits an email to the admin or whatever email you have as the forum email in it's own page that adds a link in the menu to that page where the form is. Then I converted it into a popup by adding the class to it in this fashion. The only drawback or gain is that the link only shows to logged in users. The Contact plugin also shows an easy format of validation and submission. It could be of help to you .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thanks @vrijvlinder, I know how to create forms and form-validate. I will look at your plugin for possible additional insights.