lightning-browser-extension icon indicating copy to clipboard operation
lightning-browser-extension copied to clipboard

Look for phpBB tags or find tipping tag in user signatures

Open RenegadeButcher opened this issue 3 years ago • 3 comments

I may be helping to setup an old school phpBB board soon, so I've been experimenting. I added the [ ⚡️[email protected] ] code like you do in twitter to my signature on a test board. Alby doesn't seem to pick it up. Is there something else I should do to make it visible to the extension? I'd like to enable folks to put their own code in board signatures and accept tips similar to on Twitter.

Just a random idea that could come in handy, could something be added to the Alby code to look for a bbcode? Something like [alby][/alby] or [ln][/ln] bracketing either an ln address or LNURL? Click and call up the extension type deal.

RenegadeButcher avatar Jul 28 '22 13:07 RenegadeButcher

Currently Alby is using "batteries" to pick up LN-addresses on certain websites. You can try to create one for your project. Have a look at this twitter example. Let us know if you need help.

escapedcat avatar Jul 29 '22 04:07 escapedcat

@RenegadeButcher Thanks for bringing this up. I just managed to create a phpBB shortcode for exactly that purpose! 💯

First you have to create a custom BBCode in the control panel of phpBB:

image

After that you can use this new BBcode like this:

[lightning="[email protected]"] ⚡ Send some sats[/lightning]

image

Clicking the link will automatically open Alby (if installed) or to your favorite Lightning app on your phone.

Please let me know if that works for you, I might wrap this up in some blog post.

reneaaron avatar Aug 01 '22 18:08 reneaaron

Thanks @reneaaron , this makes way more sense!

escapedcat avatar Aug 02 '22 01:08 escapedcat

We consider this solved

escapedcat avatar Dec 02 '22 13:12 escapedcat