• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

BB Code Manager

Status
Not open for further replies.
To convert your old BB code, you can use Kier's post replace add-on.

http://xenforo.com/community/threads/post-content-find-replace.6548/

Replacing [yt] and [/yt] can be done very easily with an SQL query but the video ID will need a regex to remove the &feature..... stuff.

Over my head as far as my comfort level. I could figure it out I am sure as I am self taught on most of this but time is my biggest enemy right now. May need to employ someone to handle this while I get a run down of what was done so that I know for future needs. :D
 
Post a request in that thread, I'm sure someone will help with the regex string.

I would but as I've said before, regex is voodoo :D

The SQL queries though are straightforward:
Code:
UPDATE xf_post SET message = REPLACE(message, '[yt]', '[media=youtube]');
UPDATE xf_post SET message = REPLACE(message, '[/yt]', '[/media]');
 
Would be great if u added another option:

"Who can see the output? (members)(Visitors) (All)"
If you can do it, please let me know, it's urgent :(

Thanks
 
You can manually create a custom button for the tinymce toolbar. I will give it a try today and let you know how it goes as this is something I need too (not for latex, but the principle is the same...ease of use for the bbcode).

So in the meantime maybe we have a temp solution if luck prevails.
Did we find out how to do this yet?
I already have the button from the old VB editor. Or we can make a 20x20 icon from this pack
http://www.iconarchive.com/show/glaze-icons-by-mart/tex-icon.html
 
Brilliant mod, thank you.

I have a few bbcodes I will be adding to this, when I have done them all I will send you the xmls to add to your collection. ;)
 
Brilliant mod, thank you.

I have a few bbcodes I will be adding to this, when I have done them all I will send you the xmls to add to your collection. ;)
Add the .xmls to the thread yourself, please. :) That way it gets attributed to you.
 
Thanks for this amazing add-on!
is there a way to stop parsing links/urls withing a BB Code?
"Do not parse links/urls within this BB Code."

I have a bbcode similar to the IMG bbcode and whenever I enter the image url, the image doesn't show, the url becomes a link.

Thanks

I have been searching for a way to do that, but haven't found a way that works 100% I will look into it once more soon.

Hey KK, have you got any further with stopping urls from being parsed within a bbcode, looking for the solution to be found myself as one of my bbcodes requires parsing to be blocked.
 
I just tried to install this addon, I tried to install it first by using the link to the file on the server
'/KingK/BbCodeManager/addon_BbCodeManager.xml'
But was told that the file could not be read. No drama, I'll use the remote box and select it from my PC. I then got the error below...

Server Error

call_user_func(KingK_BbCodeManager_BbCodeManager::install) [function.call-user-func]: First argument is expected to be a valid callback
  1. XenForo_Application::handlePhpError() in XenForo/Model/AddOn.php at line 214
  2. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  3. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 180
  4. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/restless/public_html/admin.php at line 13
 
Did we find out how to do this yet?
I already have the button from the old VB editor. Or we can make a 20x20 icon from this pack
http://www.iconarchive.com/show/glaze-icons-by-mart/tex-icon.html
well last night as I was falling asleep I had managed to make a standalone page with tinymce in it and was able to add a button to the editor but ...now
I need to figure out where and how to add it to xenforo's MCE scripting..whenever I repeat my method from standalone in xf templates It makes the editor dissapear from the area where it is sitting though the area is still looking defined as the editor area minus the editor toolbar. Anyone know why I am being a noob right now?

Hey KK, have you got any further with stopping urls from being parsed within a bbcode, looking for the solution to be found myself as one of my bbcodes requires parsing to be blocked.
If your code is using simple replacement only I may be able to help you work around that issue as I have done it myself a couple of times... pm me your bbcode if you would like me to see if I can do something with it.
 
I just tried to install this addon, I tried to install it first by using the link to the file on the server
'/KingK/BbCodeManager/addon_BbCodeManager.xml'
But was told that the file could not be read. No drama, I'll use the remote box and select it from my PC. I then got the error below...

Server Error

call_user_func(KingK_BbCodeManager_BbCodeManager::install) [function.call-user-func]: First argument is expected to be a valid callback
  1. XenForo_Application::handlePhpError() in XenForo/Model/AddOn.php at line 214
  2. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  3. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 180
  4. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /home/restless/public_html/admin.php at line 13
the location of the actual file on the server would be library/KingK/BbCodeManager/addon_BbcodeManager.xml I believe...try that.
 
well last night as I was falling asleep I had managed to make a standalone page with tinymce in it and was able to add a button to the editor but ...now
Can you fall asleep again? I'd like to add the TEX button to the editor.

On another note, is there any discussion on adding more language (C++, C#, etc) to the CODE bbcode?
 
Can you fall asleep again? I'd like to add the TEX button to the editor.

On another note, is there any discussion on adding more language (C++, C#, etc) to the CODE bbcode?
I don't plan on modifying BBCodes from XF.
 
but a tag could be made at some point for...
Code:
[c++]c++ code here[/c++]
right? I mean it is possible right?
 
I guess I'm saying extending the core XF code tag to more languages.

Maybe I should make a suggestion to the core? I saw there are some code highlighter mod a couple days ago here.
I read your question correctly. I purposefully disallowed modifying any of the default tags via BBCM based on the fact of how it is set up. You can easily overwrite i with something useless. I'd make a suggestion for the core product. Maybe have it support GeSHI, and utilize that to parse the syntax?
 
I'd make a suggestion for the core product. Maybe have it support GeSHI, and utilize that to parse the syntax?
Exactly. GeSHI support with coloring of the classes, methods based on the language.
Can you make the suggestion since you know exactly how it can be done?
Tks
 
Well I just started playing around with syntax highlighting....it is just a matter of which script is friendliest for me to work with...I did get a bunch of examples setup on standalone pages so now just a matter of turning it into a bbcode. This could be quick or slow depending on how many times I fail :-)
 
Status
Not open for further replies.
Back
Top Bottom