7

Go to line 706 in /system/expressionengine/third_party/campaigner/ext.campaigner.php and change it from: $this->EE->javascript->generate_json($js_member_fields)); to: json_encode($js_member_fields)); And yes, this line needs double parentheses at the end, since it's a continuation of line 705.


4

The cleanest way is to create an accessory add-on that will add your js to all pages in the cp. Here's a basic example called "Default Value." Change the name and code as needed. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * ExpressionEngine Developer Accessory * * @package Default Value * @category ...


4

You have this tagged as PHP, but this sounds more like a job for JavaScript. The Search module is already preventing empty searches, which is why you get that error page. Lots of ways to accomplish this, here is one way if you are using jQuery: $(document).ready(function() { $('#search').submit(function() { if ($('#keywords').val() == '') { ...


3

The error has been confirmed as a bug in EE 2.8. Bug tracker: https://support.ellislab.com/bugs/detail/20165 The issue will be fixed in the next release, and a patch has been posted to the bug tracker for any who need it.


3

For my specific case, it appears to be addons such as Matrix and Assets by Pixel & Tonic that are causing this. By uninstalling the addons I was able to get rid of this error.


3

update looks like this task is not so simple as looks like - can't find where some notice even is registered (like for save custom field setting - looks like it is flashdata). I made a quick example using HubSpot Messaging + ee_notice replacement as combination of JS & hooks - CP Notice before Why just don't replace it with ext.? function cp_js_end( ...


3

Go to this field via Admin > Channel Administration > Channel Fields > Group > Field and switch the formatting back to XHTML confirm and then back again to none. When switching EE should show a checkbox before confirming asking if you want existing fields to be reformatted. Check this. Alternatively keep as XHTML in EE and use a plugin to alter the rendered ...


3

Honestly, I wouldn't even mess with that plugin since that's what it's supposed to do. Just do a simple ajax call and append the data like this. Note the move of #articles to the main template, and paginate_base parameter in the embed template. Main Template <html> <head></head> <body> <section id="articles"> ...


3

OK, I feel like an idiot! Forgot about the Javascript template type. Solution: I simply created a new template, designated it as type "JavaScript", inserted my code, minus the <script> tags, then did <script src="{path="paht_to_js_template"}"></script>. Simple ;)


2

There is nothing built into Store currently that would allow you to create modifiers on a per channel basis if you want the modifiers to adjust price or stock levels. There is currently a feature request for Global Product Variations that you can vote for. If you do not not need to adjust the price, quantity or have a unique SKU for your variations you can ...


2

Two possible strategies come to mind for this: As another user suggested, create as many Name, Address, Phone and Email fields as you need or think will need, and add a suffix for each field name (eg. name_1, name_2, etc) If you're manually creating your fields in the template using {exp:freeform:form}, add brackets [] to your field names so that you save ...


2

Ok so this was ridiculous easy to fix. What we did was move the XML from it's static file and inserted it into its own template within our active template group and it worked. So if you're having this problem just template the XML and go nuts. All we had to change in our JS here was var url = "OUR URL"; to var url = "{path='<our template group>/&...


2

I know it's a bit old but for someone looking to change some parameters (like the return value) on submit by JavaScript - the reason it's not possible is that EE uses the meta tag which is an encrypted string containing some of the information. So, to change the value you would need to recreate that encryption. Look in the file Channel_form_lib.php for more ...


2

Matt, two options for you. 1) Easy: pass a segment variable to the safecracker form, then use 2 if statements (rather than an if else) to set the return values you need. That means youll need two different links pointing to the safecracker form. 2) More work: create an extension and use the safecracker hook - channel_form_submit_entry_end to redirect to ...


2

Try This... function initialize() { var map, marker, pos; {exp:channel:entries channel="maps_channel"} {if count == 1} var mLatLng = new google.maps.LatLng({map_coordinates}); map = new google.maps.Map(document.getElementById("map-canvas"), { center: mLatLng, mapTypeId: google.maps.MapTypeId.ROADMAP, zoom: 13 ...


2

If it's just for a slider on the front-end, forget that you're even using EE and include jQuery as you would with any other platform. HTML5 Boilerplate recommends using the Google CDN with a local fallback, so you could throw this segment in your template: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <...


2

I have found (and apparently you have too!) that using one css file that 'imports' multiple is the way to go. I point WYGWAM to my wygwam-style.css file which includes: @import url("/css/reset.css"); @import url("/css/dynamic-content.css"); Reset.css is just a basic css reset that I use on the front-end of my site, so I figured it'd be best if it was ...


2

is not needs in path here <script src="http://whitewashed.richiesiegel.com/slider.js" type="text/javascript"></script> p.s. EE is not parsed tags in entries w/o special add-ons


2

I often use the cp_menu_array hook for this purpose. It runs on every CP request, and unlike cp_js_end, it doesn't run in a separate HTTP request. You just have to be careful to keep the $menu value, as other extensions might be using the same hook. public function cp_menu_array($menu) { ee()->javascript->output('$("#publishForm").css("background-...


2

Not sure if the markup is entirely correct, but this works: $("#shipping_method").change(function(e) { $(this.form).submit(); });


2

Why do you have 3 sets of parenthesis around the member_id tag? Does it work if you simply use {member_id}? EDIT (after comments) I'm not completely sure how this should be set up as I've never used this (will need to get up to speed on it though) but based on what I see in the docs does this work; {if logged_in} ga('create', 'UA-XXXX-Y', { 'userId': ...


2

Try adding a dynamic="off" parameter to your channel entries tag - though I'm not sure how this will pan out with Structure. {exp:channel:entries channel="marquee" limit="3" status="open" dynamic="off"}


2

First of all, the stylesheet tag needs quotation marks. {stylesheet="global_embeds/style"} If you link to the JS file using path variable, all the templates variables on the linked file will be parsed. {path="global_embeds/init.js"} But I really don't think it's good for performance. It's much better to use static links for the JS and CSS.


2

This usually happens with duplicate jquery files. You can add either of these parameters include_jquery="no" include_assets="no"


1

I recommend posting on Director-EE, then tweeting about it using the #eecms hashtag. That'll get you the most exposure. (Shameless plug: I'm available for EE work, get in touch)


1

Admittedly it's a few months late but I too was having this issue. It's caused by Store loading it's JS into the body tag before the page has finished loading. The fix is to wrap it in a document.ready function. This is on line 159 of AbstractTag.php which can be found in third_party/store/src/Store/Tag So replace return ' (function() { ExpressoStore....


1

You could use another field type for the images in the post. Grid would be one that would work without going to a third-party resource. Channel Images is a solid commercial addon that handles multiple images in an entry really well.


1

What is going wrong is character encoding. If you have the text Российской Федерации as UTF-8 encoded and this data is then misinterpreted as being windows-1252 encoding, you get Российской Федерации. So apparently the data has been entered correctly, but the software is not interpreting it properly.


1

The avatar_filename field is a file type field, and therefore only accepts a file upload (see the example in the documentation). You cannot submit string data to the avatar_filename field (through a text or hidden field for example), since the field expects not the filename, but an actual file attached to the field. Also, in HTML, you cannot submit a string ...


1

However the code I have at present does not work for ie8 and ipads etc. Are you sure that this is not a JWPlayer compatibility issue? If it works everywhere else, then it's most likely not an EE-specific issue. UPDATE What if you just remove the playlist setting and put every other setting in a global script? Then you can assign the video url inside the ...


Only top voted, non community-wiki answers of a minimum length are eligible