WordPress.org

Ready to get started?Download WordPress

Forums

Sermon Browser
Sermon Browser Tag Cloud (1 post)

  1. davislj
    Member
    Posted 3 years ago #

    There is an error in the code so that the sermon browser tag cloud does not appear correctly - the font sizes are whacked out and not correct (the tags used the most are smaller than the tags used the least). To fix, do this:

    frontend.php
    LN 585
    if ($cur < $mincnt) $minct = $cur;

    needs to change to:
    if ($cur < $mincnt) $mincnt = $cur;

    I also highly recommend putting the list in alpha order. It is currently in order of the amount of times the tag is used so the fonts will be grouped together in similar size making it look funny.

    To do this, change LN 573 in frontend.php

    $rawtags = $wpdb->get_results("SELECT name FROM {$wpdb->prefix}sb_tags as t RIGHT JOIN {$wpdb->prefix}sb_sermons_tags as st ON t.id = st.tag_id");

    change to:

    $rawtags = $wpdb->get_results("SELECT name FROM {$wpdb->prefix}sb_tags as t RIGHT JOIN {$wpdb->prefix}sb_sermons_tags as st ON t.id = st.tag_id ORDER BY name ASC");

    and LN 591:
    arsort($cnt);

    to:
    //arsort($cnt);

    http://wordpress.org/extend/plugins/sermon-browser/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic