Having problem in installing Mod

Started by pixeleyes, September 29, 2010, 08:07:22 AM

Previous topic - Next topic

pixeleyes

I wanted to install AWARD MOD but below error occurred during installation.



How to solve this problem.

Looking

If it is compatible with your version of SMF then install manually using the parse code shown in the mod section.

gbsothere

Your error means that some other mod has already modified those files.  If you like, you can place the manual edits for those two files.  Save them from your server onto your desktop.  In Profile.php,

Find:


'permissions' => array(
'label' => $txt['showPermissions'],
'file' => 'Profile-View.php',
'function' => 'showPermissions',
'permission' => array(
'own' => 'manage_permissions',
'any' => 'manage_permissions',
),
),



Add after:


'showAwards' => array(
'label' => $txt['showAwards'],
'file' => 'Profile-View.php',
'function' => 'showAwards',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
),
'awardsMembers' => array(
'file' => 'Profile-View.php',
'function' => 'awardsMembers',
'hidden' => (isset($_GET['area']) && $_GET['area'] != "awardsMembers"),
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
),
'listAwards' => array(
'label' => $txt['listAwards'],
'file' => 'Profile-View.php',
'function' => 'listAwards',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
),




In Subs.php

Find:


$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));



Replace with:


$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));





Then upload a fresh Profile.php and a fresh Subs.php from your SMF Zip and continue with your package manager installation.  When your installation is complete, upload the two files you'd saved onto your desktop and edited.  This will ensure that any other mods that use these files will continue to function properly, as well as the new mod.


Always backup everything up before installing a mod.   ;)

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

pixeleyes

There is not exact below code in Subs.php
   $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));

See the code which I found in Subs.php

$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'sp_admin', 'sp_manage_settings', 'sp_manage_blocks', 'sp_manage_articles', 'sp_manage_pages', 'sp_manage_shoutbox', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));

Kindly let me know should i REPLACE as you told?

Kays

It looks like SimplePortal added some code to that line. Try this:


$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'sp_admin', 'sp_manage_settings', 'sp_manage_blocks', 'sp_manage_articles', 'sp_manage_pages', 'sp_manage_shoutbox', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

pixeleyes

Thanks all of you. Problem is solved!

Special thanks to gbsothere

:)

gbsothere

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Advertisement: