• 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.
Actually, not the tempalte. Open the Model/CustomBbCode.php file and find:
PHP:
					$active[$tag['tag']]['theOptions'] .= ', ';
and set ', ' to be the same.
 
Will do.
I'm not actually using any codes with multiple parameters at the moment so I'll create one and test it.
 
Great stuff!
Just tested and it's all working.

Thanks again, much appreciated :)

Some sample code for anyone else who wants to make the same changes and check it's working. I used | to replace the comma in the templates.
Code:
[z=000000 | FFFFFF | 30]This is a test.[/z]
Code:
<div style="background: #{1}; color: #{2}; font-size: {3}px"></div>
 
I have an idea: how about making a second type of spoiler? For example you select some piece of text then apply spoiler2 bbcode and that text becomes invisible. I mean no buttons, just invisible text. And when you hover on it the text appears.
This should be very useful for movie or TV forums.
 
Love it, nice job.

One idea that would be amazingly, mind-blow-tastically awesome in my opinion would be the ability for the [user] bbcode to trigger an alert - I'm not sure how feasible it is, but something to consider perhaps?
For instance [user]Caelum[/user] triggering an alert to user Caelum, vaguely like this (seemingly abandoned) hack.
 
I have an idea: how about making a second type of spoiler? For example you select some piece of text then apply spoiler2 bbcode and that text becomes invisible. I mean no buttons, just invisible text. And when you hover on it the text appears.
This should be very useful for movie or TV forums.

Actually, I'd just need to determine how to use style properties and do that or have people add CSS. Shuldn't be too hard (and I'd call it [invisible] personally).

Love it, nice job.

One idea that would be amazingly, mind-blow-tastically awesome in my opinion would be the ability for the [user] bbcode to trigger an alert - I'm not sure how feasible it is, but something to consider perhaps?
For instance [user]Caelum[/user] triggering an alert to user Caelum, vaguely like this (seemingly abandoned) hack.

Thanks. I'll add it to my list of possible features internally. Not sure how feasible this'd be.
 
I've just updated with the latest archive but have still the same problem. Threads with spoiler bbcode, custom bbcode doesn't work. When I turn the recent news charachter limit to zero, It starts working...
 
Undefined variable: tagId
library/KingK/BbCodeManager/BbCode/Formatter/Default.php:76

Code:
#0 /var/www/vhosts/path/httpdocs/library/KingK/BbCodeManager/BbCode/Formatter/Default.php(76): XenForo_Application::handlePhpError(Array, Array, Object(KingK_BbCodeManager_BbCode_Formatter_Base))
#1 [internal function]: KingK_BbCodeManager_BbCode_Formatter_Default::parseTagSpoiler(Array, Array)
#2 /var/www/vhosts/path/httpdocs/library/KingK/BbCodeManager/BbCode/Formatter/Base.php(118): call_user_func_array(Array, Array, Object(KingK_BbCodeManager_BbCode_Formatter_Base))
#3 [internal function]: KingK_BbCodeManager_BbCode_Formatter_Base->renderAdvancedTag(Array, Array, Array, Object(KingK_BbCodeManager_BbCode_Formatter_Base))
#4 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Formatter/Base.php(477): call_user_func(Array, Array, Array)
#5 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Formatter/Base.php(392): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, 0)
#6 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Formatter/Base.php(316): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#7 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Formatter/Base.php(297): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array)
#8 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Formatter/Base.php(277): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#9 /var/www/vhosts/path/httpdocs/library/XenForo/BbCode/Parser.php(498): XenForo_BbCode_Formatter_Base->renderTree('[spoiler=Oyunda...')
#10 /var/www/vhosts/path/httpdocs/library/EWRporta/Block/RecentNews.php(37): XenForo_BbCode_Parser->render(Array)
#11 /var/www/vhosts/path/httpdocs/library/EWRporta/ViewPublic/Portal.php(31): EWRporta_Block_RecentNews->getModule()
#12 /var/www/vhosts/path/httpdocs/library/XenForo/ViewRenderer/Abstract.php(212): EWRporta_ViewPublic_Portal->renderHtml('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
#13 /var/www/vhosts/path/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(69): XenForo_ViewRenderer_Abstract->renderViewObject('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
#14 /var/www/vhosts/path/httpdocs/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#15 /var/www/vhosts/path/httpdocs/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView()
#16 /var/www/vhosts/path/httpdocs/index.php(15): XenForo_FrontController->run()
#17 {main}
[/CODE]
 
Fixed. Reupload files. It appears that my computer decided to save the correct file in a new location.
 
Updated to v1.2.1 to fix a small PHP programming error (will fix compatibility issues with XenPorta).

Hi King kovifor,

I want to use mod to wrap the text around and image in a post so it looks like an article(which is also shown in my XenPortal). Would I be able to do this now with XenPortal? or are there compatibility issues as you mention? Thanks mate.
 
Hi King kovifor,

I want to use mod to wrap the text around and image in a post so it looks like an article(which is also shown in my XenPortal). Would I be able to do this now with XenPortal? or are there compatibility issues as you mention? Thanks mate.

Is there such bbcode, that I'm not aware of ? I'd liketo have this one too :D
 
I posted some float BB Code here which wraps text around images: http://xenforo.com/community/threads/bb-code-manager-bb-code-xml-repository.8470/#post-127621

I don't know if it works with XenPortal though as I don't have that mod installed.

I actually tried this and it seemed to sort of work... cant remember all the details but it kind of worked then didnt so i thought this may be some sort of compantibility issue King K mentioned above? Not sure, hopefully he can elaborate.
Is there such bbcode, that I'm not aware of ? I'd liketo have this one too :D

Yep, search a few pages back the info is there, you may have better luck
 
I actually tried this and it seemed to sort of work... cant remember all the details but it kind of worked then didnt so i thought this may be some sort of compantibility issue King K mentioned above? Not sure, hopefully he can elaborate.


Yep, search a few pages back the info is there, you may have better luck
The compatibility issue was with the spoiler code only. Should be fine now.
 
Status
Not open for further replies.
Top Bottom