Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 196
Total: 196

Author Topic: *SOLVED* Gallery Button  (Read 9526 times)

0 Members and 1 Guest are viewing this topic.

Offline VAKEMP

  • Member
  • *
  • Posts: 4
    • View Profile
    • Battlefield International
*SOLVED* Gallery Button
« 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: [Select]
// 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.

« Last Edit: April 01, 2007, 06:44:02 pm by VAKEMP »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery Button
« 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.
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 VAKEMP

  • Member
  • *
  • Posts: 4
    • View Profile
    • Battlefield International
Re: Gallery Button
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery Button
« Reply #3 on: April 01, 2007, 06:08:11 pm »
Copy these strings after <? in the file
Code: [Select]
//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
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 VAKEMP

  • Member
  • *
  • Posts: 4
    • View Profile
    • Battlefield International
Re: Gallery Button
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery Button
« Reply #5 on: April 01, 2007, 06:38:51 pm »
Themes/default/languages
All the modifications.* files are in there.
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 VAKEMP

  • Member
  • *
  • Posts: 4
    • View Profile
    • Battlefield International
Re: Gallery Button
« 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!

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
5554 Views
Last post July 15, 2007, 08:02:42 am
by tatore
3 Replies
5462 Views
Last post September 17, 2007, 07:49:57 am
by SMFHacks
0 Replies
4515 Views
Last post November 13, 2007, 05:34:49 pm
by jasonwatkins
2 Replies
3450 Views
Last post January 10, 2008, 07:52:50 am
by MazdaClubTR
2 Replies
2830 Views
Last post December 10, 2010, 06:05:30 pm
by jacci

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal