Chris Luke
Forum Replies Created
-
Forum: Plugins
In reply to: [TFO Graphviz] Path Permission deniedMarking closed; let me know if I may be of further assistance
Forum: Plugins
In reply to: [TFO Graphviz] Path Permission deniedI do not think it will work on that sort of service. The plugin “TFO-GraphViz” requires the separate program GraphViz to be installed on the server, or the PHP module of the same.
I have looked at a pure JavaScript implementation, that would run in the browser and thus not have these server dependencies, but it is a fair amount of work. There are other plugins that do this, though I have found them a little short on functionality personally.
Unless you can arrange to have the GraphViz dependencies made available on your server I doubt you will be able to make use of TFO-GraphViz on it. It is a limitation of that kind of hosting service.
Forum: Plugins
In reply to: [TFO Graphviz] Path Permission deniedI need more information to be able to help:
* How did you install GraphViz?
* Where is it installed? What is the full path and filename for “dot”? Have you tried running it manually at the command line using that path?
* Does the server run something like SElinux or AppArmor and are they set to restrict program execution by the HTTP server?Forum: Plugins
In reply to: [TFO Graphviz] doesn’t work in page/postThat is unfortunate and I apologize for the frustration. Are you able to spend some time diagnosing the issue? This would help to find the bug in the code, or an issue with the setup or perhaps with your Dot.
Could you share an example of the Dot you are trying to render? Which rendering method were you using? Is this a self-hosted WordPress or somewhere else? If it is your own, have you checked the web server error logs to see if there are any issues reported there?
Thanks,
Chris.Forum: Plugins
In reply to: [TFO Graphviz] Image mapsYup, that seems pretty reproducible. I’ve added some blurb to the documentation (it’ll be in 1.15 whenever that released) to note this behavior. See https://plugins.trac.www.ads-software.com/changeset/1314520/ .
Marking this as resolved; feel free to reopen if I am mistaken. ??
Forum: Plugins
In reply to: [TFO Graphviz] Image mapsOh, this might be incredibly simple.
The “map” line is generated by Graphviz itself and it uses the ID of the graph – and your DOT doesn’t give one.
Try this instead:
[graphviz imap="yes" title="mymap" id="mymap"]digraph mymap { input[shape="box", style="rounded", label="my Label", URL="/myurl"]; } [/graphviz]
Forum: Plugins
In reply to: [TFO Graphviz] Image mapsThat’s strange. I’ll check if I broke something.
Which mechanism are you using? PHP bindings or calling the “dot” program? And which platform are you on?
Forum: Reviews
In reply to: [TFO Graphviz] Simple, brilliantGlad you like it. ??
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyGreat, thanks for the feedback!
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyOkay, I just pushed 1.14 which includes the better way to not-mangle characters. It also includes an option to never emit JavaScript. ??
As for an example image where this goes awry, look at https://blog.flirble.org/2015/11/15/adding-svg-support-tfo-graphviz/ . The last two graphs both have an image map, the only difference between them is that one is scaled to be larger – if you hover your mouse over the nodes you’ll notice that on the larger image the URLs don’t match the nodes, especially near the bottom of the image, but they do on the un-scaled one.
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyno_texturize_shortcodes
works for the HTML entities. It doesn’t stop it turning newlines into<br />
and<p>...</p>
tags though. Having a dig for that now.As for the scaling, it’s an issue where I don’t set the size in the dot explicitly and then scale the resulting svg in the
<img>
tag; it doesn’t also scale the map.If I don’t scale the output image using
width
/height
in theimg
tag then there’s no problem; but I can imagine some themes, especially responsive themes, will alter the image size to fit the layout, so some sort of post-processing is required regardless.Anyway, I’ll setup a page later showing this.
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyOh, I think I’ve found the proper answer. https://codex.www.ads-software.com/Plugin_API/Filter_Reference/no_texturize_shortcodes
Not tested it yet, but will give it a go.
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyI can add mappings for your opening quotes to plain ASCII ones if you can tell me the
&#...;
for it. (replace the … with hex).Or maybe I should look for a complete such list, or a module that already does it. Hmm.
As for the imagemap, I “fixed” it with some JavaScript – but it only loads it if you both use imagemaps and set either width or height attributes, so it shouldn’t affect anyone else.
Forum: Plugins
In reply to: [TFO Graphviz] Upgrading GraphViz changes the path and the options page diesPushed into 1.13 with some other goodies. Check it out ??
Forum: Plugins
In reply to: [TFO Graphviz] Doesn't work, no idea whyOkay, I’ve pushed version 1.13. Give it a test and let me know if it works for you, please!