forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ian ditch on September 01, 2005, 09:52:08 pm

Title: I'm Finally asking for help!
Post by: ian ditch on September 01, 2005, 09:52:08 pm
Hi there I hope that someone can help me..

I have built my site using the Mac_ox_o template and over time I have altered it to suit my needs, mainly thru trail and error

I have been trying (and Trying) to add a new table on the Templates page only.

I have created this table but I want it to be shown at the bottom of the page (below the Tabs but above the 'Powered by Coppermine')
and want it to look like the Who's Online Mod

It is currently on my site here - http://www.british-babes.co.uk/models/thumbnails.php?album=4 and it is shown at the top of the page

This is a snippit of code which I have used...

Quote
// your actual page content starts here
    starttable("100%", 'Content block title', 1);
    ?>
    <tr>
    <td class="tableb" valign="top" align="center">
    {ALB_DESC}
    </td>
    </tr>
    <?php
    endtable();
// your actual page content ends here

and was taken from your site



My aim is to show the album description in this section as when I get this working I will delete the album desc shown on the index page.

1) create a 'Who's online' style table under the thumbnails on the thumbnails page only
2) to show the current album desciption

I hope that someone can help me with this as I have said, I have tried and failed!
Title: Re: I'm Finally asking for help!
Post by: Nibbler on September 01, 2005, 10:27:54 pm
How have you implemented what you have currently, where did you add that code ? It would be best done using anycontent - search the board for that phrase.
Title: Re: I'm Finally asking for help!
Post by: ian ditch on September 02, 2005, 12:13:10 am
I've searched for anycontent and have now added the following to anycontent

Quote
// your actual page content starts here
    starttable("100%", 'Content block title', 1);
    ?>
    <tr>
    <td class="tableb" valign="top" align="center">
    <p>{ALB_DESC}</p>
    </td>
    </tr>
    <?php
    endtable();
   
// your actual page content ends here


Now I must have to add include('anycontent.php');


As I only want this to be shown on the Thumbnails page I have tried to include this in my theme page after '$template_thumbnail_view = <<<EOT'

but before the next EOT   

I need to know where to put this line
Title: Re: I'm Finally asking for help!
Post by: ian ditch on September 02, 2005, 06:53:45 pm
O.K I've now placed
Quote
starttable("100%", "Hello World - This is just a test");
?>
<tr>
    <td class="tableb" >
           
    </td>
</tr>
<?php endtable(); ?>

In my anycontent.php  and ....
Quote
pageheader(isset($CURRENT_ALBUM_DATA) ? $CURRENT_ALBUM_DATA['title'] : $lang_meta_album_names[$album]);
if ($breadcrumb) {
  if(!(strpos($CONFIG['main_page_layout'],"breadcrumb")===false)){
            theme_display_breadcrumb($breadcrumb, $cat_data);
        }
    theme_display_cat_list($breadcrumb, $cat_data, '');
}

display_thumbnails($album, (isset($cat) ? $cat : 0), $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);


               include('anycontent.php');
             
pagefooter();
ob_end_flush();
?>

In my Thumbnails.php to display the anycontent.php only at the bottom of the thumbnails page.

Now what I need to do is to show the album title in this box insted of '"Hello World - This is just a test'
and then in the main area of the box show the album discription


Please Help me with this...I know I'm nearly there

Title: Re: I'm Finally asking for help!
Post by: kegobeer on September 02, 2005, 07:30:50 pm
In

Code: [Select]
starttable("100%", "Hello World - This is just a test");
change Hello World - This is just a test to whatever you want.
Title: Re: I'm Finally asking for help!
Post by: ian ditch on September 02, 2005, 08:25:44 pm
I want it to change on each thumbnail page to show the name of the current album so it must be called from the database

for example at the top of the thumbnail page it shows  HOME > CURRENT ALBUM NAME
                                                                                                       
So I want the CURRENT ALBUM NAME to be shown in this new box instead of 'Hello world this is just a test'

I also want to call the current album discription to be shown in this box aswell

Please help