|
Post by Wormopolis on Jan 1, 2012 17:45:01 GMT -8
when I say table, Im referring to the outside table that has the forum in the left cell, and the side tables in the right.
then the code that adds head base images comes along and puts head base images before and after every table it finds, whether they are in that outside table or not. the head/base images are 900 px wide so they stretch the outside table, making the side tables cell all scrunched.
you want the forum part of the table to be 700 px wide, but the head/base images are pushing it out to 900.
the code that adds head/base doesnt have any idea that the table its adding to is supposed to stay at 700.
|
|
|
Post by Dragon on Jan 1, 2012 22:41:22 GMT -8
Yet the sidetable itself isnt treated as a separate table ?
Gah so confusing....
So what your asking me to do is remove the head/base images ? I could put the code into seperate boards and make it sho everywhere except main header if required, but then the main pages wouldnt have them at all.... :/
|
|
|
Post by Dragon on Jan 1, 2012 22:55:43 GMT -8
You can now see that the images are NOT stretching the table. I have removed each image that could possibly do it, so images are not the cause to this conundrum.
If possible could you please tell me how to get the login table and info center set to 900px? The sidetables snippet we have in there is whats causing THOSE to stretch.
|
|
|
Post by Wormopolis on Jan 2, 2012 1:14:35 GMT -8
it was part of it. we can put head base images back in, but if you want to use the same image on both the 700px tables and the 900px tables then its going to involve scrunching down
in the subdevo code
var resizeForum=[1,900]; // Resize Forum? 1=Yes, 0=No , Forum width.
change that 900 to 700
update this:
<script type="text/javascript"> <!-- // move everything after forum outside
var outside=document.getElementById('outertable'); while (forumTable.nextSibling) { if (forumTable.nextSibling.nodeName.match(/table/i)) { forumTable.nextSibling.width='900px'; } outside.parentNode.insertBefore(forumTable.nextSibling, outside.nextSibling); }
//--> </script>
dont put the head base images back in just yet though.. sub code is going to have to be modded to account for different size tables.
|
|
|
Post by Dragon on Jan 2, 2012 10:04:24 GMT -8
not sure I understand why its set to 900 when its supposed to be 200px ? main table 700 then sidetable 200.....
I simply removed the code for resize.... seems to work better that way. I can put it back to main later for the head/base. Since I assume I need to get a smaller version of them.
|
|
|
Post by Wormopolis on Jan 2, 2012 11:22:27 GMT -8
typo in that small script mod. recopy.
|
|
|
Post by Dragon on Jan 2, 2012 16:38:08 GMT -8
Done. Added in sortof sidetable content.
theres not a better way to resize things? I prefer keeping the right sizes for my other pages.
|
|
|
Post by Wormopolis on Jan 2, 2012 19:26:52 GMT -8
"other" pages? the board pages or pages like PMs?
|
|
|
Post by Dragon on Jan 2, 2012 19:59:30 GMT -8
pages not included under main header. The navbar and head/base image codes were under global before remember. We moved it to main to make the main pages with sidetables 700px. that meant everything else had no resize to 900px nor the images. So I either put those codes into the BOARD footer or no magic coding....
Of course that means every single board would require it if we cant use global footer.
|
|
|
Post by Wormopolis on Jan 2, 2012 21:50:37 GMT -8
so we need to add into the "afterwards" list: head base images and navigation remodel
so currently on the main page, you have a 700px wide board listing, 200px wide side tables, and 900px wide everything else.. right?
the next step would be to remove side tables from all pages that arent main pages right?
easiest way would be to put a hide into the side tables part of the outside table.
that little piece above the sidetables
</td><td id="sidetbls" style="display:none">
and then in the script add the line
if (pb_action=='home') document.getElementById('sidetbls').style.display='';
|
|
|
Post by Dragon on Jan 3, 2012 16:10:24 GMT -8
Any errors in the code ?>
Added.
Is there anyway to make the head/base and navbar at 900px appear in global footer without appearing on main ?
|
|
|
Post by Wormopolis on Jan 3, 2012 21:12:02 GMT -8
on subs form remodel code
var resizeForum=[1,700]; // Resize Forum? 1=Yes, 0=No , Forum width.
change to
var resizeForum=[1,(pb_action=='home' ? 700 : 900)]; // Resize Forum? 1=Yes, 0=No , Forum width.
|
|
|
Post by Dragon on Jan 3, 2012 21:29:23 GMT -8
just that one line for the resize is enough? o.o
*goes to coding*
|
|
|
Post by Dragon on Jan 3, 2012 21:34:36 GMT -8
ah tested and it works. I hope the images can be done similiarly ?
|
|
|
Post by Wormopolis on Jan 3, 2012 22:38:04 GMT -8
to do the head base images, you are going to have to make a decision. either you make them 900px and on the main page above the boards it gets scrunched to 700..
or..
you make them 700 and on all 900px tables they get stretched.
|
|