Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Forum Code Thread  (Read 4000 times)

GameBoyBlue

  • Bay Watcher
  • Turn to face the strange
    • View Profile
Forum Code Thread
« on: November 04, 2015, 03:32:25 pm »

Probably should have this stuff sticked. Especially when there is stuff here.

Anyway my first question is how to resize an image [img=100x100]http://url[/img] hasn't been working for me.

EDIT: LETS PLEASE HAVE NO MORE POSTS HERE. I AM GOING TO GO AHEAD AND REVIVE THE OLD THREAD. (Thanks Bumber for finding it!)
« Last Edit: November 08, 2015, 02:04:20 am by GameBoyBlue »
Logged

GameBoyBlue

  • Bay Watcher
  • Turn to face the strange
    • View Profile
Re: Forum Code Thread
« Reply #1 on: November 04, 2015, 03:34:09 pm »

I think you use width and/or height.

Example code?
Logged

GameBoyBlue

  • Bay Watcher
  • Turn to face the strange
    • View Profile
Re: Forum Code Thread
« Reply #2 on: November 04, 2015, 03:35:56 pm »

[ img width=400]url[/img]

Awesome!
Logged

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Forum Code Thread
« Reply #3 on: November 04, 2015, 08:54:55 pm »

This thread has useful information. It's nearly impossible to find, though.

I also found a list of tags from one of Toady's posts regarding signature limits:
Code: [Select]
abbr
acronym
anchor
b
bdo
black
blue
br
code
center
color
email
ftp
font
flash
green
glow
hr
html
img
i
iurl
li
list
left
ltr
me
move
nobbc
pre
php
quote
right
red
rtl
s
size
sub
sup
shadow
time
tt
table
tr
td
url
u
white
spoiler
I only know how 3/4 of these work. Maybe I'll fill them out later.
« Last Edit: November 04, 2015, 09:01:46 pm by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Flying Dice

  • Bay Watcher
  • inveterate shitposter
    • View Profile
Re: Forum Code Thread
« Reply #4 on: November 04, 2015, 10:55:39 pm »

This thread has useful information. It's nearly impossible to find, though.

I also found a list of tags from one of Toady's posts regarding signature limits:
-snip-
I only know how 3/4 of these work. Maybe I'll fill them out later.

You want explanation? Here's explanation.

Quote
abbr :: It...

acronym :: So...

anchor :: Can be used to jump directly to different parts of a post in combination with goto code. IIRC it requires an addon and I don't think it's usable on B12.

b :: Bold. Duh.

bdo :: Bidirectional override. Reverses the direction of text.

black :: I'm not aware of this being a tag. Unless you're talking about text colors.

blue :: Ditto ^.

br :: Inserts a line break.
Like so. You don't need a closing tag. Literally does the same thing as hitting enter as far as normal posting is concerned.

code ::
Code: [Select]
Again, duh.
center :: Does what it says on the tin. Centers the text.
There's a button for this one.

color :: This is what you stick those color tags in. Here's a convenient list of a bunch of them.

email :: Allows you to link an email address, as well as changing the displayed text. Works in the same way as url.

ftp :: Inserts an FTP link.

font :: Duh.

flash :: Embed something that uses Flash. If such has been disabled by the admins, it adds a link instead.

green :: See colors.

glow :: Does this. There's a button for it. Pick your color.

hr :: It inserts a horizontal line across the page. No closing tag.

html :: HTML code.

img :: Embeds an image.

i :: Duh. Italics.

iurl :: Also a url link. I think there's a difference but I don't remember what it is.

li ::
  • Starts a list.
  • Each li tag adds another bullet. Close the tag to end the list.
list ::
    Literally the same thing, just without bullets.

left :: Centers the text on the left side of the screen.

ltr :: Left-to-right text. You'd use it to post LTR text in a document written with a RTL language.

me ::
* does this. Used for shitposting and, allegedly, roleplay.

move :: Marquee scroll. Not enabled here.

nobbc :: Stops BBCode from being parsed inside of it. [b]For example, like this.[/b] Use it to show people how BBCode operates more effectively, or to type (8) without problems, as opposed to (8).

pre :: Preserves text formatting.

php :: Same as code, except it also adds syntax highlighting to PHP code.

quote :: Duh. All of this text is in one.

right :: Centers text to the right side of the screen.

red :: Color tag.

rtl :: Formats text for right-to-left reading. -->
Opposite of ltr

s :: Strikethrough, used solely for snark and passive-aggressiveness.

size :: Resize text. Make sure to add the "=##pt" inside the opening tag.

sub :: Subscript.

sup :: Superscript.

shadow :: Adds a shadow to the text. You can use any color for this.

time :: August 12, 2009, 11:44:30 pm Output time and date. Use yyyy:mm:dd hh:mm:ss format.

tt :: Monospaced text.

table :: Inserts a table.
Content must be added.

tr :: Insert a table row.
td :: Insert a table column.
Column 1
Row 1
Row 2
Column 2
Row 1C2

url :: Add a link. =yoururlhere inside the opening tag and text between the tags to change how it appears.

u :: Underlines text.

white : Color tag.

spoiler ::
Spoiler: Does this. (click to show/hide)
Logged


Aurora on small monitors:
1. Game Parameters -> Reduced Height Windows.
2. Lock taskbar to the right side of your desktop.
3. Run Resize Enable

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Forum Code Thread
« Reply #5 on: November 05, 2015, 07:15:14 am »

    Looks like [pre] could come in handy for diagrams. Preserve spacing without eyesore TrueType or loss of BBCode. Seems like it fudges text in its own special way, however.
    I guess I'll stick with putting tags around spaces.

Bidirectional override works like this.

Correct me if I'm wrong, but isn't there a way to make a spoiler title say something different when you open it? Might have been a different forum.

I'm not entirely sure what the numbers in [glow=red,2,300][/glow] do, or if there are other orientations for shadow besides left and right.

[img] has properties for height and width (possibly mouseover text? Failing that use abbr.) Quick Google search says iurl is related to anchors. The specific color tags seem to work on their own.

Code: (You can put stuff in the code header.) [Select]
« Last Edit: November 05, 2015, 07:27:24 am by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Flying Dice

  • Bay Watcher
  • inveterate shitposter
    • View Profile
Re: Forum Code Thread
« Reply #6 on: November 05, 2015, 07:56:31 am »

Shadow...
Top does this.
Bottom, this.

By my understanding, the original format was textcolor,glowcolor,glowstrength, but it's nonfunctional now; you can change the color of the glow by changing the listed color, but that's it.
Logged


Aurora on small monitors:
1. Game Parameters -> Reduced Height Windows.
2. Lock taskbar to the right side of your desktop.
3. Run Resize Enable

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: Forum Code Thread
« Reply #7 on: November 05, 2015, 10:29:23 am »

iurl is used for linking to anchors.







Thusly.

[iurl=#anchor]

The hash is important. Otherwise it acts as a generic URL.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

SirQuiamus

  • Bay Watcher
  • Keine Experimente!
    • View Profile
Re: Forum Code Thread
« Reply #8 on: November 05, 2015, 04:19:53 pm »

*snip*
Useful post is useful.

...
Haha, reversed text is reversed. Zany.
Logged

TheBiggerFish

  • Bay Watcher
  • Somewhere around here.
    • View Profile
Re: Forum Code Thread
« Reply #9 on: November 05, 2015, 04:39:31 pm »

PTW.
Logged
Sigtext

It has been determined that Trump is an average unladen swallow travelling northbound at his maximum sustainable speed of -3 Obama-cubits per second in the middle of a class 3 hurricane.

GameBoyBlue

  • Bay Watcher
  • Turn to face the strange
    • View Profile
Re: Forum Code Thread
« Reply #11 on: November 07, 2015, 02:58:37 am »

Question: Is there an image hosting site that will let you change the image based on special circumstances, such as date and time of day?

I've seen random image swapping sites like this one, and it is popularwith avatars here on the forums. If there were however ways to make it based on time, that opens up a lot of possibilities.

You could have an avatar that is different in the day or at night. Like a human and werewolf.
You could have an avatar that automatically changes on holidays.

Forum games could use them in to OP to automatically announce things like day and night phases.
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: Forum Code Thread
« Reply #12 on: November 07, 2015, 03:23:35 am »

Not that I know of, but you could rig one up with some relatively easy PHP. Have to have a host etc, though - it wouldn't be particularly bandwdth intensive.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

GameBoyBlue

  • Bay Watcher
  • Turn to face the strange
    • View Profile
Re: Forum Code Thread
« Reply #13 on: November 07, 2015, 03:33:24 am »

Not that I know of, but you could rig one up with some relatively easy PHP. Have to have a host etc, though - it wouldn't be particularly bandwdth intensive.

What kind of costs are we looking at. Could I pay you to set one up for me?

I need a banner for my game that changes between hours of the day.
I need a second banner that changes based on the season.
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: Forum Code Thread
« Reply #14 on: November 07, 2015, 04:22:14 am »

You'd have to pay for a domain name, and a server if you're not willing to port forward. You might actually be able to do it for free, using no-ip.org and port forwarding, although then you'd need to provide a server computer with 100% uptime and the necessary software. I've seen 9$/month as a price bracket for a site using significantly more bandwidth than you'd need.

You couldn't pay me to do it because I'm not in a position to do it and I'd just be a middleman. :P I could probably write the PHP for you though, although there are several far better coders on the forum and I imagine you could learn to do it in an afternoon.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.
Pages: [1] 2