What's new
  • When posting, please be aware that artistic nudity is still nudity and not allowed under RpNation rules. Please edit your pictures accordingly!

    Remember to credit artists when using work not your own.

Closed code inside tabs (issue resolved)

VALEN T.

𝖈 𝔬𝔫 𝔟𝔬𝔱𝔥 𝔰𝔦𝔡𝔢𝔰 𝔩𝔦𝔨𝔢 𝖈𝖍𝖆𝖓𝖊𝖑
i was coding something and i came across an issue (or a bug maybe ?)

if i try adding tab code inside of tabs, it doesn't work:

  • lorem ipsum text in the first tab


here's the code i was trying to add in the 1st tab:
Code:
[tabs]
[tab=secondary tab code]lorem ipsum[/tab]
[tab=secondary tab 2 code]lorem ipsum 2[/tab]
[/tabs]
so uhm...help please
 
Last edited:

VALEN T.

𝖈 𝔬𝔫 𝔟𝔬𝔱𝔥 𝔰𝔦𝔡𝔢𝔰 𝔩𝔦𝔨𝔢 𝖈𝖍𝖆𝖓𝖊𝖑
also omg idk what i did but this thread's viewing weird for me after that post 😰
SharedScreenshot.jpg

mom i'm scared 😭
 
Last edited:

VALEN T.

𝖈 𝔬𝔫 𝔟𝔬𝔱𝔥 𝔰𝔦𝔡𝔢𝔰 𝔩𝔦𝔨𝔢 𝖈𝖍𝖆𝖓𝖊𝖑
pasta pasta polygon polygon omg i think i broke smth 😭

also pasta pasta not exactly, i should've explained better: i'm trying to add, for example, this code (with the "code" tags)
Code:
[tabs]
[tab=1]lorem ipsum[tab]
[tab=2]lorem ipsum 2[/tab]
[/tabs]
inside of a tab but it's not working

Alteras Alteras yes please thank you 🥺 ♥
 

pasta

internet girl
pasta pasta polygon polygon omg i think i broke smth 😭

also pasta pasta not exactly, i should've explained better: i'm trying to add, for example, this code (with the "code" tags)
Code:
[tabs]
[tab=1]lorem ipsum[tab]
[tab=2]lorem ipsum 2[/tab]
[/tabs]
inside of a tab but it's not working

Alteras Alteras yes please thank you 🥺 ♥
OHHHH yeah, i don't know how that works. i don't know if it's possible because i also tried using the plain tag and it still doesn't work. there's probably a solution tho that im blind to.
 

VALEN T.

𝖈 𝔬𝔫 𝔟𝔬𝔱𝔥 𝔰𝔦𝔡𝔢𝔰 𝔩𝔦𝔨𝔢 𝖈𝖍𝖆𝖓𝖊𝖑
Musician Musician i mean 👉🏽 👈🏽 you did but i'm trying to go for this: (quickly edited a pic of my desired final product)
Untitled design.png

pasta pasta thank you anyway ily 🥺 ♥
 

Musician

🦚
Moderator
VALEN T. VALEN T.


[tabs]

[tab=1st tab][code][tabs]

[tab=secondary tab code]lorem ipsum[/tab]

[tab=secondary tab 2 code]lorem ipsum 2[/tab]

[/tabs][/code][/tab]

[tab=secondary tab code]lorem ipsum[/tab]

[tab=secondary tab 2 code]lorem ipsum 2[/tab]

[tab=2nd tab]lorem ipsum text in the second tab nothing here[/tab]

[/tabs]

  • words
 
Last edited:

Musician

🦚
Moderator
Hmm, yeah, something seems strange about it. Alteras Alteras might wanna check it out? The code is correct but it's still affecting the appearance of the forums.

Screen Shot 2020-07-18 at 2.01.25 PM.png
 
Last edited:

Alteras

The Sleepy One
Moderator
Supporter
Haaa... It's most likely a bug that has to do with how xf's built in BBCode engines processes custom and non-custom bbcode. Looking at the single iteration case, what's happening is that the tab code is locating the [/tab] tag inside the code block, and turn it into HTML. And because it turns it into HTML, the browser will pick it up, break it out of the code block, and break the rest of the page.

If I remember correctly, accordion suffers from the same problem, though I only encountered it during the bbcode palette challenge, so it's not much of a reference...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top