Legacy how do I make a custom command available for everyone?

Status
Not open for further replies.
This suggestion has been closed. Votes are no longer accepted.
Oh man that will be cool! I think I can help members more easily post images with a custom command.

---------- Post added at 22:30 ---------- Previous post was at 22:27 ----------

How/where can I use this...seems like this is skirting on the issue. I don't mind a little DIY to get me by...maybe point me in the right direction:


This is the HTML element that is used for inserting the /test command:
HTML:
<a data-command="/test" data-instanceid="{vb:raw instance.instanceid}" name="dbtech_vbshout_setcommand" href="javascript://">/me [text]</a>
You will need to replace /test with the text you want and insert that element somewhere.

Whenever someone clicks that element, the contents of data-command is inserted.

Then, when you want it triggered, you can use
Code:
$('[name="dbtech_vbshout_setcommand"][data-instanceid="{vb:raw instance.instanceid}"][data-command="/test"]').trigger('mousedown');
Also changing /test there.


It became more long-winded because I recoded it from scratch to support multiple instances natively, and supporting this was not something we had in mind then or now.

If this doesn't work then I don't know if I'll be able to assist any further, like I said we haven't created an API for these things.

---------- Post added at 22:47 ---------- Previous post was at 22:30 ----------

The command I have for /img is the one I want to make available to everyone:

img-command.jpg
 
Status
Not open for further replies.

Legacy vBShout

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,179
Customer rating
5.00 star(s) 1 ratings
Back
Top