News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

FancyPosts

Started by NanoSector, April 14, 2012, 01:37:16 PM

Previous topic - Next topic

NanoSector

Link to Mod

FancyPosts
If you need to report a bug, please do so on GitHub!

This mod adds a couple of BBCodes into the forum. It copies various GUI elements to posts, to say the least.

(theme used in last screenshot: PremiumMGC)

Languages:
This mod does not use languages.

Installation:
Install through the package manager.

Files modified:
None. This mod uses hooks to insert BBCodes.

New BBCodes:
These BBCodes are added:
Quote[catbar]

Usage (1): [catbar]Text here[/catbar]
Adds text into a famous category bar used everywhere in the forum.

Usage (2): [catbar=http://my.icon.com/icon.png]Text here[/catbar]
Adds an icon AND text into a category bar.

Usage (3): [catbar icon=http://blah.com/icon.png width=50%]Text here[/catbar]
Adds an icon and text in a category bar, but also specifies the width in percents.
(both parameters are optional)

Usage (4): [catbar icon=http://blah.com/icon.png width=100px]Text here[/catbar]
Adds an icon and text in a category bar, but also specifies the width in pixels.
(both parameters are optional)

Quote[titlebar]

Usage: Same as [catbar]. Only difference is style.

Quote[info]

Usage: [info][b]Parsed content here![/b] More text here[/info]
Adds an information box into the post. Content IS parsed.

Quote[warn]

Usage (1): [warn]Warning here! [b]Parsed text here![/b][/warn]
Adds a warning-style box as you'd see when you had Upgrade.php in your SMF directory.

Usage (2): [warn=Warning TITLE here!]Warning DESCRIPTION here![/warn]
Again adds a warning-style box. This time with title and description.

Quote[plainbox]

Usage: [plainbox]Content here[/plainbox]
Adds a box just like the description panels in the Admin panel. If you dunno what that means, take a look at the screenshots.

Quote[roundframe]

Usage: [roundframe]Content here[/roundframe]
Adds a rounded frame.

Quote[windowbg]

Usage: [windowbg]Content here[/windowbg]
Adds a different background.

This tag is qualified for restyling

Quote[menu] and [button]

Usage: [menu][button active=true url=http://my.url/]Button title[/button][/menu]
or: [menu][button=http://my.url]Inactive button title[/button][/menu]

Adds a menu bar into the post.

Quote[buttonlist] and [button]

Usage: Same as [menu] and [button], except that [menu] is replaced with [buttonlist].

Adds a more button-ish like bar.

Quote[width]

Usage (1): [width=25%]This is only able to use 25% of the post room[/width]
Usage (2): [width=25px]This is only able to use 25 pixels of the post room[/width]

License:
This mod is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Robert.


Marcus Forsberg

Not bad. Not bad at all!

NanoSector

#3
Thanks both :)

I have yet to install this on my own site, because I was smacking some bugs in the meantime, gotta install it later to give you a demo :)

EDIT: Dr. Deejay has been playing with the mod:
http://map3cms.co.cc/index.php/topic,268.msg298.html#new

EDIT2: Uploaded new version which should fix a few bugs. It's called the same as the previous package ("FancyPosts.zip").
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Jessica.

Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

NanoSector

Thanks, I hope it's of any use to you :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

NanoSector

Thanks, I'm already adding new tags into it ;)

Expect a new version soon which improves the [button] tag and introduces a [buttonlist] tag and more :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Jessica.

looking forward to new version!
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

NanoSector

#9
Thanks, I have it ready, just packaging needs to be done :)

I'll edit this post when it's done & uploaded.

EDIT: Uploaded and updated documentation.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Chalky

Thanks Yoshi, we're loving this :)

Please can you give us n00bs a clue on how to use the [windowbg] tag?  When I use it it does nothing.

NanoSector

Quote from: Sabrinova on April 15, 2012, 02:36:06 PM
Thanks Yoshi, we're loving this :)

Please can you give us n00bs a clue on how to use the [windowbg] tag?  When I use it it does nothing.
Some themes do not support these tags, I only found this 100% working on Curve. In fact I based it on Curve :P

Anyhow, you can simply use it like this:
[windowbg]Test![/windowbg]

If it doesn't show up in your theme I guess it doesn't support it. Sorry :(
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

DBan

Very cool mod! Been looking for one like this :)

teos55

A very nice tool to use, thanks

smf 2.0.2  simple portal 2.3.5  default theme


Question is :

[menu][button active=true url=http://my.url/]Button title[/button][/menu]

how to code for external links , url to be opened in a new tab or browser ?

(like  target="_blank"  in html )

is it a restriction in BBC ?

Ashley S

Nice mod, Rick.
Might use in the future ;)

NanoSector

Quote from: teos55 on April 18, 2012, 09:09:23 AM
A very nice tool to use, thanks

smf 2.0.2  simple portal 2.3.5  default theme


Question is :

[menu][button active=true url=http://my.url/]Button title[/button][/menu]

how to code for external links , url to be opened in a new tab or browser ?

(like  target="_blank"  in html )

is it a restriction in BBC ?
Hi teos, this is not a feature that the mod provides. I will build this in the next version, thanks for the suggestion!

Also thanks Ashley :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

This is a great addition to the formatting capabilities of SMF - thanks for the mod (I only spotted it today)  ;D

Just one thing... the [buttonlist] is indeed creating beautiful buttons but they're right-aligned within the post, even with [left] justification added. The buttons are laid out from the far right and work their way in, so if I declare button1 then button 2 then button 3, they appear as button 3 button 2 button 1 (right aligned).

SMF 2.0.2 and Blackbox2 by Crip.

Any suggestions as to how I can float these lil' butties down the left hand side?

NanoSector

It probably is the styling of your theme, that pushes them to the right. On my test installation with Curve they are pushed to the left like normal :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

Quote from: Yoshi2889 on April 18, 2012, 09:50:14 AM
It probably is the styling of your theme, that pushes them to the right...

Thanks for confirming what I thought might be the case.

NanoSector

I'll add an align=center/right/left option to the [menu] and [buttonlist] tags in the next version :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: