Sign in to follow this  
Ego Eram Reputo

DOWNLOAD buttons for attached files

Recommended Posts

I've created a couple of custom buttons users can use to promote download links for files attached to their posts. You can find them in the post editing toolbar.

 

image.png

 

These create buttons like these in posts

 

image.png

 

How do you use them? When you're creating/editing your post, attach the file you want to link to in the normal way. SAVE your post, then EDIT the post. This will cause the attached file id to be shown (tip: you can also use your browsers refresh button to get the Id to show up).

 

image.png

 

Simply click the button in the editor tool bar and type in the id number into the option field.

 

image.png

 

Clicking OK creates the button.

 

PS you can edit the text in the button and also change the size B)

 

 

  • Like 2

Share this post


Link to post
Share on other sites

We only get one option to play with. I'm using that option for the attachment id. That's why there are two buttons - to give users a (semblance of) choice.

 

DON'T try to change the color..... :lol:

 

Share this post


Link to post
Share on other sites

Download  lastest version of LensFlare (Work in Progress)

 

What about the authorized volume per user for attached files?

 

or

 

What about an alternative external URL instead attached files ?

 

Edited by MadJik
retry button
  • Upvote 1

Share this post


Link to post
Share on other sites
1 hour ago, Ego Eram Reputo said:

Seems there are some issues.....

 

MadJik, did you edit the button after it was posted? Did it show up at all?

I add the button to the text then I refresh by F5 to have the attached file number. Then submit. Till this the button is ok.

 

When the post is "posted", the button is replaced by the text...

 

Could it be a browser problem?

 

Share this post


Link to post
Share on other sites
9 hours ago, SodiumEnglish said:

It may have to do with permissions since admin's seem to be able to but users are unable.

 

It works in much the same way as the Imgur and NicPic image buttons. I will look into this.

 

If the forum software is overwriting the button code (and it looks likely)  I will need to supply a custom link. That shouldn't be a problem.

Share this post


Link to post
Share on other sites

Adjusted the allowed css classes to specifically allow the three I'm suing using for the buttons.

 

Who will step up to try them out?

Edited by Ego Eram Reputo
Spelling!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this