Golden Sun Hacking Community
25, November, 2020, 03:55:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The last working version of the classic TLA Editor is Teawater's unofficial "mapeditor" draft.
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: 1 [2]   Go Down
  Print  
Author Topic: Custom BBCode Commands  (Read 24398 times)
0 Members and 1 Guest are viewing this topic.
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1767

« Reply #20 on: 12, September, 2010, 02:36:51 AM »







[heightmax=# in pixels] Content [/heightmax]

The scroll bar only appears if necessary on compatible browsers so don't count on it to actually work for everyone.  In fact, Internet Explorer doesn't even support the tags necessary for it to work.
« Last Edit: 11, January, 2015, 05:12:54 PM by Atrius » Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6049

« Reply #21 on: 12, September, 2010, 04:30:21 AM »

If you still use IE, you deserve the crap you get.  Firefox/Chrome FTW!

Also, I wish they'd finish making that OP.  Ending it halfway is kinda... eh...
Logged

View Profile WWW
Daddy Poi's Oily Gorillas
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2491

« Reply #22 on: 12, September, 2010, 12:14:52 PM »

I usually use Internet Explorer. (Though, for GBATEK, I use Firefox, due to a strange error I get there somehow..)

Thanks for the bbcode.. I'll just test it right here....

Quote
Height 1




Height 1

Height 1




Height 1
Height 2




Height 2
^No horrizontal scrollbar in IE, {yet, it is in firefox, and google chrome... (checked as guest)}

Height 1




Height 1


Spoiler for test:
Height 1




Height 1

v
Height 1, just testing

^ And we can do heightmax=0 for hiding our post stuff. (Not from HTML view, however..)

Quote from: Atrius
In fact, Internet Explorer doesn't even support the tags necessary for it to work.
Hold on, the scrollbars are appearing for me...
« Last Edit: 12, September, 2010, 01:12:19 PM by charleysdrpepper » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1767

« Reply #23 on: 12, September, 2010, 01:22:49 PM »

Huh... I guess newer versions do.  Older ones definitely didn't.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6049

« Reply #24 on: 28, September, 2010, 03:48:02 PM »

Is there an Image Left and Image Right tag?  One to let images be in line with text?
Logged

View Profile WWW
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1767

« Reply #25 on: 28, September, 2010, 03:52:59 PM »

The left & right align tags for text work for images as well.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6049

« Reply #26 on: 28, September, 2010, 09:26:42 PM »

I meant to make them in-line with text.  Image Left tags cause images to show up on the left, while the text works around it.  Likewise, Image Right allows it to be in-line with text, but on the right side
Logged

View Profile WWW
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1767

« Reply #27 on: 28, September, 2010, 11:11:47 PM »


M'kay let's test these out, and see if they work then.
So this is more what you want?
[imgleft]image url[/imgleft]
[imgright]image url[/imgright]
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6049

« Reply #28 on: 29, September, 2010, 03:54:17 AM »

Yup, that's what I was going for.  Being able to put images in line with text can make things much more aesthetically appealing, especially in a lot of the types of posts I make.
Logged

View Profile WWW
Daddy Poi's Oily Gorillas
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2491

« Reply #29 on: 29, September, 2010, 11:58:49 PM »

I have, yet, another idea... Pretty much like a table, but instead, with all the cells over-lapping...


[tabbox=height][tab=Title of Tab 1]Content of Tab 1[/tab][tab=Title of Tab 2]Content of Tab 2[/tab]...[/tabbox]

(EDIT: Where height could be optional, with out it, it extends to the last line of the longest tab.)


Helpful for quick access to categories.. (For example, if you wanted to explain each section of the editor in separate tabs.)

EDIT: With Browsers that don't support this, you could probably do detection, and turn the tab titles into URLs of #tabname, to make it skip down to the appropriate section? Kinda like the CONTENTS section on Wiki.

Though, either way, the CONTENTS BBCode is more-ly recommended, if tabbing is a problem. (Since it's perfect for linking from other pages... to a specific location in a post.) (I forget, but I think it was the <a name=NAME>Content</a> and <a href=#NAME>Link Title</a> in HTML.?


As for that imgleft/right code, sounds good, I'll try it out sometime...? Though, I would have thought [alignleft]content[/alignleft] and [alignright]Content[/alignright] would have been even more useful.
« Last Edit: 30, September, 2010, 03:35:35 AM by charleysdrpepper » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1767

« Reply #30 on: 30, September, 2010, 01:42:27 AM »

There are already tags for aligning content left/right built into SMF.

[left]content[/left]
[right]content[/right]

Doing it with images, and allowing text to flow around them takes extra code attached to the img tag so they need a separate one.


Tabbing would probably take a lot more work than it's really worth.  I could definitely do something with in-page links, though there are some potential problems I need to work out first.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6049

« Reply #31 on: 30, September, 2010, 02:12:09 AM »

The first lines randomly indent themselves.  WTF.  I had to use a premptive tag to get them to not do so - apparently, they indent every line up until a tag.  May wanna find that error.  ANYWHO:

Yeah, I'm with atrius.  How the images are aligned within the post are much more different than one would think at first. Basically, here's the difference:

Standard [img] tag:

Greetings to the epic discussion thread.  What can you expect, well...
Epically awesome discussions I guess.  Heck, we even have pictures every
now and then.  I mean, look!  It's a THUNDERSTORM!
                  ___________________
                 [ X                 ]
                 [ -                 ]
                 [ B                 ]
                 [ A                 ]
                 [ W       H       P ]
                 [ K       U       I ]
                 [ S       G       C ]
                 [         E       T ]
                 [                 U ]
                 [                 R ]
Here I am talkin [                 E ] -BAM, lightning strike,
baby!  See how cool that was?  Oh yeah, babes, that looks leet.


Now, I dunno about you, but when I'm making a post and it contains in X-BAWKS HUGE PIC, I prefer it to NOT double the length of my post by forcing everything around it to be above or below it. The solution?  Organisation!  Remember, computers are idiots.  No exceptions.  Just because it makes sense doesn't mean that a computer knows how to do it.  So a SEPERATE command is needed to make this asthetically pleasing.

[imgleft] example:


 ___________________
[ X                 ] Welcome to the True Epic Discussion thread.
[ -                 ] We here at the epic discussion thread like
[ B                 ] to use a lot of pictures.  However, we
[ A                 ] believe that pictures and text should work
[ W       H       P ] together.  As you can plainly see beside
[ K       U       I ] me, Chuck Norris, Kamina, and freaking
[ S       G       C ] Leluche have joined forces in support of this
[         E       T ] thread.  That's better than a stupid picture
[                 U ] of commonplace weather phenomenon, EDT. Yeah.
[                 R ] Hell, I hear Usain Bolt's even trying to join
[                 E ] us, though he's already probably moved on
by now, when you think about it.  Man, that guy is fast.


As you can see, it's nice and neat and aligned prettily.  Of course, then you have things like:

[imgright] example:

    • Epic Listing Thread.                          ___________________
    • This Thread is comprised of ordered lists.   [ X                 ]
    • It is affiliated with the TEST, thus         [ -                 ]
    opposed to the EST.                                [ B                 ]
    • Usain Bolt was INDEED here, but he left like [ A                 ]
    three seconds later.                               [ W       H       P ]
    • Instead, bow down to the nice picture of our [ K       U       I ]
    glorious queen, Role.                              [ S       G       C ]
    • She standing triumphantly over her most      [         E       T ]
    recent victory.  Or sitting.  Or something.        [                 U ]
    It's one of those randomly changing pics she's     [                 R ]
    so fond of.                                        [                 E ]
    • Of course, we put in on the other side, because if we didn't then
    our epic list would be all fugly, and of course we just can't have
    that, now, can we?  Role'd kill us!
    • No she wouldn't.  Her motto is "Why kill, when you can
      torture?", after all.


    As you can plainly see, there is indeed a need for such things, you'll see most often that Character sheets require any pictures to be aligned to the right so as to not disrupt the rest of the character sheet.  Pics aligned to the left are great for, say, storytelling.  You're doing a clan lore post, and it's a LONG one. To make it NOT a solid brick wall of text, though, you put a nice pastel-shaded picture next to the plot-related point that the picture is of.  Aligned to the left, of course, so that it doesn't interrupt the story, but rather blends in with the story.

    [img] cannot do that.  Can NEVER do that.

    Dunno WHY we'd ever need an [imgcenter], so I really see no point to ever getting it.  I mean, really - you can work around left and right and resolution is ignored, but any fancy formatting you try to do with center has one HUGE flaw - on any width EXCEPT the one you used, it'll look like crap. So yeah, pretty much EVERY RESOLUTION BUT THE ONE YOU USED will make the post eye-gougingly disgusting.  As such, just stick with left and right inserts.  For really long stories, you may want to alternate left and right inserts, and possibly use a, oh, say Justified aligned text  Can we do that, atrius?  Or do we run into the same problems with resolution?

    * PostAttempt.txt (4.72 KB - downloaded 465 times.)
    « Last Edit: 30, September, 2010, 03:19:01 AM by Atrius, Reason: fixing BBCode » Logged

    View Profile WWW
    Daddy Poi's Oily Gorillas
    Fox McCloud, the Hacking Doctor
    Mercury Clan

    Prodigy
    *

    Coins: 1002
    Offline Offline

    I am: certainly not a Gallant!
    Clan Position: Head Gallant
    Posts: 2491

    « Reply #32 on: 30, September, 2010, 03:22:05 AM »

    Quote
    There are already tags for aligning content left/right built into SMF.

    content
    content

    Doing it with images, and allowing text to flow around them takes extra code attached to the img tag so they need a separate one.

    Oh, that's nice to know, except content doesn't "wrap" around those.. from what I'm aware of, lol. (Which was the difference from my "[alignleft], [alignright]" idea, so maybe I want a caption on my image...)

     Well, either way, imgleft, and imgright, should be useful.. :)

    Quote
    Tabbing would probably take a lot more work than it's really worth.

    Hm.. that's what I was beginning to think...

    Quote
    I could definitely do something with in-page links, though there are some potential problems I need to work out first.

    I figured in-page links would be easy enough...
    Logged

    Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
    Refer to Yoshi's Lighthouse for any M&L hacking needs...

    Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
    Maybe it is over-analyzing, but it doesn't mean the information is useless.


    The only GS Discord servers with significance are:
    Golden Sun Hacking Community
    GS Speedrunning
    /r/Golden Sun
    GS United Nations
    Temple of Kraden

    Can you believe how small the Golden Sun Community is?

    2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)
    View Profile
    Atrius
    Programmer Extraordinaire
    Web Host

    Fear my blades

    Veteran Member
    *

    Coins: 100
    Offline Offline

    Gender: Male
    Emblems: Website Founder
    Clan Position: Creation God of Sol
    Posts: 1767

    « Reply #33 on: 30, September, 2010, 07:16:02 AM »

    Ah, that's right, there is another way of doing it.  I completely forgot about it, but I could make tags similar to the [imgleft] [imgright] that would work for any type of content.  It seems a bit much for a forum setting, but if there's a demand for it I'll remove the image tags in favor of all purpose ones.

    Edit:
    Usage

    [float=side (left, or right)]content[/float]
    [border]content[/border]

      Remember! [border]
    - tags go inside of
      [float] tags.
    Exclamation
    God of All  


    Meh, what the heck, why not.


    My Avatar
    I'll even include a border tag so that you can add a border to them easily without having to go through all the trouble of doing the full code for a table.
    Unfortunately center isn't even a possible option with this method, not that there would be many uses for it anyway.

    I imagine you could do quite a bit of advanced stuff with these tags, enjoy!
    « Last Edit: 30, September, 2010, 07:24:07 AM by Atrius » Logged

    I'm shaking my head in general disapproval of everything
    View Profile WWW
    Rolina
    The Fulminous Witch
    Jupiter Clan

    Template maker turned lurker

    Alchemist
    *

    Coins: 3
    Offline Offline

    Gender: Female
    I am: wondering if we can get our clan position changed...
    Clan Position: Grand Overlady of Jupiter
    Posts: 6049

    « Reply #34 on: 30, September, 2010, 03:40:14 PM »

    Oh, nice.  Do the imageleft/right tags still work, or will we have to go update old posts?
    Logged

    View Profile WWW
    Pages: 1 [2]   Go Up
      Print  
     
    Jump to:  

    Chatbox
    15, November, 2020, 03:45:26 PM
    Salanewt: We're more alive than the board implies; most discussion takes place over on the Discord server.
    15, November, 2020, 03:45:06 PM
    Salanewt: Haha, heya!
    15, November, 2020, 02:07:50 PM
    Frog: Nice to see this place is still alive...ish anyway xD
    30, October, 2020, 11:10:23 PM
    Salanewt: ... Actually, it's almost time for me to post an update on the forum. It's been coming along really nicely overall, and it was only a couple months or so ago that I added some new status effects to the game.
    30, October, 2020, 11:08:41 PM
    Salanewt: I need to get it done to start making progress on the parts of the AI Overhaul I want to start working on.
    30, October, 2020, 11:08:14 PM
    Salanewt: It's going well! I wanted to get more of my djinn reform done this week but I've been busy with other things sadly.
    30, October, 2020, 09:58:14 PM
    KyleRunner: Hi guys! How are you doing?
    13, October, 2020, 11:19:21 AM
    MaxiPower: first chapter of my golden sun inspired webtoon is now live. be cool if yas could check it out. https://www.webtoons.com/en/challenge/legacy-of-the-lost-dragoon/the-northern-reaches/viewer?title_no=508487&episode_no=6
    31, August, 2020, 08:40:32 AM
    Daddy Poi's Oily Gorillas: Being able to convert IPS files to text files to also supporting commenting, and convert back to IPS after changes.... sounds like a fun strategy? 
    27, August, 2020, 10:37:30 PM
    Salanewt: Hey, thanks! 
    25, August, 2020, 12:59:22 AM
    Foreclosure: Yo! Looking forward for this AI OVerhaul patch when it's finished :) :) 
    19, August, 2020, 07:00:17 PM
    Salanewt: That's awesome! I'm pretty good; been working on an AI Overhaul project and have made some nice progress in the past couple weeks; the goal for tonight is to add Deadbeard to GS2 and then I can move onto something new.
    19, August, 2020, 01:14:56 PM
    Awec: Ye not bad, just checked back in for updates on GS Reloaded really. Although now I'm looking back through some of my old forum posts, which is fun :D how are you?
    19, August, 2020, 01:43:07 AM
    Salanewt: It sure is! How have you been?
    16, August, 2020, 09:40:57 AM
    Awec: Yo nice to see this forum is still going
    14, August, 2020, 09:06:44 PM
    Salanewt: Hey! How goes it?
    01, August, 2020, 01:31:53 PM
    KyleRunner: Hello, people!
    08, July, 2020, 08:57:11 PM
    Salanewt: That awkward feeling when almost a quarter of a year goes by without anyone posting a message in this chatbox.
    27, April, 2020, 07:54:10 PM
    Daddy Poi's Oily Gorillas: I'm having a thought. So I know Atrius's editor is slow at saving sprites.... So I've been thinking.   I am considering another console program.  This time, for importing and exporting sprites/animations. Image files (for sprites), binary files (for animation data), and maybe binary or text files for Settings. Would certainly be cool if it works out. - Console programs are fun, when you can (at least temporarily) cheat out making a full interface editor for them. =P
    25, April, 2020, 10:42:07 PM
    Daddy Poi's Oily Gorillas: Tried to list those in order of importance, but anyway....
    25, April, 2020, 10:37:59 PM
    Daddy Poi's Oily Gorillas: GSHC, GS Speedrunning, /r/Golden Sun, GS United Nations, ToK.  Sixth one is border-line I'm not sure.
    25, April, 2020, 08:00:21 PM
    Daddy Poi's Oily Gorillas: (low as in <100)
    25, April, 2020, 08:00:04 PM
    Daddy Poi's Oily Gorillas: So while there are quite a few GS Communities out there. There are only up to maybe ~6 Discords worth even the consideration of joining, I think. Most of the rest of them have a fairly low member count. (Of which I can tell?)
    14, April, 2020, 10:49:35 AM
    Daddy Poi's Oily Gorillas: The Essential Age could be what it stands for?
    13, April, 2020, 05:23:32 PM
    Misery: Tea editor... that's a cute name for it
    01, April, 2020, 02:42:48 AM
    JupiterDjinn: Also my browser is sending two o f my messages srry.
    01, April, 2020, 02:42:06 AM
    JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
    31, March, 2020, 07:18:29 PM
    Salanewt: Sure thing!
    31, March, 2020, 03:38:27 PM
    JupiterDjinn: Can I have a question answered?
    28, March, 2020, 12:50:13 AM
    Salanewt: I want to shrink it down in size later, but yup!

    Affiliates
    Temple of Kraden Golden Sunrise
    Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
    Page created in 0.093 seconds with 23 queries.