Personal Photo

No Photo

Custom Title
oh no what am i doing
Personal Info
Location: NE USA
Born: 1 January 1994
Website: No Information
No Information
Other Information
Test: No Information
Joined: 06/23/2014
Status: (Offline)
Last Seen: Yesterday at 10:36 am
Local Time: Jul 26 2017, 11:42 AM
454 posts (0.4 per day)
( 0.21% of total forum posts )
Contact Information
AIM No Information
Yahoo No Information
GTalk No Information
MSN No Information
SKYPE No Information
Unread Message Message: Click here
Unread Message Email: Private
View Signature



My Content
Jul 16 2017, 03:16 AM
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

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

Example courtesy of Delphi
Download (GitHub)

JS image to div conversion
Replaces award images with divs for use with spritesheets
Can also be used to target member-list group icons, etc
Saves load time on sites that have high award usage
Image's src becomes its classname, title is retained
// Image to DIV awards,
var imgs = document.querySelectorAll('.pbaward img');
for (var i = 0; i < imgs.length; i++) {
 var isrc = imgs[i].getAttribute('src'),
   ititle = imgs[i].getAttribute('title'),
   nu = document.createElement('div');
   nu.className = isrc
   nu.setAttribute('title', ititle)
   imgs[i].parentNode.replaceChild(nu, imgs[i]);

Jul 4 2017, 06:17 PM
Hi there,

Think it's possible to crank up the allowable options for the member list display? Unfortunately it's not possible to provide an out-of-bounds number in the form to display any more than 50, but if it were possible it'd make some scripting much easier.
May 15 2017, 03:58 PM

Post Drafting:

This script appends post drafting options to the posting form for new topics and new posts (no polls yet, because I forgot they exit until literally just now), and can save, load, and organize drafts from the UCP notepad - topic drafts will show up when you're creating a new topic, and post drafts will show up when you're creating a new post. It does not yet feature auto-saving, so it's probably more a novelty than not, buuuut that can come in the future if it's needed.

The only usage concern is that, in order to have full topic draft functionality (inserting title/description as well as the body), you'll need to disable the file attachment system.

As for the notepad itself, it should preserve any non-draft content, so you needn't worry about purging member notepads. Lemme know if you have any trouble!

JQuery drafting (GitHub)
May 11 2017, 03:30 AM
Hi there,

Was putting the final touches to a post saving script, and I've discovered I absolutely cannot for the life of me interact with the topic title or topic description input fields. Debugging console is showing a plain 'operation is insecure' no matter what I try - whether it be a val statement or a remove. I can't even set CSS styles on it. What gives?
May 1 2017, 04:44 PM
Hey there,

Recently I've been working with miniprofiles, and I noticed that every post has the admin/multi-mod checkbox in the corner. This checkbox has an onClick to the select_post function - but more importantly, has a unique post identifier in it. Out of curiousity, why can we not use whatever system is plopping that number down to more specifically select the posts for styles and targeting?
Last Visitors

Jul 23 2017, 08:05 PM

Jul 22 2017, 11:23 PM

Jul 19 2017, 02:41 AM

No comments posted.
Add Comment