1
BahamutZaero
Xoops: Table Mangler Extrodinare?

Whenever I try and force a table size in Xoops, it always resizes it to meet its own needs!

Here's an example... I'm trying to edit the photo thumbnail images placed on the front page of my site to have a border around them. So I created a table, placed that in the template, and edited the width and height of the image. However, it resizes the ENTIRE TABLE to match the size of the image... which is not what I want!

Here is the template code:


    <{foreach item=photo from=$block.photo}>









    <{$photo.title}>






    <{/foreach}>



2
ackbarr
Re: Xoops: Table Mangler Extrodinare?

since XOOPS uses CSS for nearly all its rendering, and most browsers take what is in CSS to trump what is in HTML I think you can get around this by setting your widths using inline css:

<table style="width:142px; height:115px; background-color:#fff;" border="0" cellpadding="0" cellspacing="0" >
<
tr>
<
td style="height:105px;"><a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>">
<
img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" style="width:135px; height:101px;" alt="<{$photo.title}>" />a>td>
tr>
<
tr>
<
td>td>
tr>
table>

3
BahamutZaero
Re: Xoops: Table Mangler Extrodinare?

Nope, no luck... this didn't make any difference. Thanks anyway, though.. =/

It seems that no matter what I do, I cannot get a border around images.

4
jdseymour
Re: Xoops: Table Mangler Extrodinare?

Go into the template (through admin "Template Manager") that you want the space to show around the pictures (Of course you will need to clone the templates before editing.) Enter the following before reference to images:

<div class=whatever>


And then close it at the end like:

div>


Then open your CSS editor and make a new class of .whatever and enter your "padding top left right bottom" to around 8 pixels or whatever you want. That should work without effecting any other images on your site.

If you haven't done it yet, download TopStyle lite (google for it) it will help guide you through the class creation process.

HTH.

5
BahamutZaero
Re: Xoops: Table Mangler Extrodinare?

Just got myself a copy of CSSEdit for OS X, actually.. waiting to receive my registration key. =)

So for now, I'm doing all my CSS in Dreamweaver. And, doing as you suggested, my site is now unable to load the .css file at all. I just added this code in the .CSS:

.rightSideImages
{
padding : 8 pix;
}

6
jdseymour
Re: Xoops: Table Mangler Extrodinare?

Hmm. The code looks right. Here is an example of mine:

Quote:
.xf_block img{padding-right:8px;padding-bottom:5px}


I don't know what would stop your style.css from loading without removing the link reference from theme.html.

You did insert the div tags in your template?

7
BahamutZaero
Re: Xoops: Table Mangler Extrodinare?

Yup, got the DIV's in the code. But it gets weirder: I removed that style from my .CSS, saved it, re-uploaded it... and the site still cannot load it. I made sure to refresh and everything. I'm sure that the style sheets are not corrupted on my end.

8
jdseymour
Re: Xoops: Table Mangler Extrodinare?

I would drop a backup style sheet and a backup theme.html into the site. No refresh is required for style sheets.

Roll back your template changes, see if that makes a difference.

9
BahamutZaero
Re: Xoops: Table Mangler Extrodinare?

I did drop in a backup, actually, and that fixed it. =)

And I got the registration key for CSSEdit, and when I work with that, everything is fine. Seems that Dreamweaver was doing... something... to the files.

10
jdseymour
Re: Xoops: Table Mangler Extrodinare?

Yes I have heard of problems with XOOPS and dream weaver before. Glad you are back working again.

Login

Who's Online

217 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits