Author Topic: Error in Profile.php due to installing Aeva Media  (Read 1362 times)

Offline Vas

  • Administrator
  • Star Goldie
  • *****
  • Posts: 1874
  • Karma: +5/-1
    • http://www.starf1.com/forum/
You get


Parse error syntax error, unexpected  (T_DOUBLE_ARROW) in Profile.php

As per SMF notes

in profile.php

Find
   
Code: [Select]
'activateaccount' => array(
'file' => 'Profile-Actions.php',
'function' => 'activateAccount',
'sc' => 'get',
'select' => 'summary',
'permission' => array(
'own' => array(),
'any' => array('moderate_forum'),
),
),
),
),

add after      
   
Code: [Select]
// Aeva Media changes
'aeva' => array(
'title' => $txt['aeva_gallery'],
'areas' => array(
'aeva' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileSummary',
'label' => $txt['aeva_profile_sum'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevaitems' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileItems',
'label' => $txt['aeva_view_items'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevacoms' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileComments',
'label' => $txt['aeva_view_coms'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevavotes' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileVotes',
'label' => $txt['aeva_view_votes'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
),
),
// End Aeva Media changes

Solution? Next Reply. 8)
« Last Edit: Mar 11, 15, 01:30 by Vas »
Tireless striving stretches its arms towards perfection

Offline Vas

  • Administrator
  • Star Goldie
  • *****
  • Posts: 1874
  • Karma: +5/-1
    • http://www.starf1.com/forum/
Re: Error in Profile.php due to installing Aeva Media
« Reply #1 on: Mar 11, 15, 01:27 »
It should be


Find


Code: [Select]
'activateaccount' => array(
'file' => 'Profile-Actions.php',
'function' => 'activateAccount',
'sc' => 'get',
'permission' => array(
'own' => array(),
'any' => array('moderate_forum'),
),
),
),
),


add after

Code: [Select]
// Aeva Media changes
'aeva' => array(
'title' => $txt['aeva_gallery'],
'areas' => array(
'aeva' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileSummary',
'label' => $txt['aeva_profile_sum'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevaitems' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileItems',
'label' => $txt['aeva_view_items'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevacoms' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileComments',
'label' => $txt['aeva_view_coms'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
'aevavotes' => array(
'file' => 'Aeva-Gallery2.php',
'function' => 'aeva_profileVotes',
'label' => $txt['aeva_view_votes'],
'permission' => array(
'own' => array('aeva_viewprofile'),
'any' => array('aeva_viewprofile'),
),
'load_member' => true,
),
),
),
// End Aeva Media changes
);



Note the ); after
      // End Aeva Media changes. That is the difference.  :D
« Last Edit: Mar 11, 15, 01:29 by Vas »
Tireless striving stretches its arms towards perfection

Tags:
 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3009 Views
Last post Mar 22, 10, 00:22
by vpk