whmeeske, I have a little mini-hack for you. It may not be the prettiest solution, but it works. It's not a complete hack for what you want, more like a proof of concept.. it could be done a lot more nicely with config settings and so on.
Btw, I saw that there's a plugin hook after build_caption is called from get_pic_data(), so maybe this can be done with a plugin?
Disclaimer; as always, don't edit stuff if you don't know what you're doing. And as I said.. this is not a complete hack, nor are the instructions super-complete either.
This is all in
include/functions.inc.php.
Find (line 1226 for Random files, line 1058 for Last additions (they look a little different))
if ($set_caption) build_caption($rowset,array('ctime'));
Replace with
if ($set_caption) build_caption($rowset,array('ctime'),array('hits'));
Find (line 814)
if ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have)) {
Replace with
if (!in_array('hits', $mustnt_have) && $CONFIG['views_in_thumbview'] || in_array('hits',$must_have)) {
Do the above with all the caption fields you want to be able to exclude (they might look a bit different from the above one)
Then find (line 800)
function build_caption(&$rowset,$must_have=array())
Replace with
function build_caption(&$rowset,$must_have=array(),$mustnt_have=array())
So what this does is when build_caption() is called you pass an array to it, called $mustnt_have, then when the caption is built you do an extra check to ensure that that part of the caption isn't built if it's in the $mustnt_have array. So if you also don't want the uploader name to show in the above example, you would pass:
array('hits','uploader')
instead of just:
array('hits')
And then you would also change (line 826)
if ($CONFIG['display_uploader']
to include the $mustnt_have stuff:
if (!in_array('uploader', $mustnt_have) && $CONFIG['display_uploader']
Happy coding