Pages: (2) 1 2  ( Go to first unread post ) Add ReplyNew TopicNew Poll

 Odds and Ends Scripts, taking requests since I need sO mUcH practice
#
Hi there. Didn't like the idea of starting separate new threads, so I'm just going to start dumping all of my itty bitty scripts in here as they're created.


Mobile-friendly quote/code highlight and copy
CSS transitions friendly
Fixes redundant #QUOTE/#CODE IDs
user posted image
Download (GitHub)


JQuery recent topics filter/non-index cache
Filters and excludes topics by forum ID
Tooltip compatible, tooltip hover contains timestamp
Stock, parses into <li> elements
Updates on index page visit
user posted image
Example courtesy of Delphi
Download (GitHub)


JQuery shout-box adaptation
Expanded styling (user specific, etc)
Filtered doHTML/JC Ink BB code (prevents script execution/etc)
Audio notifications
Auto-refresh and manual refresh
Not iframe based
Uses Font Awesome by default, but you do you
user posted image
Download (GitHub)


This post has been edited by Dusty: Nov 27 2017, 03:03 AM
PM
#
Easy to install, exactly what I needed, and although a little lippy the developer is a pretty awesome dude http://files.b1.jcink.com/html/emoticons/tongue.gif (He also doesn't mind when you ask him a gazillion unrelated questions) .

++++ Awesome.

signature
user posted image
Brent Weeks AU // Modern Fantasy
#
These are really neat Dusty, I'll have to crack into some of these and play with them on my sites.

RE: Requests, if you're still taking them then it would be awesome (though I have no idea if it's possible) to do something about making the shoutbox a little more modern, particularly if there was some sort of sound indication if a new message was made?

Might not be possible, but I figured I'd try my luck. At any rate, thanks for the awesome scripts you've made already!

signature
user posted image
#
Thanks Owl, and Delphi (though, y'know, maybe slightly less for that lippy comment http://files.b1.jcink.com/html/emoticons/tongue.gif)

I took a minute to explore the shoutbox settings page, and that actually seems entirely doable. I don't see why not, at least - there's enough to make a suitable c-box replacement, even. The username wouldn't be adjustable like they are with c-boxes, but anything else.. shooould? be doable.

Out of curiousity, what sort of modernization were you thinking about? Notification sounds should be simple enough.

This post has been edited by Dusty: Jul 17 2017, 03:14 AM
PM
#
Oh, that recent topics code and the quote/code code are perfect.

If you're able to get notification noises for the cbox to work too, it'd be really nice to use the standard jcink cbox as an OOC chatbox instead of having to rely on cbox/ishoutbox/others. (Right now I've been using jcink's one as an in-character one, but it's so tedious to have to rely on a separate one)

Actually, that gives me an idea. Would it be possible to add a dropdown to the jcink cbox post form, that would have two options, one for IC and another for OOC (OOC being default, of course)? Depending on what is selected, that option specified could add a class/id to that particular comment, and then the frame could be switched into tabs to only show comments with that particular class/id. Theoretically it would mimic having a separate cbox for each/separate channels of a sort.

No clue how feasible the above would be, I haven't looked at the cbox code in... years, at this point lol. I've also been up and without coffee, so if that makes zero sense at all let me know.
PM
#
QUOTE (Dusty @ Jul 17 2017, 03:09 AM)
Thanks Owl, and Delphi (though, y'know, maybe slightly less for that lippy comment http://files.b1.jcink.com/html/emoticons/tongue.gif)

I took a minute to explore the shoutbox settings page, and that actually seems entirely doable. I don't see why not, at least - there's enough to make a suitable c-box replacement, even. The username wouldn't be adjustable like they are with c-boxes, but anything else.. shooould? be doable.

Out of curiousity, what sort of modernization were you thinking about? Notification sounds should be simple enough.


I know some people have requested, in the past, that the avatar show up along side the messages but I don't think that's a make or break situation - any other modernization outside of a sound notification is mostly to do with style, and I think most of that could be handled with CSS (that being said if it's possible to inject some extra classes in there, that would be fantastic).

RE: Usernames, would it be possible to have a setting that:

1. Always used the name of the parent account, no matter what account was posting, or
2. Used a custom profile field to pull a preferred name?

I think it'd be a really useful script with or without any username customization, though - it's as simple as posting.

One thing that would be neat (if possible) would be the ability to delete your own posts with the variable shoutbox the way you can on /index.php?act=Shoutbox (which would hopefully eliminate some issues with posting with the wrong username) but that's all extra.

Thanks for considering this, by the way!

signature
user posted image
#
Personally, if you're doing requests, i'd love some sort of tweak if possible to allow keys from the miniprofile to be used in the post rows section for custom html templates! not sure if it's possible though, haha.

Alternately, some sort of script that appends a sort of 'dice roll' to the posts that isn't editable members and can be set to spit out a line of text for random events, like "You found 20 coins!" "A slime has appeared."

Neither are vital or pressing, but both would be useful, i think!
PM
#
owl
user posted image

whew lads. I'll upload this tomorrow or sometime when I'm not a zombie

kjrod98 that would certainly be possible, but you're killing me homie.

just kidding it wouldn't be too difficult at all. Maybe not right this second though!

Rosalieart Iii don't know that the random events would be possible (or at least, not in an un-editable fashion) actually. The only thing I can think of is removing the edit button (circumventable by editing the URL) or using the alert system to preserve a copy of the original roll in an admin's inbox, but I'm on my phone so I can't even check if that's an (ab)usable feature in the alert settings.

The miniprofile elements moved to the post would be totally doable, I'm just not sure why you would want to?

This post has been edited by Dusty: Aug 5 2017, 05:16 AM
PM
#
re: miniprofile elements -- I have a custom post template that includes a top info bar section where I'd like to put, for example, the member's post count or some other miniprofile variables pertaining to the player and leave the miniprofile for IC information essentially. Plugging the keys in directly didn't make them display, probably because they're meant to be in the miniprofile one and not the post row template itself /shrugs either way, not a big issue haha.
PM
#
Wheee, JQ Shoutbox is up. Should work for y'all, but I dunno.

As far as miniprofile elements, that's a fairly specific implementation, but you could do something general by writing a string with the miniprofile variables in it, and parsing it to distribute with .addClass()
PM
#
    RE: miniprofile elements

    I accomplish this by using CSS and HTML so it loads with the page, not after. Namely because it doesn't have a loading issue when I use the CSS/HTML method.
PM
#
Gonna have a go at testing the shoutbox code. It looks really nice!

<3
PM
#
Dusty, I would just like to love on you a little and say thank you, thank you, thank you for these. I've been looking EVERYWHERE for the quote/code things. You Rock!
PM
#
These scripts are so amazing!

So I tried out the Recent Topics filter and while it did indeed filter out the forums I didn't want showing on it (advertising forum most especially, so my Recent Topics clip wasn't full of link-backs) it seems to have done too well of a job. Now my Recent Topics isn't showing anything. When a post is made, it will pop up on the Recent Topics for a couple hours and then vanish. Not sure what's causing this?

The url of the site is: https://tortall.jcink.net

signature
user posted image
PM
#
I can't find your recent topics location, but I did just catch a dumb bug regarding the selector. Might fix it for you.

In other news, updated the JQ Shoutbox to enable channels:
user posted image

Should work, no promises.
PM
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Share this topic:
« Next Oldest | Feedback and Discussion | Next Newest »

OptionsPages: (2) 1 2  Add ReplyNew TopicNew Poll