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.
Hi,
Each time I validate a popup, I have this message :
The popup content area for this theme is misconfigured.
There is no element that matches "div.left-corner > div.clear-block:last"
Go to admin/build/themes/settings, select your theme, and edit the "Content Selector" field
If I go to admin/build/themes/settings, I don't have options related to the "content selector"...
Comment | File | Size | Author |
---|---|---|---|
#8 | popups.module.patch | 744 bytes | davidwhthomas |
Comments
Comment #1
starbow CreditAttribution: starbow commentedgo to
admin/build/themes/settings/your_theme
Comment #2
zmove CreditAttribution: zmove commentedAh ok, I understood.
As I have only one theme enabled, it's not a path I have, cause I don't have the secondary tab to select the theme I want to configure.
If I go to that path by hand, it bring errors.
So I think the module should test somewhere how much theme are enabled to add this option on the right path.
Comment #3
zmove CreditAttribution: zmove commentedComment #4
zmove CreditAttribution: zmove commentedComment #5
starbow CreditAttribution: starbow commentedComment #6
luckysmack CreditAttribution: luckysmack commentedI am having this same issue, I have no "content selector" anywhere in my theme configuration pages. any word on this being updated?
Comment #7
davidwhthomas CreditAttribution: davidwhthomas commentedas mentioned earlier, you need to visit
However, Drupal also uses
as a valid theme settings config page which won't show the config textfield.
This is because the code in popups.module looks for the fifth part of the URL for the theme ( starts at 0 )
popups_form_alter ( line 104 )
It could be updated to more intelligently get the theme name based on the two possible paths, e.g
DT
Comment #8
davidwhthomas CreditAttribution: davidwhthomas commentedPatch for above snippet attached.
DT
Comment #9
starbow CreditAttribution: starbow commented@davidwhtthomas: thanks for the patch. This looks like a good addition.
Comment #10
kewlguy CreditAttribution: kewlguy commentedPatch from #8 worked like a charm for meMy Bad!, The error still persists on my 'content types' page.....sigh! Sorry for not posting this sooner. The error is more of an annoyance than anything else.
Comment #11
jefkin CreditAttribution: jefkin commentedI still have issues with this probably because I have no idea what is meant by "Content Selector", so I wouldn't know what to set it to. However in fixing up my forms to use popups, I found a way to keep them working.
1) in the '#submit' handler for the form (that builds the popup html), I include a drupal_goto(...) pointing to my listing page.
2) in my hook_popups, I include the options: array ( 'noMessage' => true, 'reloadWhenDone' =>true );
All of which means if I use the submit button from the form in the popup, it silently redirects me back to my list page with a refresh. And for those js challenged people, (graceful degradation) if I hit an edit page directly (not via popups) then it jumps back to my listing page on submit.
This obviously is skirting this issue, but I think it's important for at least a possible help to be presented.
Comment #12
jonigual CreditAttribution: jonigual commentedHi jefkin,
Thanks! Your fix worked perfect for me! But then, reading the README.txt of popups module I found the instructions for setting Content Selector value. They are at the beggining of the txt file, under the "IMPORTANT INSTRUCTIONS" title. Basically you have to open the page.tpl.php and find where the "print $content" is done. Then check the div that is wrapping that print, and set the JQuery selector for that div in the Content Selector of your theme. This one also worked for me.
Hope you find this info helpful!
Comment #13
jefkin CreditAttribution: jefkin commentedHi Joniqual,
I followed the instructions you suggested, but it still didn't work for me, I think probably because I wasn't using the bleeding edge version (and can't for the particular site), so I'll keep my work-around for the time being.
Thanks.
Comment #14
asb CreditAttribution: asb commentedOne year later... still no progress on this issue, #8 seems to not have been committed to the dev release, the setup instructions are still unclear, and out of the box the module breaks basically any theme except Garland.
Neither the instructions from #12, nor those from the module's README.TXT work for me. The last commit to the dev release was over one year ago, this module appears pretty dead. Uninstalling :-(
Comment #15
NamesBuying.com CreditAttribution: NamesBuying.com commentedREADME.txt > IMPORTANT INSTRUCTIONS
However, theme's content area selectors are different. You need to find your theme's correct selector, i.e. I use zeropoint theme; my theme's $content in page.tpl.php file:
Thus, the working content selector for "zeropoint" theme is #main !
without apostrophe ( ' ) before or after
Find the div that containing your content in your theme's page.tpl.php file.