[tabs] bbcode

[tabs] bbcode 1.1.0

No permission to download
When I use

Code:
[tabs]
[tab=Eggs][URL='http://taleofdragons.net/levelup.php?id=dGrPt'][IMG]http://taleofdragons.net/get/dGrPt.gif[/IMG][/URL][/tab]
[tab=Stage 1][URL='http://taleofdragons.net/levelup.php?id=dGrPt'][IMG]http://taleofdragons.net/get/dGrPt.gif[/IMG][/URL][/tab]
[tab=Stage 2][URL='http://taleofdragons.net/levelup.php?id=dGrPt'][IMG]http://taleofdragons.net/get/dGrPt.gif[/IMG][/URL][/tab]
[/tabs]

It doesn't show at all. Just an empty box.
Interesting, you found a small bug.

The reason is that, the only content in the tabs is an image. There is a small optimization in which, if the tab has no "content" it is not rendered. This helps to catch invalid markup. Sadly, when you have only an image that was counting as no content.

I uploaded a zip file with a fix for that.
 
Found a bug with the new version. It shows each image three times in each tab.

Only when the content in each tab is the same. Odd. When I changed one link it was only showing one image in each tab.
 
Rigel Kentaurus updated [tabs] bbcode with a new update entry:

Fix for ordered and unordered lists display

Bug fixes in this release
  • When the tabs are empty, nothing will be generated. Previously the chrome (borders, etc) would be generated giving a really bad display
  • More fixes for edge cases with BBCode. People were using this with crazy combinations of color, size, and unbalanced (invalid) tags in top of that. The add-on no longer breaks when it hits those edge cases
  • The <ul> and <li> inside the tabs had their bullets or numbers removed by css inheritance. This has been corrected....

Read the rest of this update entry...
 
Rigel, did you find a fix for not displaying the 'dots' in the unordered list within a tab?
Finally, yes. I tweaked the CSS for it, and piled it up with a couple of bug fixes. My members in my forum managed to use the bbcode in such crazy situations that they broke it. It's amazing how dirty the code produced by the TinyMCE editor is.

Thanks for addon :)


Ops, you just posted 30 minutes before I released a new version. Make sure to use the newest version, it has bug fixes.
 
what would happen to the contents of the topic if i removed the addon or upgraded to unsupported version of xenforo
also can this be used for comments or only threads
and finally does it change or mess with any xenforo original files

look very nice add on
 
what would happen to the contents of the topic if i removed the addon or upgraded to unsupported version of xenforo

It would implode, it would delete the thread itself and there is a possibility that the contents of the tab are replaced with nasty pictures of cats having tea. That is due to this code

function uninstall()
{
// replace pictures with cats
foreach ($posts as $post)
{
$post['message'] = preg_replace("/[tabs]/", "<img src=\"http://i523.photobucket.com/albums/w354/BabyUgs/Animals/Cats/HavingTea.jpg\">", $post['message']);
}
}

also can this be used for comments or only threads

Since BBCode does not work in comments, I would say it would not work. It pretty much works in whatever accepts BBCode (posts, conversations, the signature)

and finally does it change or mess with any xenforo original files
Not at all, it doesn't touch even one of the XenForo original files. It is coded using only hooks. There is a listener on the bbcode that adds the new one.
 
First answer was a joke.
If you delete the addon the tabs would stop showing and the bbcode that generates it will show instead. I.E. you would see in your posts

Code:
[tabs][tab=title]Content[/tab][/tabs]

Same thing as if someone tried to use it without the bbcode installed
 
First answer was a joke.
If you delete the addon the tabs would stop showing and the bbcode that generates it will show instead. I.E. you would see in your posts

Code:
[tabs][tab=title]Content[/tab][/tabs]

Same thing as if someone tried to use it without the bbcode installed

good to know , i got shucked and went testing in on my local host good thing you replayed before i go ahead and try

really though one of the best and most efficient addons i came a across
 
Hi, what about subtabs?
Code:
[tabs][tab=title][subtab=title]Content[/subtab][subtab=title]Content[/subtab]Content[/tab][/tabs]
 
Back
Top Bottom