|Printable Version of Topic
Click here to view this topic in its original format
|Jcink.com Forums > Feedback and Discussion > Awards Utilities|
|Posted by: DustBucket Nov 7 2016, 04:01 AM|
This is a script that implements awarding members on a multi-user basis. It's 10000% garbage, but it works and that's all that matters!.. right? It's also still constrained by the limitations of the D-Awards system (ah, 2004), especially in function.. but hey, it works, and I don't have to add awards one by one, so that's pretty cool.
The Webpage Maker is perfectly set up for this - you can also save it as an offline .html file if you don't mind the feedback system being wonky (it'll constantly say 'error' even when it submits fine, and the ACP login at the top won't function correctly so you'd need to copy and paste your session ID).
Using this does involve your administrative privileges. I can't really think of any way a third party could manipulate the script into being a security risk, but if it does.. Oops?
Don't judge me too harshly for my awful coding practices :b
Toodles! Let me know if you use it, and how it goes. It works for me, but that's not exactly wide-spread functionality.
Hello again! Finished up another utility, slightly more useful than the last.
Award editing stuff whoooo.. Functionality is simple enough, and the scripting itself is messier than ever!
This utility loads an up-to-date award list into a table, with each field editable except the Award ID# and Member ID#. Award names, images, given-by('s?), descriptions, and display status are all editable by hand or via mass replacement. It's neatish.
|Posted by: kjrod98 Nov 7 2016, 09:38 AM|
|Oh, this is just perfect. Gonna have to play around with it later on my own site and do some testing. Will let you know how it goes.|
|Posted by: multiplicity! Nov 7 2016, 10:03 AM|
|Posted by: John Nov 7 2016, 10:04 AM|
|This is cool thank you for your work|
|Posted by: DustBucket Nov 9 2016, 03:13 AM|
| C: Ain't no thang.
This is kinda self-aggrandizing, so sorry, but I figured I'd do a sneak peek at my latest project (thanks for the pointer John!)
Still a bit rough, but it loads an up-to-date list of awards from the ACP and presents them in an ugly ol' table (for now), for both individual editing and for mass editing of the name, image, description, and display setting. Forgive my naming conventions: I created a whole bunch of awards with gibberish for the data while doing the awarding script.
I should also note that eventually I'm going to update both of them to limit how many concurrent requests it sends so it doesn't flood the servers/get you banned for that. Seems important, I guess :b
|Posted by: clicker Nov 9 2016, 09:37 PM|
|this is so lovely! i'm obsessed with using awards so this will be an awesome and succinct way of processing them. <3|
|Posted by: Ekko Nov 10 2016, 03:12 AM|
|So uh. I'm having the funniest issue with this. I wanted to try this code out for myself on my site, except I cannot copy-paste the code and all that jazz due to the Spoiler flag closing every time I highlight it. Lol! Is there any way we could get the non-minified code posted up without the spoiler tags?|
|Posted by: DustBucket Nov 10 2016, 12:30 PM|
|Hah! Didn't know that could happen. I removed the spoiler tags for you.|
|Posted by: DustBucket Nov 21 2016, 12:20 PM|
|Edited a new utility into the first post. Check it out! C:|
|Posted by: multiplicity! Nov 21 2016, 04:10 PM|
|Posted by: DustBucket Nov 21 2016, 06:16 PM|
Yup, sorry, just noticed that a hexidecimal code was parsed into the resulting text. John is there anything that I can do for this? The error is on line 300, which is supposed to appear as:
In the interim, I've updated the install instructions.
|Posted by: John Nov 21 2016, 06:30 PM|
|Host the code in an external file -- unfortunately I can't think of much else to do.|
|Posted by: DustBucket Nov 21 2016, 06:41 PM|
|I kinda figured, that's on the browser after all. Thanks anyways! I put up a link to the file on Google Drive, so all is (or should be) good.|
|Posted by: klin May 16 2017, 11:31 AM|
| This is actually pretty brilliant, and it's a feature I've been longing for for ages. Kudos, DustBucket!
Would you consider hosting this on a public Github repository so people can open issues if they find any bugs or have enhancement requests?
|Posted by: Dusty May 16 2017, 12:29 PM|
| Thanks! The multi-award thingy-do was actually my first foray into JQuery, so it was equal parts fun and frustrating.
Setting up a repo would be neat, but I don't know if it's really needed? Not to say that my code doesn't have bugs because OH BOY does it, but it's more of an addon than anything -- like, CFS was completely justified in having a repo because it was huge and complex, but this? :/
As an aside: Just noticed that the multi-award was still using a user-filled hostname, so that's gone at least.
|Posted by: klin May 16 2017, 12:42 PM|
Well, I make Github repositories for everything! Warranting a Github repository isn't necessarily based on size, complexity, or popularity—my personal metrics are "am I sharing this with other people?" and "should I be tracking my changes with Git commits?". (The answer to that last one should always be "yes!")
But it's based on your comfort level. Github syntax highlights your code and makes it easier for people to contribute and track issues.
I write a lot of plugins for A Certain Other Forum Software and use Github to track and present them. (:
|Posted by: John May 16 2017, 12:57 PM|
| I have github too and I will put whatever I want on there. No matter how big or small whatever I want to share, if I think it's going to be useful to someone. Some of https://github.com/jcink?tab=repositories are ridiculously small. You won't find any JFH code over there, though.
Not sure if you are looking for a career in programming or IT, but having a github with real world projects is an asset -- big or small.
|Posted by: klin May 16 2017, 01:12 PM|
It's also crucial if you ever want to put your personal projects on your resume. (: And for the love of god, keep your READMEs updated, or else you're gonna have a bad time a year later when you're starting the job search and nothing is up to date.
Also kudos for the BFS PHP repo, John. I was just thinking about how I need some kind of search algorithm for a plugin I'm working on, so you helped me out there.
|Posted by: Dusty May 16 2017, 03:45 PM|
Bossy bossy bossy :b Kidding! I've created a GitHub for them and edited the OP.
Thankfully the world will never have to bear with my programming on a larger basis - I'm a chemical engineer. They just have to deal with bad science, which is totally way less concerning, right?
|Posted by: Natalie May 16 2017, 06:55 PM|
| I might just be kind of dumb when it comes to this, but I'm not quite sure how to install it? I seem to have it set up correctly, but nothing happens when I hit the login button and I get an error when I try to add awards. Any help would be great!
|Posted by: Dusty May 16 2017, 08:32 PM|
|Nahh you're no dummy, it's probably just something small. If nothing at all happens when you hit login, you're likely missing either the JQuery library, or some small typo snuck through. Can you post a link to the page it's hosted on?|
|Posted by: Natalie May 16 2017, 08:40 PM|
|http://priorirp.jcink.net/index.php?act=Pages&pid=2! I really have zero knowledge of scripts/JQuery, so there's definitely the possibly that I'm just missing something.|
|Posted by: Dusty May 16 2017, 09:03 PM|
|Done! Thanks for catching that mistake, guess that's what happens when you upload without testing :b Grab the updated source from GitHub Natalie|
|Posted by: Natalie May 16 2017, 09:14 PM|
|Ah, thank you! Works perfectly now.|
|Posted by: CrunchDrop May 17 2017, 04:30 AM|
|GitHub can host the files by using the raw link that way you don't over load the servers. You can even fork the code and edit it. This is a really cool code you made Dusty|
|Posted by: Dusty May 17 2017, 12:50 PM|
|Thanks! I'm still learning about GitHub, it's a neat thing. I'm also debating doing an external link for the jquery in the markup so that I can keep things updated without people having to constantly redownload the thingy|