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

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

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 1 Guest 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