Viewing 1 replies (of 1 total)
  • Plugin Author Tim Reeves

    (@tim-reeves)

    Sorry, but as you can see at the head of the description, I’m looking for someone to take over the plugin – I’ll be 69 in 2 weeks time. Enough is enough.

    What I can tell you is that the dropdown styles are stored as a single option value with key “tcs_addstyledrop” in the WordPress wp_options table. It’s an array like this:

    a:12:{i:0;a:7:{s:5:"title";s:15:"Block quotation";s:5:"block";s:1:"q";s:7:"classes";s:11:"asparagraph";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:1;a:6:{s:5:"title";s:16:"Inline quotation";s:6:"inline";s:1:"q";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:2;a:6:{s:5:"title";s:18:"Inline Attribution";s:6:"inline";s:4:"cite";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:3;a:7:{s:5:"title";s:10:"Hilite Div";s:5:"block";s:3:"div";s:7:"classes";s:9:"hilitebox";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:4;a:7:{s:5:"title";s:18:"Hilite Div Wrapper";s:5:"block";s:3:"div";s:7:"classes";s:9:"hilitebox";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:1;}i:5;a:7:{s:5:"title";s:10:"beforelist";s:8:"selector";s:1:"p";s:7:"classes";s:10:"beforelist";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:6;a:7:{s:5:"title";s:10:"textshadow";s:6:"inline";s:4:"span";s:7:"classes";s:10:"textshadow";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:7;a:7:{s:5:"title";s:14:"Inline smaller";s:6:"inline";s:4:"span";s:7:"classes";s:7:"smaller";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:8;a:7:{s:5:"title";s:14:"Block footnote";s:5:"block";s:1:"p";s:7:"classes";s:8:"footnote";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:0;s:7:"wrapper";b:0;}i:9;a:7:{s:5:"title";s:11:"Smiley-Icon";s:6:"inline";s:4:"span";s:7:"classes";s:10:"icon-smile";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:1;s:7:"wrapper";b:0;}i:10;a:7:{s:5:"title";s:10:"Frown-Icon";s:6:"inline";s:4:"span";s:7:"classes";s:10:"icon-frown";s:6:"styles";a:0:{}s:10:"attributes";a:0:{}s:5:"exact";b:1;s:7:"wrapper";b:0;}i:11;a:7:{s:5:"title";s:3:"\">";s:6:"inline";s:3:"\">";s:7:"classes";s:3:"\">";s:6:"styles";a:1:{s:3:"\">";s:3:"\">";}s:10:"attributes";a:1:{s:3:"\">";s:3:"\">";}s:5:"exact";b:0;s:7:"wrapper";b:0;}}

    Theoretically you could swap entries around by manual editing, but I think that would not be so easy… it’s the serialized representation of an array of associative arrays. Easier to write a mini-program or -plugin which allows you to manipulate the entry order. ??

    Alternatively, if you are a PHP programmer, please consider adopting this plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Add reorder feature’ is closed to new replies.