![]() |
|
Tag Cloud - modify large font threshold? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Tag Cloud - modify large font threshold? (/thread-10820.html) Pages:
1
2
|
Tag Cloud - modify large font threshold? - tplowe56 - 06-02-2013 How are the font sizes assigned in the Tag Cloud. Is there a threshold number of tags which assigns a tag to the largest font size. Due to the size of my gallery, and the amount of images with the same tag, I seem to have a lot of tags getting assigned to the largest font size. Is there a way to modify the code raising the the threshold, that triggers the largest font size? Tag Cloud - modify large font threshold? - sbillard - 07-02-2013 See the function document for There are parameters to the function for the the minimum and maximum sizes. The font size is based on ratios of those items. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Ok...That seems simple enough, but I am not getting any change in my display. I changed "count_max=50" up to 500 and then 5000, and have no change in display. ZP should have printed no large font tags at that point. I tried changes all 3 instances of "count_max=50" on the page just to be sure. I am clearing my browser cache. Is there something else that needs to be cleared for code to take effect. Can't figure it out Also, I see how the minimum & max are set, but what determines when a tag graduates from the small size to the medium size font. I am seeing 3 font sizes. Is this calculated in the ratio, so I don't have control of the floor count for the medium size font? I also see there is an unanswered post similar to mine from 4 years ago: http://www.zenphoto.org/support/topic.php?id=4199#post-25033 Tag Cloud - modify large font threshold? - sbillard - 07-02-2013 The formula used is:
Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Thanks for the quick response. Do you have any idea why when I change "count_max=50" up to 5000, I am not getting any change in my tag cloud. It should not print any tags in the large font size. Right? No tag would meet that threshold. I am editing /zp-extensions/tag_extras.php Tag Cloud - modify large font threshold? - sbillard - 07-02-2013 Maybe my math is marginal, but seems to me that expression will make the size smaller as the count_max gets larger. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 OK lets take this one step at a time. No matter what parameter of the four listed below is changed at /zp-extensions/tag_extras.php I get no change at all in the appearance of the tag cloud.
Something is not allowing the changes to take effect. So what are the parameters for if they change nothing? Tag Cloud - modify large font threshold? - acrylian - 07-02-2013 Do you have the static_html_cache plugin enabled? If so you might need to clear it. However you should not if you are viewing the site being logged in. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 I do not have "static_html_cache" enabled. I tried renaming "tag_extras.php" and the Tag Cloud continues to load even after refreshing database & clearing browser cache, how could that be possible? Tags are showing without "tag_extras.php" even being present on the server. I don't get that. If I disable/enable "show tags" in theme, tags do turn off and on. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 I just noticed the plug-in "tag_extras" is NOT enabled in plug-in settings. Changing has no effect. Tag Cloud - modify large font threshold? - acrylian - 07-02-2013 If it is not enabled you are not using this plugin. There is a standard template function printAllTagsAs() you are probably using that also can print a tag cloud. That is used on standard theme's archive.php page. But you should have noticed which function call you change the parameters, the standard one or the tag_extras one... Also, to my knowledge no official theme has an option to disable tags. So you probably are using a third party one. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 I tried editing "template-functions.php" and I still do not get any changes. I commented out the printAllTags area (lines 3645-3700) and the cloud disappeared so that is where my tag cloud is generated, not from "tag_extras.php". But changing any of the parameters listed below has no effect on the cloud. Can you look at that code and see if there might be a reason why parameters are not being checked? ` **
*/ function printAllTagsAs($option,$class='',$sort='abc',$counter=FALSE,$links=TRUE,$maxfontsize=2,$maxcount=50,$mincount=10, $limit=NULL,$minfontsize=0.8) [code][/code] Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Ok.....Tried Garland and it works. So it is zpArdoise theme. If the theme calls the printAllTags function I wonder why I can't make any changes? Sorry for the all questions zpArdoise really needs to provide a little more support for his theme. I have not seen him offer support once since I have asked questions with zpArdoise mentioned. Tag Cloud - modify large font threshold? - acrylian - 07-02-2013 NEVER modify core files. You need to find the call of the tag cloud on your theme and change the parameters there. If you change the parameters on the template-functions natrually the call on the theme overrides that. So you will not see any change. Did you read the theming tutorial? Since you didn't tell what theme you are using it very well might be that it uses something custom for the tag cloud. Tag Cloud - modify large font threshold? - acrylian - 07-02-2013 You did not mention zpArdoise here at all ... Anyway, the theme's author is a volunteer as we all are and will provide as much support as he can. Which he normally does. Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Figured it out....In case anyone else is interested, the paramaters are changesd at: /themes/zpArdoise/gallery.php ` ` Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Can't get a random sort even when all params for sort are left blank. Hmmm. Tag Cloud - modify large font threshold? - vincent3569 - 07-02-2013 hi indeed, if zpardoise is not in the title of the message, I can simply miss the subject (I do not read all the forum posts). I use you should modify the parameters of the function in gallery.php, like that for example : Tag Cloud - modify large font threshold? - tplowe56 - 07-02-2013 Thanks Vincent, appreciate the help. Anyone know why when I leave the sort "blank", I do not get a randomly sorted cloud? I tried with Garland also & coud not get a random sort as stated in paremeter details:
Like this: Tag Cloud - modify large font threshold? - vincent3569 - 07-02-2013 Quote:Can't get a random sort even when all params for sort are left blank. @ zenphoto team : |