dandv
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Media Widget] [Plugin: Social Media Widget] Specify image sizesOK, so how do I contribute to the project “here”, is there a repo I can commit against?
Just re-sent. Alternatively, you can email me at ddascalescu at gmail
Something odd must be happening. I’ve filled in the support form, and I’ve linked to a screencast there, with the Chrome errors.
Forum: Plugins
In reply to: [Social Media Widget] [Plugin: Social Media Widget] Specify image sizesThanks. Can I help? I’d love to contribute code if the project were on GitHub.
Forum: Plugins
In reply to: [FancyBox for WordPress] [Plugin: FancyBox for WordPress] Fancybox & nginxI’m running our site on nginx. Haven’t seen any Fancybox issues.
Standard configuration, the only think I have about image files is
# cache image files location ~* \.(jpe?g|gif|png|css|js|ico|pdf)$ { access_log off; log_not_found off; expires 1w; }
Hi guys,
I need to look into this in more detail when I have a bit more time, but for now I can say that,
- the initial issue, with the missing opening p tag, happend in the Pods editor
- the issue with extra p/br tags inserted in script tags happened in the WordPress page editor
In the meantime I looked at the code for wpautop (its use of variables like $pee and $tinkle didn’t impress me), and it appears that it tries to leave script tags alone. So there may be some interaction with another plugin. I don’t have an obvious possible culprit right now, because of the 8 plugins that are active, none should mess with the post content much: AddThis Follow Widget, Broken Link Checker, Dynamic Widgets, Google XML Sitemap, MailChimp Widget, Pods CMS Framework, and WP Slim Stat + its Dashboard widgets.
For now I’ve just nixed wpautop by having it just
return $pee;
. I never liked the idea of my input being second-guessed anyway.Well, even though the plugin is enabled, <p> tags are still inserted.
I have the following code in the HTML editor of a page:
<p>We plan to be located … Map below:</p>
<div id=”mapdiv”></div>
<script src=”https://www.openlayers.org/api/OpenLayers.js”></script>
<script>
map = new OpenLayers.Map(“mapdiv”);
map.addLayer(new OpenLayers.Layer.OSM());//Set start centrepoint and zoom
var lonLat = new OpenLayers.LonLat( -122.4000, 37.5050 )
.transform(
new OpenLayers.Projection(“EPSG:4326”), // transform from WGS 1984
map.getProjectionObject() // to Spherical Mercator Projection
);
var zoom=10;
map.setCenter (lonLat, zoom);</script>
<p>One would hope the location above would work…
…but if you look at the page source, you’ll see <p> tags inserted where linebreaks used to be in the <script> section.
Maybe this is actually (currently) intended behavior, but it certainly breaks scripts.
There are actually <p> and
br
tags where there were no linebreaks at all:<div id=”mapdiv”></div>
<p> <script src=”https://www.openlayers.org/api/OpenLayers.js”></script>
<script>I just want the “HTML” tab in the page editor to be raw HTML. No “smart” paragraph or line break crap; those should be reserved for the Visual editor.
How can I do this?
Forum: Plugins
In reply to: [WP Editor] [Plugin: WP Editor] Comparison with Advanced Code EditorWould be great to see exactly this comparison somewhere.
I think this would also help make the plugin more popular, showing how it’s better than the more popular alternatives.
I’ve just checked, and Advanced Code Editor was deactivated. No other syntax highlight plugins were activated either. I’m using Chrome 21.0.1180.75 m.
WP Editor does create line numbers, and the current line in the editor is highlighted blue. However, CodeMirror doesn’t trigger to highlight the code.
BTW, I’m the author of the PHP parser for Code Mirror.
Forum: Plugins
In reply to: [WP Editor] [Plugin: WP Editor] It's About Time!You mean, it’s about time CodeMirror were included in WP core?
I’ve been wasting the past hour search for a plugin that highlights code in the HTML video of the page/post editor, as well as in the plugin and theme editors. I’ve seen four such plugins right now, and none works.
I saw this issue with another syntax highlighter plugin based on CodeMirror: after activating the plugin, when editing a file, the editor shows line numbers to the left, but no syntax coloring.
Examining the JavaScript console in Chrome 21 shows this error:
Uncaught TypeError: Object function CodeMirror(place, givenOptions) { // Determine effective options based on given values and defaults. var options = {}, defaults = CodeMirror.defaults; for (var opt in defaults) .... return instance; } has no method 'defineExtension'
I can resize the text box vertically, but indeed, toolbar buttons are all removed, and replaced with one button: “fullscreen”.
I’ve never used the toolbar buttons anyway.