Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2013, 12:42 PM
scoutz scoutz is offline
 
Join Date: Feb 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default invalid tag nesting in my postbit template when I save

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.

Code:
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.
Attached Images
File Type: png Screen Shot 2013-12-06 at 11.39.21 AM.png (70.7 KB, 0 views)
Reply With Quote
  #2  
Old 12-06-2013, 12:48 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
tbworld
  #3  
Old 12-06-2013, 01:02 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scoutz View Post
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.
Reply With Quote
Благодарность от:
ozzy47
  #4  
Old 12-06-2013, 03:43 PM
scoutz scoutz is offline
 
Join Date: Feb 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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.
Quote:
Originally Posted by tbworld View Post
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
Reply With Quote
  #5  
Old 12-06-2013, 03:54 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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" ...
Reply With Quote
  #6  
Old 12-06-2013, 04:22 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scoutz View Post
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.
Reply With Quote
Благодарность от:
Max Taxable
  #7  
Old 12-06-2013, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 12-06-2013, 06:14 PM
scoutz scoutz is offline
 
Join Date: Feb 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
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
Reply With Quote
Благодарность от:
tbworld
  #9  
Old 12-06-2013, 06:16 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scoutz View Post
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
What conditional was it?

Glad you found it, those can be a real pain in the rear.
Reply With Quote
  #10  
Old 12-06-2013, 06:32 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scoutz View Post
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
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05268 seconds
  • Memory Usage 2,285KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete