Not sure what I am doing wrong but cant get it to pop-up.
I setup simple message, unchecked the cookie enabled, set permissions.
Also seems to break the collapsible forms and wysiwyg
Below is my header
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">window.CKEDITOR_BASEPATH = "/~kemptonc/sites/all/libraries/ckeditor/";</script>
<link rel="shortcut icon" href="/~kemptonc/misc/favicon.ico" type="image/x-icon" />
<title>Popup message | Kempton Chiropractic Clinic</title>
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/node/node.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/system/admin.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/system/defaults.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/system/system.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/system/system-menus.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/modules/user/user.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/cck/theme/content-module.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/ckeditor/ckeditor.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/ctools/css/ctools.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/date/date.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/date/date_popup/themes/datepicker.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/date/date_popup/themes/jquery.timeentry.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/filefield/filefield.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/panels/css/panels.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/popup_message/styles/black/popup.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/simplenews/simplenews.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/misc/farbtastic/farbtastic.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/calendar/calendar.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/cck/modules/fieldgroup/fieldgroup.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/modules/views/css/views.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/themes/acme/css/layout.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/themes/acme/css/html-elements.css?a" />
<link type="text/css" rel="stylesheet" media="all" href="/~kemptonc/sites/all/themes/acme/css/acme.css?a" />
<script type="text/javascript" src="/~kemptonc/misc/jquery.js?a"></script>
<script type="text/javascript" src="/~kemptonc/misc/drupal.js?a"></script>
<script type="text/javascript" src="/~kemptonc/sites/all/modules/panels/js/panels.js?a"></script>
<script type="text/javascript" src="/~kemptonc/sites/all/libraries/jquery.cookie/jquery.cookie.js?a"></script>
<script type="text/javascript" src="/~kemptonc/sites/all/modules/popup_message/js/popup.js?a"></script>
<script type="text/javascript" src="/~kemptonc/./sites/all/libraries/ckeditor/ckeditor.js?a"></script>
<script type="text/javascript" src="/~kemptonc/misc/textarea.js?a"></script>
<script type="text/javascript" src="/~kemptonc/misc/collapse.js?a"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/~kemptonc/", "popup_message": { "title": "Test Message", "body": "\x3cp\x3eTest Message\x3c/p\x3e\n", "check_cookie": "0", "width": "300", "height": "300" }, "ckeditor": { "module_path": "/~kemptonc/sites/all/modules/ckeditor", "editor_path": "/~kemptonc/sites/all/libraries/ckeditor", "theme": "acme", "settings": { "edit-popup-message-body-text": { "customConfig": "/~kemptonc/sites/all/modules/ckeditor/ckeditor.config.js?1326687417", "defaultLanguage": "en", "toolbar": "[\r\n [\'Format\',\'Bold\',\'Italic\',\'-\',\'NumberedList\',\'BulletedList\',\'-\',\'Link\',\'Unlink\',\'Image\']\r\n]", "enterMode": 1, "shiftEnterMode": 2, "toolbarStartupExpanded": true, "width": "100%", "height": 210, "skin": "office2003", "format_tags": "p;div;pre;address;h1;h2;h3;h4;h5;h6", "contentsLangDirection": "ltr", "loadPlugins": { "drupalbreaks": { "name": "drupalbreaks", "desc": "Plugin for inserting Drupal teaser and page breaks.", "path": "/~kemptonc/sites/all/modules/ckeditor/plugins/drupalbreaks/", "buttons": { "DrupalBreak": { "label": "DrupalBreak", "icon": "images/drupalbreak.png" }, "DrupalPageBreak": { "label": "DrupalPageBreak", "icon": "images/drupalpagebreak.png" } }, "default": "f" }, "tableresize": { "name": "tableresize", "desc": "Table Resize plugin", "path": "/~kemptonc/./sites/all/libraries/ckeditor/plugins/tableresize/", "buttons": false, "default": "t" } }, "scayt_autoStartup": false, "filebrowserBrowseUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/ckfinder.html", "filebrowserImageBrowseUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/ckfinder.html?Type=Images", "filebrowserFlashBrowseUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/ckfinder.html?Type=Flash", "filebrowserUploadUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload\x26type=Files", "filebrowserImageUploadUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload\x26type=Images", "filebrowserFlashUploadUrl": "/~kemptonc/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload\x26type=Flash", "stylesCombo_stylesSet": "drupal:/~kemptonc/sites/all/modules/ckeditor/ckeditor.styles.js", "contentsCss": [ "/~kemptonc/sites/all/themes/acme/css/layout.css?a", "/~kemptonc/sites/all/themes/acme/css/html-elements.css?a", "/~kemptonc/sites/all/themes/acme/css/acme.css?a", "/~kemptonc/sites/all/modules/ckeditor/ckeditor.css?a" ], "filters": [ "filter/0/1" ] } }, "autostart": { "edit-popup-message-body-text": true } } });
//--><!]]>
</script>
<script type="text/javascript"> </script>
</head>
Comments
Comment #1
grzegorz.bartman commentedDo you see any errors in Firebug javascript console or in drupal watchdog?
You can write to me at skype: grzegorzbartman
Comment #2
llizards commentednot see any any errors, just doesn't show.
Comment #3
grzegorz.bartman commentedPlease check webserver logs and look for files popup.js and jquery.cookie.js in logs.
One person had a problem with the web server. When loading a file "jquery.cookie.js" server reported an error 406. But I do not know how this issue was resolved.
Comment #4
rekon commentedI have identical problem as llizards
I also setup simple message, unchecked the cookie enabled, set permissions but nothing happen.
Maybe except that my CKeditor was disabled (I don't know why but it doesn't shows up when popup was enabled).
Firebug says that I have 3 errors :
1. "$ is not defined$(function() {"
2. "jQuery("#mycarousel").jcarousel is not a function
jQuery('#mycarousel').jcarousel();"
3. "jQuery.cookie is not a function
var popup_message_cookie = jQuery.cookie("popup_message_displayed");"
edit. first 2 errors I've solved but third one is still unsolved and this is showing up even if I set check cookie on 'disable'
here is code of this...
when I eneble popup some js scripts don't work (like CKEditor and some more but some are still working)
I would be very grateful if somebody could help my.
Comment #5
grzegorz.bartman commentedDo you have a loaded file jquery.cookie.js somewhere in page header? (check in html source).
Comment #6
rekon commentedI haven't got it but when I added it to my header error was still showing up and some js components doesn't work.
It didn't make any difference.
Comment #6.0
rekon commentedupdated Code
Comment #7
joegl commentedWe are having the same issue. It was due to a conflict with the theme including its own version of jQuery, and not using the proper jQuery wrapper.