33
« on: September 20, 2006, 03:11:16 PM »
when I uncomment:
//echo $num_of_cells;
I am getting a value of 3. This is why I can only see the first three thumbnails. I only need three ('hits', 'comments', 'downloads') so I put them in that order and it worked out.
I also had to add to /language/main.php:
$lang['mini_top_downloads'] = "'s Most Downloaded Photo";
The reason I have the 's is because my mini_top_user_bit.html template looks like this:
<b>{user_name}{lang_mini_top_mode}</b><br />
{thumbnail}<br />
<b>{image_name}</b><br />
# Votes: <b>{image_votes}</b> <br />
# Hits: <b>{image_hits}</b> <br />
# Downloads: <b>{image_downloads}</b> <br />
# Comments: <b>{image_comments}</b>
Because I don't want guest images to be seen or bots to register 404 files, i have included these tags in my home.html and top.html:
{if user_loggedin}
{ifno is_bot}
I am still trying to figure out what to do if a user has no images. I will try installing the mod mentioned earlier.