PDA

View Full Version : invalid tag nesting in my postbit template when I save


scoutz
12-06-2013, 12:42 PM
I'm having problems with my postbit_legacy template. I have both my private message and my post bit template in the same template.
I use <vb:if condition="THIS_SCRIPT == 'private'"> and and else tag and I closed it with an if tag.

It was working perfectly fine. Only problem was this last change. I didn't save my previous template (was too sleepy)

After my latest update on the template, that started to happen and now the private messages look broken.

The following error occurred when attempting to evaluate this template:
Invalid Tag Nesting
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Anyone have an idea?


Code: solved

Thank you in advance.

ozzy47
12-06-2013, 12:48 PM
I would be willing to bet you would get a better response if you posted the code here, as long as it don't contain sensitive info.

tbworld
12-06-2013, 01:02 PM
Anyone have an idea? I will send you my code by private message then.

No reason not to post/attach your template code if you want help. It is HTML and anybody can copy the structure freely if they visit your page.

scoutz
12-06-2013, 03:43 PM
I would be willing to bet you would get a better response if you posted the code here, as long as it don't contain sensitive info.

No reason not to post/attach your template code if you want help. It is HTML and anybody can copy the structure freely if they visit your page.

I tried to post as an attachment but it said "invalid file" that's why. I tried to post it in code tags but then the post got too big... lol
I will just put it on pastebin and link it on my first post and here.

The code: solved

Max Taxable
12-06-2013, 03:54 PM
I'm afraid you'll just have to go through all that mess and make sure that when ANY "if" conditional is opened, it is also later closed, "/if" ...

tbworld
12-06-2013, 04:22 PM
I tried to post as an attachment but it said "invalid file" that's why. I tried to post it in code tags but then the post got too big... lol
I will just put it on pastebin and link it on my first post and here.

The code: http://pastebin.com/2RPkjjPY

Thanks for posting the code. :)

However, no one will have the time to go through that amount of code for you.

If you have and can post a prior version that worked, maybe I can use a comparison program to narrow down the field enough where I can help.

Also, along with the previous version:
What version of vb?
Mods that you have included in your postbit?

A better practice in the future is to create a new template with your new code and insert it via a variable into the 'postbit' template. This will keep the template manageable.

Lynne
12-06-2013, 04:40 PM
You've got an else (<!-- if pm end -->) that doesn't seem to belong to an if. So, I would go through and check that.

scoutz
12-06-2013, 06:14 PM
I'm afraid you'll just have to go through all that mess and make sure that when ANY "if" conditional is opened, it is also later closed, "/if" ...


Yeah I have been doing it for the past couple hours non-stop, I finally found the tag. Thanks everyone for the help and who gave a quick look, it seemed like I would never find it somehow :p

Max Taxable
12-06-2013, 06:16 PM
Yeah I have been doing it for the past couple hours non-stop, I finally found the tag. Thanks everyone for the help and who gave a quick look, it seemed like I would never find it somehow :pWhat conditional was it?

Glad you found it, those can be a real pain in the rear.

tbworld
12-06-2013, 06:32 PM
Yeah I have been doing it for the past couple hours non-stop, I finally found the tag. Thanks everyone for the help and who gave a quick look, it seemed like I would never find it somehow :p

Some IDE's can be programmed for custom tags. I have not spent the time to see if this would work for vb tags: in theory it should work.

On the to-do list someday. :)