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

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
aborre
Posts: 52
Joined: Thu 25. Nov 2004, 16:26

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

Post 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
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

try here: include/inc_front/content/cnt1.article.inc.php

but not 100% sure....
aborre
Posts: 52
Joined: Thu 25. Nov 2004, 16:26

Post 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
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post 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.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post 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.
aborre
Posts: 52
Joined: Thu 25. Nov 2004, 16:26

Post 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
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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';
aborre
Posts: 52
Joined: Thu 25. Nov 2004, 16:26

Post 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
aborre
Posts: 52
Joined: Thu 25. Nov 2004, 16:26

Post 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
Post Reply