jean-luc November 30, 2015 Share November 30, 2015 Can you make nested hidden tags work? Currently it looks like this [hidden]Oh boy, nesting: [hidden]Oh dear, my code is showing[/hidden][/hidden] :( I don't visit as often as I used to. If you want me to see something, make sure to quote a post of mine or ping me @jean-luc Link to comment Share on other sites More sharing options...
Brassow November 30, 2015 Share November 30, 2015 I guess they could find a way, but why bother? I mean, what would it be needed for? "Try to get a better understanding of things before making your judgement." -Khan, Metro 2033 Link to comment Share on other sites More sharing options...
Guest Anonymous November 30, 2015 Share November 30, 2015 Only jean-luc would find reason to ask such a question. Oh what is he up to now? Link to comment Share on other sites More sharing options...
jean-luc November 30, 2015 Author Share November 30, 2015 I guess they could find a way, but why bother? I mean, what would it be needed for? Because I use hidden tags in some of the release posts for JLW and I want to emulate what I did with Tulpaudcast's OP with each episode in it's own hidden tag. To do this, I'd need hidden within hidden capability. Only jean-luc would find reason to ask such a question. Oh what is he up to now? LOL. You know me too well. I don't visit as often as I used to. If you want me to see something, make sure to quote a post of mine or ping me @jean-luc Link to comment Share on other sites More sharing options...
Guest Anonymous November 30, 2015 Share November 30, 2015 Hidden words within hidden words. Next he will be talking about nested tulpas, like a tulpa hidden within your tulpa. Like your tulpa talks to his own tulpa but you, as the host, have no knowledge of their conversations. Nested secret tulpas. My gods, could it be happening! MELIAN! what? Link to comment Share on other sites More sharing options...
STeeK December 3, 2015 Share December 3, 2015 You can mix hidden and spoilers tags instead, not the same but I guess it does the work [hidden] ...Then I asked: "Whats your opinion, Rose?" She just looked at me and then said: "La wea fome qlo" [/hidden] -> Roseluck's Art Gallery and Requests <- Link to comment Share on other sites More sharing options...
Chupi December 5, 2015 Share December 5, 2015 I don't think it's possible (or at least very feasible) with the tools provided by MyBB's custom MyCode feature. It gives me 2 fields: a regex it will match and what to replace with. It calls preg_replace for each custom MyCode I define. Problem 1: If I use a greedy repeat inside it, [hidden]1[/hidden] [hidden]2[/hidden] will turn into a single hidden. If I use a non-greedy repeat, I get what it does now -- closing the outer one with the closing tag for the inner one. This can probably be solved with some clever messy regex inside it. Problem 2: Even if I could get that part to work, MyBB doesn't call preg_replace multiple times per custom MyCode, so it will only evaluate the outermost one. I guess if I put 5 identical copies of the custom tag, it would support up to 5 levels of nesting. What it looks like right now is: Regex: \[hidden\](.*?)\[\/hidden\] Replacement: [HIDDEN] <-- Click to show/hide hidden text$1(close hidden text) Lyra: human female, ~17 Evan: boy, ~14, was an Eevee Anera: anime-style girl, ~12; Lyra made her My blog :: Time expectations are bad (forcing time targets are good though) Link to comment Share on other sites More sharing options...
Guest Anonymous December 5, 2015 Share December 5, 2015 These guys are gonna blow up the forum with dangerously volatile coding. Link to comment Share on other sites More sharing options...
jean-luc December 5, 2015 Author Share December 5, 2015 Aww, man! There's some technical way to say it, but you can't parse html (or tags very similar to html such as bbcode) with regexs. It's silly that MyBB does it that way. I don't visit as often as I used to. If you want me to see something, make sure to quote a post of mine or ping me @jean-luc Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.