Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 01-18-2009, 10:15 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here ya go: http://www.glitchpc.com/forums/c_news_letter.php
Reply With Quote
  #12  
Old 01-18-2009, 11:00 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get a 404 on that page.
Reply With Quote
  #13  
Old 01-18-2009, 12:26 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, Dismounted...

Here ya go, again: http://www.glitchpc.com/forums/c_news_letter.php
Reply With Quote
  #14  
Old 01-18-2009, 03:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grab the source code for your page and throw it into a text editor. Then, search for the lines the validator is having problems with. The first one "</tr><tr>" shows me right away the problem. I'll post the code above it:

Code:
                                <tr>
                                    <td class="alt1" style="padding: 0px;">
                                        <table cellpadding="6" cellspacing="1" width="100%" border="0">
                                        <!-- BEGIN TEMPLATE: c_news_letter_latest_memberbit -->
</tr><tr>
<td class="alt1" align="center">

    
        <img src="http://glitchpc.com/forums/images/misc/c_news_letter_noav.gif" alt="" />
    
    
    <div class="smallfont"><a href="http://glitchpc.com/forums/member.php?u=29">tolson7761</a></div>
Then look at the code..... you've put "</tr><tr>" in an invalid place. You ended a row when you never started one.


Just keep doing a search for the lines it doesn't like.
Reply With Quote
  #15  
Old 01-18-2009, 03:56 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne...

Thanks for that information, but the coder of this modification has that </tr><tr> within an "if statement" of one of the templates:

HTML Code:
<if condition="$latest_members_count%3 == '1'"></tr><tr></if>
<td class="$bgclass" align="center">

	<if condition="$vboptions[c_news_letter_show_avatar]">
		<img src="$member[avatarurl]" alt="" />
	</if>
	
	<div class="smallfont"><a href="$vboptions[bburl]/member.php?u=$member[userid]">$member[username]</a></div>
	
</td>
No matter what I do there...it breaks the newsletter. I'm tellin' ya. I think I've lost about all my hair on this one. I'm trying, though...and really do appreciate your help.
Reply With Quote
  #16  
Old 01-18-2009, 03:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then change the lines in the template above it. Or, change the modification. I can't think of any modification I have installed that I haven't changed in some way to work the way I want it to work on my site.
Reply With Quote
  #17  
Old 01-18-2009, 04:50 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry...but I'm truly lost on this one...

Unless someone can take me by the hand and guide me step-by-step through these edits...I'm afraid I may have to call it quits.

Seriously though...I really appreciate the help...and even though you see the word "Coder" under my username...don't take it "verbatim". I'm really not that good...if at all.

So just generalizing an answer, may be good for some...it's not helping me in the least.
Reply With Quote
  #18  
Old 01-19-2009, 03:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
HTML Code:
<if condition="$latest_members_count%3 == '1'"></tr><tr></if>
Replace With:
HTML Code:
<if condition="!isset($called) AND $called = true"><tr><else /><if condition="$latest_members_count % 3 == 1"></tr><tr></if></if>
Dirty hack job, but should work.
Reply With Quote
  #19  
Old 01-19-2009, 12:55 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Dismounted...

Tried your code, but the errors jumped from 37 to 45. So, reverted back to the original code...at least, for now.

I'm tellin' ya...this has been a royal PITA...
Reply With Quote
  #20  
Old 01-21-2009, 12:04 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On another note...
I've been told that..."trying to get one's site to validate with W3C compliance is a total waste of time...as long as the code works, why bother?" While others say it's better for several reasons.

Anyone care to comment?

BTW...I've given up on that particular page...for now, anyway. The coder is working on making it compliant.

However, I just added a new style and the forum homepage validates except for one <table> error. I've looked that code up and down and can find nothing wrong with it.

Anyone care to take a stab at it?

Thanks to anyone who replies...
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04412 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete