Ego Eram Reputo Posted January 7, 2018 Share 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 and key into the option field. Clicking OK creates the button. PS you can edit the text in the button and also change the size 2 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 7, 2018 Share 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 (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 7, 2018 Author Share 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 ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
MadJik Posted January 7, 2018 Share 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 My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
IRON67 Posted January 7, 2018 Share Posted January 7, 2018 (edited) Nice idea ... if it would working well. Edited January 7, 2018 by IRON67 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 7, 2018 Author Share 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 ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
SodiumEnglish Posted January 7, 2018 Share 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 Link to comment Share on other sites More sharing options...
AndrewDavid Posted January 7, 2018 Share Posted January 7, 2018 (edited) @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. Edited October 17, 2020 by AndrewDavid Removed upload 1 Quote Link to comment Share on other sites More sharing options...
MadJik Posted January 7, 2018 Share 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 My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share 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 ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share 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 ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 8, 2018 Share Posted January 8, 2018 Download Download 1 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share Posted January 8, 2018 Dang. Thanks Toe_head. I was sure that would fix it. Back to the drawing board..... Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share 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 ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 8, 2018 Share 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 (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share Posted January 8, 2018 It works. Great! Thanks for testing it and also the spelling tip Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
IRON67 Posted January 8, 2018 Share Posted January 8, 2018 (edited) Test Don't click this! Edited January 8, 2018 by IRON67 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 8, 2018 Author Share Posted January 8, 2018 ^^ it doesn't have a valid file id, but at least you have a very cool button Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
LionsDragon Posted January 8, 2018 Share 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 Link to comment Share on other sites More sharing options...
Pratyush Posted January 9, 2018 Share Posted January 9, 2018 Testing new button feature. I can change button name. Cool! 2 Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted November 9, 2021 Share Posted November 9, 2021 @Ego Eram Reputo Attachments are not showing code. Right click shows me the code but adding the code doesn't seem to work either. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted November 9, 2021 Share Posted November 9, 2021 Newer attachments also have a key. You'll need to insert the ID and Key, like so: And it works: Empty.zip Download 1 1 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.