With "bp" tag there is always "Copy blueprint string". My suggestion is to allow customization of this text. There are 2 ways it could be done:
1/ By using "bp=TEXT" tag syntax
2/ Or by parsing blueprint and extracting its name (in case of blueprint book, also change icon from blueprint into blueprint book)
Either way it would be awesome as with this it would be easier to find blueprints in forum posts without need to read text above and below
edit:
bp-tag-how-it-could-look-like.png (42.54 KiB) Viewed 1835 times
Re: Suggestion: blueprint tag with customizable text
Posted: Fri Aug 02, 2019 4:23 pm
by slippycheeze
Blueprint tag that extracts the title from the book and/or blueprint. I suspect Wube have the code for that, somehow, even if they would have to port it to PHP.
Re: Suggestion: blueprint tag with customizable text
Re: Suggestion: blueprint tag with customizable text
Posted: Mon Aug 05, 2019 8:53 am
by Sanqui
I had a quick go at the first solution and I have to conclude that it's not possible because of phpBB's idiotic bbcode handling. (Optional parameters require xslt conditions to handle them which for some reason only accept block elements in them, not button or script. I ran into this problem when migrating old spoiler tags. I had to use divs and style them to be inline. *facepalm*) There's no PHP involved. (I try to avoid making direct modifications to phpBB source.)
The rest of the bp button handling is done in JavaScript and I think I'm not sure if I want to parse blueprints client-side, since it could be on the heavier side - but I could be convinced otherwise.