Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBadvanced CMPS
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cell issue Details »»
Cell issue
Version: , by Rich Rich is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-24-2005 Last Update: Never Installs: 0
 
No support by the author.

Hello,
I have been trying to work with some cells that will surround the blocks. The code is working fine, except it pushes blocks away. So, the blocks won't stay in line and it tosses my homepage into a spin. I was trying to hardcode it because i don't know any other way to do it.

I opened each block and added this code to it:

PHP Code:
<table align="center"><td valign="top">
<
div align="center">
<
table border="0" cellpadding="0" cellspacing="0"><tr>
  <
td>
  <
img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideleft.jpg" width="20" height="35"></td>
  <
td background="http://www.iguanacenter.com/images/blockimg/aeditsidemiddle.jpg"></td>
  <
td>
  <
img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideright.jpg" width="20" height="35"></td>
</
tr><tr>
  <
td background="http://www.iguanacenter.com/images/blockimg/asideleft.jpg"></td>
  <
td>

<!--
Start Text Here-->

Whatever is written in place of this text is surrounded by the cellsI got that workingBut something is wrong because it throws all the blocks into a spinWhat is coded wrong that would cause thatI would like for all of the blocks that I make in the future to also work with this code.

<!-- /
End Text Here-->

    </
td>
  <
td background="http://www.iguanacenter.com/images/blockimg/asideright.jpg"></td>
</
tr><tr>
  <
td>
  <
img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideleftbottom.jpg" width="20" height="35"></td>
  <
td background="http://www.iguanacenter.com/images/blockimg/aeditsidemiddlebottom.jpg"></td>
  <
td>
  <
img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsiderightbottom.jpg" width="20" height="35"></td>
</
tr></table>
</
div><br /><br />

</
td
This is my first run with cells. I thought I had done everything right. It looked great on my pc. lol Once I added this code to the blocks, some got covered by other blocks, some stayed in place and started a new line, etc. How could I make this code work so that if added to each block, they would all remain uniform?

Thanks to anyone that has a better knowledge of this than me.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-24-2005, 10:32 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're missing a tr tag a closing tr and a closing table tag. In addition, you don't need the div tags.

This code is correct and working here:

HTML Code:
<table align="center">
<tr>
<td valign="top"> 

<table border="0" cellpadding="0" cellspacing="0" align="center">
	<tr> 
		<td> 
			<img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideleft.jpg" width="20" height="35"></td> 
		<td background="http://www.iguanacenter.com/images/blockimg/aeditsidemiddle.jpg"></td> 
		<td> 
			<img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideright.jpg" width="20" height="35"></td> 
	</tr>
	<tr> 
		<td background="http://www.iguanacenter.com/images/blockimg/asideleft.jpg"></td> 
		<td> 

<!--Start Text Here--> 
sad
ssssssssasdasd
<!-- /End Text Here--> 

		</td> 
		<td background="http://www.iguanacenter.com/images/blockimg/asideright.jpg"></td> 
	</tr>
	<tr> 
		<td> 
			<img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsideleftbottom.jpg" width="20" height="35"></td> 
		<td background="http://www.iguanacenter.com/images/blockimg/aeditsidemiddlebottom.jpg"></td> 
		<td> 
			<img border="0" src="http://www.iguanacenter.com/images/blockimg/aeditsiderightbottom.jpg" width="20" height="35"></td> 
	</tr>
</table> 
<br /><br /> 

</td>
</tr>
</table>
Reply With Quote
  #3  
Old 03-25-2005, 01:46 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Thank you Jolten. I didn't realize that I missed those.(It is sad that i didn't see that on my own. lol) I appreciate you taking the time to look it over.This is all new to me, so I am learning as I go. This was my first attempt at writing cells that will encompass what I want.

****UPDATE**** ERRORS WITH CODE SOMEWHERE????

I added the revised code to the blocks and it appears that you have taken care of the problems regarding the pushing of the blocks. Not sure if you realize it though, but the blocks are not even anymore.

They don't resize to the width of the forum anymore. Its almost as if they are a fixed width. The center modules taper off into smaller and smaller blocks. Some of the side blocks, depending upon which column I place them,are larger and smaller than the one above or below.

This happens in both Mozilla and IE 6. In mozilla, the top 3 blocks are evenly spaced. In IE 6, the left side of the center block has a larger space than the right.

I will leave them they way they are so they can be seen. You will see exactly what I mean is happening when you look at the blocks.

Here is the site: http://www.iguanacenter.com

If you would like to log in, use: User: tester Pass: tester
Reply With Quote
  #4  
Old 03-29-2005, 11:43 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
After trying the code Jolten posted again on all the modules, I found that it worked for all but 3-4 of them. For some reason, certain modules will not expand the full width unless they are hardcoded with a width specification.

I didn't add the width specification to the code Jolten supplied. Instead, I added it to the modules table width like this:

PHP Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder"width="145"
Opposed to saying width="100%", those that won't expand to the same width as the others needs to be set as width="150", or whatever width in pixels your site requires. (Mine required "145" for the "buddies" module.)

Jolten also tried to help me on another site regarding this same issue. Just wanted to say thanks in this thread so the members knew that they could use this code, and also how to set the width so it displays correctly on those modules that are resilient. lol

Thanks again.
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 08:35 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.07999 seconds
  • Memory Usage 2,260KB
  • Queries Executed 19 (?)
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)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete