Jump to content

Totally Messy HTML, Can I get some help cleaning it up?


Recommended Posts

The graphic designer of this template is so messy, when seen on site, it looks nasty.  Looking at the html, it looks really disorganized.  I'm not a html designer, but I thought I can analyze the problem, but can't find it.  Can anyone help please?

 

<div align="center">
<table border="0" width="865" height="453" cellspacing="0" cellpadding="0">
	<tr>
		<td>
		<div align="center">
		<table border="0" width="855" style="border-style:solid; border-width:1px; " class="warning_box_green">
			<tr>
				<td height="25" >
				<b>[var.message_type]</b>
				- 
			  [var.error_message] [onload_4;block=tr;when [var.blk_id]=1]</td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
	<tr>
		<td>
		<div align="center">
		<table border="0" width="855" style="border-style:solid; "  class="warning_box_green_white">
			<tr>
				<td height="25" ><b>
				[var.code_type]</b>
				- 
			  [var.code_message] [onload_10;block=tr;when [var.blk_code]=1]</td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
	<tr>
		<td>
		<div align="center">
		<table border="0" width="855" class="warning_box_red">
			<tr>
				<td height="25" ><b>
				[var.message_type]</b>
				- 
			  [var.error_message] [onload_11;block=tr;when [var.blk_id]=2]</td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
	<tr>
		<td>
		<img border="0" src="images/spacer_5pix.gif" width="1" height="15" />
            </td>
    </tr>
	<tr>
		<td>
        <tr id="tr_login"> </td>
        </tr>
		<tr>
			<td><td align="center" valign="top" width="865"></td>
                </tr>
		<table border="0" width="865" height="418" cellspacing="0" cellpadding="0">
			<tr>
			<td><tr></td></tr>
				<tr>
			<td><td width="865" height="414" valign="top"></td></tr>
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
					<tr>
						<td colspan="2" height="30" >
						 Group - <!--[blkfeatured.group_name;block=table;ope=max:150;comm]--></td>
					</tr>
					<tr>
					<td><tr></td></tr>
						<tr>
						<td><td align="center" valign="top" width="80%" rowspan="2"></td></tr>

						<div align="left">
						<table border="0" width="98%" cellspacing="0" cellpadding="0">
							<tr>
								<td width="20%" valign="top" rowspan="2">
								<div align="center">
									<table border="0" width="83%" cellspacing="0" cellpadding="0">
										<tr>
											<td height="101">
											<p align="center">
									<a href="play.php?vid=[blkfeatured.group_video_id;block=table]">
									<img border="0" src="uploads/thumbs/[blkfeatured.video_picture;block=table].jpg" width="120" height="90" /></a></p></td>
										</tr>
										<tr>
											<td height="20">
											<p align="center"><u><b>Latest Video</b></u></p></td>
										</tr>
									</table>
								</div>
								</td>
								<td width="51%" valign="top" height="98">
								<table border="0" width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td width="139"  height="25">
										 <b><!--[blkfeatured.public_private;block=table;ope=max:450;comm]--></b> 
										- Group</td>
										<td width="72"  height="25">
										<b> All 
										Videos</b></td>
										<td width="37"  height="25">
										<p align="center">
									  (<!--[blkfeatured.group_videos;block=table;ope=max:150;comm]-->)</p></td>
										<td width="64"  height="25">
										<b>
										Messages</b></td>
										<td width="40"  height="25">
										<p align="center">
									  (<!--[var.comments_count;comm]-->)</p></td>
									</tr>
									<tr>
									<form action="memberprofile.php" method ="get">
										<td width="352" height="30" colspan="5" class="table2">
										<b> Members</b> (<!--[blkfeatured.group_members;block=table;ope=max:150;comm]-->) 
												<select size="1" name="uid">
												[var.member_list;htmlconv=no]
												</select> 
												<input type="submit" value="View profile" name="action" /></td>
												</form>
									</tr>
									<tr>
										<td colspan="5" >
										<!--[blkfeatured.group_description;block=table;ope=max:40;comm]--></td>
									</tr>
								</table>
								</td>
								<td width="28%"  height="98">
								<div align="center">
									<table border="0" width="90%" cellspacing="0" cellpadding="0">
										<tr>
											<td  height="25">  
											<a href="joingroup.php?gid=[var.group_id]">
											Join this 
											group</a>
                                              </td>
										</tr>
										<tr>
											<td  height="25">
											  
											<a href="flag_group.php?abuse=[var.group_id]">
										Report Abuse</a></td>
										</tr>
										</table>
								</div>
								</td>
							</tr>
							<tr>
								<td width="79%" valign="top"  colspan="2" height="30">
								 Group Home Page 
							  <input type="text" name="group_url" size="60" value="[var.group_url]" /></td>
							</tr>
							<tr>
								<td colspan="3"> </td>
							</tr>
						</table>
						</div>
						<tr>
      <td><div align="left"></td></tr>
							<table border="0" cellpadding="0" cellspacing="0" width="98%" class="tableDashed">
							<!--[onload_12;block=table;when [var.admin_mode]=1]-->
								<tr>
									<td height="25" colspan="2">
									<p align="center">
									<b>You are viewing group in admin mode because you are the group admin</b> 
									<a href="#" onclick="javascript:ahahscript.ahah('group_admin.php?action=public&gid=[var.group_id]&action_id=0', 'adminsdiv', '', 'GET', '', this);">
								  Make public</a> | <a href="#" onclick="javascript:ahahscript.ahah('group_admin.php?action=private&gid=[var.group_id]&action_id=0', 'adminsdiv', '', 'GET', '', this);">Make Private</a></p></td>
								</tr>
								<tr>
									<td height="9" colspan="2">
									<p align="center" >
								  <span style="text-decoration: none">Manage members</span></p></td>
								</tr>
								<tr>
									<td height="4" width="50%">
									</td>
									<td height="4" width="50%">
									</td>
								</tr>
								<tr>
								<!-- admin - delete members form -->
				<form id="delmemberform" action="javascript:ahahscript.likeSubmit('group_admin2.php', 'post', 'delmemberform', 'adminsdiv');">
										<td width="352" height="30" colspan="2">
										<b>      Existing member</b>
												<select size="1" name="action_id">
												[var.member_list;htmlconv=no]
												</select> 
												<input type="hidden" value="[var.group_id]" name="gid" />
												<input type="hidden" value="del_member" name="action" />
												<input type="submit" value="Delete member" name="action0" />													</td>
				</form>
												<!-- admin delete memeber - end -->
												</tr>
		    <tr>
<td></td></td></tr>
												<tr>
                            <td></tr></td></tr>
								<tr>
								  <td height="4" width="50%"> </td>
									<td height="4" width="50%">
									</td>
								</tr>
								<tr>
									<td height="4" width="50%">
									</td>
									<td height="4" width="50%">
									</td>
								</tr>
								<tr>
									<td height="25" colspan="2">
									<!-- admin actions div -->
									<div id= "adminsdiv" align="center">

										 </div>
									<!-- admin actions end -->
									</td>
								</tr>
							</table>
						<hr width="95%" />
							<table border="0" cellpadding="0" cellspacing="0" width="686" class="tableDashed">
								<tr>
									<td>
									<p align="center">
								  [onload_13;block=table;when [var.show_v_selector]=1]</p></td>
								</tr>
								<tr>
									<td height="25" >
									<b>  Add - Delete to group </b></td>
								</tr>
								<tr>
								  <td>
									<div align="center">
									  <table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tr>
											  <td width="24%" > </td>
												<td width="48%"> </td>
												<td width="28%"> </td>
											</tr>
											<tr>
											  <td  colspan="3"> This is a list of your videos that you can/have added to the group. (You will be able to add video that you uploaded)</td>
											</tr>
											<tr>
											  <td width="24%" > </td>
												<td width="48%"> </td>
												<td width="28%"> </td>
											</tr>
											<tr>
			<form id="addvideoform" action="javascript:ahahscript.likeSubmit('groups_add_video_ajax.php', 'post', 'addvideoform', 'addvideodiv');">
				  <td width="24%" >
												<p align="right"><b>My 
				  Videos </b></p></td>
												<td width="48%"> 
									<!-- list my videos -->
												<select size="1" name="vid">
												[var.my_videos;htmlconv=no]
												</select>
									<!--list video end-->
									<input type="hidden" name="group_id" value="[var.group_id]" />
												</td>
												<td width="28%">
												<p align="center">
												<input type="submit" value="Add to group" name="B9" /> 

												<!-- hide add button -->
												<!--[onload_14;block=td;when [var.add_button]=1]-->
												</p></td>
											  </form>
											</tr>
											<tr>
											  <td width="24%" > </td>
												<td width="48%"> </td>
												<td width="28%"> </td>
											</tr>
											<tr>
	<form id="deletevideoform" action="javascript:ahahscript.likeSubmit('groups_remove_video_ajax.php', 'post', 'deletevideoform', 'addvideodiv');">
				  <td width="24%" >
												<p align="right"><b>
												Currently in 
				  group</b></p></td>
												<td width="48%"> 

									<!-- list my videos already added to group-->
												<select size="1" name="vid2">[var.my_videos_already;htmlconv=no]
												</select>
												<input type="hidden" name="group_id" value="[var.group_id" />

									<!--list video end-->
									<input type="hidden" name="group_id" value="[var.group_id]" />


												</td>
												<td width="28%">
												<p align="center">
												<input type="submit" value="Remove from group" name="B10" />
												<!-- hide delete button -->
												<!--[onload_15;block=td;when [var.delete_button]=1]-->													
												</p></td>
											  </form>
											</tr>
											<tr>
											  <td width="24%" > </td>
												<td width="48%"> </td>
												<td width="28%"> </td>
											</tr>
								    </table></div>
										<!--start of add video div-->
                                            <!-- end of add video -->
<div align="center">
 </div></td>
								</tr>
							</table><hr width="95%" />
							<table border="0" cellpadding="0" cellspacing="0" width="98%" class="tableDashed">
								<tr>
									<td height="25">
									<b> Groups videos</b></td>
								</tr>
								<tr>
									<td>
									<!-- START OF VIDEO AJAX DIV -->
									<div id= "group_videos" align="left">
										<table border="0" cellpadding="0" cellspacing="0" width="684">
											<tr>
									    	<td colspan="6"> </td>
											</tr>
											<tr>
												<td width="136">
												<div align="center">
													<table border="0" width="93%" cellspacing="0">
												  <tr>
															<td align="center" >
															<a href="play.php?vid=[mp_1.indexer;block=table]">
															<img border="0" src="uploads/thumbs/[mp_1.video_id;block=table].jpg" width="120" height="90" /></a></td>
													  </tr>
														<tr>
															<td height="20" valign="top"  >
															<p align="center">

									<!--[mp_1.title;block=table;ope=max:18;comm]-->
														  </p></td>
														</tr>
														<tr>
															<td align="center" height="10"  >
															Added: <!--[mp_1.date_uploaded;block=table;comm]-->
															</td>
														</tr>
														<tr>
															<td align="center" height="10">
															<b>

															<a href="group_admin.php?action=del_vid&gid=[var.group_id]&action_id=[mp_1.indexer;block=table]">
															<!--[var.delete_group_video;comm]-->
															</a></b></td>
														</tr>
														</table></div></td>
												<td width="137">
												<div align="center">
													<table border="0" width="93%"  cellspacing="0">
												  <tr>
															<td align="center" >
															<a href="play.php?vid=[mp_2.indexer;block=table]">
															<img border="0" src="uploads/thumbs/[mp_2.video_id;block=table].jpg" width="120" height="90" /></a></td>
													  </tr>
														<tr>
															<td align="center" height="20" valign="top"><!--[mp_2.title;block=table;ope=max:18;comm]--> 
															</td>
														</tr>
														<tr>
															<td align="left" height="10"  >
															<p align="center">Added: <!--[mp_2.date_uploaded;comm]--></p></td>
														</tr>
														<tr>
															<td align="left" height="10">
															<p align="center">
															<b>
															<a href="group_admin.php?action=del_vid&gid=[var.group_id]&action_id=[mp_2.indexer;block=table]">
															<!--[var.delete_group_video;comm]-->
														  </a></b></p></td>
														</tr>
														</table></div></td>
												<td width="137" colspan="2">
												<div align="center">
													<table border="0" width="93%"  cellspacing="0">
												  <tr>
															<td align="center" >
															<a href="play.php?vid=[mp_3.indexer;block=table]">
															<img border="0" src="uploads/thumbs/[mp_3.video_id;block=table].jpg" width="120" height="90" /></a></td>
													  </tr>
														<tr>
															<td align="center" height="20" valign="top"  >
									<!--[mp_3.title;block=table;ope=max:18;comm]--> 
															</td>
														</tr>
														<tr>
															<td align="left" height="10"  >
															<p align="center">Added: <!--[mp_3.date_uploaded;comm]--></p></td>
														</tr>
														<tr>
															<td align="left" height="10">
															<p align="center"><b>
															<a href="group_admin.php?action=del_vid&gid=[var.group_id]&action_id=[mp_3.indexer;block=table]">
															<!--[var.delete_group_video;comm]-->
														  </a></b></p></td>
														</tr>
														</table></div></td>
												<td width="137">
												<div align="center">
													<table border="0" width="93%"  cellspacing="0">
												  <tr>
															<td align="center" >
															<a href="play.php?vid=[mp_4.indexer;block=table]">
															<img border="0" src="uploads/thumbs/[mp_4.video_id;block=table].jpg" width="120" height="90" /></a></td>
													  </tr>
														<tr>
															<td align="center" height="20" valign="top"  >
									<!--[mp_4.title;block=table;ope=max:18;comm]--> 
															</td>
														</tr>
														<tr>
															<td align="left" height="10"  >
															<p align="center">Added: <!--[mp_4.date_uploaded;comm]--></p></td>
														</tr>
														<tr>
															<td align="left" height="10">
															<p align="center">
															<b>
															<a href="group_admin.php?action=del_vid&gid=[var.group_id]&action_id=[mp_4.indexer;block=table]">
															<!--[var.delete_group_video;comm]-->
														  </a></b></p></td>
														</tr>
														</table></div></td>
												<td width="137"><!--[mp;block=tr;serial;comm]-->

												<div align="center">
													<table border="0" width="93%"   cellspacing="0">
												  <tr>
															<td align="center" >
															<a href="play.php?vid=[mp_5.indexer;block=table]">
															<img border="0" src="uploads/thumbs/[mp_5.video_id;block=table].jpg" width="120" height="90" /></a></td>
													  </tr>
														<tr>
															<td align="center" height="20" valign="top"  >
									<!--[mp_5.title;block=table;ope=max:18;comm]-->
															</td>
														</tr>
														<tr>
															<td align="left" height="10"  >
															<p align="center">Added: <!--[mp_5.date_uploaded;comm]--></p></td>
														</tr>
														<tr>
															<td align="left" height="10">
															<p align="center">
															<b>
															<a href="group_admin.php?action=del_vid&gid=[var.group_id]&action_id=[mp_5.indexer;block=table]">
															<!--[var.delete_group_video;comm]-->
														  </a></b></p></td>
														</tr>
														</table></div></td>
											</tr>
											<tr>
												<td colspan="3">[mp_0;block=td][mp;block=tr;serial]</td>
												<td colspan="3"> </td>

											</tr>
											<tr>
												<td colspan="6"> 
												</td>
											</tr>
											<tr>
												<td colspan="6" > <p align="center"><b>No video have been added yet  </b>[onload_16;block=tr;when [var.show_v]=1]</p>
												<p> </p></td>
											</tr>
											<tr>
												<td colspan="6">
												<div align="center">
													<table border="0" cellpadding="0" cellspacing="0" width="100%">
														<tr>
			<td height="13" width="50%" >
				<p align="left">
				<b>
				  
				Page [var.current_page] of [var.total_pages]</b></p></td>
			<td height="13" width="50%">
	<p align="left">
	<b>
	<a href="#" onclick="javascript:ahahscript.ahah('group_videos_ajax.php?page=[var.prev_page]&gid=[var.vid]', 'group_videos', '', 'GET', '', this);">
	[var.pl]</a>  
	<a href="#" onclick="javascript:ahahscript.ahah('group_videos_ajax.php?page=[var.next_page]&gid=[var.group_id]', 'group_videos', '', 'GET', '', this);">
	[var.nl]</a></b>[onload_2;block=tr;when [var.show_v]=2] 				</p></td>
														</tr>
													</table>
												</div>
												</td>
											</tr>
										</table></div>
										<!-- END OF AJAX DIV - GROUP VIDEOS -->

										</td>
								</tr>
								<tr>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
								</tr>
							</table>
						<hr width="95%" />
							<table border="0" cellpadding="0" cellspacing="0" width="98%">
								<tr>
									<td height="25" >
									<b>
									 Groups Comments</b></td>
								</tr>
								<tr>
									<td height="6"  >
									<div align="center">
										<table border="0" width="98%" cellspacing="0" cellpadding="3">
											<form id="commentsform" action="javascript:ahahscript.likeSubmit('comments_group.php', 'post', 'commentsform', 'commentsbox');">
												<tr >
													<td >
													<p align="center"><b>
												  Post a comment  </div></b></p></td>
												</tr>
												<tr>
													<td >
													<p align="center">
													<textarea rows="5" name="comments" cols="57"></textarea></p></td>
												</tr>
												<tr>
													<td >
													<p align="center">
													<input type="submit" value="post comment" name="B4" />
													<input type="hidden" value="[var.group_id]" name="gid" />
													</p></td>
												</tr>
											</form>
										</table></td></tr>
						    <tr>
						      <td></div></td></tr>
					      <tr>
            <td></td></td></tr>
								<tr>
                  <td></tr></td></tr>
								<tr>
								  <td height="56">
									<hr />
                                        <!-- comments div -->
                                        <div id="commentsbox">
                                        <!-- start of comments div-->
<div align="center">
			<table border="0" width="100%" cellspacing="0">
											<tr>
											  <td height="15"  width="53%" >
												 <b>Posted by: <a href="memberprofile.php?uid=[blk3.by_id;block=table]"><!--[blk3.by_username;block=table;ope=max:40;comm]-->
												</a></b></td>
												<td height="15"  width="16%" >
											   <!--[blk3.todays_date;block=table;ope=max:40;comm]--></td>
												<td height="15"  width="30%" >
												 <b><a href="#" onclick="javascript:ahahscript.ahah('comments_groups_ajax.php?page=[var.prev_page2]&gid=[var.group_id]&action=delete&msg_id=[blk3.indexer;block=table]', 'commentsbox', '', 'GET', '', this);"><!--[var.admin_delete_messages;comm]--></a> 
										<a href="flag_group_comments.php?abuse=[blk3.indexer;block=table]">report abuse</a></b></td>
			  </tr>
											<tr>
											  <td height="25" colspan="3" >
											<span style="text-decoration: none">[blk3.comments;block=table]</span></td>
											</tr>
											<tr>
											  <td height="5" colspan="3"  > </td>
											</tr>
			</table>
										</div>
									<table border="0" width="100%" cellspacing="0">
											<tr>
											  <td height="25" width="50%">
												<p align="right"><b>
											  Comments page [var.current_page2] of [var.total_pages2]</b></p></td>
												<td height="25" width="50%" >
												   
												<b>
												<a href="#" onclick="javascript:ahahscript.ahah('comments_groups_ajax.php?page=[var.prev_page2]&gid=[var.group_id]', 'commentsbox', '', 'GET', '', this);">
												[var.pl2]</a>  
												<a href="#" onclick="javascript:ahahscript.ahah('comments_groups_ajax.php?page=[var.next_page2]&gid=[var.group_id]', 'commentsbox', '', 'GET', '', this);">
											  [var.nl2]</a></b>[onload_55;block=table;when [var.show_c1]=2]  </td>
									  </tr>
		<tr>
		  <td></div></td></tr>
								  </table></td>
								</tr>
								<tr>
									<td height="25"> </td>
								</tr>
								<tr>
									<td> </td>
								</tr>
							</table>
							<p> </p>
							<p> </p>
							<p> </p>
							<p> </p>
				  </div>
						<tr>
<td></div></td></tr>							
						<tr>
<td></td></td></tr>
						<tr>
<td width="19%" height="361" align="center" valign="top" rowspan="2">
								<!--ads right start -->
								<!--[var.ads_right;htmlconv=no;comm]-->
								<!--ads right end -->

								</td>
					</tr>
				</table>
				<tr>
            <td></td></td></tr>
			<tr>
		    <td></tr></td></tr>
		</table>
		<tr>
  <td></td></td></tr>
	<tr>
  <td></tr></td></tr>

</table>
</div>

 

Thank you.

not enough time in the year to deal with html soup! that markup is such a mess it would take some time to sort - I suggest you post in the freelance section and pay someone - I doubt anyone will do it for free...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.