Golden Sun Hacking Community
January 21, 2018, 12:28:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: 1 2 [3]   Go Down
  Print  
Author Topic: Custom BBCode Commands  (Read 13845 times)
0 Members and 1 Guest are viewing this topic.
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 1
Offline Offline

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

« Reply #30 on: September 30, 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: 10
Offline Offline

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

« Reply #31 on: September 30, 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 197 times.)
    « Last Edit: September 30, 2010, 03:19:01 AM by Atrius, Reason: fixing BBCode » Logged

    View Profile WWW
    Fox
    Fox McCloud, the Hacking Doctor
    Mercury Clan

    Prodigy
    *

    Coins: 28
    Offline Offline

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

    « Reply #32 on: September 30, 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...

    Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

    May the force be with you!
    Shoo! Why does it smell in here?
    Maybe that's the wrong kind of force. *smirk*
    View Profile
    Atrius
    Programmer Extraordinaire
    Web Host

    Fear my blades

    Veteran Member
    *

    Coins: 1
    Offline Offline

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

    « Reply #33 on: September 30, 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: September 30, 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: 10
    Offline Offline

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

    « Reply #34 on: September 30, 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 [3]   Go Up
      Print  
     
    Jump to:  

    Cbox
    January 17, 2018, 04:07:51 PM
    KyleRunner: :D
    January 16, 2018, 08:44:56 PM
    Fox: I must say... life can be complicated..... when you have question(s) (via email) ... and it seems like they sort of get ignored. :D ; Fun, (And sometimes, a person may respond, and completely not answer the question.... so like... 3-person conversation.) Hahahaha!!
    January 15, 2018, 07:26:16 PM
    Fox: (path) 1 text=(address) char=(address) free=(address) ; << Well, closer to this... but yeah... even if I do choose to have defaults in the code, I could still use this method for overrides.
    January 15, 2018, 07:24:28 PM
    Fox: So like (path) 0 text=(address) char=(address) len=(number) ; (path) 1 free=(address) ; Or something. But that's just a quick example.
    January 15, 2018, 06:59:14 PM
    Fox: Hopefully. I was wanting to make it so you could put in the addresses/etc. as one of the arguments in the path. Hm?
    January 15, 2018, 03:37:07 PM
    KyleRunner: Nice! I hope you'll add compatibility with others games (GS1, Mario Golf and Tennis) soon.
    January 14, 2018, 11:40:09 PM
    Fox: Okay. Posted (in Downloads section) an initial cutdown version for now, for my text compressor. Basically to separate the code from my Editor for anyone who wants to mess with it. It only supports GS2, because I still didn't add the addresses/etc. for the other games.
    January 14, 2018, 05:01:00 PM
    Fox: Okay! Going to need to think how I want it to work. Initial thoughts is maybe have a number of arguments in the filepath thing. And have a number of shortcuts (files) to be used as examples. Assuming there are no problems.
    January 14, 2018, 10:38:24 AM
    KyleRunner: Well... I'm used to editing text ina a text editor, so... yes! Thanks in advance!
    January 13, 2018, 11:38:43 PM
    Fox: (Text editor = Text Document like notepad.)
    January 13, 2018, 11:38:21 PM
    Fox: Would you prefer during the text editing in a text editor? (Like what gstoolkit lets you do?) I could probably make a separate tool or something to compress it.
    January 13, 2018, 10:10:02 PM
    KyleRunner: Ok. Once I finish my Lost Age translation, I'll try a Mario Golf one. Thanks. (But I'll need help).
    January 13, 2018, 10:03:17 PM
    Fox: If you want to make it "permanent" (part of a hack), then you'd edit code in the ROM that writes to this location of the IDs you'd want to change. (You can find these locations by using a breakpoint debugger like SDL-H or no$gba.)
    January 13, 2018, 10:00:11 PM
    Fox: Reload/switch = Recommended to be done through Debug mode/warp menu, ofcourse... since doors seem to appear as if they were disabled? ; 03001238:01 and B+Start to get to warp menu.
    January 13, 2018, 09:55:39 PM
    Fox: @Kyle Runner = It might be, but you'd have to use the correct addresses for Mario Golf, rather than for GS2 as I have it right now. ; @raijinken = Yes. 02000454 = ID of leader. (Change this and reload/switch room you are in, enjoy.)
    January 13, 2018, 02:23:29 PM
    raijinken: Hey guys, is it possible to somehow change the lead character on the map? Was wondering. I remember there was a cheat to use Jenna, but what if I wanted Isaac, or Piers?
    January 13, 2018, 02:10:03 PM
    KyleRunner: Hey, Fox *
    January 13, 2018, 02:09:37 PM
    KyleRunner: Hey, is your text editor compatible with Mario Golf (GBA)?
    January 11, 2018, 08:33:13 PM
    Fox: But if it isn't an oversight, I still can't imagine it being that useful.
    January 11, 2018, 08:28:24 PM
    Fox: part, ofcourse.

    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.074 seconds with 23 queries.