Skip to main content
Topic: I finally did it: CSS3 standards-compliant bouncing parrots BBC! (Read 731 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

I finally did it: CSS3 standards-compliant bouncing parrots BBC!

So far it's just for SMF 2.0, being my first experiment with hooks. I assume porting it to Elk 1.1. will be a piece of cake, but won't get around to it today.

 emanuele hopes Antechinus will make the bouncing parrots BBCode configurable (i.e. speed, bouncing rate, width, height, etc.) so that he can put a bunch in his signature bouncing all over the places! :D

ETA:
 emanuele should stop using the /me bbcode because he is starting using it in RL too! :o
Re configurable: at the moment it has a CSS file, so you will be able to edit that to mess with the transitions, etc. If anyone wants to make a super configurable version with $1, etc all over the place, they can go for it. Personally I think that might be a bit much. :D
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #1
Ay up! So I made an Elk add-on. Got it to install without errors, after only blowing up my test site once. Pretty good for a first go at it. ;D

It's meant to just make a new tag, with no editor button (for the sake of sanity). Only catch is that although it installs without errors, it doesn't make anything bounce. It just gives this in the error log:

Code: [Select]
    antechinus
    Today at 06:42:53 PM
    127.0.0.1

    QGMwxJnemBDUpgOOFKcAMohjh6mDlscP
    Type of error: Undefined
    Notice: Undefined offset: 1

    http://127.0.0.1/Elk_11x/index.php?topic=1.new

    File: B:/VertrigoServ/www/Elk_11x/sources/subs/BBC/Codes.php
    Line: 995

Not sure where I went wrong. Yes, the tag is enabled in Admin > BBC, so it's not the obvious. Can someone take a look at the package when they get a chance?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #2
:D
Bugs creator.
Features destroyer.
Template killer.

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #3
Ahem. 'Tis all very well people giving likes and smileys, but it doesn't work yet, and I would appreciate any tips on what is wrong with the code.
Obviously the CSS works, but something (probably minor) is borked with the sources and/or XML stuffz.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #4
Weeell, actually I didn't read the entire message... recently it happens quite frequently.

hmm... index 1 should be \BBC\Codes::ATTR_TAG that is used in your code.
Could it be you have some other bbcode around?
Will give it a go over the weekend.
Bugs creator.
Features destroyer.
Template killer.

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #5
Bonzer. It's bound to be something simple, and once it's sorted havoc can be unleashed. :)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #6
Only thing I saw (on 1.1 at least) was it was not loading the CSS file ... reverse logic in the stupid_css function.   I fixed that (removed the !) and then  allowed the admin to turn off the code if needed.
Be safe, Be kind, Happy Programing

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #7
Shortly the world will rue your very name, Spuds..  :-X
(You DO know that's how Unix got started, right? Couple guys just messing around, it escaped the lab, and the rest is history..)
__________________________________________________________________________
// Deep inside every dilemma lies a solution that involves explosives //

Re: I finally did it: CSS3 standards-compliant bouncing parrots BBC!

Reply #8
@Spuds: Cool. Will load it up on a test site and mess with it. Thanks.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P