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: I'm Finally asking for help!  (Read 3445 times)

0 Members and 1 Guest are viewing this topic.

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
I'm Finally asking for help!
« 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!
Logged

Nibbler

  • Guest
Re: I'm Finally asking for help!
« Reply #1 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.
Logged

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: I'm Finally asking for help!
« Reply #2 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
Logged

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: I'm Finally asking for help!
« Reply #3 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

« Last Edit: September 02, 2005, 08:27:06 pm by ian ditch »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: I'm Finally asking for help!
« Reply #4 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: I'm Finally asking for help!
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 19 queries.