Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 107
Total: 107

Author Topic: Unexpected "." in ManagePermissions  (Read 4098 times)

0 Members and 1 Guest are viewing this topic.

Offline PyroTech03

  • Member
  • *
  • Posts: 16
    • View Profile
Unexpected "." in ManagePermissions
« on: February 04, 2014, 09:32:08 am »
Getting this error trying to install shop manually (package installer won't work)

Quote
Parse error: syntax error, unexpected ',' in C:\Inetpub\vhosts\www.dworebirth.com\httpdocs\Sources\ManagePermissions.php on line 1131

Here's my code for that area

Code: [Select]
// Standard - ie. members.  They can do anything Restrictive can.
        'smfstore_view',
'smfstore_rateitem',
'smfstore_comment',
'smfstore_editcomment',
'smfstore_autocomment',
'smfstore_userstore',
'smfstore_manage',
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'karma_edit',
'pm_read',
'pm_send',
'profile_view_any',
'profile_extra_own',
'profile_server_avatar',
'profile_upload_avatar',
'profile_remote_avatar',
'profile_remove_own',
));

Looks like it should be good to me :L

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #1 on: February 04, 2014, 09:47:01 am »
That code is in the wrong place
Code: [Select]
'smfstore_view',
'smfstore_rateitem',
'smfstore_comment',
'smfstore_editcomment',
'smfstore_autocomment',
'smfstore_userstore',
'smfstore_manage',

What SMF version?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline PyroTech03

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #2 on: February 04, 2014, 09:48:04 am »
smf 2.0.6 running on a windows box

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #3 on: February 04, 2014, 09:54:01 am »
Find the exact code
Code: [Select]
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
After it add

Code: [Select]
'smfstore_view' => array(false, 'smfstore', 'smfstore'),
'smfstore_rateitem' => array(false, 'smfstore', 'smfstore'),
'smfstore_comment' => array(false, 'smfstore', 'smfstore'),
'smfstore_editcomment' => array(false, 'smfstore', 'smfstore'),
'smfstore_autocomment' => array(false, 'smfstore', 'smfstore'),
'smfstore_userstore' => array(false, 'smfstore', 'smfstore'),
'smfstore_manage' => array(false, 'smfstore', 'smfstore'),
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline PyroTech03

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #4 on: February 04, 2014, 09:59:48 am »
ok that took care of the error I was having, but I don't see any of the store permissions.

Was there any other edits for that file?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #5 on: February 04, 2014, 10:08:26 am »
There were two edits to the managepermissions.php

Also you need to edit themes/default/languages/modifcations.english.php and any modifications.*.php in that folder.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline PyroTech03

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #6 on: February 04, 2014, 10:12:08 am »
the edit I gave was the first one....

The edit you gave looks like the second one.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #7 on: February 04, 2014, 10:13:26 am »
Upload the store package to
http://www.smfhacks.com/smf-package-parser.html

And make suire all the edits were followed:
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline PyroTech03

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Unexpected "." in ManagePermissions
« Reply #8 on: February 04, 2014, 10:33:25 am »
alright thanks for the help :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4461 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
8924 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8232 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
1 Replies
6619 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
8335 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

Powered by EzPortal