• 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.
A [float-left] and [float-right] bbc code would be best with the proper margin, instead of padding.
 
You can now use the advanced options and do something such as:
HTML:
<div style="float: {1}; margin-{1}: 6px;">
 
Hmmm, I see the styling for the spoiler BB Code is in the php file.

I'd like to change the appearance of it, specifically removing it from a quote box, so was hoping there would be a css file for that.

I've edited the php file anyway but it might be worth considering having a style sheet for all the various BB Codes.

And float tags still don't work for me. I just get the image aligned right with no text wrapping.
Removing the <div style="clear:both"></div> fixes it.
 
Hmmm, I see the styling for the spoiler BB Code is in the php file.

I'd like to change the appearance of it, specifically removing it from a quote box, so was hoping there would be a css file for that.

I've edited the php file anyway but it might be worth considering having a style sheet for all the various BB Codes.

And float tags still don't work for me. I just get the image aligned right with no text wrapping.
Removing the <div style="clear:both"></div> fixes it.

For the float I changed the start:

<span style="float: %s;padding-left: 10px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px;">

End:

</span>
 
I think the BBCode Manager is interferring with the recent threads module of XenPorta. When I activate BBCode manager the portal is not accessible. This error occurs:

Undefined variable: tagId
library/KingK/BbCodeManager/BbCode/Formatter/Default.php:76

Code:
#0 /home/path/public_html/library/KingK/BbCodeManager/BbCode/Formatter/Default.php(76): XenForo_Application::handlePhpError(Array, Array, Object(EWRmedio_BbCode_Formatter))
#1 /home/path/public_html/library/KingK/BbCodeManager/BbCode/Formatter/Base.php(118): KingK_BbCodeManager_BbCode_Formatter_Default::parseTagSpoiler(Array, Array)
#2 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(477): KingK_BbCodeManager_BbCode_Formatter_Base->renderAdvancedTag(Array, Array, Object(EWRmedio_BbCode_Formatter))
#3 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(392): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array, Object(EWRmedio_BbCode_Formatter))
#4 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(316): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, Array)
#5 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(297): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#6 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(277): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array, 0)
#7 /home/path/public_html/library/XenForo/BbCode/Parser.php(498): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#8 /home/path/public_html/library/EWRporta/Block/RecentNews.php(37): XenForo_BbCode_Parser->render(Array, Array)
#9 /home/path/public_html/library/EWRporta/ViewPublic/Portal.php(31): EWRporta_Block_RecentNews->getModule('[spoiler=Filmde...')
#10 /home/path/public_html/library/XenForo/ViewRenderer/Abstract.php(212): EWRporta_ViewPublic_Portal->renderHtml(Array)
#11 /home/path/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(69): XenForo_ViewRenderer_Abstract->renderViewObject()
#12 /home/path/public_html/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
#13 /home/path/public_html/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
#14 /home/path/public_html/index.php(15): XenForo_FrontController->run(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#15 {main}
[/CODE]
 
Hmmm, I see the styling for the spoiler BB Code is in the php file.

I'd like to change the appearance of it, specifically removing it from a quote box, so was hoping there would be a css file for that.

I've edited the php file anyway but it might be worth considering having a style sheet for all the various BB Codes.

And float tags still don't work for me. I just get the image aligned right with no text wrapping.
Removing the <div style="clear:both"></div> fixes it.
Yeah, I could probably build it via a template... I might add a template option in v1.3.

I think the BBCode Manager is interferring with the recent threads module of XenPorta. When I activate BBCode manager the portal is not accessible. This error occurs:

Undefined variable: tagId
library/KingK/BbCodeManager/BbCode/Formatter/Default.php:76

Code:
#0 /home/path/public_html/library/KingK/BbCodeManager/BbCode/Formatter/Default.php(76): XenForo_Application::handlePhpError(Array, Array, Object(EWRmedio_BbCode_Formatter))
#1 /home/path/public_html/library/KingK/BbCodeManager/BbCode/Formatter/Base.php(118): KingK_BbCodeManager_BbCode_Formatter_Default::parseTagSpoiler(Array, Array)
#2 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(477): KingK_BbCodeManager_BbCode_Formatter_Base->renderAdvancedTag(Array, Array, Object(EWRmedio_BbCode_Formatter))
#3 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(392): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array, Object(EWRmedio_BbCode_Formatter))
#4 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(316): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, Array)
#5 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(297): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#6 /home/path/public_html/library/XenForo/BbCode/Formatter/Base.php(277): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array, 0)
#7 /home/path/public_html/library/XenForo/BbCode/Parser.php(498): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#8 /home/path/public_html/library/EWRporta/Block/RecentNews.php(37): XenForo_BbCode_Parser->render(Array, Array)
#9 /home/path/public_html/library/EWRporta/ViewPublic/Portal.php(31): EWRporta_Block_RecentNews->getModule('[spoiler=Filmde...')
#10 /home/path/public_html/library/XenForo/ViewRenderer/Abstract.php(212): EWRporta_ViewPublic_Portal->renderHtml(Array)
#11 /home/path/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(69): XenForo_ViewRenderer_Abstract->renderViewObject()
#12 /home/path/public_html/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
#13 /home/path/public_html/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
#14 /home/path/public_html/index.php(15): XenForo_FrontController->run(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#15 {main}
[/CODE]

Honestly, I have no idea what that menas right this second.
 
:( I've noticed this happens on threads using spoiler. I guess it's not been rendered and that causes problem. This didn't happen before with previous version of the XenPorta.

My board has beta 5, XenPorta 1.0.7 and BBCode Manager v1.2.0 installed.
 
Small error with the field length on the table:
error.webp

I appreciate the Example field will typically be quite small but you might want to consider changing it from varchar(255).
 
This won't work by the way as the margin needs to be the opposite of the float.
So float left would require margin right and vice versa.

Exactly. As Brogan mentioned before, the best route would be to create a float left and a float right as separate tags...
 
This won't work by the way as the margin needs to be the opposite of the float.
So float left would require margin right and vice versa.
See, this is why I'm a PHP guru and not a CSS guru! ;)

Small error with the field length on the table:
View attachment 7626

I appreciate the Example field will typically be quite small but you might want to consider changing it from varchar(255).
I'll get that updated. I don't remember setting it to varchar() but shouldn't be too hard.

:( I've noticed this happens on threads using spoiler. I guess it's not been rendered and that causes problem. This didn't happen before with previous version of the XenPorta.

My board has beta 5, XenPorta 1.0.7 and BBCode Manager v1.2.0 installed.
I'll have to look into it, but its finals week so it probably won't be until Saturday.
 
See, this is why I'm a PHP guru and not a CSS guru! ;)
Well your skills far outweigh mine so I wouldn't worry about it :D

I'm just setting up all of the BB Codes I use now.
Once they're finalised I'll export them and you can add them to your resources thread.
 
Well your skills far outweigh mine so I wouldn't worry about it :D

I'm just setting up all of the BB Codes I use now.
Once they're finalised I'll export them and you can add them to your resources thread.
;) Thanks, but feel free to post them yourself! Any other ones you can add due to varchar(255)? Because I'll be away for most of the week.
 
I actually only found the varchar problem as I was testing how one of my codes looked on the help page.
I should be able to add them all no problem.
 
Status
Not open for further replies.
Back
Top Bottom