how to show keyword search cloud on front page how to show keyword search cloud on front page
 

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

how to show keyword search cloud on front page

Started by adeibiza, March 02, 2011, 04:27:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adeibiza

i spent last 2 days on this and couldnt find a definitive answer so i thought i'd share it so it shows on searches

in anycontent.php replace:

starttable("100%", $lang_index_php['welcome']);

echo <<< EOT
    <tr>
        <td class="tableb">
            Here is text in the "anycontent" block.<br />
            Edit the file "anycontent.php" in your Coppermine folder to change what is shown here.<br />
            To show this block on your gallery, go to the configuration panel under "Album List View", then "content of the main page".
        </td>
    </tr>

EOT;

endtable();


with: (i removed the title but you could put one if you want)

starttable("100%");

if ($CONFIG['clickable_keyword_search'] != 0) {
    include('include/keyword.inc.php');
}

echo <<< EOT
      <script language="javascript" type="text/javascript">
      <!--
      document.searchcpg.search.focus();
      -->
      </script>
EOT;

endtable();


afterwards put anycontent in the config as described here: http://coppermine-gallery.net/demo/cpg15x/docs/en/configuration.htm#admin_album_list_content

you can see it working here www.gig-ticket.com

(i did a crude hack of the keyword.inc.php file so i could have a coloured cloud - which i'll put up if anyone wants)

ΑndrĂ©

Thanks for sharing your customizations. There's also a plugin that does a smiliar thing: http://forum.coppermine-gallery.net/index.php/topic,63693.0.html