[BETA] Prime Nest BBCodes - Allows Nesting of custom BBCodes

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

primehalo wrote:Whoops, it seems the line I copied didn't actually copy. I have corrected the instructions in my previous post.
Thanks, that fixes the error but it keeps coming out the BUG :cry:
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by primehalo »

Sorry, that's the only suggested fix I had.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

primehalo wrote:Sorry, that's the only suggested fix I had.
Then the BUG is impossible to solve ?¿
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by 4_seven »

Have u read the correction?
http://www.phpbb.com/community/viewtopi ... #p12973044

if the error appears after correction, zip the relevant file and link it here.
Current Mods | Mod Base | php(BB) programming | No help via PM
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

4_seven wrote:Have u read the correction?
http://www.phpbb.com/community/viewtopi ... #p12973044

if the error appears after correction, zip the relevant file and link it here.
This solution not work for me
Saske1 wrote:
primehalo wrote:Whoops, it seems the line I copied didn't actually copy. I have corrected the instructions in my previous post.
Thanks, that fixes the error but it keeps coming out the BUG :cry:
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by 4_seven »

First
4_seven wrote:Have u read the correction?
http://www.phpbb.com/community/viewtopi ... #p12973044
..means primehalo had edit this post, so evtl. f5 your browser.

Second, if u have done this above already
Saske1 wrote:Thanks, that fixes the error but it keeps coming out the BUG
What Bug? Screenshot? Copy of exact error?

At least, if nothing helps
4_seven wrote:if the error appears after correction, zip the relevant file and link it here.
Current Mods | Mod Base | php(BB) programming | No help via PM
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

4_seven wrote:First
4_seven wrote:Have u read the correction?
http://www.phpbb.com/community/viewtopi ... #p12973044
..means primehalo had edit this post, so evtl. f5 your browser.

Second, if u have done this above already
Saske1 wrote:Thanks, that fixes the error but it keeps coming out the BUG
What Bug? Screenshot? Copy of exact error?

At least, if nothing helps
4_seven wrote:if the error appears after correction, zip the relevant file and link it here.
I tested both the first solution as the second, but as I said, no function
I tested both the first solution as the second, but as I said, no function
The BUG is the same as I said in the first post I've done on this topic
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 123: Undefined variable: max_depth
Not quite understand your message, but I think want to leave here the file includes / bbcode.php, where it is assumed that the error
http://espartapsp.zobyhost.com/resources/file/57
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by 4_seven »

The BUG is the same as I said in the first post I've done on this topic
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 123: Undefined variable: max_depth
ok, got it.
but the mod works for you?
only thing is the error message? right?
Current Mods | Mod Base | php(BB) programming | No help via PM
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

4_seven wrote:
The BUG is the same as I said in the first post I've done on this topic
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 123: Undefined variable: max_depth
ok, got it.
but the mod works for you?
only thing is the error message? right?
So, what is the BUG only that, the mod works perfectly me
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by primehalo »

If the MOD works fine, then I can get rid of the error message no problem...

Find:

Code: Select all

if ($bbcode_id > NUM_CORE_BBCODES && $max_depth > 0
Replace with:

Code: Select all

if ($bbcode_id > NUM_CORE_BBCODES && isset($max_depth) && $max_depth > 0
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by 4_seven »

It's not this mod, but your highly modded bbcode.php, what forces the error.
in testinstall i have no error. so make this as preventive-action for you.

find

Code: Select all

// Here each nested tag will get its replacement, up to $max_depth tags  
before add

Code: Select all

$max_depth = (isset($max_depth)) ? $max_depth : 0; 
thats it
Current Mods | Mod Base | php(BB) programming | No help via PM
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

4_seven wrote:It's not this mod, but your highly modded bbcode.php, what forces the error.
in testinstall i have no error. so make this as preventive-action for you.

find

Code: Select all

// Here each nested tag will get its replacement, up to $max_depth tags   
before add

Code: Select all

$max_depth = (isset($max_depth)) ? $max_depth : 0; 
thats it
Many Thanks, it works perfect :D
He was beginning to think it could be solved ... :lol:
Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Saske1 »

Hello again
As could make this mod compatible with AbbCode Box ?¿ http://www.phpbb.com/customise/db/mod/a ... ode_box_3/

Thanks in advance :)
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by Oyabun1 »

Saske1 wrote:... As could make this mod compatible with AbbCode Box ...
Well, the MOD's only been in development for 3½ years now, so adding support for extraneous MODs by other authors probably wouldn't add more than another 2 or 3 years on top of future development time. :roll:
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Nest BBCodes - Allows Nesting of custom BBC

Post by primehalo »

I wanted to do a different version which didn't rely on such a complex regular expression, but I just never found the time. Maybe someday I'll be able to get around to it.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Locked

Return to “[3.0.x] MODs in Development”