Subtitle positioning Subtitle positioning
 

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

Subtitle positioning

Started by jlove, September 21, 2007, 03:54:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jlove

How do we get rid of the two <br />'s above the subtile.

We have:

<table>
<tr>
<td>
<a href=""><img src="" class="cpm" alt="image" />
<br /><br />
Subtitle
</td>
</tr>
</table>

And I want

<table>
<tr>
<td>
<a href=""><img src="" class="cpm" alt="image" />
<br />
Subtitle
</td>
</tr>
</table>

jlove

I figured this one out. My other question (below) needs an answer though.

Joachim Müller

Why don't you let others benefit from your insight. Don't just post "I figured out", but tell us what you actually did to solve your issue for the benefit of others. That's the whole point of a support board.
Marking thread as "solved".

jlove

Probably because it was a lot simpler that I thought. Since I am using multiple installs, I edited the wrong cpmfetch.php.

Just look for the subtitle section...........

capecodgal

You got multiple installs to work? I have been trying for a few months and never got it...  I saw in your last post you created a class in the css for cpm I was just placing my code directly into my content class and got errors stating that the class cpm could not be redeclared so am I correct that I just need to make a class for cpm and another for cpm2 in my css?

Anyways if you can share your knowledge about the multiple installs I'll share how I got the update list you asked about in your other thread.... if thats ok w/ Vudd of course

and btw.... I think I know you from elsewhere but normally you know me as Yankee H8r ...... I am thinking the J in your screen name stands for Jarly am I correct? If not I appologize but the name caught my attention =)

jlove

I believe it was more accidental than anything else, I just noticed that it was working, but so far, I've included 3 different installs.

My first include would be:

<?php
  include_once "/home/my_first_site_stuff/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/my_first_site_stuff/cpmfetch/cpmfetch_config.php");
  $options = array('imagestyle' => 'cpm', 'imagewidth' => '60', 'tablestyle' => 'auto');
  $objCpm->cpm_viewLastAddedMedia(1,5,$options);
  $objCpm->cpm_close();
?>

Then all of my other includes are like:

<?php
  include_once "/home/my_first_site_stuff/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/my_second_site_stuff/cpmfetch/cpmfetch_config.php");
  $options = array('imagestyle' => 'cpm', 'imagewidth' => '70', 'tablestyle' => 'auto');
  $objCpm->cpm_viewRandomMediaFrom("album=29",1,4,$options);
  $objCpm->cpm_close();
?>

<?php
  include_once "/home/my_first_site_stuff/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/my_third_site_stuff/cpmfetch/cpmfetch_config.php");
  $options = array('imagestyle' => 'cpm', 'imagewidth' => '70', 'tablestyle' => 'auto');
  $objCpm->cpm_viewRandomMediaFrom("album=29",1,4,$options);
  $objCpm->cpm_close();
?>

capecodgal

OMG! Thank you so much  ;D This has been killing me for months I didn't realize it couldn't pull both config files it just kept telling me it couldn't redeclare the cpm class and would break on the first one. Anyways if you are still looking for the update list here it is: (Just change 7 to how many days you want)


<table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr><td class="h1"><center> Latest Gallery Updates </center></td></tr>
<tr><td class="table_content">
<center>
<?php 
include_once "./coppermine/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./coppermine/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank');
$objCpm->cpm_listMediaAddedOverLastDays(7,$options);
$objCpm->cpm_close(); 
?>

</center>
</tr></td></table>

jlove

Quote from: capecodgal on September 28, 2007, 04:38:44 AM
OMG! Thank you so much  ;D This has been killing me for months I didn't realize it couldn't pull both config files it just kept telling me it couldn't redeclare the cpm class and would break on the first one. Anyways if you are still looking for the update list here it is: (Just change 7 to how many days you want)


<table width="100%" cellpadding="0" cellspacing="0" align="center">
<tr><td class="h1"><center> Latest Gallery Updates </center></td></tr>
<tr><td class="table_content">
<center>
<?php 
include_once "./coppermine/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./coppermine/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank');
$objCpm->cpm_listMediaAddedOverLastDays(7,$options);
$objCpm->cpm_close(); 
?>

</center>
</tr></td></table>


Ahaha!!

You have saved me from saying many a bad words!!

Thanks so much! And, I'm glad the other stuff works for you too!