Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: NanoSector on April 14, 2012, 01:37:16 PM

Title: FancyPosts
Post by: NanoSector on April 14, 2012, 01:37:16 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3387)

FancyPosts
If you need to report a bug, please do so on GitHub! (https://github.com/Yoshi2889/FancyPosts)

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. (http://creativecommons.org/licenses/by-sa/3.0/)
Title: Re: FancyPosts
Post by: Robert. on April 14, 2012, 01:37:44 PM
Nice mod :)
Title: Re: FancyPosts
Post by: Marcus Forsberg on April 14, 2012, 01:39:36 PM
Not bad. Not bad at all!
Title: Re: FancyPosts
Post by: NanoSector 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").
Title: Re: FancyPosts
Post by: Jessica. on April 14, 2012, 02:02:22 PM
cool mod!
Title: Re: FancyPosts
Post by: NanoSector on April 14, 2012, 02:04:28 PM
Thanks, I hope it's of any use to you :)
Title: Re: FancyPosts
Post by: 4Kstore on April 14, 2012, 03:43:04 PM
Nice mod!
Congrats :)
Title: Re: FancyPosts
Post by: NanoSector 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 :)
Title: Re: FancyPosts
Post by: Jessica. on April 15, 2012, 12:53:45 PM
looking forward to new version!
Title: Re: FancyPosts
Post by: NanoSector 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.
Title: Re: FancyPosts
Post by: Chalky 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.
Title: Re: FancyPosts
Post by: NanoSector on April 15, 2012, 02:39:57 PM
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 :(
Title: Re: FancyPosts
Post by: DBan on April 15, 2012, 04:18:23 PM
Very cool mod! Been looking for one like this :)
Title: Re: FancyPosts
Post by: 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 ?
Title: Re: FancyPosts
Post by: Ashley S on April 18, 2012, 09:20:39 AM
Nice mod, Rick.
Might use in the future ;)
Title: Re: FancyPosts
Post by: NanoSector on April 18, 2012, 09:37:48 AM
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 :)
Title: Re: FancyPosts
Post by: Shambles 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?
Title: Re: FancyPosts
Post by: NanoSector 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 :)
Title: Re: FancyPosts
Post by: Shambles on April 18, 2012, 09:59:14 AM
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.
Title: Re: FancyPosts
Post by: NanoSector 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 :)
Title: Re: FancyPosts
Post by: Shambles on April 18, 2012, 12:44:27 PM
Quote from: Yoshi2889 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 :)

You'll ding dang do for me  ;D
Title: Re: FancyPosts
Post by: FrizzleFried on April 18, 2012, 01:31:19 PM
Quote from: Yoshi2889 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 :)
Awesome.  This was going to be my one "request"...

Well... one of two.

Anyway to do smaller bars?  Like a [smallbar] tag.... so that the bar can be defined as to how wide it is to go?  Maybe something like [smallbar=50%] or something that would produce a title/catbar that is 50% the width of the forum?

Title: Re: FancyPosts
Post by: NanoSector on April 18, 2012, 01:44:43 PM
Quote from: FrizzleFried on April 18, 2012, 01:31:19 PM
Quote from: Yoshi2889 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 :)
Awesome.  This was going to be my one "request"...

Well... one of two.

Anyway to do smaller bars?  Like a [smallbar] tag.... so that the bar can be defined as to how wide it is to go?  Maybe something like [smallbar=50%] or something that would produce a title/catbar that is 50% the width of the forum?


Sure, that's possible :)

Also added to my to-do list for the next version :)
Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 01:33:36 PM
Sorry for taking so long, I've got a new version ready :)

Version 0.3:
+ Added "align" parameter for [menu] and [buttonlist] tags, accepts either "right" (forcing right) or "left" (forcing left)
+ Added "width" parameter for [catbar] and [titlebar], WARNING due to a bug in the way SMF parses parameters, you should use them like this:
[catbar icon=http://blah.com/icon.jpg width=50%]Test[/catbar]
and NOT like this:
[catbar width=50% icon=http://blah.com/icon.jpg]Test[/catbar]

Or else it will not display the icon or apply the width.

Updating the package first, then adding info into the post/page. I'll edit this post when I'm done uploading the package :)
Title: Re: FancyPosts
Post by: FrizzleFried on April 19, 2012, 01:42:54 PM
Taking so long?  Ha!  You're quite fast.

Question:  Can the Force LEFT or RIGHT be used to center the button/menu?

Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 01:44:45 PM
Quote from: FrizzleFried on April 19, 2012, 01:42:54 PM
Taking so long?  Ha!  You're quite fast.

Question:  Can the Force LEFT or RIGHT be used to center the button/menu?
Heh, thanks :P

I couldn't get that to work as of now, but if I ever get an idea for it I'll add it into the mod :)

Version 0.3 is uploaded by the way.
Title: Re: FancyPosts
Post by: FrizzleFried on April 19, 2012, 01:51:13 PM
Any way to add the width option to the "frame" options to match the catbar/titlebar options?   I realized that would be a huge addition when I reduced the sizes of my titlebars and it looks funky above the rounframes below them...

Also... THANK YOU.  This mod is making my life a LOT easier frankly.
Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 02:01:03 PM
Quote from: FrizzleFried on April 19, 2012, 01:51:13 PM
Any way to add the width option to the "frame" options to match the catbar/titlebar options?   I realized that would be a huge addition when I reduced the sizes of my titlebars and it looks funky above the rounframes below them...
So you mean like [roundframe width=50%]? I'll add that in yet another version (glad I'm using hooks lol) :)

Quote
Also... THANK YOU.  This mod is making my life a LOT easier frankly.
Glad to hear that, thanks :)

Thanks for all the input so far!

If someone has an example of the mod being used (and being useful) in public, don't be afraid to post it :)
Title: Re: FancyPosts
Post by: FrizzleFried on April 19, 2012, 03:10:07 PM
My forum is private so I can't post a link but I can post a couple screenshots... work in progress of course...

Once you enable size options for the roundframes,  I think i may go in and attempt to set it up with two "windows" side by side...

Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 03:14:24 PM
You can do so already with tables :)

[table][tr][td]BBCode for first box here[/td][td]BBCode for second box here[/td][/tr][/table]

Thanks for posting these images, though! the BBCodes look nice in their new home :)
Title: Re: FancyPosts
Post by: FrizzleFried on April 19, 2012, 03:24:29 PM
You can see in the one image that a nice centered menu bar would help out.  :)

Though the option to reduce the frame sizes may actually help as well... if the BUTTON remains within the frame,  reducing the size of the frame would go a long way in making the button less "out of place"...
Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 03:28:30 PM
Quote from: FrizzleFried on April 19, 2012, 03:24:29 PM
You can see in the one image that a nice centered menu bar would help out.  :)
Yeah, indeed. Though you can do that with [center], [left] and [right] too so I don't think it would add much value to add a parameter for it.

Quote
Though the option to reduce the frame sizes may actually help as well... if the BUTTON remains within the frame,  reducing the size of the frame would go a long way in making the button less "out of place"...
Yeah, I'll probably release another version tomorrow which adds the "width" parameter to all BBCodes.
Title: Re: FancyPosts
Post by: FrizzleFried on April 19, 2012, 03:41:49 PM
Quote from: Yoshi2889 on April 19, 2012, 03:28:30 PM
Quote from: FrizzleFried on April 19, 2012, 03:24:29 PM
You can see in the one image that a nice centered menu bar would help out.  :)
Yeah, indeed. Though you can do that with [center], [left] and [right] too so I don't think it would add much value to add a parameter for it.

Unfortunately the CENTER BBC code doesn't work for the menu buttons from your code... I tried.

Quote
Quote
Though the option to reduce the frame sizes may actually help as well... if the BUTTON remains within the frame,  reducing the size of the frame would go a long way in making the button less "out of place"...
Yeah, I'll probably release another version tomorrow which adds the "width" parameter to all BBCodes.

Awesome!

Title: Re: FancyPosts
Post by: NanoSector on April 19, 2012, 03:53:13 PM
Quote from: FrizzleFried on April 19, 2012, 03:41:49 PM
Quote from: Yoshi2889 on April 19, 2012, 03:28:30 PM
Quote from: FrizzleFried on April 19, 2012, 03:24:29 PM
You can see in the one image that a nice centered menu bar would help out.  :)
Yeah, indeed. Though you can do that with [center], [left] and [right] too so I don't think it would add much value to add a parameter for it.

Unfortunately the CENTER BBC code doesn't work for the menu buttons from your code... I tried.
Oh, yeah I'm aware of that. I'll try to fix that ASAP :)
Probably also fixed tomorrow, lol.
Title: Re: FancyPosts
Post by: FrizzleFried on April 20, 2012, 05:48:28 PM
Also... after some testing... what I want to do isn't possible as the mod is currently written.

[catbar width=25%]TEST[/catbar][catbar width=25%]TEST 2[/catbar][catbar width=25%]TEST 3[/catbar]

I was hoping the above would put 3 CATBARS on the same line side by side.  I was going to then do the same with the [roundframe] code when you added the width option... essentially creating 3 equal size boxes with category bars above each side by side.  Unfortunately what is happening with the above code is I am getting 3 catbars on 3 lines with a carriage return between each.

Is there a way to get the catbars/titlebars (and by extension the frames when you do them) to be on the same "line" rather than requiring a break between?

Thanks!

Title: Re: FancyPosts
Post by: NanoSector on April 20, 2012, 06:09:54 PM
You can use tables for that :)

Sorry I didn't get to the mod today, had a pretty busy and ill day.
Title: Re: FancyPosts
Post by: FrizzleFried on April 20, 2012, 06:37:56 PM
Quote from: Yoshi2889 on April 20, 2012, 06:09:54 PM
You can use tables for that :)

Sorry I didn't get to the mod today, had a pretty busy and ill day.

I really need to learn how tables work...

:)

Title: Re: FancyPosts
Post by: NanoSector on April 20, 2012, 06:40:55 PM
Take a quick peek here, then:
http://wiki.simplemachines.org/smf/Table
Title: Re: FancyPosts
Post by: NanoSector on April 21, 2012, 07:38:42 AM
I'm about to put up yet another release:

+ Added [width] tag. You can use it like [width=15%] or [width=15px].
+ Added width parameter to various BBCodes (don't remember which ones, sorry)

Post will be edited again.

EDIT: Uploaded again.
Title: Re: FancyPosts
Post by: Jessica. on April 21, 2012, 02:24:23 PM
is there a way to update without having to re-install the mod all the time?
Title: Re: FancyPosts
Post by: NanoSector on April 21, 2012, 02:41:13 PM
Quote from: Jessica. on April 21, 2012, 02:24:23 PM
is there a way to update without having to re-install the mod all the time?
No, sorry for making so many releases in a short time :-[

I'll slow down a bit, since I have more stuff to do anyways :P
Title: Re: FancyPosts
Post by: OilLeak on April 23, 2012, 04:05:43 AM
I can't install this MOD, but REALLY want to! Using the package manager, I get this error after the forum seems to lock up for a few minutes:

User 'xxxxxxxxx' has exceeded the 'max_questions' resource (current value: 75000)

I only have about a dozen other mods installed including bad behavior and firewall. :(

I am hosted on POWWEB, and did not see a place to alter the 75K in the php ini script. Got any ideas?
Title: Re: FancyPosts
Post by: NanoSector on April 23, 2012, 10:03:47 AM
Hi OilLeak, welcome to SMF!

What mods do you have installed? Because this doesn't seem to be related to this mod.
Title: Re: FancyPosts
Post by: FrizzleFried on April 23, 2012, 11:09:18 AM
This is how I ended up centering the button I needed centering...it's not the most elegant solution but it works.

I put the button inside an infobox inside a roundframe box.

Title: Re: FancyPosts
Post by: NanoSector on April 23, 2012, 01:03:58 PM
Hmm... Can you give me the exact BBCode you used for that? Maybe I can add a center position in the next version, then.

Also, I might make this more theme-compatible, right now it looks horrible in other themes.
Title: Re: FancyPosts
Post by: FrizzleFried on April 23, 2012, 02:01:56 PM
[catbar]Super Punch Out[/catbar][roundframe]<br />Restored "A" condition.  New everything pretty much... was a beat to crap PO originally.<br /><br />[IMG]http://i197.photobucket.com/albums/aa111/PapaFriz/AHA/SPO-AHADONE.jpg[/img][width=140px][plainbox]<br />[menu][button active=true url=http://www.aha-forums.com/index.php?action=kb;area=article;cont=114]More Info/Photos[/button][/menu][/plainbox][width=56%][/roundframe]<br /><br />
Title: Re: FancyPosts
Post by: Adz666 on May 30, 2012, 04:46:14 AM
Brilliant mod!

Is there a way to restrict use of this to certain membergroups? (or selected bbcode in general, if such a mod exists)
Title: Re: FancyPosts
Post by: NanoSector on May 30, 2012, 12:08:26 PM
Quote from: FrizzleFried on April 23, 2012, 02:01:56 PM
[catbar]Super Punch Out[/catbar][roundframe]<br />Restored "A" condition.  New everything pretty much... was a beat to crap PO originally.<br /><br />[IMG]http://i197.photobucket.com/albums/aa111/PapaFriz/AHA/SPO-AHADONE.jpg[/img][width=140px][plainbox]<br />[menu][button active=true url=http://www.aha-forums.com/index.php?action=kb;area=article;cont=114]More Info/Photos[/button][/menu][/plainbox][width=56%][/roundframe]<br /><br />
Sorry, I've been researching for a while and I can't figure how to center stuff :-\

Quote from: Adz666 on May 30, 2012, 04:46:14 AM
Brilliant mod!

Is there a way to restrict use of this to certain membergroups? (or selected bbcode in general, if such a mod exists)
Hmm, not that I know of. Might be worth it to search around a bit here, on the mod site and on the forums :)
Title: Re: FancyPosts
Post by: Inti31 on May 30, 2012, 02:41:46 PM
very nice - I implemented that mod now into my main forum and also I  added the most common tags for my members


(http://s19.postimage.org/sj2ckvk6r/Untitled.jpg)
see shot, first line, left side next to font dropdown menu

or link http://epica-forum.de/index.php?topic=676.0

one question:
see this topic: http://epica-forum.de/index.php?topic=677.msg5948#msg5948

if you click on the button, the link opens NOT in a new window/tab.
What do I have to change?

cheers inti31
Title: Re: FancyPosts
Post by: NanoSector on May 30, 2012, 03:27:58 PM
Quote from: Inti31 on May 30, 2012, 02:41:46 PM
very nice - I implemented that mod now into my main forum and also I  added the most common tags for my members


(http://s19.postimage.org/sj2ckvk6r/Untitled.jpg)
see shot, first line, left side next to font dropdown menu

or link http://epica-forum.de/index.php?topic=676.0

one question:
see this topic: http://epica-forum.de/index.php?topic=677.msg5948#msg5948

if you click on the button, the link opens NOT in a new window/tab.
What do I have to change?

cheers inti31
Hi Inti31,

Do you want that to be a global change or just for certain posts?
Title: Re: FancyPosts
Post by: Inti31 on May 30, 2012, 03:37:17 PM
Hi! it is needed only when using these codes

[buttonlist][button=http://yourURL.decom/]Link A[/button][button=http://yourURL.com/]Link B[/button][/buttonlist]

and


[menu][button active=true url=http://yourURL.com/]Link A[/button][button active=true url=http://yourURL.com/]Link B[/button][/menu]


I tried
target => '_blank'; in different places in Subs-FancyPosts.php but it does not work...

but your idea to use that for certain posts is a good one
maybe internal link should work like it is, external links should open a new windows/tab
Title: Re: FancyPosts
Post by: NanoSector on June 03, 2012, 05:24:18 AM
Hi again Inti31, sorry for replying so late.

What about an "external" parameter, which can be set to "tab" or "window"?
Title: Re: FancyPosts
Post by: Inti31 on June 03, 2012, 06:35:07 AM
Whatever you decide to do ... - yes, why not an "external" parameter...

I thought, that it would be easier to add a "target="_blank" (or sth. similiar) in Subs-FancyPosts.php instead of creating a new parameter.
but that sounds fine to me...

one further suggestion...
would it be possible to use button and buttonlist code also as "inline buttons" (like ILA (http://custom.simplemachines.org/mods/index.php?mod=2481))?

Example:
text text text - see this homepage: [title of homepage as button] text text

Now it like this:
text text text - see this homepage:
[title of homepage as button]
text text

cheers Inti31
Title: Re: FancyPosts
Post by: Mstcool on July 20, 2012, 01:02:07 AM
Can i make it so Members cant use this only staff can?
Please tell me there is no file editing for this. :p
Title: Re: FancyPosts
Post by: NanoSector on July 20, 2012, 04:16:01 AM
Quote from: Mstcool on July 20, 2012, 01:02:07 AM
Can i make it so Members cant use this only staff can?
Please tell me there is no file editing for this. :p
Sorry, that will require file editing, it's dead simple though, let me check one thing :)
EDIT: I forgot to ask, which membergroups/titles do you want to give permission to use the mod?

Also @ all previous replies: Sorry that I didn't take the changes in account yet, I'll start with those today :)
Title: Re: FancyPosts
Post by: Mstcool on July 20, 2012, 04:21:32 AM
Can you do the file editing for me?
If yes ill pm u the details later on. Sorry i dont know how to do these stuff and you know how i always end up messing it
Title: Re: FancyPosts
Post by: ben sisko on July 24, 2012, 07:13:18 AM
if you use the combination [buttonlist] and [button], the text inside the [button] bbc codes is not case sensitive.


[buttonlist][button=http://my.url] This text is not case sensitive [/button][/buttonlist]


Can you make it case sensitive?
Title: Re: FancyPosts
Post by: NanoSector on July 24, 2012, 07:52:24 AM
Quote from: ben sisko on July 24, 2012, 07:13:18 AM
if you use the combination [buttonlist] and [button], the text inside the [button] bbc codes is not case sensitive.


[buttonlist][button=http://my.url] This text is not case sensitive [/button][/buttonlist]


Can you make it case sensitive?
That depends on your theme :)

Some themes force the text to be case-sensitive, others on the other hand make it all upper-case or lower-case. There's nothing I can do about this, sorry. :(
Title: Re: FancyPosts
Post by: NanoSector on July 25, 2012, 06:52:11 AM
Mstcool: I haven't got a PM from you yet ;)
I dunno, but AFAIK there was a setting that allowed you to set which BBCodes could be used per membergroup...possible this was a global setting.

I found a nasty bug in the latest version. A bug fix follows:

In Sources/Subs-FancyPosts, find:

        $codes[] = array(
                        'tag' => 'button',
                        'type' => 'unparsed_equals',
                        'before' => '<li><a href="$1"><span class="firstlevel">',
                        'after' => '</span></a></li>',
                        'trim' => 'outside',
                        'require_parents' => array('menu'),
                );


Replace:
        $codes[] = array(
                        'tag' => 'button',
                        'type' => 'unparsed_equals',
                        'before' => '<li><a href="$1" class="firstlevel"><span class="firstlevel">',
                        'after' => '</span></a></li>',
                        'trim' => 'outside',
                        'require_parents' => array('menu'),
                );


This bug causes the non-active buttons, which are made like this:
[button=http://simplemachines.org/]SMF[/button]
To be glitchy, out of place and they don't have the "hover" effect the standard buttons have. I have no idea if this only affects the version which is available for download on my site, but it'll be fixed in all packages :)

This fix will be applied in the next version!
Title: Re: FancyPosts
Post by: Mstcool on July 25, 2012, 02:08:30 PM
Oh Sorry i will pm you today. Thanks for helping. The reason is didn't pm you yet is because:

I forgot about this and didnt know if you were going to or no
and i changed providers so yea

I will pm you my....FTP or cpanel details?
Title: Re: FancyPosts
Post by: NanoSector on July 25, 2012, 02:34:45 PM
Quote from: Mstcool on July 25, 2012, 02:08:30 PM
Oh Sorry i will pm you today. Thanks for helping. The reason is didn't pm you yet is because:

I forgot about this and didnt know if you were going to or no
and i changed providers so yea

I will pm you my....FTP or cpanel details?
I'd first check the Admin panel if there's a settings panelfor that. It should allow you to select which BBCodes a membergroup can use, though I haven't had time lately to dive into that.
Title: Re: FancyPosts
Post by: Mstcool on July 25, 2012, 02:43:50 PM
Alright and btw if you modify it right. Does that mean when i back up i gotta back up my forum and database or can i just back up that one fancy post zipped file you modified. If i can just modify the fancy post file then when you modify mine can you send me the zipped file so i can download it? because i wont have to backup that file again and again only one time. Thanks

After you tell me this i will give you the details
Title: Re: FancyPosts
Post by: Mstcool on July 26, 2012, 03:35:16 PM
Still waiting for an answer :)
Title: Re: FancyPosts
Post by: NanoSector on July 26, 2012, 04:18:13 PM
Quote from: Mstcool on July 26, 2012, 03:35:16 PM
Still waiting for an answer :)
Sorry, the heck this topic didn't show up in my Unread Replies list, excuse me :(

Quote from: Mstcool on July 25, 2012, 02:43:50 PM
Alright and btw if you modify it right. Does that mean when i back up i gotta back up my forum and database or can i just back up that one fancy post zipped file you modified. If i can just modify the fancy post file then when you modify mine can you send me the zipped file so i can download it? because i wont have to backup that file again and again only one time. Thanks

After you tell me this i will give you the details
You can just start modifying stuff in that Subs-FancyPosts.php file, if something screws up you can overwrite it with a fresh one from the packages, one of the advantages of using hooks :)

I'm not able to do the edits tonight, but I'll take a look at this tomorrow
/me is sure to mark this topic as Unread
Title: Re: FancyPosts
Post by: Mstcool on July 26, 2012, 04:49:13 PM
Wait i dont understand. So if you edit it for me (thx) i just save that file you edit like the whole zip file? or back up my whole forum?
Title: Re: FancyPosts
Post by: NanoSector on July 26, 2012, 05:13:04 PM
Quote from: Mstcool on July 26, 2012, 04:49:13 PM
Wait i dont understand. So if you edit it for me (thx) i just save that file you edit like the whole zip file? or back up my whole forum?
No no, don't backup anything, it's not needed :)

I'm only going to modify the FancyPosts file (there's only one), and test my changes. So I won't give you a faulty file :P
If anything does go wrong, though, you can replace the file with a fresh one from the installation package (unzip & overwrite file). That'll clear my modifications.
Title: Re: FancyPosts
Post by: Mstcool on July 26, 2012, 07:58:06 PM
Lol alright. But when it works won't i need to have that edited file because i mess up my forum a lot and i gotta do back ups a lot.
Title: Re: FancyPosts
Post by: NanoSector on July 26, 2012, 08:27:27 PM
Quote from: Mstcool on July 26, 2012, 07:58:06 PM
Lol alright. But when it works won't i need to have that edited file because i mess up my forum a lot and i gotta do back ups a lot.
It's there In this topic, then :P
Back it up, just in case, if you want to, though.
Title: Re: FancyPosts
Post by: Mstcool on July 26, 2012, 10:00:41 PM
Alright i will pm you my details tomorrow
I will pm you my test account and uhm my FTP or if u want my cpanel
Title: Re: FancyPosts
Post by: NanoSector on July 27, 2012, 04:17:27 AM
Just your FTP details will be fine :)

Please read this, though:
http://www.simplemachines.org/community/index.php?topic=228940.0
Title: Re: FancyPosts
Post by: Mstcool on July 27, 2012, 05:32:28 AM
Eh i know about that. I trust you so yeah 8)
i am giving u my details VIA pm once sec
ill also give u details of my test account just in case
Title: Re: FancyPosts
Post by: NanoSector on August 16, 2012, 10:50:57 AM
Quote from: Inti31 on June 03, 2012, 06:35:07 AM
Whatever you decide to do ... - yes, why not an "external" parameter...

I thought, that it would be easier to add a "target="_blank" (or sth. similiar) in Subs-FancyPosts.php instead of creating a new parameter.
but that sounds fine to me...

one further suggestion...
would it be possible to use button and buttonlist code also as "inline buttons" (like ILA (http://custom.simplemachines.org/mods/index.php?mod=2481))?

Example:
text text text - see this homepage: [title of homepage as button] text text

Now it like this:
text text text - see this homepage:
[title of homepage as button]
text text

cheers Inti31
I am so sorry for my uber-late reply.

I've tracked this, here:
http://map3cms.co.cc/forum/index.php?action=bugtracker;sa=view;entry=66

And I'll get to it asap :)
If I missed any other feature requests, excuse me!!! but I can't find them with a quick run through the topic atm :(
Title: Re: FancyPosts
Post by: Inti31 on August 16, 2012, 12:13:54 PM
uh, don't worry - glad to see that you picked up my suggestion - better late than never. thx for you time you are investing in this.

cheers Inti31
Title: Re: FancyPosts
Post by: NanoSector on August 16, 2012, 01:04:18 PM
Crap, I even looked over your second suggestion :P

I'm afraid that isn't possible, due to the way the menu's are built :(
Title: Re: FancyPosts
Post by: NanoSector on August 19, 2012, 06:41:38 PM
Bugfix release is uploaded.

Version 0.4.1 fixes a bug with a version of the [button] tag. Sorry for taking a long time now for such a simple release, but my attention goes to my big project at the moment.
Title: Re: FancyPosts
Post by: NanoSector on December 17, 2012, 10:01:51 AM
Mod works with 2.0.3 as-is.
Title: Re: FancyPosts
Post by: NanoSector on February 01, 2013, 05:33:14 PM
Mod works with 2.0.4 as-is.
Title: Re: FancyPosts
Post by: Ramón Cutanda on February 27, 2013, 02:16:01 PM
Such a simple but GREAT mod... Thanks so much!!!
Title: Re: FancyPosts
Post by: NanoSector on February 27, 2013, 02:48:27 PM
You're welcome :)
Title: Re: FancyPosts
Post by: Arvacon on January 10, 2014, 12:36:39 AM
Mod works also at 2.0.6 without problem.
Thanks too for this very interesting mod  :)
Title: Re: FancyPosts
Post by: NanoSector on January 10, 2014, 01:51:21 AM
You're welcome, and thank you for confirming, I've marked it as compatible with 2.0.6 :)
Title: Re: FancyPosts
Post by: FireDitto on March 04, 2014, 07:45:57 AM
Is it possible to use anchors in the menu code? Because that would be awesome XD
Title: Re: FancyPosts
Post by: NanoSector on March 04, 2014, 12:41:02 PM
No, you can't. I can add such functionality if you want to though :)
Title: Re: FancyPosts
Post by: FireDitto on March 04, 2014, 03:38:28 PM
If you've the time, I would definitely like such a capability :D
Title: Re: FancyPosts
Post by: NanoSector on March 21, 2014, 09:54:53 AM
Can you check if this package works please? Sorry it took so long :(

Usage:
[abutton=Anchor]Name[/abutton]
or
[abutton active=true a=Anchor]Name[/abutton]
Title: Re: FancyPosts
Post by: FireDitto on April 10, 2014, 11:24:53 AM
Sorry for the delay; neither of those seem to be working for me.

******. I totally thought I Had posted this x.x''
Title: Re: FancyPosts
Post by: NanoSector on April 10, 2014, 11:40:50 AM
The button acts as the anchor itself, not as a link to the anchor :)

If you mean you want to use anchors in your buttons, use [button=#anchor_link].

If you use [button=#myAnchor], you'll have to create an anchor (either by [abutton] or [anchor]) called #post_myAnchor somewhere else. Note the #post_ part.
Title: Re: FancyPosts
Post by: Cmely on April 30, 2014, 03:07:39 AM
Thank you for this mod, Yoshi!
This is a very neat addition to posts, I really appreciate it a lot!
Title: Re: FancyPosts
Post by: NanoSector on April 30, 2014, 07:03:26 AM
Thanks Cmely, I'm glad you like it :)
Feel free to post some of the creative things you've done with the mod!
Title: Re: FancyPosts
Post by: Cmely on April 30, 2014, 08:01:22 AM
Quote from: Yoshi on April 30, 2014, 07:03:26 AM
Feel free to post some of the creative things you've done with the mod!

I certainly will!
Title: Re: FancyPosts
Post by: shazoo! on February 01, 2015, 10:50:58 AM
I really like this mod, the tags work, but I'm not seeing actual buttons in the toolbar... am I missing something??? I do see them listed in the bbc code area in Admin
Title: Re: FancyPosts
Post by: NanoSector on February 01, 2015, 01:22:36 PM
Hi shazoo!,

The mod does not add buttons to the toolbar. I'm not great at designing icons, that's really the reason :P
Title: Re: FancyPosts
Post by: shazoo! on February 01, 2015, 01:40:59 PM
Quote from: NanoSector on February 01, 2015, 01:22:36 PM
Hi shazoo!,

The mod does not add buttons to the toolbar. I'm not great at designing icons, that's really the reason :P

ahh ok!! I thought I was missing something!!
thank you for the fast response!!

(the mod works BEAUTIFULLY though :) )
Title: Re: FancyPosts
Post by: Steve on May 30, 2015, 01:21:14 PM
Minor question ...

If I wanted to adjust the looks of what you get when you use the warn bbcode tag, where and/or how would I do that?

For example, I'd like to take out the exclamation points and adjust the color a shade or two. :)
Title: Re: FancyPosts
Post by: NanoSector on May 30, 2015, 01:24:08 PM
You can edit the Sources/Subs-FancyPosts.php file. Though to get rid of those I think you'll need to edit your theme's CSS.
Title: Re: FancyPosts
Post by: Steve on May 30, 2015, 01:50:52 PM
Thanks a bunch. :)
Title: Re: FancyPosts
Post by: shadav on August 30, 2019, 07:03:33 PM
this is really a great idea, just installed on 2.0.15
thank you