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: Centering a CPG tag on a non-CPG page  (Read 3188 times)

0 Members and 1 Guest are viewing this topic.

jakeslife

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Centering a CPG tag on a non-CPG page
« on: October 19, 2004, 03:43:45 am »

I am trying ti display the latest upload on my main page, and for the most part I have it, but there's one thing I can't do: center it. It doesn;'t matter if I center the actual tag, because the print cpg_single tag displays this on the page:

<a href="http://www.jakeslife.net/scripts/coppermine/displayimage.php?&pos=-238" target="_top"><img src="http://www.jakeslife.net/scripts/coppermine/albums/wpw-76/thumb_3cea6f3db1c56814ed6895fe28eee9500_full.jpg" border="0" alt="" title="2 View&#10;" align="left" class="padright">

I just need to find where this is in the CPG files and modify it, but I have checked everywhere I can think of. Any suggestions?
Logged

MeTaL_oRgY

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Centering a CPG tag on a non-CPG page
« Reply #1 on: October 19, 2004, 05:53:22 am »

hmmm.... I don't know where that code is (probably on the shows.ini.php or something...)... but you can try adding that to a table or a div... like:
css:
Code: [Select]
.centerimg
{
margin-left: auto;
margin-right: auto;
}

HTML:
Code: [Select]
<table class="centerimg" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"><tr><td> your image code here </td></tr></table>
hope that works O_o....
Logged

jakeslife

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Centering a CPG tag on a non-CPG page
« Reply #2 on: October 20, 2004, 04:09:54 am »

I've tried changing the properties of the table, as well as creating a css cattribute for the insert, but it keeps dragging the formatting along with it. I even downloaded the files from the server and ran a text search through them all and couldn't find that string of code. Oh well LOL
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Centering a CPG tag on a non-CPG page
« Reply #3 on: October 20, 2004, 08:18:03 am »

@jakeslife: post a link to the page in question.
@Metal_orgy: there's no file called "shows.ini.php" in coppermine (at least not the standalone version this board is about), and fiddling with the margin attribute certainly won't change alignment.

Joachim

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.