USER1 and USER2 contents underneath thumbnail USER1 and USER2 contents underneath thumbnail
 

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]

Main Menu

USER1 and USER2 contents underneath thumbnail

Started by altenae, November 16, 2011, 03:58:47 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

altenae

I am trying to get the USER1 and USER2 contents underneath the thumbnail...

Again....I am a dutchman, but I am willing ot pay for some help..

Thanks,

EDward

altenae

Forgot to mention

Only in the last additions and album view

ΑndrĂ©


altenae

Take a look at www.planepix.nl

I want it to be visible underneath the lat addition thumbnails and underneath the thumbnails in an album.

Edward

altenae

Hi ,

I have figured it out.

I have added this to funtions.inc.php

$caption .= $row['user1'] ? "<span class=\"thumb_title\">Airlines: ".strip_tags(bb_decode($row['user1']))."</span>" : '';

This will show like this "Airlines: KLM"
Now what I want is to  make KLM clickable so it will search KLM.

I tried to add this to the $caption , but without luck.
Always missing an character somewhere...

Anyone for changing this $caption so that it can be searched ?

Edward

altenae

Well this works:

$caption .= $row['user1'] ? '<span class="thumb_title">Airlines: <a href="thumbnails.php?album=search&search=' . strip_tags(bb_decode($row['user1'])) . '&submit=search&album=search&newer_than=&older_than=&type=AND&user1=on&user2=on&user3=on&user4=on' . '">' . strip_tags(bb_decode($row['user1'])) . '</a></span>' : '';

Maybe to much code....but it works.

Edward