I have updated the EasyJSCSS plugin for WordPress with some bugfixes and some backend improvements.
Version 1.4 is now available here or at http://wordpress.org/extend/plugins/easyjscss/
Please post any comments regarding version 1.4 is this post.
I have updated the EasyJSCSS plugin for WordPress with some bugfixes and some backend improvements.
Version 1.4 is now available here or at http://wordpress.org/extend/plugins/easyjscss/
Please post any comments regarding version 1.4 is this post.
juli 3rd, 2010 at 08:20
Hello,
Thanks for developing such a wonderful plugin. I desperately needed such a plugin.
I will very much appreciate if you can make one small modification. Just like we can add the JS or CSS code, you can make some provisions so that we can add the PHP code also. It is useful for people who are rather using the blog as CMS and want complete control over the specific post or page.
Regards,
Alok
juli 3rd, 2010 at 09:00
Hi Alok
Just so I understand you correctly – you would like an input section like the ones for JS and CSS, where you can enter PHP code, that should be executed when a page is shown in the browser?
JS
juli 16th, 2010 at 17:58
Thanks for the excellent and well-done plugin! It’s exactly what I was looking for!
The PHP idea would be cool, but it’s excellent as it is now!
Thanks again! Please try to find a way to spread the word about this plugin, because I only found it in a comment on http://digwp.com/2010/02/custom-css-per-post/ and not by searching the WordPress plugin repository.
november 6th, 2010 at 00:36
Hi
potentially this is one of the very best plug ins ever launched. but you know for the people who really would benedfit from it (like me and my 100+ design colleagues) its critical we know ‘How’ to use it. Not one of us could figure it out! We know the benefits (ie CSS control over post/page content-wow!) but how do you do it? All that is needed is a bit more information, a simple explanation that anyone can follow, a couple more examples with an explanation of what wp-head insertion mean. A few users using the plug in and it could explode. So please help. Nice easy to follow clear instructions for each stage of the process (no need for an education in CSS though-thats assumed).
Thank and thanks again. You really are onto something here-using WP to design page content is currently a nightmare!
Rgds
Chris
november 7th, 2010 at 14:14
Hi Chris
Thank you for the feedback.
I will try and update the documentation in the near future. Until then – is there anything I can help you with, getting it working or have you figured it out?
november 8th, 2010 at 04:25
Hi again
thank you for your response. Honestly you really are onto something quite special here! Selective (page specific) WordPress styling is soooo hard to do without a css editing tool that operates on a page by page basis- just as you have it.
We are developing a significant ‘designers portal’ for release in the next 3-4 months. We want to use your plug in to create a series of different index pages with absolutely nothing on them except high quality graphics integrated with fancy navigation buttons each with a nice rollover effect. The rest of the site will be typical ‘wordpress style’ posts based on the Suffusion theme.
Sofar we have been able to use your css plug in to achieve the following:
a) create and install the graphics and hover buttons with nice rollover effects on each of the specific index pages. (That in itself is nigh on impossible in wordpress regardless of themes unless you get into some pretty compliucated child theme developments-which web designers could never do on a customer specific basis. We needed to create html div labels in the html page editor and reference them in your css editor to achieve that).
b) edit the ‘body’ background of just the index pages so that they are plain white.
Here are our outstanding problems:
1- we want to get rid of OR style the header on just the index pages
2-we want to be able to style the contents of the page content wrapper (remove borders, background to white etc) again just for index pages-so only the graphics and the buttons can be seen on those pages
3- we have no idea how to use the form called
“CSS include. (insert 1 file pr line, that should be included in the head-tag):
We suspect it may have an important role to play here.
If we can get answers to these things we have found a tool in your plug in that quite frankly UNIQUE and very exciting.
Please please help
Thank you
Rgds
Chris
november 10th, 2010 at 15:45
Hi Huuah
we have sorted it. Everything we raised in our prior post has now been resolved following a whole bunch of trial and error exercizes. Meaning we now we have a simple solution to ‘page at a time design’ without impacting theme code.
in fact the only thing outstanding is the original point about a little more explanatory documentation especially related to point 3 in our prior post.
For our part we will include full documentation inside the portal we will be releasing next year.
Rgds
Chris
november 10th, 2010 at 18:21
Hey Chris
Glad to hear to got it running.
Just to comment on question 3: The CSS include section can be used just as in the javascript section, where you can enter an url for a .css file that should be included on the page.
november 12th, 2010 at 02:06
perfect thank you Huuah. Is there a ‘format example’ you could let us have for 3? —just in case there is anything unusual there.
I will post you again just as soon as we are ready to go with all this,
Kind Rgds
Chris
juli 24th, 2011 at 22:32
Hi. I’m using WordPress 3.2.1, which your plugin does not seem to get along with. When I activate the plugin, I get a jumble of PHP code displayed at the top of the page (both within Dashboard and on a blog page, and in the Dashboard’s Plugins page, I see this message:
“The plugin generated 5097 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”
When I deactivate the plugin, the PHP code mess and the error message both go away.
The PHP code mess at the top of the page looks like this:
ID) { $js = stripcslashes(get_post_meta($post->ID, ‘easyjscss_js’, true)); $jsfile = stripcslashes(get_post_meta($post->ID, ‘easyjscss_jsfile’, true)); $css = stripcslashes(get_post_meta($post->ID, ‘easyjscss_css’, true)); $cssfile = stripcslashes(get_post_meta($post->ID, ‘easyjscss_cssfile’, true)); if ($js == “”) { $js = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_js’, true)); } if ($jsfile == “”) { $jsfile = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_jsfile’, true)); } if ($css == “”) { $css = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_css’, true)); } if ($cssfile == “”) { $cssfile = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_cssfile’, true)); } } if (trim($jsfile) != “”) { $lines = explode(“\n”, $jsfile); for ($i=0; $i”; } } if (trim($js) != “”) { echo “”; } if (trim($cssfile) != “”) { $lines = explode(“\n”, $cssfile); for ($i=0; $i”; } } if (trim($css) != “”) { echo ”; } } function easyjscss_meta_box_add() { add_meta_box(‘_easyjscss’,'Easy JS/CSS’, array($this, ‘easyjscss_meta’),’post’); add_meta_box(‘_easyjscss’,'Easy JS/CSS’, array($this, ‘easyjscss_meta’),’page’); } function convert_old($post_id, $name) { $_temp = get_post_meta($post_id, $name, true); delete_post_meta($post_id, $name); delete_post_meta($post_id,’_’.$name); add_post_meta($post_id, ‘_’.$name, $_temp); } function easyjscss_meta() { global $post; if ( get_post_meta($post->ID, ‘easyjscss_js’, true) || get_post_meta($post->ID, ‘easyjscss_jsfile’, true) || get_post_meta($post->ID, ‘easyjscss_css’, true) || get_post_meta($post->ID, ‘easyjscss_cssfile’, true) ) { $this->convert_old($post->ID, “easyjscss_js”); $this->convert_old($post->ID, “easyjscss_jsfile”); $this->convert_old($post->ID, “easyjscss_css”); $this->convert_old($post->ID, “easyjscss_cssfile”); } $js = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_js’, true)); $jsfile = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_jsfile’, true)); $css = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_css’, true)); $cssfile = stripcslashes(get_post_meta($post->ID, ‘_easyjscss_cssfile’, true)); echo “Javascript include. (insert 1 file pr line, that should be included in the head-tag):
“; echo “$jsfile
“; echo “Javascript ( insert any javascript you want here. Ie: alert(\”Hello world\”); ):
“; echo “$js
“; echo “CSS include. (insert 1 file pr line, that should be included in the head-tag):
“; echo “$cssfile
“; echo “CSS ( insert any css codes here. Ie: body { color: #FF0000;} ):
“; echo “$css
“; } function update_tags($id) { if (isset($_POST["easyjscss_js"])) { $js = $_POST["easyjscss_js"]; $jsfile = $_POST["easyjscss_jsfile"]; $css = $_POST["easyjscss_css"]; $cssfile = $_POST["easyjscss_cssfile"]; delete_post_meta($id, ‘_easyjscss_js’); delete_post_meta($id, ‘_easyjscss_jsfile’); delete_post_meta($id, ‘_easyjscss_css’); delete_post_meta($id, ‘_easyjscss_cssfile’); add_post_meta($id, ‘_easyjscss_js’, $js); add_post_meta($id, ‘_easyjscss_jsfile’, $jsfile); add_post_meta($id, ‘_easyjscss_css’, $css); add_post_meta($id, ‘_easyjscss_cssfile’, $cssfile); } } } $easyjscss = new easyjscss(); add_action(‘admin_menu’, array($easyjscss, ‘easyjscss_meta_box_add’)); add_action(‘wp_head’, array($easyjscss, ‘add_content_to_header’), 15); add_action(‘edit_post’, array($easyjscss, ‘update_tags’,),5);
juli 24th, 2011 at 22:54
Hello Karig.
This blog is running WordPress 3.2.1 and Version 1.4 of the Easy JS and CSS plugin and I cannot reproduce the error you descripe.
Could you perhaps try and edit the file wp-content/plugins/easyjscss/easyjscss.php and change line number 1 from
to
Try and add the ‘php’ after the ‘<?’ at line one.
I would very much like to hear, if this fixes the error with your installation.
oktober 31st, 2011 at 07:57
I have the same error. See the context here :
php 5.3.5, Apache 2.2.17 (wampserver on windows vista)
Other extensions:
Mailpress(5.1.1) , Audio player(2.0.4.1) and contact form 7 (3.0)
theme :
“delicate”
Your extension will not produce any error on my production site wich is a linux platform (i’m on php 5.2.6 apache 2.2.9)
oktober 31st, 2011 at 07:58
i forgot …
very usefull extension !!!
I use it for specific design on articles, and also jquery animations…
Thank you !
oktober 31st, 2011 at 08:11
Ok !
“<?php" fixes the problem
all is ok