Back to Modification Graveyard

Thumbnails For All Usergroups
Mod Version: 1.00, by Gio~Logist

This thread is in the Modification Graveyard.
vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 4
Released: 22 Nov 2008 Last Update: Never Downloads: 0
Not Supported  

Brought To You By
Gio~Logist - Vbulletin Solutions & Services
http://www.giologist.com/vb


What does this do?

This modification makes it so that all usergroups can view attachment thumbnails. Give them a little tease and allow them to at least see what they're missing out on

This modification also still keeps basic forum permissions intact. For example, if they are requesting to view a thumbnail for a forum where they can't even view threads (or even that forum), it will not let them of course.

Step 1)
In showthread.php, find (2 instances):
PHP Code:
        $vbulletin->options['attachthumbs'] = 0
Change it to:
PHP Code:
        //$vbulletin->options['attachthumbs'] = 0; 
Step 2)
In attachment.php, find:
PHP Code:
    if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['cangetattachment'])  OR (!($forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
    {
        
print_no_permission();
    } 
Change it to:
PHP Code:
// Change up the conditional below to allow everyone (including guests)
// to view thumbnails
// by Gio~Logist

if($imagetype == 'thumbnail'){


    if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR (!($forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
    {
        
print_no_permission();
    }

} else {

    if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['cangetattachment'])  OR (!($forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($attachmentinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)))
    {
        
print_no_permission();
    }

}
// end permission thumbnail change 

F.A.Q
Q) How can i allow all usergroups to access thumbnails, regardless of their forum permissions (whether or not they can access the forum or threads).
A) Resort to the second post of this thread.

Download

No files for download.

Similar Mods

Mini Mods Thumbnails For All Usergroups vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024