The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Cell Problem
Hello,
This problem has to do with the modules that are installed when VBCMPS is iinstalled. I believe the problem is my coding or the cells. 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:
Thanks to anyone that has a better knowledge of this than me. |
#2
|
|||
|
|||
Same post made at vb.org. You're missing a couple tags.
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> |
#3
|
||||
|
||||
Hello,
I have used that code and I am recieving a new error. The tags that were missing corrected the issue with distortion relevant to other blocks. Now the blocks don't auto-resize like they originally did. So now I have some blocks that look correct, and others that don't. I posted a full response at vb.org. To see what I mean, have a look: http://www.iguanacenter.com Notice the size issues with the blocks now? Plus the left side spacing from the center blockk is different from the right side spacing. |
#4
|
|||
|
|||
it's just a matter of sorting out widths on some table cells. And coding the html to wrap the elements properly. Here's a page that has everything set correctly, view source and you can see how I set it up.
Click here |
#5
|
||||
|
||||
Hello,
Thank you. So I need to hardcode the widths for each block. So that means that when the blocks are moved, I have to change them again? Prior to the blocks being encased with the border cells, they would autosize. Why is it that the code added isn't autosizing anymore? If we can figure that out, I should be able to rewrite this so I don't need to hardcode the widths as they will just enlarge as they are needed. (They were supposed to do that this whole time. lol) |
#6
|
|||
|
|||
It does auto resize. Due to your use of a specific size image on the sides you must code those cells to remain that width. basically.. the cells containing the 20 pixel wide image need to always be 20 pixels wide or the appearance breaks. The middle cell which contains the top, content and bottom information will auto-expand to any width. If you open the page I linked to you can adjust the browser width to any width and the tables resize. I'm not certain what it is you're referring to since it all works properly here.
I have it figured out.... but I don't think you're "getting it" |
#7
|
||||
|
||||
Hello,
I think I have got it just fine. I think it may be you that have missed what I am trying to do, or perhaps me for not explaining it better. Either way, your method is only good if I were going to leave all the blocks like that or in that position. otherwise, as I move them around, I need to go in and "hardcode" the widths again to make them match. That I could have done from the beginning. I am not interested in hardcoding widths. I want these blocks to expand and contract just as if there were no borders around them at all. Without the borders, every block is evenly spaced. It doesn't matter where i move it, it automatically resizes itself to accomodate the spacing. i don't need to edit anything so this happens, it just does. What I was working on is the code that I wrote corrected so that once it is written and applied to each block, it will automatically resize to look just like the cmps page does when they are not installed. With your code, I need to set the width for each block. that means that if I move a block, I need to go in and manually set the new width. I don't want to do that. I know this code can be written so it will do what I am asking. I just haven't figured it out yet. lol Quote:
What I need to know is how I can surround the blocks with images, but they will auto expand and contract to the column they are in automatically. If these blocks were coded as default, how would they have been written in so that every block was surrounded with the cells, but they look just like the stock cmps? Perhaps that is clearer for what it is I am looking for. I want to have one set of code that I can apply to each block, and they will all align up with each other bother vertically, and horizontally. If a block from one of the sides is moved into the middle, I want it to expand to the width of the other blocks in the middle automatically. If a block from the center is placed on the side, I want it to line up and be the same width as the other blocks on that side. I used the section of code you have written for the yada yada yada on the left hand side, and placed 2 left hand side modules in it. They did not line up. The navigation module and the polls module had different widths. The polls module stuck out closer to the center blocks than the navigation module did. The navigation module should have adjusted itself to remain the same width as the widest block in that column. Your code didn't do that. So I think "I got it" in regards to having to physically assign the widths. But that isn't what I am looking for. Thank you though. I would love to hear if you know how to write the one code bit that will do what I am asking. Basically, it seems like it needs to read the outside edge of the widest block, and then adjust to that width. |
#8
|
|||
|
|||
Okay well I give up. I've tried. I've never had such a struggle trying to help someone. The code I provided is expandable. It's only the basic skeleton that requires some coding to ensure things look right regardless of where they are locate don the page.
I suggest you start by learning HTML since you're obviously not terribly familiar with it. I don't know what you're doing with the code I've provided but I can add blocks, move blocks delete blocks and they all retain the proper appearance. |
#9
|
||||
|
||||
Hello,
I took your code from the view source. I took the left column code actually. I didn't edit i in any way. I then used that code on 2 different blocks. Both were going to reside in the left column. The moment I added the code and looked at the blocks, they did not line up correctly. To make things clear, I posted that this was my FIRST time writing cells. So telling me to go learn HTML was remedial. I already stated that i was JUST LEARNING this. Your lip isn't needed when responding to people. Especially when the person lays everything out in front of you ahead of time. Maybe you should read an entire post before you get lippy with people. Thats just plain ignorant and rude. Now, your code will work great if I were going to write up a completely custom html page. Then again, MY code worked if I was writing up a completely custom HTML page. That isn't the issue. I am using this code on the adv_portal homepage. EACH module template is getting this code wrapped around it. Its THEN that problems arise. If it is a width issue, then why are the modules NOT lining up with the default cell structure? WHY would i need to go into each block and customize it so that they all line up correctly? I am not saying that I didn't appreciate your assistance, but I did not apprecaite your attitude in your final response. If I knew how to handle this 100% on my own,. I wouldn't have bothered posting. If you can't handle people asking questions, don't waste our time with posting. I would rather have gone ignored, which seems to happen a lot on these sites, than be insulted. |
#10
|
|||
|
|||
You simply aren't copying code correctly. Look at my link again... boxes repeated over and over and they all line up. It's got nothing to do with a custom coded page, it's basic html.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|