Plugin Author
yunra
(@yunra)
The feature exist in some capacity, you can use [p1p1deck] and list cards in a semicolon separated list and it will display all cards it can find in the list. The feature just simply displays all cards side by side, normally when listing a deck you want to sort and put cards on top of each other by cmc or such, but this feature is not implemented.
But it simplifies it a little since you just need to list the cards you want pictures of, its just for pictures as of now though, was it textlinks you wanted?
Example:
[p1p1deck]serra angel:cancel:grunn, the lonely king:disfigure[/p1p1deck]
Plugin Contributor
dbudbu
(@dbudbu)
thanks for the answer. yeah, on our blog we want decklists with card names that show the image on hover. i will see what i can do. i am an experienced web developper but usually don’t do wordpress… what is the right way to contribute this feature back to you when i implement it?
Plugin Author
yunra
(@yunra)
It would be a great addition if you could make that!
The code is available on https://plugins.trac.ww.wp.xz.cn/browser/utilities-for-mtg/
If you know phpand can make a decklist method that takes a list of cards (like the other methods ‘cancel|xln:serra angel|m19’ f.ex) and make a nicely displayed decklist of them that would be great. The method needs to return plain html with some css classes (css is in a separate file). I can take care of modifying it to use the wordpress lib and add all the caching etc that i use in other functions if you dont want to spend time learning wordpress coding.
I did see your other question about exact matching as well, i’ll see if i can look into that a bit more and i’ll answer there.
Plugin Contributor
dbudbu
(@dbudbu)
hi, i got started on that decklist thing and have a work in progress. i am now looking at some styling with a friend and will then propose the changes when its ready.
meanwhile, i cleaned up the php code a bit (phpstorm complaining about unused variables and such, unified the mixed line endings to be all unix line endings). the changes are here: https://github.com/dbu/wordpress-mtg/pull/2/files (use “diff settings” to hide whitespace change, otherwise the line ending cleanup makes the diff unusable)
does it work for you to take changes from such a git diff? you can make github show you the new file and copy that, then use your tooling to compare and decide which changes you want to take.
Plugin Author
yunra
(@yunra)
Im using visual studio code with only autocompletion for php so im not getting much help so a cleanup is always nice to get. Git is fine to use.
I haven’t had time to test your changes yet but i will get to it, and your other questions as well. May is a pretty hectic month for me personally so i might not be able to test anytime soon but if i get some time over between work and stuff i’ll get to it.
Thanks for taking the time to help out!