- Forums
- Tutorial And Guides
- How To Make Attachment Available For Logged In Users Only Phpbb3
This Page Contains information about How To Make Attachment Available For Logged In Users Only Phpbb3 By wallpaperama in category Tutorial And Guides with 0 Replies. [1503], Last Updated: Sat May 18, 2024
wallpaperama
Wed Mar 18, 2009
0 Comments
452 Visits
ok, i have a mod for you for your users of wallpapers who use phpbb3 for their wallpaper websites. check it out, i have created a mod to make is so that if you have an attachement in your post, it will only be available for users or members who are logged in. this is what i did just edit these two file.
WARNING: DO NOT DELETE YOUR ORIGINAL FILES. JUST RENAME THEM. SO IN THE EVENT THIS DOESN'T WORK FOR YOU, YOU CAN ALWAYS GO BACK TO THE WAY IT WAS
language/en/vietopic.php
FIND:
'ATTACHMENT_FUNCTIONALITY_DISABLED' => 'The attachments feature has been disabled.',
ADD AFTER:
'ATTACHMENT_LOGIN_REQUIRED' => 'Please Login to Download Attachment',
download/file.php
FIND:
$user->setup('viewtopic');
ADD AFTER:
if ($user->data['user_id'] == ANONYMOUS)
{
trigger_error(login_box('', $user->lang['ATTACHMENT_LOGIN_REQUIRED']));
}
hope that helps