Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Aligning of text  (Read 3286 times)

0 Members and 1 Guest are viewing this topic.

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
Aligning of text
« on: May 26, 2006, 04:07:58 pm »

just a simple question, see this link here http://www.dc-6.com/gallery/displayimage.php?album=2&pos=23

my text isn't aligned to the left, just wondering where I can edit this, it isn't in the theme.php so I need to add it from the includes/themes.inc.php but I dont know what section I need to copy to my themes.php so I can align the text to the left,

Thanxs, Sam
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
Re: Aligning of text
« Reply #1 on: May 26, 2006, 08:43:27 pm »

also is there a way to make the memberlist public so evertyone can view it
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Aligning of text
« Reply #2 on: May 27, 2006, 12:43:52 am »

1) One issue per thread! Please review the board rules you agreed to respect when signing up.
2) Please read the sticky thread on the board I'm moving your posting to
Logged

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
Re: Aligning of text
« Reply #3 on: May 27, 2006, 10:44:00 am »

i'v read all threads, but i still cant find anything relating to aligning images descriptions
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Aligning of text
« Reply #4 on: May 27, 2006, 10:52:59 am »

There is no thread named "find out about alignement of text", but there are several that explain how to modify your custom theme. The default behaviour is centered alignement for the title and caption of the image description. If you want it otherwise, find the corresponding section in the sample theme, copy it into your custom theme and modify it as you see fit (this way overriding the default behaviour). In your case, paste
Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2px" cellpadding="0px" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
into themes/yourtheme/theme.php into a new line before
Code: [Select]
?>Then replace the <center>-tags as you see fit. Finally, save your changes and upload the modified file to your server.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.