forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: altenae on November 16, 2011, 03:58:47 pm

Title: USER1 and USER2 contents underneath thumbnail
Post by: altenae on November 16, 2011, 03:58:47 pm
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
Title: Re: USER1 and USER2 contents underneath thumbnail
Post by: altenae on November 16, 2011, 04:04:46 pm
Forgot to mention

Only in the last additions and album view
Title: Re: USER1 and USER2 contents underneath thumbnail
Post by: Αndré on November 16, 2011, 04:12:52 pm
Only in the last additions and album view
So where exactly shall it be omitted?
Title: Re: USER1 and USER2 contents underneath thumbnail
Post by: altenae on November 16, 2011, 04:51:53 pm
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
Title: Re: USER1 and USER2 contents underneath thumbnail
Post by: altenae on November 19, 2011, 04:17:44 pm
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
Title: Re: USER1 and USER2 contents underneath thumbnail
Post by: altenae on November 19, 2011, 05:18:01 pm
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