PDA


View Full Version : Attachments in news module


zand
05-22-2007, 05:21 PM
I just upgraded to CMPS 3.0 and in the news module I cannot remove the number of attachments on the front page. No matter which option I choose, one attachment is displayed.

Anyway, I am using this (http://www.vbulletin.org/forum/showthread.php?t=141883) mod in my forum and I was wondering if it is possible to integrate it with the news module.

Brian
05-22-2007, 05:52 PM
It looks like there may have been a small bug in the news.php file that would still show attachments if you have the "Enable [ATTACH] BB Code Tags" option enabled as well. I've just applied the fix to the download package here, so if you'll download the files again and replace your modules/news.php file with the new one, that should take care of the problem.

zand
05-22-2007, 06:29 PM
Great thanks. Would you know if it is easy to integrate the "show thumbnails to guests" with the news module?

Brian
05-23-2007, 01:19 PM
I'm assuming you want all groups to be able to view the thumbnail on your CMPS page, right? If so, you should be able to add a new plugin to the 'vba_cmps_module_newsbits_attachmentbits' hook location with the following code:

if (!($newsforumperms[$news['forumid']] & $vbulletin->bf_ugp_forumpermissions['cangetattachment']))
{
$newsforumperms[$news['forumid']] += $vbulletin->bf_ugp_forumpermissions['cangetattachment'];
}

zand
05-23-2007, 07:11 PM
Thanks, worked like a charm!