Thank you Cédric that worked. However I just noticed the SIZE Bb Code is no longer working. Also the custom Bb Codes are being listed twice in Help -> BB Codes
Version 1.3.6.6 - Change Log:
link to download
To upgrade:use the Chris AutoInstaller addon or upload files
- Fix a stupid mistake that prevents the size Bb Code to work
@Thanks to owls8521 & sorry for this
Explanation: a debug line of code had been forgotten to be deleted
Use the template method replacement (read parser methods options when creating a Bb Code) and test the code Jake gave you here. If you still don't understand how it works, just check the Highlight Bb Code (available in extras directory of the archive).A number of people within this thread have asked about setting up a BBCode to make a named anchor and link to it. I thought I'd share my progress. I found it pretty easy to make a named anchor. The key was to put <a name=" in as the Simple Replacement Start and "></a> as the simple replacement end. (There are other steps, but a persistent newbie like myself can figure them out just by exploring.)
Making a special BBCode to link to a named anchor was harder. Jake Bunce offered some helpful advice, but I don't know BBCM well enough to implement them. In the end, I decided that I didn't need it. I just used the regular link BBCode and linked to the full URL. While in some circumstances this might lead to undesirable behavior, I'm not sure what ideal code would do. Should it, for example assume that the anchor is on the same web page as the post being edited? The code being discussed in the following thread seems to assume this, but that would only be robust if you are linking to an anchor in the same post:
http://xenforo.com/community/threads/using-anchors-in-a-post.15314/
Anyhoo, if anyone figures this out, I'd love to see what they come up with, but that's it for me for now.
Use a recent version. The installer has been rewritten.get this error when trying to install it
Server Error
Mysqli statement execute error : Duplicate entry '1' for key 'PRIMARY'
- Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
- Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
- Zend_Db_Adapter_Abstract->query() in KingK/BbCodeManager/BbCodeManager.php at line 115
- KingK_BbCodeManager_BbCodeManager::install() in XenForo/Model/AddOn.php at line 214
- XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
- XenForo_Model_AddOn->installAddOnXmlFromFile() in AddOnInstaller/ControllerAdmin/AddOn.php at line 42
- AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /home/user/public_html/forum/admin.php at line 13
There is no query at the line 115 and if you install the addon and not update it all previous installation in the database should be erased.same error =)
DROP TABLE IF EXISTS kingk_bbcm
DROP TABLE IF EXISTS kingk_bbcm_buttons
ALTER TABLE xf_forum DROP bbcm_bm_editor
By the way, for a recent version, see here.
It's for the Buttons manager. You can customize its layout by forums.i didnt know there was another thing in xf_forum
Thanks, Cédric. I think that this solves the issue of how to make a. I made a template with the following text:Use the template method replacement (read parser methods options when creating a Bb Code) and test the code Jake gave you here. If you still don't understand how it works, just check the Highlight Bb Code (available in extras directory of the archive).
So it works, nice ! I will steal it from you for my websites Actually the one to thank is Jake.Thanks, Cédric. I think that this solves the issue of how to make a. I made a template with the following text:
<a href="{$requestPaths.requestUri}#{xen:raw $options.1}">{xen:raw $content}</a>Then I called it using your instructions.
I used the BBCode to make a table of contents for our forum FAQ:
www.tmswiki.org/forum/threads/forum-faqs-frequently-asked-questions.1618/
The syntax is [anchor="anchortext"]Display Text[/anchor] and [goto="anchortext"]Display Text[/goto]. It's quite a useful little BBCode.
Glad to hear it! And I just added "Return to Top" links after each of the answers in the FAQ using the same BBCodes. It makes it quite easy to navigate.So it works, nice ! I will steal it from you for my websites Actually the one to thank is Jake.
That's a normal behaviour their: the parser is not called here. It should be possible to update the code to only render the content without the tags, but this requires further checks.I don't know if this would be a major upgrade, but one thing I've noticed is that the BBCodes don't render fully in content preview tooltips. See the following screenshot, for example:
View attachment 43593
Is there anything that can be done about that?
We use essential cookies to make this site work, and optional cookies to enhance your experience.