Tutorial

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:
Dolphin 6 Homepage Tags Original 50



Screen Shot Edited to show 25:
Dolphin 6 Homepage Tags Changed to 25



Screen Shot Edited to show 70:
Dolphin 6 Homepage Tags Changed to 70


Good Luck!!

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend
Sponsored Links