That is great. My pages are not done using a plugin that is really the best
solution for wordpress because you dont have to transfer all the links and
sripts to the new template. Thanks Jim
Pino
----Messaggio originale----
Da: jim.hu.bio...@gmail.com
Data: 06/06/2014 20.21
A: <jmol-users@lists.sourceforge.net>
Ogg: [Jmol-users] jsmol wordpress plugin
Hi All,
As part of my inaugural post to this list, I first wanted to thank Robert and
the rest of the Jmol/Jsmol team for providing Jmol and Jsmol and also thank
Jaime Prilusky for making the jsmol mediawiki extension available. I've now
deployed it on EcoliWiki.
The main reason for joining is to let everyone know that I am working on a
wordpress plugin for jsmol. I saw that Pino Striccoli had it working on
wordpress, but I didn't think he was doing it as a plugin.
I have it mostly working here:
http://biochemistryweb.tamu.edu/biobiodev/testing-jsmol-post/
Mine works by putting a shortcode in a page or post, e.g.
This works by putting a shortcode into a post or page
[jsmol pdb='4I36' caption='Crystal structure of the <em>B.
stearothermophilus</em> phosphofructokinase mutant D12A See <a
href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3785328/">Mosser et al</a>.']
This was done mostly by taking the simple.htm file as a template and doing
string substitutions on it, and using wordpress' wp_enqueue_script() function
to load the main JSmol.min.js . I'll make it available after I do some more
work on it, but I wanted to share that I'm doing it. So far it support having
more than one viewer per page, and can use either files from rscb.org/pdb or
files that are uploaded locally (the plugin modifies the allowed mime types in
Wordpress to add chemical/pdb). I want to add the ability to add buttons for
custom scripts.
I also wanted to ask what should be included in the files to give proper credit
to the jsmol project.
Best,
Jim Hu
=====================================
Jim Hu
Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users