Advertisement:

Author Topic: Custom BBCodes Manager  (Read 58262 times)

Offline seremoni

  • Newbie
  • *
  • Posts: 3
Re: Custom BBCodes Manager
« Reply #200 on: July 31, 2017, 01:48:56 PM »
UPDATE:  I'm sorry I've put off dealing with this mod for so long.  I've been trying to deal with life issues recently and haven't felt like trying to tackle this problematic mod....

I'm starting a top-to-bottom rewrite of this mod.  I will be taking a completely different approach to defining the custom bbcode tags, mandating a completely new table format for version 3.0.  It will be completely incompatible with version 1.x and 2.x tables, and you probably will have to redefine all of your custom bbcode tags. The database table for version 3.0 will be more flexible, so that further additions can be made without messing with the database table format.

Please update.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #201 on: July 31, 2017, 11:45:37 PM »
Gee, let me just whip out my magic wand and BAM, omg, it's fixed.....  NOT!  :o
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline seremoni

  • Newbie
  • *
  • Posts: 3
Re: Custom BBCodes Manager
« Reply #202 on: August 02, 2017, 03:01:51 PM »
Relax, my friend, we wait.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #203 on: August 06, 2017, 11:46:09 PM »
UPDATE: I apologize for the unacceptably long wait.....  I've finally gotten through my massive list of mods, fixing everything possible as quickly as possible.  I'm going to start looking at this mod in the next few days (today is Sunday for me at 10:50pm - probably Tuesday, not Monday).  Please note that this won't be a simple fix, as I don't understand why the database isn't being created (or a hundred other different complaints --- sarcasm....  gotta love it!)

@seremoni:  I'm sorry for taking your comment the wrong way.  Was in a bad mood that day....   O:)
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #204 on: August 07, 2017, 10:38:59 AM »
Uploaded v2.4 - August 7th, 2017
o Fixed edit_db.php so that database creation can occur.



@Everybody:  This update SHOULD fix the blank screen and/or error that people are seeing after installing this mod.  By removing the error (redeclaration of a function), the database will be created and the mod will function without breaking the forum.

Future updates will address other issues as I can find them, but I felt it was important to release an update that didn't break forums as soon as possible.....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,452
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Custom BBCodes Manager
« Reply #205 on: August 08, 2017, 04:09:30 AM »
It seems you forgot to add some columns:

Code: [Select]
Unknown column 'last_update' in 'field list'
File: Subs-CustomBBCodesAdmin.php
Line: 225

Unknown column 'accept_urls' in 'field list'
File: Subs-CustomBBCodesAdmin.php
Line: 225

These errors occur on creating new bbcode tags.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #206 on: August 09, 2017, 10:25:12 AM »
Uploaded v2.5 - August 9th, 2017
o Readded missing database fields removed by version 2.4 update.



@Bugo:  Thanks for the report!  It's been fixed....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Online drewactual

  • Semi-Newbie
  • *
  • Posts: 46
    • College Football Fan Site CFB51
Re: Custom BBCodes Manager
« Reply #207 on: August 31, 2017, 11:38:48 AM »
i don't know how you guys do what you do, but i can certainly tell you it's appreciated.  hugely appreciated.  thank you, @dougiefresh ...

this mod has my undivided attention.  i haven't implemented it but may attempt to do so tonight.  my site is college football centric and it is wide open right now with the season just underway.  i usually have between 500 and 700 people on it at any time.. i inherited a massive interwebz presence in July that went bankrupt last Feb.. i don't have the luxury right now of 'slapping this in there' and 'seeing if it sticks'. 

i do have confidence that it will work, though... just can't do it until the little hours. 

i seek this for one express purpose: to fix the copy&paste formatting issue my users are lighting me up about.  they copy from various sources across the web and share them on our site for discussion.  it happens all day every day.  the 'remove formatting' only works on the less sophisticated items they 'paste'. 

so... why I'm here and asking the community (and author) before i am knee deep and past the point of return is:

is it possible to use this mod to create a BBC that:
- uses a (beginning code) div:clear-both... div:border....div:background color... (open)table {may as well put whatever they paste in a table, and to assist in containing}
- uses a (ending code) div: clear both... table(close) {in case they opened a table} div(close)

and which basically encapsulates whatever users have pasted and w/o threat of 'breaking the forum's appearance'? 
cfb51.com is a NCAA Football Fan Site, Store, and Publisher, launched in July of 2017

Online NekoSensei

  • Semi-Newbie
  • *
  • Posts: 42
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: Custom BBCodes Manager
« Reply #208 on: September 30, 2017, 08:46:18 PM »
It seems you forgot to add some columns:

Code: [Select]
Unknown column 'last_update' in 'field list'
File: Subs-CustomBBCodesAdmin.php
Line: 225

Unknown column 'accept_urls' in 'field list'
File: Subs-CustomBBCodesAdmin.php
Line: 225

These errors occur on creating new bbcode tags.

i got same with Css ...  ::)
I added

209. 'css' => 'text',
225. isset($data['css']) ? addslashes($data['css']) : '',

i don't know if it's good , but no more error now :)


other problem, the preview button show me a broken picture... :)

 

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #209 on: October 09, 2017, 09:32:28 AM »
Uploaded v2.6 - October 9th, 2017
o Added missing fields in database call in Subs-CustomBBCodeAdmin.php, as mentioned by NekoSensei.



@NekoSensei:  The database fields you mentioned have been added to the code.  Thank you for the bug report!

other problem, the preview button show me a broken picture... :)
I'm looking into this bug report.  Seems some code may have gone missing (or never got implemented).....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline mlemke

  • Newbie
  • *
  • Posts: 2
Re: Custom BBCodes Manager
« Reply #210 on: October 15, 2017, 06:36:43 AM »
I am newbie to this Mod: I' sorry, but I can't read the whole thread searching an answere.

Are there some examples, how to code javascript in a custom BBCode? In the package were no examples included (Custom_BBCodes_Manager_v2.6.zip). (I know, Javascript is included since V 2.1), but my javacript solution generates no output :-((

My bbcode should create a link, because the manager can not parse {content} twice:

Code: [Select]
<script type="text/javascript"><!--
function spec() {
var a="{content}"
document.write("<a href='https://wiki.arages.de/index.php?title="+a+"'><i>"+a+"</i></a>");}
spec()
-->
</script>

or simple:
Code: [Select]
<script type="text/javascript"><!--
var a="{content}"
document.write("<a href='https://wiki.arages.de/index.php?title="+a+"'><i>"+a+"</i></a>");
-->
</script>

My custom bbcode is named spec, but the output is empty.

Example: [spec]Linyphia triangularis[/spec]

I hope anyone can help me.

Thanks!

Martin

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,372
    • XPtsp.com Community
Re: Custom BBCodes Manager
« Reply #211 on: October 17, 2017, 12:53:31 PM »
@mlemke:  You forgot a semicolon on the first line after the function declaration.  Instead of this:
Code: (Find) [Select]
var a="{content}"You need this:
Code: (Replace) [Select]
var a="{content}";Yeah, it's a small change, but you just found out how small changes can make a HUGE impact on code.....

You probably also need to change the actual link-building code to read:
Code: [Select]
document.write("<a href=" + encodeURI("https://wiki.arages.de/index.php?title="+a+"'>") + "<i>"+a+"</i></a>");}
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!