|
Post by Chiz on Jul 6, 2013 0:44:11 GMT -5
Terraformer v2.x I've realized that since Terraformer 2 is much like its predecessor, it ought to have a discussion thread for it, as well as a sort of "help file" and "changelog" so everyone understands what's going on with it. The JS and CSS files changes filename every version, as they're hosted by Proboards, so unfortunately I cannot provide a link to the script so people can see it. Enterprising people should be able to find the JS and CSS file linked to the page fairly easily though. (URL is something like sNUMBER.prbrds.com/LONGERNUMBER/j/GARBAGE.js or /c/GARBAGE.css) What I CAN link to is the Terraformer 2 Settings page where you can enable or disable portions of the script to tailor your experience as you wish. This link is ALSO in your profile for easy access.
Version History Current Version: v2.3.0- v2.4.0 (in progress)
FIX: AMP - all - spaces, percentages, zeroes, commas added to whitelist FIX: AMP - all - erroneous spaces and capitalization fixed ADD: AMP - background-attachment - multiple images ADD: AMP - background-color - hex, rgb, rgba, hsl, hsla modes ADD: AMP - background-image - multiple images ADD: AMP - background-position - multiple values and images ADD: AMP - background-repeat - multiple values and images FIX: AMP - full-height - stretching post less FIX: AMP - full-height - works on Chrome [li]v2.3.0 (2013-06-22) ADD: Opt-In - v2.2.1, v2.2.2, v2.2.3 (2013-06-15)
FIX: PB bulleted list visual flaw FIX: Skin colour assumptions in AdvMiniPro - v2.2.0 (2013-06-01)
ADD: AdvMiniPro - v2.1.1 (2013-05-18)
FIX: Emotikobun selector (preparation for additional emotikobun) RMV: Debug code - v2.1.0 (unreleased)
FIX: Allow external JSON path for Forum Badges - v2.0.0 (unreleased)
ADD: Forum Badges
AdvMiniPro Code All code goes in the 'Advanced Mini-Profiles' text box in Profiles > Edit Profiles > Personal tab. Remember that you will not see your AdvMiniPro, and you will not see anyone else's, if the feature is disabled in the TF2 Settings (see link above). Unlike TF1's Advanced Signatures, Advanced Mini-Profiles is meant to be as CSS-like as possible, since there isn't a tight character budget. However, for sanity reasons, some valid CSS values can't be directly accepted, so in those cases, there is a 2nd argument used in conjunction with the first. For instance, the CSS background-image:url('http://www.example.org/file.png'); is disallowed because of brackets and apostrophes, which could potentially be used in an exploit. An alternative is provided in the form of background-image:h:www.example.org/file.png;. Also remember that, being CSS-like, each setting requires a semi-colon at the end. Failing to do so will cause the code to break. Function | Version Added | Main Code: | Argument1 | :Argument2 | Background Attachment | v2.2.0 | background-attachment: | scroll fixed local | | Background Colour | v2.2.0 | background-color: | (any named colour) transparent inherit {hex codes, like #123456, are currently broken} | | v2.4.0 | hex | :#123 :#112233 | rgb | :0-255,0-255,0-255 :0%-100%;0%-100%;0%-100% | rgba | :0-255,0-255,0-255,0.0-1.0 :0%-100%,0%-100%,0%-100%,0.0-1.0 | hsl | :0%-100%;0%-100%;0%-100% | hsla | :0%-100%,0%-100%,0%-100%,0.0-1.0 | Background Image | v2.2.0 | background-image: | h {replaces http://} | :www.example.com/image.png | v2.4.0 | hs {replaces https://} | For additional images behind the first, continue to add additional arg1:arg2 pairs. For instance, background-image:h:www.example.com/file1.png:h:www.example.com/file2.png:h:www.example.com/file3.png;
| Background Position | v2.2.0 | background-position: | top bottom left right center (any number)px (any number)em {percentages and multiple values are currently broken} | | Background Repeat | v2.2.0 | background-repeat: | no-repeat repeat-x repeat-y repeat round space {multiple values are currently broken} | | Full Height {Makes the mini-profile vertically extend the entire post height} | v2.2.0 | full-height: | true false | |
|
|
Fatman X. Jones
Cannam
The Definitive Fedora
Banished To Fort Asshole
Posts: 386
|
Post by Fatman X. Jones on Jul 7, 2013 8:37:39 GMT -5
I'm bashing my head against the wall trying to figure this system out. All I want is a very simple effect: purple background and an image locked at the bottom of my AdvMiniPro. The shade of purple I'm trying to use is R:92, G:53, B:102, easier known by the hex code #5c3566 (but I already know Terraformer's not hex-friendly yet). The image I'm trying is this: What code should I be using to overlay that image on that shade of purple and lock the image at the bottom of my AdvMiniPro? (I'm not going to be using Full-Height, mind you, that would just make it tacky.)
|
|
Fatman X. Jones
Cannam
The Definitive Fedora
Banished To Fort Asshole
Posts: 386
|
Post by Fatman X. Jones on Jul 7, 2013 21:25:27 GMT -5
You're a credit to this forum, Truner. Thanks. Edit: The fuck is wrong with you, man? For some reason that turned my background REALLY NSFW. I don't know if you did that on purpose, but I'm not laughing. The code for it fucked up somehow. Let's just say the image I saw due to the fuckup is something I REALLY didn't plan on. Trying something different. Final Edit: Used a different URL for it to avoid the problem. This system's complicated; it doesn't like image sources like Dropbox or Majhost, being so strict in URL-linking that it only links to images in the root level of the link (w.x.y/root, where root is the root level). I'm not sure I'm fond of that, but I can understand it from a security side.
|
|
RyanLEO
Poh
At the Stripe Burger!
Posts: 415
|
Post by RyanLEO on Jul 8, 2013 16:10:26 GMT -5
background-image:h:imageshack.us/a/img856/1289/0p.png;
this is the one I'm trying to use, I used the same dimensions as truner since I assume that's what they are to fit right. I can't get it to work like his though. Any tips truner?
|
|
|
Post by Chiz on Jul 8, 2013 16:49:22 GMT -5
Yeah, the URL input is unnecessarily fussy for some reason. It SHOULD accept longer URLs - there's nothing preventing it from doing so - and the only things common to URLs that are stripped are percentages and spaces, both of which will be available in v2.4.0
EDIT: I found the bug for yours, MuZ. I'm accidentally stripping out the number 0 too. My regex is 1-9 not 0-9. Sorry, I'll fix it next version.
EDIT 2: Seems to be the glitch Truner fell into, too. With zeros, his link is fine; removing the 2 zeroes leads to some pretty explicit Street Fighter H.
|
|
|
Post by Dashe on Jul 8, 2013 19:06:27 GMT -5
So imgur has dynamic URLS, then?
|
|
RyanLEO
Poh
At the Stripe Burger!
Posts: 415
|
Post by RyanLEO on Jul 8, 2013 19:38:13 GMT -5
Yes, it's a problem with the link. Try this: background-image:h:i.imgur.com/CayWdX3.png; Though I have a feeling you will have to resize the picture for it to actually fit. Make a few extra rows of the water to make sure it will fit. It works! Thank you good sir
|
|
RyanLEO
Poh
At the Stripe Burger!
Posts: 415
|
Post by RyanLEO on Jul 8, 2013 19:58:39 GMT -5
No I added some more water after I saw the extra space, but the new imageshack link still worked
|
|
|
Post by Chiz on Jul 9, 2013 5:52:23 GMT -5
So imgur has dynamic URLS, then? Imgur used to have fairly random 5-character alphanumeric image IDs. They used a 6th letter for thumbnailing and sizing options (12345.png might be the original picture, 12345s would be the small version, 12345t the small thumbnail, etc.) They ran out of 5-character IDs, and of course the 6-character IDs were used by 5-character sizing options, so they jumped to fairly random 7-character IDs. Of course, this means, for any given 7-character ID, if you remove any 2 characters, there's a good chance you'll get a completely different, and much older, 5-character ID image. These IDs never change, and you're suppose to always use the whole ID to get your image. Unfortunately, v2.3.0 accidentally throws away the number '0' when it comes across it. I intended for all numbers to be okay to use, but I only put '1-9' as allowed, not '0-9', so '0' isn't allowed right now according to the script. This has been fixed for 2.4.0, but it's still a little ways off and there's enough regressions in the code that it's not a good idea to push the update right now. So what occurred is that Truner's upload was assigned a random 7-character ID. It wasn't his fault at all that it happened to contain 2 '0' characters, the specific character that is incorrectly filtered out in the current script, and that removing the 2 '0's creates a valid, older 5-character ID that links to a highly explicit image. Even if he knew of the flaw - which even I didn't fully catch until this occurred - with imgur's randomized ID system, it would've been very VERY unlikely he would be able to produce the necessary double-zero ID on a new image to exploit this WITH a nasty 5-character ID behind it. Really, it's the equivalent of being struck by lightning on the way to redeem your winning lottery ticket. Also, I agree with @truner, that is a very classy background. Reminds me of those eBook bookshelf apps. Is it mahogany? RyanLEO - That really turned out well. The sprite look has very good results.
|
|
|
Post by Dashe on Jul 9, 2013 11:52:45 GMT -5
I think? It's just a hardwood floor HD texture that happens to look really classy.
|
|
|
Post by Chiz on Dec 18, 2013 21:53:56 GMT -5
I've updated the script to a WIP version of 2.5.0 with the unfinished features locked out, which I'm calling 2.4.9. The benefit from this is that there were a number of bugfixes in the awards and AMP code that had been fixed, but not included with the last 'good' version.
There should be no major breaking bugs, and there will definitely be no impact if you have those features disabled in your profile.
EDIT: I do apologize for it taking 6 months to actually release this update.
|
|
ZEROrevive
Gorubeshu
"Needs more 0's..."
Posts: 257
Advanced Mini-Profiles: background-image:h:i.imgur.com/xf4JoP5.png;
background-position:center bottom;
|
Post by ZEROrevive on Dec 18, 2013 21:56:49 GMT -5
Good to see some updates on this...I'm guessing everything was disabled at some point recently? I only realized today that I could manually switch it back on.
|
|
|
Post by Chiz on Dec 18, 2013 22:28:57 GMT -5
If, for whatever reason, the cookies set by TF2 aren't available, it will revert to "default" settings for each component. The default for AMP is off (ie, it's strictly opt-in), whereas the default for the badges is on (ie, it's opt-out). Changing browsers, computers, using a privacy mode, or altering your browser's cookies will all result in these options reverting.
|
|
|
Post by Dashe on Dec 18, 2013 22:34:25 GMT -5
Weird, I've got both features on at the moment in the settings tab, but neither function is showing up in my browser, which includes the badges, which should be set to on by default.
EDIT: And now it's working again. Huh.
|
|
ZEROrevive
Gorubeshu
"Needs more 0's..."
Posts: 257
Advanced Mini-Profiles: background-image:h:i.imgur.com/xf4JoP5.png;
background-position:center bottom;
|
Post by ZEROrevive on Dec 18, 2013 23:33:45 GMT -5
Ah, must've been when I cleared out my cookies to fix a site bug elsewhere. Makes sense then, I'll remember that for next time.
|
|