inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 24, 2015 11:39:25 GMT -8
Is there a way to create a new button so that.. any links to mediafire get targetted and turned automatically to a "DOWNLOAD" button? Maybe even limit it to a specific board? My end goal is to hopefully be able to replace the link in "Download link" with a button.
Not sure if I should post this in todge's gallery thread, but i figured since it could pertain to more than just their plugin it would be okay here? Sorry! I would very much appreciate help with this.
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Sept 25, 2015 4:56:09 GMT -8
If you have a guest-friendly link to a thread which has mediafire links on, I can have a poke around with Inspect Elements and see if I can style the link I'm thinking making the link a block element, setting padding to make it button sized, then adding a border and background colour.
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 25, 2015 22:35:25 GMT -8
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 27, 2015 13:51:24 GMT -8
If you have a guest-friendly link to a thread which has mediafire links on, I can have a poke around with Inspect Elements and see if I can style the link I'm thinking making the link a block element, setting padding to make it button sized, then adding a border and background colour. were you ever able to figure this out?
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Sept 27, 2015 14:02:29 GMT -8
I wasn't, unfortunately I thought the Download Link text and the link itself would be part of the same element, or have its own class, so I could target that class with a CSS style rule. I can probably do it with JQuery, looking for links with "mediafire" in the url and basing the rule off that. I'm having a play about at the moment with something similar on my own site, so I'll keep you posted. In the meantime if anyone else wants to chime in, please do!
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Sept 27, 2015 16:20:42 GMT -8
nekobot & Azy
Are you guys talking about changing this....
Download Link: download1852.mediafire.com/7r6nqhftpwhg/gp5ch3istj6ot67/OdetteV.1CVartupdate.zip
...into a clickable button link instead of text or am I not understanding? Since Azayles is kind of working on this, I won't set aside time to work on it myself but if I know clearly what is being asked, my brain likes to churn it around for solutions, even if I'm not actively trying to figure it out. LOL, I'm weird that way.
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Sept 27, 2015 17:16:25 GMT -8
We can both work on it, it'll be fun! I love me a good head-scratcher. Also I'm not devoting as much of my time as I'd like to to the task, so the more brains we chuck at this the better, I reckon.But yes, if I comprestand correctly, nekobot wants the link portion of that text turned into a button. Normally a very easy task, but it's to target ONLY mediafire links. Hence the head-scratching
...my brain likes to churn it around for solutions, even if I'm not actively trying to figure it out. LOL, I'm weird that way.
Great minds, and all that jazz
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 27, 2015 22:19:01 GMT -8
We can both work on it, it'll be fun! I love me a good head-scratcher. Also I'm not devoting as much of my time as I'd like to to the task, so the more brains we chuck at this the better, I reckon.But yes, if I comprestand correctly, nekobot wants the link portion of that text turned into a button. Normally a very easy task, but it's to target ONLY mediafire links. Hence the head-scratching
...my brain likes to churn it around for solutions, even if I'm not actively trying to figure it out. LOL, I'm weird that way.
Great minds, and all that jazz Yep! I'd like the link turned into a button, if possible. Thank you both for helping with this! You guys are great!
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 29, 2015 11:49:50 GMT -8
bump !
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 29, 2015 14:22:18 GMT -8
Something like this in your Global Footer should do the trick..
<script type="text/javascript"> $(document).ready(function(){ var messageCells = $('.message'); $(messageCells).each(function(){ $(this).find("[href*='mediafire']").addClass('button').html('Download'); }); }); </script>
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Sept 29, 2015 14:42:12 GMT -8
Todge, you're amaze I thought it might be a jQuery function like that, 'cause that's what I use on my forum for converting social media links to icons. Come to think of it, I don't know why I didn't about that!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 29, 2015 15:38:18 GMT -8
No worries..
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 29, 2015 16:00:22 GMT -8
If I post it in my Gallery's footer will it apply only to that category?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 29, 2015 16:32:07 GMT -8
Yup, It should do.
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 29, 2015 16:36:38 GMT -8
Thank you so much!! It works great!
|
|