How to reduce the number of tags that display on your home page. Default is set to 50. For some this is too many, for other this is not enough.
This is for Dolphin 6.1 x Versions.
This is a very quick and simple change.
First as always download and backup the file we will be editing just in case.
/templates/base/scripts/BxBaseIndex.php
Find the function:
function getBlockCode_Tags() {
Then scroll down several lines until you find:
$rTags = db_res( "
SELECT
`Tag`,
COUNT(`ID`) AS `count`
FROM `Tags`
WHERE `Type` = '$mode'
GROUP BY `Tag`
ORDER BY `count` DESC
LIMIT 50
" );
if( !mysql_num_rows( $rTags ) )
Simply change the LIMIT 50 to your desired number you wish to display.
If you want only 25 to show on your homepage then change to this:
$rTags = db_res( "
SELECT
`Tag`,
COUNT(`ID`) AS `count`
FROM `Tags`
WHERE `Type` = '$mode'
GROUP BY `Tag`
ORDER BY `count` DESC
LIMIT 25
" );
if( !mysql_num_rows( $rTags ) )
Save the changes, and re-upload the file.
Refresh your homepage to see the changes take effect.
Restore your original/backup file to revert the changes or change 25 back to 50.
Screen Shot Original 50 Setting:
Screen Shot Edited to show 25:
Screen Shot Edited to show 70:
Good Luck!!