| Album list | Last uploads | Last comments | Most viewed | Top rated | My Favorites | Search | Guestbook | Contact | Blog |
|
|
The following shows how to change the size of keywords based on frequency of use, like on the search page. In include/keyword.inc.php FIND: echo "<a href="thumbnails.php?album=search&search=".$keywords_array[$i]."">$keywords_array[$i]</a>"; if ($i<$count-1) { // Eliminates Trailing Pipe after last keyword
echo " | "; } REPLACE with: $keywordcount= mysql_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} where keywords like '%$keywords_array[$i]%'");
echo "<a href="thumbnails.php?album=search&search=$keywords_array[$i]" style="font-size: " . floor(9+1.1*(mysql_num_rows($keywordcount)/4)) . "px;">$keywords_array[$i]</a></font> "; This is the modified version from the version provided here. The difference is that the code change is in the keywords.inc.php file, instead of the search.php file. This makes this feature available outside of the search page. |