BbCodes & Buttons Manager - Advanced Bb Codes Pack

BbCodes & Buttons Manager - Advanced Bb Codes Pack 3.7.2

No permission to download
Is it possible to have with the bimg 2 pictures in the center and side by side?
No, they are in block (a container) that is used to structure inner elements (caption) and/or its position (bleft, bcenter, bright).
But you can create a Bb Code wrapper (ie tag: bcenter) with a css class (ie: bcenter_wrapper) and wrap your bimg tags with it.
Code:
[bcenter]
    [bimg]url1[/bimg]
    [bimg]url2[/bimg]
[/bcenter]

Then in your css use something like this:
Code:
.bcenter_wrapper{
     text-align:center;
     width:100%:
}

.bcenter_wrapper > *{
    display: inline-block;
    *zoom:1;
    *display:inline;
}
 
No, they are in block (a container) that is used to structure inner elements (caption) and/or its position (bleft, bcenter, bright).
But you can create a Bb Code wrapper (ie tag: bcenter) with a css class (ie: bcenter_wrapper) and wrap your bimg tags with it.
Code:
[bcenter]
    [bimg]url1[/bimg]
    [bimg]url2[/bimg]
[/bcenter]

Then in your css use something like this:
Code:
.bcenter_wrapper{
     text-align:center;
     width:100%:
}

.bcenter_wrapper > *{
    display: inline-block;
    *zoom:1;
    *display:inline;
}
Hm, the first css code changes nothing and the other one moves the pictures in the center but not side by side.
 
Last edited:
I did this:
Code:
[URL='http://www.xenforo.com'][bimg]http://i.imgur.com/SH6e9NU.png[/bimg][/URL]
but opens the image popup and not the url
Yes you've right, the html a tag can't be nested. If you wrap a url tag between the bimg tag, there will have nested html 'a' tags, so it will break. I will see if I can add an option to the bimg Bb Code to disable the XenForo light box, but I can't promise anything.
 
ErrorException: sprintf(): Too few arguments - library/Starvnnet/UrlToImg/BBcode.php:71
Сгенерирована пользователем: Неизвестная учётная запись, только что
Трассировка стэка
#0 [internal function]: XenForo_Application::handlePhpError(2, 'sprintf(): Too ...', '/home/s/sm42/fo...', 71, Array)
#1 /home/s/sm42/forum.xxx.su/public_html/library/Starvnnet/UrlToImg/BBcode.php(71): sprintf('<img src="%1$s"...', 'http://forum.ro...', ' LbImage')
#2 [internal function]: Starvnnet_UrlToImg_BBcode->renderTagUrl(Array, Array, Object(Sedo_TinyQuattro_BbCode_Formatter_Base))
#3 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Formatter/Base.php(740): call_user_func(Array, Array, Array, Object(Sedo_TinyQuattro_BbCode_Formatter_Base))
#4 /home/s/sm42/forum.xxxa.su/public_html/library/BBM/BbCode/Formatter/Base.php(713): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#5 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Formatter/Base.php(647): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#6 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Formatter/Base.php(560): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#7 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Formatter/Base.php(541): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#8 /home/s/sm42/forum.xxx.su/public_html/library/BBM/BbCode/Formatter/Base.php(1255): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#9 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Formatter/Base.php(521): BBM_BbCode_Formatter_Base->renderSubTree(Array, Array)
#10 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#11 /home/s/sm42/forum.agxxx.su/public_html/library/XenForo/DataWriter/DiscussionMessage/Post.php(72): XenForo_BbCode_Parser->render('
[SIZE=5...')
#12 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/DataWriter/DiscussionMessage.php(344): XenForo_DataWriter_DiscussionMessage_Post->_checkMessageValidity()
#13 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/DataWriter.php(1434): XenForo_DataWriter_DiscussionMessage->_preSave()
#14 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/DataWriter/Discussion.php(345): XenForo_DataWriter->preSave()
#15 /home/s/sm42/forumxxx.su/public_html/library/XenForo/DataWriter/Discussion.php(313): XenForo_DataWriter_Discussion->_preSaveFirstMessageDw()
#16 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/DataWriter.php(1434): XenForo_DataWriter_Discussion->_preSave()
#17 /home/s/sm42/forum.xxxa.su/public_html/library/XenForo/DataWriter.php(1373): XenForo_DataWriter->preSave()
#18 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Feed.php(495): XenForo_DataWriter->save()
#19 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Feed.php(536): XenForo_Model_Feed->_insertFeedEntry(Array, Array, Array)
#20 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Feed.php(563): XenForo_Model_Feed->_insertFeedData(Array, Array)
#21 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Feed.php(588): XenForo_Model_Feed->importFeedData(Array)
#22 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/CronEntry/Feeder.php(15): XenForo_Model_Feed->scheduledImportTimeLimited(15)
#23 [internal function]: XenForo_CronEntry_Feeder::importFeeds(Array)
#24 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#25 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#26 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_Cron->execute(Array, Array, 7.99999809265, '')
#27 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.99999809265, '', false)
#28 /home/s/sm42/forum.xxx.su/public_html/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#29 /home/s/sm42/forum.xxx.su/public_html/deferred.php(23): XenForo_Model_Deferred->run(false)
#30 {main}​
 
I'd like slides of the tabs bbcode were all closed by default. I use them as buttons. Cédric, is there a quick way to do this?
 
I'd like slides of the tabs bbcode were all closed by default. I use them as buttons. Cédric, is there a quick way to do this?
If you mean the slides of the accordion, no. At least one must be opened (use "open" in the selected slide). I've done this to avoid page jump: with an none responsive style, having a fix height container allows to position the text (it will not changed). For what you want to do, the spoiler tag might be better.
 
I did this:
Code:
[URL='http://www.xenforo.com'][bimg]http://i.imgur.com/SH6e9NU.png[/bimg][/URL]
but opens the image popup and not the url
I've just thought to a simple solution, just insert the link in your legend. You can use the nested tags option if you don't want to bother with the special tags, but here'a a solution that works everytime:
HTML:
[bimg=This is a link: {URL='http://www.google.fr'}Open Google{/URL}]https://www.google.fr/images/srpr/logo11w.png[/bimg]
I will still try to make an option to disable the lightbox so the bimg tag can be wrapped inside an url.
 
Version 3.6.0 preview (available on Github)

  • Bb Codes formatters modified to use the helpers of the last version of the Bbm addon
  • Spoilerbb tag improved - thanks to @ZeZeene
  • New features for the bimg tag:
    1. can disable the lightbox
      Use the option: no-lightbox
    2. can set a parent link instead of the one use by the lightbox (this will disable the lightbox)
      Just insert an url as an option in the Bb Code options
      Example:
      Code:
      [bimg=http://www.mycustomurl.xyz]http://www.mycustomurl.xyz/b.png[/bimg]
    3. can compare two pictures thanks to the script twenty twenty ; some magazines use a similar script recently to compare pictures with and without pollution
      Just insert a new img url or img attachment id in the Bb Code content that will be separated with the first one by |
      Example:
      Code:
      [bimg]http://www.mycustomurl.xyz/a.png|http://www.mycustomurl.xyz/b.png[/bimg]
      or
      Code:
      [bimg]11|12[/bimg]
      • If you want to enable the vertical comparison (instead of the honrizontal one), just use the option:
        diff-v or diff-vertical
      • If you want to set the cursor position use the option diff-pos:xx ;
        xx being a number between 0 and 1 (0.1 will make the cursor on the left, 0.9 on the right)

P.S: sorry for the example, next time I will choose another one.
 

Attachments

  • bimg1.webp
    bimg1.webp
    18.1 KB · Views: 12
  • bimg2.webp
    bimg2.webp
    44.2 KB · Views: 12
  • bimg3.webp
    bimg3.webp
    22.4 KB · Views: 10
  • bimg4.webp
    bimg4.webp
    21.7 KB · Views: 10
Last edited:
cclaerhout updated BbCodes & Buttons Manager - Advanced Bb Codes Pack with a new update entry:

Version 3.6.0 released

Version 3.6.0 released

This update requires at least the version 2.7.x of the Bbm

  • Bb Codes formatters modified to use the helpers of the last version of the Bbm addon
  • Spoilerbb tag improved - thanks to @ZeZeene
  • New features for the bimg tag:
    1. can disable the lightbox
      Use the option: no-lightbox
    2. can set a parent link instead of the one use by the lightbox (this will disable the lightbox)
      Just...

Read the rest of this update entry...
 
Top Bottom