Table problem Table problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Table problem

Started by marymc, November 13, 2009, 04:31:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marymc

Hi everybody!
Well, my problem is:
When I past the code in a div or table on my page it looks like this http://www.allaboutpec.netsons.org/index.php ( I linked my page) I dunno how to explain this... anyway, I'd like to know how to make thumbs go on a new line to avoid that the div hides them.


Sorry for my bad english.

marymc

Oh... I forgot to say that I'm using an iFrame. I also tried to do that without an iFrame, but I had the same problem.

Joe Carver

Please, could you post your cpmFetch code?

Jeff Bailey

you can use <tr> tags to make new rows
example:

<table>
<tr>
<td>
<img></img>
</td>
</tr>
<tr>
<td>
<img></img>
</td>
</tr>
</table>

The example above would put one img on top of another.

edit- opps din't see that it was related to cpmFetch - thanks i-imagine
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

marymc

sure... here's the code:


<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close(); 
?>



anyway, it's the custom code. I copy it from the 'screen.php' page. I'm a newbie about php :(

Thanks

marymc

oops.. I meant 'default code' not custom code. sorry.

Joe Carver

Your problem is very, very simple, so as a reminder for the future and for future readers too....

Read the documents that are packaged with your cpmFetch or use This Link. Also read what other people have posted on the board.

Change:
 $objCpm->cpm_viewLastAddedMedia(1,4);

To:
 $objCpm->cpm_viewLastAddedMedia(2,2);


marymc

Thanks a lot  ;D  & thank you also for your suggestions.