Page 1 of 1

Text/Image: delete cell between Img and caption (how to?)

Posted: Sun 28. Nov 2004, 17:22
by aborre
Hi out there,

I want to take away the cell between the Image and the corresponding caption. Does anybody know how to do this :?:

Greetings

aborre

Posted: Mon 29. Nov 2004, 15:36
by spirelli
try here: include/inc_front/content/cnt1.article.inc.php

but not 100% sure....

Posted: Tue 30. Nov 2004, 14:30
by aborre
Hi spirelli,

didn't find anything. But: You know I'm not that crack in coding. Probably I just didn't see where.. :?
However: thanks for the hint.

aborre

Posted: Tue 30. Nov 2004, 14:48
by spirelli
just had a look at this file for the first time myself. And I can't see anything. But I've got no coding knowledge either 8)
This file definately has something to do with this contentpart's image positioning.
It's got the line ($image[6]) ? imagetable($phpwcms, $image, "0:5:0:0", "") : ""; in there. I wonder whether "imagetable is defined in some other file and needs to be modified there.

Posted: Tue 30. Nov 2004, 14:53
by spirelli
there is something in this file: include\inc_front\front.func.inc.php
Looks to me that that's it. The table for text with images seems to be generated from this. But that's not just HTML either.... :D
Maybe you'd need somehelp from someone more knowledgable.

Posted: Fri 31. Dec 2004, 11:11
by aborre
Thank you, spirelli, but:
Maybe you'd need somehelp from someone more knowledgable.
Yes, I think so. Can anybody else help? Because I didn't solve that problem up to today.

Best wishes and a good new year ("happy", I think, is the wrong expression in those days)

aborre

Posted: Fri 31. Dec 2004, 11:51
by pepe
Hi aborre,

in your file include/inc_conf/conf.template_default.inc.php change the line:

$template_default["article"]["image_caption_before"] = '<img src="img/leer.gif" width="1" height="3" alt="" /><br>';


to:

$template_default["article"]["image_caption_before"] = '';


and see, what happens...

PS

= ''; means = 'nothing_here';

Posted: Fri 31. Dec 2004, 15:16
by aborre
Hi pepe,

thank you for the hint, but this cannot work, because the empty gif belongs to the captioncell itself.
After all, and with the help of you guys, I figured it out:

Change line 121 in front.func.inc.php
from: $table .= "<tr><td".$colspan.">".spacer(1,3)."</td></tr>\n";

to: $table .="";

thats it :wink:

aborre

Posted: Fri 18. Feb 2005, 17:34
by aborre
to delete that spacer in 1.1.9 dev uncomment this:
$table .= "<tr><td".$colspan.">".spacer(1,3)."</td></tr>\n";
arround line 176 in front.func.inc.php. :wink:

aborre