Aligning of text Aligning of text
 

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

Aligning of text

Started by Dr Preacox, May 26, 2006, 04:07:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr Preacox

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
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Dr Preacox

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

Joachim Müller

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

Dr Preacox

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

Joachim Müller

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 // 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 ?>Then replace the <center>-tags as you see fit. Finally, save your changes and upload the modified file to your server.