Quote:
Originally Posted by MotMann
RS_Jelle, what happened with my problem with your special code. i have now all screens in one row
Here ist the post.
|
With this code you can choose the amount of images which fits the best (change the 4 to what you want):
PHP Code:
$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
$countnumber = 4;
$count = 1;
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
{
$edit = '[<a href="./downloads.php?do=file&id='.$file['id'].'&act=delimg&img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
}
if (file_exists($dl->url.$image['thumb']))
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
else
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
$count = $count+1;
if ($count == $countnumber)
{
$count = 1;
}
}
Quote:
Originally Posted by progaming
Im hoping someone can help me with this wonderful mod. When displaying the sub-catagoryys it doesn't display the parent cat's name like my forum does.
Any idea what I can do to fix this?
Here is a link. This should explain better what I would like to do.
THanks
http://insomniagaming.org/downloads.php?do=cat&id=2
|
Like wolfe says: your downloads section is private for members. Can you pm me a test account?
Normally the category tree is displayed in your navigation bar.
Quote:
Originally Posted by coolgus
Great Script
One small problem though, don't know if it's a bug. When a user uploads a gif or any picture, nothing shows and I can see that the link in the program has an extra slash. For example forum.com/downloads//picture.jpg
Same time at the directory of downloads there is the filename of the picture with 0 size
|
Indeed, a small bug, but normally the image url still works with this. Will be fixed in a next release.
Quote:
Originally Posted by v12kid
I have a few questions-
- will this work with icash?
- will this work with 3.6.6 ?
- can you restrict users based on post count? I onyl want users who have a certian post count or more to be able to access the downloads section. Can this be achieved with a different mod that restricst them to that forum?
thanks for the time, mod looks interesting
|
- For iCash: I just discovered that mod, so we will be looking into an integration add-on in the future. Have a look at #1286.
- It works nicely with vB 3.6.6 as I'm running it on my forum. Have a look at #1284 for more information.
- This is possible when you use the vBulletin usergroup permissions and the promotion system. Set up a new usergroup, a copy of the normal registered users group. Create a promotion to it when they reach x amount of posts and give that group permission to access the downloads using the DownloadsII usergroup permissions.