coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: jlove on September 21, 2007, 03:54:33 AM

Title: Subtitle positioning
Post by: jlove on September 21, 2007, 03:54:33 AM
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>
Title: Re: Subtitle positioning
Post by: jlove on September 21, 2007, 05:45:13 AM
I figured this one out. My other question (below) needs an answer though.
Title: Re: Subtitle positioning
Post by: Joachim Müller on September 21, 2007, 07:06:34 AM
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".
Title: Re: Subtitle positioning
Post by: jlove on September 21, 2007, 07:29:18 PM
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...........
Title: Re: Subtitle positioning
Post by: capecodgal on September 26, 2007, 01:58:56 PM
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 =)
Title: Re: Subtitle positioning
Post by: jlove on September 28, 2007, 01:33:01 AM
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();
?>
Title: Re: Subtitle positioning
Post by: 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>
Title: Re: Subtitle positioning
Post by: jlove on September 28, 2007, 06:49:49 AM
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!