Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It should be nice to have a generic popup system like modalframe to handle the Ajax popups.
Comments
Comment #1
Michsk CreditAttribution: Michsk commentedi agree, the project page of modalframe also states that UR uses modalframe, but it doesn't.
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedBeing the author of the Modal Frame API, I would like to add a couple of comments here:
- The project page of the Modal Frame API has a reference to "Node Relationships", and not "User Relationships". Related issue in the Modal Frame API queue: #906590: User relationships using modalframe..?
- If you need to work with modal windows that are based on AJAX, then I would suggest using the jQuery UI Dialog plugin directly. The Modal Frame API is aimed to help doing this kind of jobs when the child window renders an Iframe, which is a bit more complex and not easy to work with using the jQuery UI Dialog plugin directly.
Comment #3
Michsk CreditAttribution: Michsk commentedYes the first issue was wrong from my point. Using jQuery UI Dialog plugin is no option for me, i used it but it is a poor module and badly maintained. Modalframe is in my eyes much better. We also in my opinion do not need ajax to do this, iframe would work just as well.
Comment #4
sadist CreditAttribution: sadist commentedCouldn't agree more.
I was searching for some answers and reason why UR is using it's own pop-ups and how can I change or use other popus, and I couldn't find any answer. And the best and nearest to my question is this thread.
It's very odd to have the default UR Popup in most of other social networking sites when they have a totally different way of styling it. So I hope that Alex could consider about this issue?
For my case, I prefer using Colorbox (because I am already using it), but I saw Popups API (Ajax Dialogs) and tried to figure out how can I use that instead.
Comment #5
YK85 CreditAttribution: YK85 commentedsubscribing
Comment #6
NathanM CreditAttribution: NathanM commented+1 Subscribing
Comment #7
broncomania CreditAttribution: broncomania commented+10
Comment #8
mrf CreditAttribution: mrf commentedI'm a big fan of modal frame api, but as far as I know what we have in ur predates almost all of the options with the possible exception of lightbox.
At this stage I don't see a compelling reason to add an additional dependency to the 6.x branch. If someone wants to use core's modals for 7.x (this may have already happened) that would be the place to make these type of changes at this point.
As a side note modal frame api is really easy to work with and implementing your own custom solution with it probably wouldn't be too difficult.