Should work on its own. I'm about to post to the list about a new testing
release.
Jim
On Jun 9, 2014, at 7:17 AM, pino.stricc...@libero.it wrote:
> Jim, i want to load this plugin and try it. Do i need any file loaded
> previuos to this plugin or is the plugin to do all the work?
> Pino
> ----Messaggio originale----
> Da: jim.hu.bio...@gmail.com
> Data: 07/06/2014 18.31
> A: "pino.stricc...@libero.it"<pino.stricc...@libero.it>,
> <jmol-users@lists.sourceforge.net>
> Ogg: Re: [Jmol-users] R: jsmol wordpress plugin
>
> Henry and Pino's enthusiastic replies stimulated me to share my code even in
> it's current state, so I've now put it on GitHub.
>
> https://github.com/jimhu-tamu/wordpress/tree/master/plugins/jsmol2wp
>
> Note that if you discovered the github repo via the help link before this
> email, there were were two important changes:
> - I got rid of the js directory and use the nojq version of the minified
> JSmol script, as the current Wprdpress ships with JQuery 1.11 already.
> - I changed the syntax for custom buttons.
>
> Previously I delimited multiple buttons with a single | but I realized that
> these could occur in the interior of valid scripts. So I changed the
> delimiter to |||, which I hope never occurs in valid JMol scripts.
>
> When custom script buttons are created, I add a reset button to try to get
> back to how it was when it was loaded. I don't think I'm doing it right. I
> tried to do this by saving and restoring state, but didn't get that to work
> either, probably because of where I put things.
>
> I also am wondering why I can't get the menu to pop up when I click the
> applet with the control key held down. I'm guessing that there is a URL path
> problem.
>
> I'd love to have others try it and let me know what breaks and what they
> would like to see changed or added. I will also add something to the wiki.
>
> Jim
>
> On Jun 7, 2014, at 3:33 AM, pino.stricc...@libero.it wrote:
>
>> 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
>
> =====================================
> 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://www.hpccsystems.com_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
=====================================
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users