Advertisement:

Author Topic: FancyPosts  (Read 31187 times)

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
FancyPosts
« on: April 14, 2012, 01:37:16 PM »
FancyPosts
Link to Mod

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)

License:
This mod is too simple to assign a license to it, but if I must, I'd probably go with the Creative Commons Attribution 3.0 Unported license.
As long as you do not steal my idea I'm fine with it. Modify this, kill it, let it doom someone's forum, I couldn't care less.

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.
« Last Edit: April 21, 2012, 05:53:20 AM by Yoshi2889 »
My Mods / Mod Builder - A tool to easily create mods / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Kryzen

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,682
  • Gender: Male
Re: FancyPosts
« Reply #1 on: April 14, 2012, 01:37:44 PM »
Nice mod :)

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,607
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: FancyPosts
« Reply #2 on: April 14, 2012, 01:39:36 PM »
Not bad. Not bad at all!

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #3 on: April 14, 2012, 01:42:38 PM »
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").
« Last Edit: April 14, 2012, 01:54:52 PM by Yoshi2889 »
My Mods / Mod Builder - A tool to easily create mods / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Jessica.

  • Full Member
  • ***
  • Posts: 468
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: FancyPosts
« Reply #4 on: April 14, 2012, 02:02:22 PM »
cool mod!
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

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #5 on: April 14, 2012, 02:04:28 PM »
Thanks, I hope it's of any use to you :)
My Mods / Mod Builder - A tool to easily create mods / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,163
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: FancyPosts
« Reply #6 on: April 14, 2012, 03:43:04 PM »
Nice mod!
Congrats :)
NUEVOS MODS!!!

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #7 on: April 14, 2012, 03:45:46 PM »
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 / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Jessica.

  • Full Member
  • ***
  • Posts: 468
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: FancyPosts
« Reply #8 on: April 15, 2012, 12:53:45 PM »
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

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #9 on: April 15, 2012, 02:03:02 PM »
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.
« Last Edit: April 15, 2012, 02:15:33 PM by Yoshi2889 »
My Mods / Mod Builder - A tool to easily create mods / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Chalky

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,310
  • Gender: Female
  • If in doubt, give me beer...
    • ChalkCat
Re: FancyPosts
« Reply #10 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.

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #11 on: April 15, 2012, 02:39:57 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 / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline DBan

  • Semi-Newbie
  • *
  • Posts: 20
Re: FancyPosts
« Reply #12 on: April 15, 2012, 04:18:23 PM »
Very cool mod! Been looking for one like this :)

Offline teos55

  • Jr. Member
  • **
  • Posts: 376
  • Gender: Male
    • Culturel heritage photography blog
Re: FancyPosts
« Reply #13 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 ?

Offline Ashley S

  • Sr. Member
  • ****
  • Posts: 986
  • Gender: Male
    • @AsHWM on Twitter
    • AdminMB
Re: FancyPosts
« Reply #14 on: April 18, 2012, 09:20:39 AM »
Nice mod, Rick.
Might use in the future ;)

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #15 on: April 18, 2012, 09:37:48 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 / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 2,880
  • Gender: Male
    • i30 Owners Club
Re: FancyPosts
« Reply #16 on: April 18, 2012, 09:44:51 AM »
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?

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #17 on: April 18, 2012, 09:50:14 AM »
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 / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 2,880
  • Gender: Male
    • i30 Owners Club
Re: FancyPosts
« Reply #18 on: April 18, 2012, 09:59: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.

Online NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,116
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: FancyPosts
« Reply #19 on: April 18, 2012, 10:05:29 AM »
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 / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."