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: Titles under random files & latest uploads..  (Read 2983 times)

0 Members and 1 Guest are viewing this topic.

bbt2993

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Titles under random files & latest uploads..
« on: January 07, 2005, 10:54:50 am »

Hi All,

I started fiddeling around with coppermine some time ago and have had great use of these forums.

However, now I need aid for an issue I cannot see anywhere.

How do I get "titles" under my random & latest thumbs ??

Pls advise anyone....

Brgds

bbt2993 aka SpaceCow
Logged

Nibbler

  • Guest
Re: Titles under random files & latest uploads..
« Reply #1 on: January 07, 2005, 05:13:12 pm »

You need to look in your include/functions.inc.php, and find the case you need, for example:

Code: [Select]
case 'lastup':
The caption is set in the foreach loop, so you need to make sure that what you want as the caption is being returned as:

Code: [Select]
$rowset[$key]['caption_text']
So to add the title, we can add:

Code: [Select]
$caption .= '<span class="thumb_caption">'.$row['title'].'</span>';
just before the caption is set by the line:

Code: [Select]
$rowset[$key]['caption_text'] = $caption;
Logged

bbt2993

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Titles under random files & latest uploads..
« Reply #2 on: January 07, 2005, 06:43:44 pm »

Hi & Thanks...

I managed to get it inder "Latest Uploads", but not under Random.

You can see here : http://www.jakob-lacour.dk/downloads/index.php?cat=3

I cannot seem to find the correct place in the

Code: [Select]
case 'random':
to input the code.
Logged

Nibbler

  • Guest
Re: Titles under random files & latest uploads..
« Reply #3 on: January 07, 2005, 06:48:49 pm »

Code: [Select]
$row['caption_text'] = $row['title'];
and

Code: [Select]
if($select_columns != '*') $select_columns .= ', aid, title';
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.