SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 02:58:36 pm

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28694
Total Topics: 4979
Online Today: 88
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 54
Total: 54
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: *SOLVED* Gallery Button  (Read 5985 times)
VAKEMP
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« on: April 01, 2007, 04:53:54 pm »

Sorry, I know this has been asked before. I am new to both SMF and SMF Gallery, so I apologize.

I do not have a button to the gallery, but in the index.template.php file, the code is there:
Code:
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

When I go to the gallery, a button appears raised (see attachment with red circle), but there is no text and it is not active.

Also, in the permissions area, there are many boxes with no description (other attachment). I think this is related to the gallery, but am not sure as I installed both SMF and the gallery today.

I am using the default theme.

Thanks in advance for the help.



* gallery.bmp (325.99 KB, 614x181 - viewed 610 times.)

* gallery2.bmp (139.21 KB, 500x95 - viewed 544 times.)
« Last Edit: April 01, 2007, 06:44:02 pm by VAKEMP » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9680


View Profile
« Reply #1 on: April 01, 2007, 05:54:21 pm »

That means you are missing the text strings from modifications.english.php they need to be in all the modifications.language.php files to show.
Logged
VAKEMP
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #2 on: April 01, 2007, 06:03:29 pm »

How do I go about doing that?

Now that you mention it, I did get a message about transferring Modifications.english-utf8.php, but I didn't understand what it was trying to tell me. I took it from the default theme and dropped it into the gallery folder. The message still came up. It is gone now, but still no button.

What do I need to do?

Thanks.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9680


View Profile
« Reply #3 on: April 01, 2007, 06:08:11 pm »

Copy these strings after <? in the file
Code:
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0 Lite';
$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_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

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

$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_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage 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
Logged
VAKEMP
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #4 on: April 01, 2007, 06:24:18 pm »

Put this code into Modifications.language.php, or every language file (i.e. Modifications.dutch-utf8.php, etc...)? If Modifications.language.php, where is it located?

Thanks again
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9680


View Profile
« Reply #5 on: April 01, 2007, 06:38:51 pm »

Themes/default/languages
All the modifications.* files are in there.
Logged
VAKEMP
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #6 on: April 01, 2007, 06:43:31 pm »

Ok, I tried adding the code you posted to the Modifications.english-utf8.php file and the button is now there.

Thank you for the help!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 10:52:25 am]

[Today at 10:35:29 am]

[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.222 seconds with 19 queries.