Advertisement:

Author Topic: Custom BBCodes Manager  (Read 67673 times)

Offline pgn4web

  • Semi-Newbie
  • *
  • Posts: 13
Re: Custom BBCodes Manager
« Reply #20 on: September 30, 2014, 01:10:38 PM »
Hopefully, this updates solves all reported issues, with exception of #2 in this post....
You might have forgotten the remark about post previews not translating the custom bbcodes...

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #21 on: September 30, 2014, 07:18:15 PM »
You might have forgotten the remark about post previews not translating the custom bbcodes...
Yeah, you're right....  I forgot that one....  I've looked through the code today and I honestly don't understand why you don't see the preview for the bbcode you created....  Will look some more tomorrow, but I'm tired and it's almost bedtime....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline gnowak

  • Semi-Newbie
  • *
  • Posts: 18
    • grn.dk
Re: Custom BBCodes Manager
« Reply #22 on: October 16, 2014, 07:12:04 AM »
I am trying to use this for youtube integration as I have done in the earlier Custom BBCode mod.

My HTML is:
<iframe frameborder='0' height='315' src='{content}' width='420'></iframe>

The output is:
Code: [Select]
<iframe allowfullscreen='' frameborder='0' height='315' src='<a href="https://www.youtube.com/watch?v=_6LDxNyYfag" class="bbc_link" target="_blank">https://www.youtube.com/watch?v=_6LDxNyYfag</a>' width='420'></iframe>
This obviously fails because the {content} which in this case is an URL is translated by SMF to include <a href... am I doing something wrong?

Thanks!

In addition I found that if I use multiple {content} strings in the html code, only the first {content} is parsed.
Curriculum Vitae [nofollow]

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #23 on: October 18, 2014, 02:41:48 PM »
Sorry for taking so long to get back to you.  Things have been hectic around here.

Hmmm...  Lemme think on how to resolve this.
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline gnowak

  • Semi-Newbie
  • *
  • Posts: 18
    • grn.dk
Re: Custom BBCodes Manager
« Reply #24 on: October 20, 2014, 12:24:52 PM »
Thanks for the answer and your time.

My current work around is:

Manage Posts and Topics -> Bulletin Board Code Settings -> deactivate Automatically link posted URLs
 
But this breaks all automatic links in the forums unfortunately.

Curriculum Vitae [nofollow]

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #25 on: October 26, 2014, 07:30:20 PM »
I've been thinking about this problem for the last few days and have come to the conclusion that the only way I'm going to get the multiple {content} thingys to work properly is to rewrite the mod.... and it'll be a big rewrite  :(
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline gnowak

  • Semi-Newbie
  • *
  • Posts: 18
    • grn.dk
Re: Custom BBCodes Manager
« Reply #26 on: October 27, 2014, 02:13:53 PM »
:-(

What do you think about the automatic URL-handling?

Thanks for your time!
Curriculum Vitae [nofollow]

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #27 on: October 28, 2014, 07:24:59 PM »
I think automatic URL handling is a nice feature when it works properly..... and it obviously doesn't in this case....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Custom BBCodes Manager
« Reply #28 on: November 26, 2014, 02:18:32 AM »
When trying to do a closed bbc, since there is no content being added in the post, am I right in assuming that we replace the {content} fully with what we want to show, when the tag is used?

If so, when save, does not work, and when go back in to edit it, the "The HTML used for the tag:" box is empty.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #29 on: December 13, 2014, 11:27:47 AM »
Sorry to have responded so late to your reply....  This mod will be getting a redesign in the coming week or so in order to fix these problems....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline pgn4web

  • Semi-Newbie
  • *
  • Posts: 13
Re: Custom BBCodes Manager
« Reply #30 on: December 15, 2014, 03:00:26 AM »
Is the plugin supposed/expected to be compatibile with the upcoming smf 2.1 release?
The plugin info page only mentions 2.0.x

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #31 on: December 15, 2014, 04:06:40 AM »
This mod should work on 2.1 without much, if any, modification as it relies on hooks to implement it.....  I will change all my mods to work with 2.1 eventually...
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,443
    • Arantor on GitHub
Re: Custom BBCodes Manager
« Reply #32 on: December 15, 2014, 06:02:24 AM »
Why are people so desperate for mods to work on 2.1?

It's a beta version and I would strongly caution mod authors against spending too much time making mods work on a beta version when major changes will likely occur before RC. It was bad enough during the 2.0 RC phase, speaking as someone who had to spend a number of hours every single RC making changes for each mod - even the ones that used hooks.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline mark87

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • @@dud6887 on Twitter
    • Wisconsinsportstalk.com
Re: Custom BBCodes Manager
« Reply #33 on: December 26, 2014, 03:40:18 PM »
Trying to make a highlight text bbc code but can't get it to work using this HTML <span style="background:yellow">{TEXT}</span>

However doing so creates the word text in yellow before the area I am trying to highlight..also tried <span style="background-color: #FFFF00">{TEXT}</span>

Tried it as parsed ..unparsed etc. Any suggestions would be great

Offline mark87

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • @@dud6887 on Twitter
    • Wisconsinsportstalk.com
Re: Custom BBCodes Manager
« Reply #34 on: December 26, 2014, 03:55:23 PM »
Trying to make a highlight text bbc code but can't get it to work using this HTML <span style="background:yellow">{TEXT}</span>

However doing so creates the word text in yellow before the area I am trying to highlight..also tried <span style="background-color: #FFFF00">{TEXT}</span>

Tried it as parsed ..unparsed etc. Any suggestions would be great
fixed it !!!  Thank you for the mod !

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,264
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Custom BBCodes Manager
« Reply #35 on: December 26, 2014, 04:50:25 PM »
What was the solution?
Online Manual

Please do not PM me for support.

Offline br360

  • Lead Support Specialist
  • SMF Hero
  • *
  • Posts: 2,210
    • GenXcommunity
Re: Custom BBCodes Manager
« Reply #36 on: December 26, 2014, 05:04:05 PM »
What was the solution?

My guess is that where the code said {TEXT}, he deleted that and added the {content} in its place.

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,264
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Custom BBCodes Manager
« Reply #37 on: December 26, 2014, 05:08:45 PM »
Ah, that would make sense. :)
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,691
  • Mod King
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #38 on: December 26, 2014, 07:11:43 PM »
To me, it sounds like people are using the syntax of phpBB's custom bbcode manager and expecting it to work here....  Sounds like I've got a job ahead of me to adapt it to a "more like phpBB"-style bbcode manager.....
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline mark87

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • @@dud6887 on Twitter
    • Wisconsinsportstalk.com
Re: Custom BBCodes Manager
« Reply #39 on: December 27, 2014, 09:52:32 AM »
This is what worked
Quote
<span style="background-color: #FFFF00">{content}</span>