Ego Eram Reputo 2,406 Report post Posted January 7, 2018 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. These create buttons like these in posts 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). Simply click the button in the editor tool bar and type in the id number into the option field. Clicking OK creates the button. PS you can edit the text in the button and also change the size 2 Quote Share this post Link to post Share on other sites
toe_head2001 1,458 Report post Posted January 7, 2018 (edited) Download And change the color. Edit: Darn, it died when I submitted the post. Edited January 7, 2018 by toe_head2001 Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 7, 2018 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..... Quote Share this post Link to post Share on other sites
MadJik 963 Report post Posted January 7, 2018 (edited) 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 January 8, 2018 by MadJik retry button 1 Quote Share this post Link to post Share on other sites
IRON67 357 Report post Posted January 7, 2018 (edited) Nice idea ... if it would working well. Edited January 7, 2018 by IRON67 Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 7, 2018 Seems there are some issues..... MadJik, did you edit the button after it was posted? Did it show up at all? Quote Share this post Link to post Share on other sites
SodiumEnglish 41 Report post Posted January 7, 2018 (edited) Blue Gray Orange? Edit: It looks to be in working order now! I can also edit the color with inspect element but it only accepts the default provided gray and blue. Custom colors turn white. Edited January 8, 2018 by SodiumEnglish 1 Quote Share this post Link to post Share on other sites
AndrewDavid 625 Report post Posted January 7, 2018 @Ego Eram Reputo I got used to hitting the save button after editing a post. Now I am seeing Edit Topic instead. No save button. It does save the changes but the button graphic disappears from the preview. Don't know if this helps or not. 1 Quote Share this post Link to post Share on other sites
MadJik 963 Report post Posted January 7, 2018 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? Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 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. Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 Ok, some new code backing these buttons has been written and installed. Can someone please give both buttons a try..... Quote Share this post Link to post Share on other sites
toe_head2001 1,458 Report post Posted January 8, 2018 Download Download 1 Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 Dang. Thanks Toe_head. I was sure that would fix it. Back to the drawing board..... Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 (edited) 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 January 8, 2018 by Ego Eram Reputo Spelling! Quote Share this post Link to post Share on other sites
toe_head2001 1,458 Report post Posted January 8, 2018 Download Download 7 minutes ago, Ego Eram Reputo said: ... I'm suing for the buttons. People usually sue for money. 1 Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 It works. Great! Thanks for testing it and also the spelling tip Quote Share this post Link to post Share on other sites
IRON67 357 Report post Posted January 8, 2018 (edited) Test Don't click this! Edited January 8, 2018 by IRON67 Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,406 Report post Posted January 8, 2018 ^^ it doesn't have a valid file id, but at lease you have a very cool button Quote Share this post Link to post Share on other sites
LionsDragon 836 Report post Posted January 8, 2018 17 hours ago, toe_head2001 said: Download Download People usually sue for money. I dunno, I've met some pretty crazy collectors.... Quote Share this post Link to post Share on other sites
Pratyush 92 Report post Posted January 9, 2018 Testing new button feature. I can change button name. Cool! 2 Quote Share this post Link to post Share on other sites