Golden Sun Hacking Community
January 25, 2020, 06:32:29 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]   Go Down
  Print  
Author Topic: Custom BBCode Commands  (Read 20988 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: September 12, 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: January 11, 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: 6051

« Reply #21 on: September 12, 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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 995
Offline Offline

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

« Reply #22 on: September 12, 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: September 12, 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.
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: September 12, 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: 6051

« Reply #24 on: September 28, 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: September 28, 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: 6051

« Reply #26 on: September 28, 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: September 28, 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: 6051

« Reply #28 on: September 29, 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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 995
Offline Offline

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

« Reply #29 on: September 29, 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: September 30, 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.
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: 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: 3
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 378 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: 995
    Offline Offline

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

    « 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...

    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.
    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: 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: 3
    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]   Go Up
      Print  
     
    Jump to:  

    Cbox
    December 24, 2019, 09:33:09 PM
    Fox: Even just plain Editor work can make some difference. = At least these forums are indexed on the Search engine. I was also curious about whether to um... go through all the topics on these forums and take all the important stuff out/placed into a folder for a bit of organization. Would be a bonus since if something ever happened to this forum, or if we ever wanted to start afresh again, it wouldn't be that difficult to do so.
    December 24, 2019, 09:23:03 PM
    Fox: One thing is for sure. This place has become completely dead. (Mostly because of Discord.)  = I don't think much will happen with this forum unless I, Salanewt, or someone else does a thing.
    December 24, 2019, 09:18:05 PM
    Fox: Probably not?
    December 24, 2019, 06:51:08 PM
    Luna_blade: I suppose this is the last Christmas of this forum? 
    December 24, 2019, 06:50:51 PM
    Luna_blade: Yay thanks for the coins
    December 19, 2019, 04:39:45 AM
    Fox: Okay, another thought... "gsmagic" could be the code name/project name... and "Golden Sun Magic" could be the more formal official name... (As in using both names.)  -  I still need to look into these other games as well... so who knows if it could be better to call it Camelot Magic if those should ever be supported to a decent standard.  Would probably be a long time from now, though. As I can be pretty lazy.
    December 18, 2019, 10:01:39 PM
    Foreclosure: gsmagic is fine
    December 17, 2019, 05:44:32 PM
    Fox: Also. I call my program "gsmagic" and not "GSMagic" =P (Not asking for correction/I being silly)... Had to call it something, so picked something short.  Maybe I should rename it to Golden Sun Magic later. *shrug*
    December 17, 2019, 05:35:04 PM
    Fox: (And "Golden Sun" instead of "GS" to reduce confusion that would likely not be there anyway... when "Golden Sun" doesn't take up much space to start with. (Imagine being new and thinking GS meant GameShark, or some other oddity. Ew.)) - All just thoughts...I'm still going with most of this not mattering that much, though.
    December 17, 2019, 05:12:55 PM
    Fox: "Misc. GS Hacking" = That name looks odd, so I'd probably just go with "Golden Sun Hacking"
    December 17, 2019, 05:08:05 PM
    Fox: I tempted to also suggest the Editors can go in the first category. Since the Editor is the reason this place exists in the first place. (I think.)
    December 17, 2019, 04:53:19 PM
    Fox: (combined = Not meant to be taken literally... but rather.... to generalize things more, since it apparently looks like we don't need the extra space no one is using.)
    December 17, 2019, 04:48:49 PM
    Fox: Worse still... we've only used those for Golden Sun content.... and there's not much there.
    December 17, 2019, 04:45:53 PM
    Fox: E.g. Maybe everything in "Assets & Discussion" could be combined with "Creative Works".... I don't feel like sound and art apply to general hacking anyway... that only comes into play when you have tools to insert them.
    December 17, 2019, 04:40:26 PM
    Fox: categories and/or forums
    December 17, 2019, 04:36:48 PM
    Fox: Everything else seems to be about right, though. Perhaps some categories could be combined(?), but doesn't really matter that much.
    December 17, 2019, 04:33:03 PM
    Fox: (I still think The Community section fits best at the bottom. =P)
    December 15, 2019, 05:10:04 PM
    Salanewt: Heya! I'm planning to get the demo up today, but if you can't wait then it's already available on the Discord.
    December 15, 2019, 04:12:27 AM
    Fox: (Then sell the badges on the Trade Center for a very high price... and give a lot of active people coins to buy them with, so they can basically transfer the coins to me if they want something... Gosh I could be a naughty hoarder. =P)
    December 15, 2019, 04:06:19 AM
    Fox: I'd buy up all the stock for each item too... but man... I think I'm too lazy for that. =P
    December 15, 2019, 04:01:24 AM
    Fox: There we go. That should be all of them.
    December 15, 2019, 03:25:32 AM
    Fox: Duplicates will still show up as separate entries on the profile as well. Interestingly enough.
    December 15, 2019, 03:18:25 AM
    Fox: (Well, one of each badge, at least.)
    December 15, 2019, 03:18:08 AM
    Fox: Now I can buy up the whole shop. :3
    December 14, 2019, 08:58:08 PM
    Foreclosure: Guys, I really want to see the AI overhaul demo... please fast! :D hehehe
    December 14, 2019, 08:57:33 PM
    Foreclosure: I sent 2 thousand coins for ya bro
    December 14, 2019, 01:31:38 AM
    Fox: In my opinion, even with the old system where it was set up so you could only coin people once per hour... I think it would have been far more fair if we could have also coined ourselves hourly.... since people have favoritism for certain people.... I feel like that could mitigate it some. At least to get badges that people care about the most. - Unlimited coining sounds like a step further than that, which is interesting... :)
    December 14, 2019, 01:12:00 AM
    Fox: Do note, that people can't coin themselves... but I feel if you got someone who's willing to transfer the coins you give them back to you... it is as though you have that coin option on yourself anyway....
    December 14, 2019, 01:07:29 AM
    Fox: Go to any of my forum posts, look for where it says Coins... under that, you'll see [increase] , clicking that will give me coins. You won't lose anything for doing so. Click it as much as you like... Under that, you should see Send Money (a faster option if you got the coins). Use that link to transfer your coins to me of any amount you want. (e.g. Put in 2000, means I get 2000, you lose 2000... but if I've already given you 2000+, you don't really have to see it as actually losing anything.)
    December 13, 2019, 03:42:39 PM
    Foreclosure: How do I return favor, sir?

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