Jim, i just changed theme and the plugin works. Nice that u removed the data
directory. Where to put the molecules stored locally?Pino
----Messaggio originale----
Da: [email protected]
Data: 12/06/2014 10.57
A: <[email protected]>
Ogg: [Jmol-users] JSmol2wp version 0.8 beta
I just pushed a new version of the wordpress plugin for JSmol to GitHub.
Changes:- removed data directory. This makes the zip a lot smaller and it
doesn't take forever to install.- changed system for counting instances of the
shorttag so we don't need preg_match- removed whitespace from template hoping
that solves the problem of themes adding markup- simplified load script as
suggested by Bob- made applet IDs more unique by appending post id
I realized that the applet names had to be unique not just within a post but
also between posts that might appear in the same page, i.e. when they are in
consecutive posts.
Pino's page wasn't loading due to something in his plugins or themes that was
trying to be helpful by putting in HTML markup for paragraphs wherever there
were multiple newlines. This led to HTML paragraph tags in the middle of
scripts, which then failed to execute. I hope this version compresses the
template file enough to fix that, but since I don't have access to a Wordpress
with that feature, I can't test it myself.
Thanks to Henry and Pino for patience and finding bugs!!
demo is still at http://biochemistryweb.tamu.edu/biobiodev/testing-jsmol-post/
zip file at https://github.com/jimhu-tamu/wordpress/tree/master/plugins
Best,
Jim
=====================================
Jim Hu
Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users