Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42481
Total Topics: 7409
Most Online Today: 33
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

Author Topic: No Permissions box  (Read 5131 times)

0 Members and 1 Guest are viewing this topic.

Offline Christina

  • Member
  • *
  • Posts: 5
    • View Profile
No Permissions box
« on: May 02, 2007, 06:52:15 am »
Hi

I have successfully installed gallery pro but have empty tables in the admin / permissions panel of SMF forums.

Could someone please advise me on how to fix this?  Thanks.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16112
    • View Profile
Re: No Permissions box
« Reply #1 on: May 02, 2007, 07:06:55 am »
You will need to copy the code below to all the /themes/default/languages/modifications.*.php files  before the ?> in each file
Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_bulk'] = 'Bulk Uploads';
$txt['permissionhelp_smfgallery_bulk'] = 'Allows the user to use the bulk upload feature.';
$txt['cannot_smfgallery_bulk'] = 'You are not allowed to bulk upload.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit their own picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit that picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete their own picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete that picture.';

$txt['permissionname_smfgallery_ratepic'] = 'Rate Picture';
$txt['permissionhelp_smfgallery_ratepic'] = 'Allows the user to rate a picture.';
$txt['cannot_smfgallery_ratepic'] = 'You are not allowed to rate that picture.';

$txt['permissionname_smfgallery_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_smfgallery_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_smfgallery_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_smfgallery_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_usergallery'] = 'Personal Gallery';
$txt['permissionhelp_smfgallery_usergallery'] = 'Allows the user to have a personal gallery';
$txt['cannot_smfgallery_usergallery'] = 'You are not allowed to have a gallery.';

$txt['permissionname_smfgallery_manage'] = 'Admin Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//END SMF Gallery Text Strings
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 Christina

  • Member
  • *
  • Posts: 5
    • View Profile
Re: No Permissions box
« Reply #2 on: May 02, 2007, 07:23:18 am »
Thanks - fantastically fast response and it worked!

Now I have about 6 links to gallery in the default theme, luckily I am not using that other than during installs lol.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16112
    • View Profile
Re: No Permissions box
« Reply #3 on: May 02, 2007, 07:30:26 am »
That sounds like the mod was installed a couple times. Gallery menu links are located in index.template.php  just remove the duplicate Gallery menu button calls.
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 Christina

  • Member
  • *
  • Posts: 5
    • View Profile
Re: No Permissions box
« Reply #4 on: May 12, 2007, 09:07:11 pm »
Back again, sorry to be a pain.  Previous to this when I had the box of permissions up I didn't realise it was missing a few fields until I just followed the documentation in configuring the gallery. This is a screenshot of the permissions tabs, the code in modifications.english.php is exactly as posted.

Is there anything else I need to modify?  I did try a clean install on a clean SMF forum but had the same issues.

Thanks

Offline Christina

  • Member
  • *
  • Posts: 5
    • View Profile
Re: No Permissions box [Solved]
« Reply #5 on: May 12, 2007, 10:13:36 pm »
I ended up uninstalling the mod, with errors. I edited each file that came up as an error to take out all gallery references, deleted the gallery files left on the server and reinstalled. Still had a modifications.english.php error so I readded the code mentioned above and voila, all is good and I am able to add user gallerys.

Thanks

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
5962 Views
Last post November 30, 2006, 09:18:00 am
by SMFHacks
6 Replies
6853 Views
Last post June 18, 2007, 06:43:27 pm
by SMFHacks
2 Replies
4966 Views
Last post August 05, 2007, 09:03:27 pm
by SMFHacks
3 Replies
5800 Views
Last post September 11, 2007, 10:44:29 pm
by Wonga
5 Replies
4280 Views
Last post February 23, 2008, 05:04:58 pm
by SMFHacks

+- Recent Topics

Delete old file by SMFHacks
October 05, 2022, 08:11:13 am

[Feature Request] Thumbnail on topic list by Shades
October 04, 2022, 11:40:26 am

Undefined index: class_ad_seller by SMFHacks
October 04, 2022, 09:33:36 am

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

Powered by EzPortal