Advanced search  

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

Pages: [1]   Go Down

Author Topic: CoppermineFetch layout problem in Firefox  (Read 8998 times)

0 Members and 1 Guest are viewing this topic.

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
CoppermineFetch layout problem in Firefox
« on: July 30, 2008, 04:23:02 pm »

Hi all,

I'm running SMF 1.1.5 / Tinyportal 0.9.8, bridged with Coppermine 1.4.18, and currently using coppermineFetch to pull images on to my front page (Latest gallery images). 

Thanks to Nibbler I now have my owners name, how many hits, and how many comments shown underneath the thumbnails.  :)   However, I noticed when viewing my home page in Internet Explorer 6 everything looks fine, but when viewed in Firefox, the images go out of line with the text info.   Any ideas how to fix this would be greatly appreciated.

Here's a IE screen grab,

http://i25.photobucket.com/albums/c89/lurkalot/internetexplorer.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]

And here's a Firefox screen grab

http://i25.photobucket.com/albums/c89/lurkalot/firefox.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]


Code I'm using as follows, Added to a center phpbox in Tinyportal.

Code: [Select]
echo "<center>";
chdir("../gallery/cpmfetch/");
include "cpmfetch.php";                   
$objCpm = new cpm();
$options = array("imageheight"=>"80","subtitle" => "<center>{{pTitle}} <br> <center> <FONT color=#ff0000 size=2>Image By</FONT></STRONG> {{pOwner_name}} <br>{{pHits}} Views <center> <FONT color=#2A00B3 size=2>Comments</FONT></STRONG> {{pComCount}} </center>");
$objCpm->cpm_viewLastAddedMedia(2,4,$options,$filter);
$objCpm->cpm_close();
chdir("../../");
echo '<a href="http://cameracraniums.com/gallery?action=gallery">View more latest images</a>';
echo "</center>";

And a link to my site, www.cameracraniums.com
« Last Edit: July 30, 2008, 07:24:20 pm by Joachim Müller »
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Nibbler

  • Guest
Re: CoppermineFetch layout problem in Firefox
« Reply #1 on: July 30, 2008, 05:02:57 pm »

First of all, don't post screenshots in JPG format, use PNG and attach them to your post instead of hotlinking them.

Change the center tags you are wrapping cpmfetch with to a div and then apply styles using that, so:

Change

Code: [Select]
echo "<center>";
...
echo "</center>";

to

Code: [Select]
echo '<div id="cpmfetch">';
...
echo '</div>';

Then add the styles to your css file.

Code: [Select]
#cpmfetch table {
    width: 100%;
}

#cpmfetch td {
    text-align: center;
    width: 25%;
}

That will align and space out the table.
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: CoppermineFetch layout problem in Firefox
« Reply #2 on: July 30, 2008, 05:28:40 pm »

Nibbler, apologies for the screen grabs.   I'll remember that in future posts.

Thanks for the help. 

Now I understand the center tag stuff, but when you say "Then add the styles to your css file."  What css file are you referring to, and where would I find it please? 

Sorry if that's a dumb question, but I'm still trying to learn. :-[
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Nibbler

  • Guest
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: CoppermineFetch layout problem in Firefox
« Reply #4 on: July 30, 2008, 05:57:08 pm »

Thanks again,

does it matter where I add the code in the css file?  as I've done it and it made no difference.  :-*
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Nibbler

  • Guest
Re: CoppermineFetch layout problem in Firefox
« Reply #5 on: July 30, 2008, 05:59:21 pm »

You need to refresh the page for the updated css to take effect.
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: CoppermineFetch layout problem in Firefox
« Reply #6 on: July 30, 2008, 06:00:44 pm »

Thank you very much, that fixed it.  ;)
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: CoppermineFetch layout problem in Firefox
« Reply #7 on: July 30, 2008, 06:18:33 pm »

Well it did fix it apart from the link at the bottom (View more latest images), this is now shown to the left hand side of my block, this used to be centered.  Any way to fix this?  I've marked it in bold below.
 
Quote
echo '<div id="cpmfetch">';
chdir("../gallery/cpmfetch/");
include "cpmfetch.php";                   
$objCpm = new cpm();
$options = array("imageheight"=>"80","subtitle" => "<center>{{pTitle}} <br> <center> <FONT color=#ff0000 size=2>Image By</FONT></STRONG> {{pOwner_name}} <br>{{pHits}} Views <center> <FONT color=#2A00B3 size=2>Comments</FONT></STRONG> {{pComCount}} </center>");
$objCpm->cpm_viewLastAddedMedia(2,4,$options,$filter);
$objCpm->cpm_close();
chdir("../../");
echo '<a href="http://cameracraniums.com/gallery?action=gallery">View more latest images</a>';
echo '</div>';
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Nibbler

  • Guest
Re: CoppermineFetch layout problem in Firefox
« Reply #8 on: July 30, 2008, 06:55:29 pm »

Change the css to this:

Code: [Select]
#cpmfetch table {
    width: 100%;
}

#cpmfetch td {
    width: 25%;
}

#cpmfetch {
    text-align: center;
}
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: CoppermineFetch layout problem in Firefox
« Reply #9 on: July 30, 2008, 07:12:39 pm »

Thanks Nibbler, that done the trick.   

Promise to stop pestering you now. ;)

Thanks again.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.