Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on September 16, 2006, 07:13:02 PM

Title: SMF Gallery
Post by: SMFHacks.com Team on September 16, 2006, 07:13:02 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=473)



SMF Gallery

By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)


Compatibility
Now supporting SMF 2.1 Beta 1!!!!
Works with both SMF 2.0.x and SMF 1.1.x

Description
Is a gallery system that ties directly into SMF with a bunch of features.
We also have a professional version of the modification located at http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)

Features:
Ties directly into SMF, uses forum theme, members and permissions.
Categories for images
Comment System
Keywords for picture
Picture Approval
Reporting of Picture
User Image galleries
Who is viewing a picture/gallery
Permissions for adding picture, editing own picture, deleting own picture, viewing the gallery, autoapproved image postergroups, and managing the gallery
Settings for max image size and max image width and height
Create's thumbnails automatically for uploaded images
Supports bmp, gif, jpeg, and png images
Easy to install package for SMF

SMF Gallery Lite

5.6.1
!Minor fixes with Aeva convertor handling apostrophes

5.6
!Fixed menu icon for SMF 2.1 Beta 2

5.5.1
!Delete temp file if not a valid picture file for disk space/security

5.5
+Added support for SMF 2.1 Beta 1 now using hooks for most file edits for SMF 2.1 Beta 1!

5.0.1
!Fixed bug in error message SMF 2.0 for images that exceed max width/height

5.0
+Built in Aeva Media Importer! You can now import your old Aeva Media Gallery and imports your gallery pictures, categories, comments, ratings, view log, if you wish to upgrade to SMF Gallery Pro to gain even more features for your gallery
+Added indexes to gallery picture table to key columns for better performance.
+Alt tags now include the picture title
+Added comment count to comment header on view picture/improved display in SMF 2.0
!View picture layout SMF 2.0 expanded to 100%
!Cleaned some old template code in SMF 2.0 version that only worked for SMF 1.0.x no longer used
!Optimized top gallery buttons code in gallery.php/gallery2.php


4.0
+Better linktree display in certain areas of the gallery
+Not filling in all the information/errors on add picture page no redirects back to the page with information already filled out instead of a fatal error. SMF 2.0 only.
!Removed some @ error suppression in the code in a few places

3.7
!Fixed searching in other languages using special characters
+Better support for other languages characters throughout the gallery


3.6
+Added copyright removal system.

3.5
+Updated styling for SMF 2.0 for main areas for a better experience
+Updated admin areas with alternating row styles to make reading easier.

3.1.4
!Fixed top gallery bar layout issue in chrome for SMF 2.0

3.1.3
+Added support for Badge Awards http://www.smfhacks.com/badgeawards.php  checking on add picture/comments
!Fixed possible undefined error on search page that can be caused by search engine spiders

3.1.2
!Fixed database error if viewing a link of a delete picture. Normally occurred by search engines

3.1.1
!Fixed mod_security issue with previous/next links

3.1
+Added next/previous links to the picture display
!Allowed guests to leave comments

3.0.5
+Added add picture link to main gallery button tab bar
!Fixed bug with missing background on image_listing,search results if less than max items in a row

3.0.4
!Fixed some mod_security issues with SMF 2.0

3.0.3
+Added regenerate thumbnails option on a category level.

3.0.2
+Added support for SMF 2.0 RC4

3.0.1
!Fixed error with adding a comment for SMF 1.1.x

3.0
+Added setting to control the number of gallery items per row
+Added settings to control thumbnail height/width
+Added paging setting for SMF 1.1.x
!Fixed hardcoded text Views on delete image

2.1
+Added support for SMF 2.0 RC3
+Moved admin area for SMF 2.0 to its own location for better manage gallery support
+Updated the settings area with a better layouts
+Added more navigation in various areas of the gallery
+Using a better format size function to return different filesize values
Support Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

If you have questions on this mod please  discuss in the mod topic in the SMF forums.
Title: Re: SMF Gallery
Post by: steve in houston on September 16, 2006, 07:16:07 PM
looks really cool.
great idea.
Title: Re: SMF Gallery
Post by: steve in houston on September 16, 2006, 07:49:46 PM
everything insalled fine.
i added a test category but when i clicked
into the category to add a pic, i received this
error.

Quote
Unknown table 'P' in where clause
File: /home/xxx/public_html/jimrome/Sources/Load.php(1072) : eval()'d code
Line: 71

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.8, whereas your database is at version SMF 1.0.7. It is recommended that you execute the latest version of upgrade.php.

im not sure why my DB didnt get upgraded.  i ran the 1.0.8
upgrade through package manager.

can you point me in the direction of the correct upgrade.php
file i need?  or a simple fix?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 16, 2006, 07:53:01 PM
Fixed. I had an error. Either unistall the mod and redownload the mod.
Or find in gallery.template.php
P.ID_MEMBER
and change to
p.ID_MEMBER

Title: Re: SMF Gallery
Post by: steve in houston on September 16, 2006, 08:00:12 PM
yes, that fixed it.
thanks.

it was on line #1532
Title: Re: SMF Gallery
Post by: Skipdawg on September 16, 2006, 10:25:55 PM
vbgamer45 you did it. Awesome! I sure hope I have no mods in place to interfere with this one. This rocks!  8) ;D ;)
Title: Re: SMF Gallery
Post by: codenut on September 16, 2006, 11:41:42 PM
On trying to install this mod via the package manager I get a single error:

Execute Modification     ./Themes/default/index.template.php     Test failed

Looking at the xml file in the package I suspect it might be related to adding a menu option to the menubar?

Any suggestions to try?
Title: Re: SMF Gallery
Post by: Skipdawg on September 16, 2006, 11:47:25 PM
This is so weird. Basicly mirror setups with mods other than forum name, topics and content.
1 forum all seems to have gone well, 2ed forum installed to menubar gallery tabs twice, 3ed seems to have installed all but the menubar tab and it won't even let me add the code in from the server. What the heck is going on?  ::)
Title: Re: SMF Gallery
Post by: marinelife on September 17, 2006, 12:00:00 AM
on my admin panel under gallery config. I have boxes with no text and in the gallery I have two 0 0 s and now way to add anything
Title: Re: SMF Gallery
Post by: marinelife on September 17, 2006, 12:03:04 AM
I checked the error log and have 12 pages of gallery errors
Title: Re: SMF Gallery
Post by: Skipdawg on September 17, 2006, 12:20:41 AM
Yea this puppy is tossing errors like fireworks on the 4th of July.  ::)

I'm also wondering if that stupid phpsuexec is srewing with me here. I'm just looking for a good reason to tell my Host to shove that piece of crap script or what ever it is.  :-\
Title: Re: SMF Gallery
Post by: steve in houston on September 17, 2006, 12:45:08 AM
yes, i too am getting errors
Title: Re: SMF Gallery
Post by: desistyle on September 17, 2006, 01:26:22 AM
wow this is so nice
Title: Re: SMF Gallery
Post by: littleone on September 17, 2006, 01:28:31 AM
Are these images uploaded on the forum's webspace, or is it via external links like imageshack and photobucket?
Title: Re: SMF Gallery
Post by: steve in houston on September 17, 2006, 01:40:14 AM
Are these images uploaded on the forum's webspace, or is it via external links like imageshack and photobucket?

your server, a new directory called 'gallery' was created under your forum directory
Title: Re: SMF Gallery
Post by: youthnow on September 17, 2006, 04:51:07 AM
i installed this fine... one question...

when using this mod, the "my pictures" displays the thumbnail pictures just fine, but in the general category view they are in, they dont display.

the pics are trying to be pulled from:

mywebsite.com/forum/thumb_pic.gif

insted of:

mywebsite.com/forum/gallery/thumb_pic.gif
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 09:05:55 AM
I need to see examples of log errors. I need to know the version of SMF you are using.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 09:18:48 AM
I just want to point this mod is currently only Works for English forums.
If you see no text you will need to either copy or translate Gallery.english.php to Gallery.yourlanguage.php in the languages folder of the default theme or theme you are using.
Title: Re: SMF Gallery
Post by: chrishoggy on September 17, 2006, 10:04:26 AM
Great mod and just what I was looking for. One question though, and yes I know it may be simple for some ;) :P
How can I get the gallery button in other themes. The link to gallery works fine, and takes on all themes no problem. But would like to have the button at the top of each theme, same as it is in default SMF. OR if not in all of them just in the Pn-Pn (for 1.1 RC3) theme.
Thanks in advnce for any advice ;D
Title: Re: SMF Gallery
Post by: codenut on September 17, 2006, 10:26:18 AM
I need to see examples of log errors. I need to know the version of SMF you are using.


my apologies I thought I had included that info.

SMF 1.1RC3
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 10:43:54 AM
I still need examples of the log errors from SMF log in order to fix them.


Buttons for customs theme. I can't do, need to find someone to draw them.
Title: Re: SMF Gallery
Post by: steve in houston on September 17, 2006, 11:38:17 AM
Version 1.0.8

Code: [Select]
8: Undefined index: gallery_url
File: /home/xxx/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 86

8: Undefined index: gallery_who_viewing
File: /home/xxx/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 121

8: Undefined index: gallery_commentchoice
File: /home/xxx/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 1292

8: Undefined index: key
File: /home/xxx/public_html/forum/Sources/Gallery.php
Line: 1385
Title: Re: SMF Gallery
Post by: codenut on September 17, 2006, 11:45:30 AM
I still need examples of the log errors from SMF log in order to fix them.


Buttons for customs theme. I can't do, need to find someone to draw them.

I didn't finish the install after the error listed so I have no log files of it in action.
Title: Re: SMF Gallery
Post by: chrishoggy on September 17, 2006, 12:18:50 PM
Sorry didn't makle myself clear, I just wanted the code to make the button show. Anyway I worked it out. This is to add gallery button to the pn-pn 1.1RC3 theme
Quote
  // Show the [Gallery] button.
   echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
            <td valign="top" class="maintab_' , $current_action == 'Gallery' ? 'active_back' : 'off_back' , '">
               <a href="', $scripturl, '?action=gallery">Gallery</a>
            </td>' , $current_action == 'Gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

Go to edit theme index.template.php and in the box starting line 602, scroll down untill you find the tab code for help/serach etc and place the above code between the buttons you want it to show.
Hope that makes sense, as I'm no coding guru :D :D :D
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 02:18:45 PM
i installed this fine... one question...

when using this mod, the "my pictures" displays the thumbnail pictures just fine, but in the general category view they are in, they dont display.

the pics are trying to be pulled from:

mywebsite.com/forum/thumb_pic.gif

insted of:

mywebsite.com/forum/gallery/thumb_pic.gif
Fixed unistall old mod, reinstalll new one.
Title: Re: SMF Gallery
Post by: steve in houston on September 17, 2006, 02:33:42 PM
i installed this fine... one question...

when using this mod, the "my pictures" displays the thumbnail pictures just fine, but in the general category view they are in, they dont display.

the pics are trying to be pulled from:

mywebsite.com/forum/thumb_pic.gif

insted of:

mywebsite.com/forum/gallery/thumb_pic.gif
Fixed unistall old mod, reinstalll new one.

vb, if i wanted to manually make that change, what page do i edit?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 02:35:07 PM
Gallery.template.php but it would best just to unistall and reninstall if you can. Unistall does not delete the pictures or information that you entered already.
Title: Re: SMF Gallery
Post by: fivewinds on September 17, 2006, 04:16:58 PM
They really should allow you to edit your reviews on the mod page. Anyway..

I had posted in the mod link that I had an error while downloading the zip. I just wanted to say that it had nothing to do with the condition of the zip on the download page. (May be a browser problem on my part. Still working that out.) My bf was able to download the file just fine. The mod itself uploaded with great ease. Its a very convenient mod, one in which many MANY of us were all waiting for. Great job!

Suggestion: To those who are impatient, like myself, and wondering where the gallery is on your forum site. Upload a test image to the gallery via configurations before asking. It will save some frustration. :)


Thanks again!
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 04:41:38 PM
Glad you like. The mod seems pretty stable now, that I got those few bugs fixed.
Going to work on the pro version this week heh.
Title: Re: SMF Gallery
Post by: usermike3969 on September 17, 2006, 06:25:55 PM
worked great for me but i had to edit the index.php and index.template.php manual  :)

but cany u make it show the link to the pics so people can link to them from there site??

also is there a way to make it where u dont have to approve them???
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 06:41:45 PM
Yup
worked great for me but i had to edit the index.php and index.template.php manual  :)

but cany u make it show the link to the pics so people can link to them from there site??

also is there a way to make it where u dont have to approve them???
Good Idea to show image link if you want them.

Yes, there is a way for the images to be autoapproved.
Go to permissions then set the group to auto approve images.
Title: Re: SMF Gallery
Post by: usermike3969 on September 17, 2006, 06:42:51 PM
thanks alot and very good mod
Title: Re: SMF Gallery
Post by: chadk on September 17, 2006, 08:25:38 PM
I'm not a fan of the "DONATE TO SUPPORT" the developers button.  People on my site don't know the difference and will think they're supporting the site, not your software.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2006, 08:50:28 PM
I'm not a fan of the "DONATE TO SUPPORT" the developers button.  People on my site don't know the difference and will think they're supporting the site, not your software.
That's only in the admin section of the site, so only you will see it.


I will also have a pro version on sale soon which won't have the donate butotn in the admin section
Title: Re: SMF Gallery
Post by: steve in houston on September 18, 2006, 12:22:21 AM
thanks VB.  all the errors i was receiving have been resolved.
Title: Re: SMF Gallery
Post by: littlefeather on September 18, 2006, 12:59:19 AM
Sweet...This really does the trick...Thanks VB

no install problems... no functioning problems...good job ;)
Title: Re: SMF Gallery
Post by: littleone on September 18, 2006, 01:41:38 AM
Id like to see this where they can host images on image shack and photobucket and then be able to do all the stuff this mod offers.  I am a big stickler on webspace and i know how images can hog website and bandwidth both, not that its an issue, but i just dont care for hosting stuff like that on my webspace.  It certainly would be nice to have them put in the link and it show like that ;)  Just a suggestion
Title: Re: SMF Gallery
Post by: chrishoggy on September 18, 2006, 04:36:34 AM
Not sure if this is a bug in the mod, or a problem with the Pn-Pn theme:
When using the Pn-Pn theme, the gallery permissions fields in admin do not show. Neither does the Galley settings link in the admin menu. The spaces are there, and the boxes to tick, but no text shows, just a blank field. If I switch to default theme, it all shows no problems.
Just thought I would say, just in case :D
Title: Re: SMF Gallery
Post by: codenut on September 18, 2006, 02:11:43 PM
Not sure if this is a bug in the mod, or a problem with the Pn-Pn theme:
When using the Pn-Pn theme, the gallery permissions fields in admin do not show. Neither does the Galley settings link in the admin menu. The spaces are there, and the boxes to tick, but no text shows, just a blank field. If I switch to default theme, it all shows no problems.
Just thought I would say, just in case :D

I think you will need to create custom buttons for any themes not covered by the mod author
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 02:24:17 PM
Yeah that will be the case as with all mods.
I will have about 20 other buttons for different themes for pro customers when I realease it.
Title: Re: SMF Gallery
Post by: chrishoggy on September 18, 2006, 05:13:03 PM
Do you mean the button graphics?
I'm talking about the text within the admin menus.
When ever I'm using the Pn-Pn theme I get this error in my logs when I enter admin area.
Quote
8: Undefined index: smfgallery_admin
File: /home/photo/public_html/forum/Sources/Subs.php
Line: 2728
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 05:18:49 PM
Do you mean the button graphics?
I'm talking about the text within the admin menus.
When ever I'm using the Pn-Pn theme I get this error in my logs when I enter admin area.
Quote
8: Undefined index: smfgallery_admin
File: /home/photo/public_html/forum/Sources/Subs.php
Line: 2728
Make sure these are in the modifications.english.php in your themes language folder
Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0';
$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
Title: Re: SMF Gallery
Post by: chrishoggy on September 18, 2006, 05:33:30 PM
No they are not in there. This is what I have. So do I need to cop n past these in? And where should they go?
Sorry for the dumb questions, but most of this is above my head ;)
Code: [Select]
<?php
// Version: 1.1 RC3; Modifications


// Pn-Pn ADD
$txt['top_info'] = 'User Info &amp; Key Stats';
$txt['igoh_locked'] = 'Locked Topic';
$txt['igoh_sticky'] = 'Sticky:';
$txt['multi_pg'] = 'Multi page topic';

$txt['topics_posts_in'] = 'in';
$txt['topics_posts_posts'] = 'posts';
$txt['topics_posts_topics'] = 'topics';
$txt['forum_tools'] = 'Forum Tools';
$txt['search_forum'] = 'Search this Forum';
$txt['topic_tools'] = 'Topic Tools';
$txt['search_topic'] = 'Search this topic';
$txt['search_in'] = 'Search in';
$txt['notify_new_topics'] = 'Notify of new topics';

$txt['show_most_online'] = 'Hide &quot;Most Online Today&quot; &amp; &quot;Most Online Ever&quot; ';
$txt['member_list_button'] = 'Show member list tab in the menu';
$txt['show_dhtml_menu'] = 'Hide DHTML menus';
$txt['show_topics_posts_help'] = 'Hide Topics/Posts mini help';
$txt['top_avatar_resize'] = 'Do not use, resize an upper avatar image (height: 65px, width: 65px)';
$txt['theme_version_attention'] = 'Hide theme version attention';

$txt['theme_default_color'] = 'Main color of Pn-Pn theme';
$txt['theme_default_color_default'] = 'Default';
$txt['theme_default_color_blue'] = 'Blue';
$txt['theme_default_color_lightslategray'] = 'Light slate gray';
$txt['theme_default_color_red'] = 'Red';
$txt['theme_default_color_blue2'] = 'Blue2';
$txt['theme_default_color_green'] = 'Green';
$txt['theme_default_color_orange'] = 'Orange';

$txt['user_info_position'] = 'Posters information position';
$txt['user_info_position_desc'] = 'Posters information position of &quot;Display.template.php&quot;';
$txt['user_info_position_default'] = 'Default';
$txt['user_info_position_left'] = 'Left';

$txt['delimitation_of_post'] = 'Bottom delimitation (line) of post: ';
$txt['delimitation_of_post_desc'] = 'Setting of line of bottom delimitation (line) of post.';
$txt['delimitation_of_post_default'] = 'Color of default';
$txt['delimitation_of_post_gray'] = 'Specify the thick gray.';
$txt['delimitation_of_do_not_use'] = 'Do not use.';

$txt['color_of_delimitation_of_post'] = 'Color code of delimitation of post: ';
$txt['color_of_delimitation_of_post_desc'] = 'Input it with #RRGGBB (example: <i>#000000</i> ) or COLORNAME (example: <i>black</i> ). <br />When this column is a blank, the color set by &quot;Bottom delimitation (line) of post&quot; is used. Or, if you are specifying &quot;Do not use.&quot; by the option of &quot;Bottom delimitation (line) of post&quot;, this setting will not be reflected.';

$txt['pnpn_forum_button'] = 'URL for button that returns to the main (Home) page : ';
$txt['pnpn_forum_button_desc'] = 'Input URL here when the button where it returns to the top on your site is necessary. If it is a blank, the button is not displayed.';
$txt['pnpn_forum_button_forum'] = 'Forum';

// The one to press translation of Modifications.english.php
$txt['necessary_to_translate'] = 'Necessary to translate';

?>
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 05:37:45 PM
Yeah, I would just copy and past that code near the bottom before the ?>
Title: Re: SMF Gallery
Post by: chrishoggy on September 18, 2006, 05:51:04 PM
It crashed and died the whole forum :'( giving this error
Quote
Template Parse Error!
There was a problem loading the /Themes/pnpn11rc3a/languages/Modifications.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

syntax error, unexpected '/'

I assume this is how it should be?
Code: [Select]
<?php
// Version: 1.1 RC3; Modifications


// Pn-Pn ADD
$txt['top_info'] = 'User Info &amp; Key Stats';
$txt['igoh_locked'] = 'Locked Topic';
$txt['igoh_sticky'] = 'Sticky:';
$txt['multi_pg'] = 'Multi page topic';

$txt['topics_posts_in'] = 'in';
$txt['topics_posts_posts'] = 'posts';
$txt['topics_posts_topics'] = 'topics';
$txt['forum_tools'] = 'Forum Tools';
$txt['search_forum'] = 'Search this Forum';
$txt['topic_tools'] = 'Topic Tools';
$txt['search_topic'] = 'Search this topic';
$txt['search_in'] = 'Search in';
$txt['notify_new_topics'] = 'Notify of new topics';

$txt['show_most_online'] = 'Hide &quot;Most Online Today&quot; &amp; &quot;Most Online Ever&quot; ';
$txt['member_list_button'] = 'Show member list tab in the menu';
$txt['show_dhtml_menu'] = 'Hide DHTML menus';
$txt['show_topics_posts_help'] = 'Hide Topics/Posts mini help';
$txt['top_avatar_resize'] = 'Do not use, resize an upper avatar image (height: 65px, width: 65px)';
$txt['theme_version_attention'] = 'Hide theme version attention';

$txt['theme_default_color'] = 'Main color of Pn-Pn theme';
$txt['theme_default_color_default'] = 'Default';
$txt['theme_default_color_blue'] = 'Blue';
$txt['theme_default_color_lightslategray'] = 'Light slate gray';
$txt['theme_default_color_red'] = 'Red';
$txt['theme_default_color_blue2'] = 'Blue2';
$txt['theme_default_color_green'] = 'Green';
$txt['theme_default_color_orange'] = 'Orange';

$txt['user_info_position'] = 'Posters information position';
$txt['user_info_position_desc'] = 'Posters information position of &quot;Display.template.php&quot;';
$txt['user_info_position_default'] = 'Default';
$txt['user_info_position_left'] = 'Left';

$txt['delimitation_of_post'] = 'Bottom delimitation (line) of post: ';
$txt['delimitation_of_post_desc'] = 'Setting of line of bottom delimitation (line) of post.';
$txt['delimitation_of_post_default'] = 'Color of default';
$txt['delimitation_of_post_gray'] = 'Specify the thick gray.';
$txt['delimitation_of_do_not_use'] = 'Do not use.';

$txt['color_of_delimitation_of_post'] = 'Color code of delimitation of post: ';
$txt['color_of_delimitation_of_post_desc'] = 'Input it with #RRGGBB (example: <i>#000000</i> ) or COLORNAME (example: <i>black</i> ). <br />When this column is a blank, the color set by &quot;Bottom delimitation (line) of post&quot; is used. Or, if you are specifying &quot;Do not use.&quot; by the option of &quot;Bottom delimitation (line) of post&quot;, this setting will not be reflected.';

$txt['pnpn_forum_button'] = 'URL for button that returns to the main (Home) page : ';
$txt['pnpn_forum_button_desc'] = 'Input URL here when the button where it returns to the top on your site is necessary. If it is a blank, the button is not displayed.';
$txt['pnpn_forum_button_forum'] = 'Forum';

// The one to press translation of Modifications.english.php
$txt['necessary_to_translate'] = 'Necessary to translate';

/
Begin SMF Gallery Text Strings
$txt
['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0';
$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
?>
Title: Re: SMF Gallery
Post by: bayfresh on September 18, 2006, 05:54:12 PM
Thanks. It works like a charm. But I have an question about this mod.

I see that this is a global gallery (not a personal photoalbum)

is it maybe possible to have a features of a personal photogallery in the pro version ?

For example: every user has his/her own photoalbum in the profile section.
Title: Re: SMF Gallery
Post by: chrishoggy on September 18, 2006, 05:56:09 PM
Sorry spotted the error.
There was a / missing in your code that I copied  

Code: [Select]
/Begin SMF Gallery Text StringsPut it in and it's working like a dream. Many thanks for your help, you are a star and a gent :D :D :D
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 06:00:04 PM
Thanks. It works like a charm. But I have an question about this mod.

I see that this is a global gallery (not a personal photoalbum)

is it maybe possible to have a features of a personal photogallery in the pro version ?

For example: every user has his/her own photoalbum in the profile section.
Yes you kind of have it in the lite version anyone can visit other persons images via ?action=gallery;sa=myimages;u=####
Replace #### with ther user's number
Pro verion will have link to gallery in their profile.
Recent pictures in profile option
And a lot of other cool features.
Title: Re: SMF Gallery
Post by: bayfresh on September 18, 2006, 06:06:49 PM
Thanks. It works like a charm. But I have an question about this mod.

I see that this is a global gallery (not a personal photoalbum)

is it maybe possible to have a features of a personal photogallery in the pro version ?

For example: every user has his/her own photoalbum in the profile section.
Yes you kind of have it in the lite version anyone can visit other persons images via ?action=gallery;sa=myimages;u=####
Replace #### with ther user's number
Pro verion will have link to gallery in their profile.
Recent pictures in profile option
And a lot of other cool features.
So in pro version is it possible to show pictures (thumbnails) inside users profiles. (not in a global places) And users can edit their photoalbum by a link in their profile section. Am I right ?

 ;D
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 06:18:07 PM
Yup, I am going to be adding a lot of new features. Trying to fix any bugs left with Lite version then I am branching off and doing pro only work.
Title: Re: SMF Gallery
Post by: bayfresh on September 18, 2006, 06:27:35 PM
Yup, I am going to be adding a lot of new features. Trying to fix any bugs left with Lite version then I am branching off and doing pro only work.
Super   ;D.... When you think that the pro version is finished and ready to download ?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2006, 06:29:17 PM
Super   ;D.... When you think that the pro version is finished and ready to download ?
I would say one to two weeks. There will be an upgrade from SMF Gallery Lite
Title: Re: SMF Gallery
Post by: steve in houston on September 18, 2006, 11:44:37 PM
Avatar sizes are not limited on the comment section.
I have mine set at 100x100 for the forum but they are quite a bit bigger
in the gallery.
Title: Re: SMF Gallery
Post by: houston on September 19, 2006, 12:37:15 AM
First Mod installed on a new installation of RC3 and when I push the add catagory button I get this error.

Fatal error: Call to undefined function: () in /home/eaglebay/public_html/smf/Sources/Gallery.php on line 235

Lines 234 - 236

$title = htmlspecialchars($_REQUEST['title'],ENT_QUOTES);

   $description = $htmlspecialchars($_REQUEST['description'],ENT_QUOTES);

   $image =  htmlspecialchars($_REQUEST['image'],ENT_QUOTES);


Title: Re: SMF Gallery
Post by: Little15 on September 19, 2006, 02:00:24 AM
I installed the latest version (1.5) on a clean install of 1.1RC3 and get these errors when I add a new picture.

8: Undefined index: gallery_cat_name
File: /home/liquidga/public_html/test1/Themes/default/languages/Gallery.english.php (eval?)
Line: 64

8: Undefined index: view_num_guests
File: /home/liquidga/public_html/test1/Themes/default/languages/Gallery.english.php (eval?)
Line: 127
Title: Re: SMF Gallery
Post by: Vinspire on September 19, 2006, 02:21:45 AM
Omg ! This is so awesome !!! I guess it is time for me to ditch my super buggy coppermine gallery and shift it to this.

Is it stable for SMF 1.1 RC 2 yet ?

Another great mod from vbgamers again  :D ;D :D
Title: Re: SMF Gallery
Post by: steve in houston on September 19, 2006, 02:35:56 AM
getting quite a few of these...

Code: [Select]
8: Undefined variable: 1
File: /home/xxx/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 707
Title: Re: SMF Gallery
Post by: chrishoggy on September 19, 2006, 03:05:22 AM
I've had a few of these:

Code: [Select]
8: Undefined variable: 1
File: /home/XXX/public_html/forum/Themes/default/languages/Gallery.english.php (view_picture sub template - eval?)
Line: 709

But the admin problem is sorted out :D :D :D
Must say this mod rocks, and is exactly what I needed to help my forum function as I wanted it to. I will be going for the Pro version, as it sounds even better.

Now one thing I that would make this even better, is to have permissions for viewing categories. So I can create categories for different user groups, and make it that only that group can see their category?
Title: Re: SMF Gallery
Post by: Skipdawg on September 19, 2006, 03:12:09 AM
Dose not uninstall very good at all either. Stuff left all over the place.  :o
Title: Re: SMF Gallery
Post by: Hack on September 19, 2006, 03:23:30 AM
Getting the same error as houston above..

Code: [Select]
$title = htmlspecialchars($_REQUEST['title'],ENT_QUOTES);
$description = $htmlspecialchars($_REQUEST['description'],ENT_QUOTES);
$image =  htmlspecialchars($_REQUEST['image'],ENT_QUOTES);

Any ideas what may be causing this? I have added the mod to my theme and it appears on the site ok I belive. The error happens when I try and add a new catagory in the ACP side of things (enter catagory details and then press the send/submit button gives:)

Code: [Select]
Fatal error: Call to undefined function: () in /pathtositepart/site/Sources/Gallery.php on line 235
Title: Re: SMF Gallery
Post by: AmaZulu on September 19, 2006, 04:04:34 AM
Yep, me too, on a test site using 1.0.8.

Fatal error: Call to undefined function: () in /home/nikongea/public_html/smftest/Sources/Gallery.php on line 235

Pity, because I would definitely be in line to purchase this mod for my website if I could see what a working product would look like.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2006, 08:08:42 AM
Fixed unistall old version and download and install the new one. I had a small typo.

SMFHacks.com
Title: Translated into German!
Post by: Badelehrling on September 19, 2006, 05:09:35 PM
Hi,
I've translated the Mod into German!
If you want to use it do the following (written in German of course ;))

Usage on own Risk!!! Maybe I've made mistakes while translating!

Gebrauch auf eigene Gefahr! Vielleicht habe ich Übersetzungsfehler gemacht! (Falls ja, bitte schreibt sie hierrein ;))


1. sucht im Verzeichniss Themes\default\languages nach der Datei Who.german.php!
Schreibt vor das abschliessende ?>:
Code: [Select]
//Begin SMF Gallery
$txt['whoall_gallery'] = 'Schaut die <a href="' . $scripturl . '?action=gallery">Galerie</a> an.';
//END SMF Gallery Strings

2. sucht im Verzeichniss Themes\default\languages nach der Datei Modifications.german.php!
Schreibt vor das abschliessende ?>:
Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'SMF Galerie';
$txt['smfgallery_menu'] = 'Galerie';
$txt['smfgallery_version'] = '1.0';
$txt['smfgallery_admin'] = 'Galerie Einstellungen';

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

$txt['permissionname_smfgallery_view'] = 'Zeige die SMF Galerie';
$txt['permissionhelp_smfgallery_view'] = 'Erlaube den Benutzern die Galerie zu betrachten';
$txt['cannot_smfgallery_view'] = 'Du hast nicht die Berechtigung die Galerie anzuschauen';

$txt['permissionname_smfgallery_add'] = 'Bild hinzufügen';
$txt['permissionhelp_smfgallery_add'] = 'Erlaubt den Benutzern ein Bild hinzuzufügen.';
$txt['cannot_smfgallery_add'] = 'Du hast nicht die Berechtigung ein Bild hinzuzufügen.';

$txt['permissionname_smfgallery_edit'] = 'Eigenes Bild bearbeiten';
$txt['permissionhelp_smfgallery_edit'] = 'Erlaubt dem Benutzer ein Bild zu ändern.';
$txt['cannot_smfgallery_edit'] = 'Du hast nicht die Berechtigung Bilder zu ändern.';

$txt['permissionname_smfgallery_delete'] = 'Eigenes Bild löschen';
$txt['permissionhelp_smfgallery_delete'] = 'Erlaubt dem Benutzer ein Bild zu löschen.';
$txt['cannot_smfgallery_delete'] = 'Du hast nicht die Berechtigung ein Bild zu löschen.';

$txt['permissionname_smfgallery_comment'] = 'Kommentar schreiben';
$txt['permissionhelp_smfgallery_comment'] = 'Erlaubt dem Benutzer Kommentare über Bilder zu schreiben.';
$txt['cannot_smfgallery_comment'] = 'Du hast nicht die Berechtigung Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Bilder/Beiträge melden';
$txt['permissionhelp_smfgallery_report'] = 'Erlaubt dem Benuter Bilder und Kommentare zu melden.';
$txt['cannot_smfgallery_report'] = 'Du hast nicht die Berechtigung Inhalt zu melden.';

$txt['permissionname_smfgallery_autoapprove'] = 'Automatisch Bilder freigeben';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Bilder brauchen nicht manuell freigegen zu werden.';

$txt['permissionname_smfgallery_manage'] = 'Galerie verwalten';
$txt['permissionhelp_smfgallery_manage'] = 'Erlaubt dem Benutzer Kategorien hinzuzufügen/löschen/editieren. Kommentare und Bilder zu löschen, Bilder freizugeben';
$txt['cannot_smfgallery_manage'] = 'Du hast nicht die Berechtigung die Galerie zu verwalten.';

//END SMF Gallery Text Strings

3. erstellt die Datei Gallery.german.php im Verzeichniss Themes\default\languages und schreibt folgenden Code hinnein:
Code: [Select]
<?php

/*

SMF Gallery Lite Edition

Version 1.0

by:vbgamer45

http://www.smfhacks.com

Copyright 2006 SMFHacks.com



############################################

License Information:

SMF Gallery is NOT free software.

This software may not be redistributed.



Links to http://www.smfhacks.com must remain unless

branding free option is purchased.

#############################################



Gallery English Text Strings

*/



//Gallery.template.php Strings



//Title string

$txt['gallery_text_title'] = 'Galerie';



//Main gallery table strings

$txt['gallery_text_galleryname'] = 'Galeriename';

$txt['gallery_text_gallerydescription'] = 'Galeriebeschreibung';

$txt['gallery_text_totalimages'] = 'Bilder insgesammt';

$txt['gallery_text_reorder'] = 'Position';

$txt['gallery_text_options'] = 'Optionen';



$txt['gallery_text_adminpanel'] = 'Galerie Admin Planel';

$txt['gallery_text_addcategory'] = 'Kategorie hinzufügen';

$txt['gallery_text_editcategory'] = 'Kategorie bearbeiten';

$txt['gallery_text_delcategory'] = 'Kategorie löschen';

$txt['gallery_text_settings'] = 'Einstellungen';

$txt['gallery_text_permissions'] = 'Berechtigungen';

$txt['gallery_text_imgwaitapproval'] = 'Bildzulassung erwartet: ';

$txt['gallery_text_imgcheckapproval'] = 'Kontrolliere Bildzulassungsliste';



$txt['gallery_text_imgreported'] = 'gemeldete Bilder: ';

$txt['gallery_text_imgcheckreported'] = 'Kontrolliere berichtete Bilder';





$txt['gallery_write_error'] = 'Warnung: Galerie Verzeichniss ist nicht beschreibbar! ';

$txt['gallery_text_myimages'] = '[Meine Bilder]';

$txt['gallery_text_search'] = '[Suche]';

$txt['gallery_text_edit'] = '[Editieren]';

$txt['gallery_text_delete'] = '[Löschen]';

$txt['gallery_text_unapprove'] = '[sperren]';

$txt['gallery_text_approve'] = '[Freigeben]';

$txt['gallery_text_up'] = '[nach oben]';

$txt['gallery_text_down'] = '[nach unten]';

$txt['gallery_text_reportpicture'] = '[Bild melden]';

$txt['gallery_text_delcomment'] = '[Beitrag löschen]';





$txt['gallery_text_filesize'] = 'Dateigröße: ';

$txt['gallery_text_by'] = 'Von:';

$txt['gallery_text_date'] = 'Datum: ';

$txt['gallery_text_comments'] = 'Kommentare';

$txt['gallery_text_views'] = 'Betrachtet: ';



$txt['gallery_text_addpicture'] = 'Bild hinzufügen';

$txt['gallery_text_returngallery'] = 'Zurück zur Galerie';



//Online strings

$txt['gallery_who_viewgallery'] = ' betrachten diese Galerie.';

$txt['gallery_who_viewpicture'] = ' betrachten dieses Bild.';



//Form Strings

$txt['gallery_form_title'] = 'Titel:';

$txt['gallery_form_description'] = 'Beschreibung:';

$txt['gallery_form_icon'] = 'Galerie Icon Url:';



$txt['gallery_warn_category'] = 'Warnung: Das wird die Kategorie mit ALL ihren Bildern, Kommentaren, Bewertungen LÖSCHEN';



$txt['gallery_form_addpicture'] = 'Bild hinzufügen';

$txt['gallery_form_category'] = 'Kategorie:';

$txt['gallery_form_keywords'] = 'Stichworte:';

$txt['gallery_form_uploadpic'] = 'Bild hochladen:';

$txt['gallery_form_maxwidth'] = 'max. Breite ';

$txt['gallery_form_maxheight'] = 'max. Höhe ';

$txt['gallery_form_pixels'] = ' Pixel';

$txt['gallery_form_additionaloptions'] = 'Erweiterte Optionen:';

$txt['gallery_form_allowcomments'] = 'Hinzufügen von Kommentaren erlauben.';

$txt['gallery_form_notapproved'] = 'Dein Bild wird erst sichtbar in der Galerie wenn es freigeben ist.';

$txt['gallery_form_editpicture'] = 'Bild bearbeiten';

//View picture

$txt['gallery_text_picstats'] = 'Bilderstatus:';

$txt['gallery_text_height'] = 'Höhe:';

$txt['gallery_text_width'] = 'Länge:';

$txt['gallery_text_postedby'] = 'gepostet von:  ';

$txt['gallery_text_addcomment'] = 'Kommentar hinzufügen';

//Delete picture

$txt['gallery_warn_deletepicture'] = 'Warnung: Das wird dein Bild, ohne Möglicheit auf Wiederherstellung löschen.';

$txt['gallery_form_delpicture'] = 'Bild löschen';





$txt['gallery_form_comment'] = 'Kommentar:';



$txt['gallery_form_reportpicture'] = 'Bild melden';



//Gallery admin pics

$txt['gallery_form_managecats'] = 'Kategorien verwalten';

$txt['gallery_form_approveimages'] = 'Bilder genehmigen';

$txt['gallery_form_reportimages'] = 'gemeldete Bilder';



//Settings page

$txt['gallery_set_description'] = 'Erlaubt Dir, die wichtigen Einstellung Deiner Galerie zu ändern.';

$txt['gallery_set_maxheight'] = 'max. erlaubte Bildhöhe: ';

$txt['gallery_set_maxwidth'] = 'max. erlaubter Bildbreite: ';

$txt['gallery_set_filesize'] = 'max. Bilddateigröße: ';

$txt['gallery_set_path'] = 'Galeriepfad: ';

$txt['gallery_set_url'] = 'Galerie Url: ';

$txt['gallery_set_whoonline'] = 'Zeige wer gerade ein Bild betrachtet';

$txt['gallery_set_commentschoice'] = 'Dem Benutzer erlauben umzuschalten, wenn Anmerkungen oder Abbildungen gezeigt werden können oder nicht.';

$txt['gallery_set_permissionnotice'] = 'Zum Schluss: Vergiss nicht die Berechtigungen zu setzen, damit die Benutzer die Galerie ansehen können.';

$txt['gallery_set_editpermissions'] = 'Zulassung bearbeiten';



//Approve list

$txt['gallery_app_image'] = 'Bild';

$txt['gallery_app_title'] = 'Titel';

$txt['gallery_app_description'] = 'Beschreibung';

$txt['gallery_app_date'] = 'Datum';

$txt['gallery_app_membername'] = 'Mitgliedsname';



//Report list

$txt['gallery_rep_piclink'] = 'Bild Link';

$txt['gallery_rep_reportby'] = 'Eingestellt von';

$txt['gallery_rep_comment'] = 'Kommentar';

$txt['gallery_rep_viewpic'] = 'Bild anzeigen';

$txt['gallery_rep_deletepic'] = '[Bild löschen]';

$txt['gallery_rep_delete'] = '[Bericht löschen]';



//Search Page

$txt['gallery_search_pic'] = 'Bild suchen';

$txt['gallery_search_for'] = 'Suchen nach:';

$txt['gallery_search_title'] = 'Bildtitel durchsuchen';

$txt['gallery_search_description'] = 'Bildbeschreibung durchsuchen';

$txt['gallery_search_keyword'] = 'Stichworte durchsuchen';

$txt['gallery_search'] = 'Suche';



$txt['gallery_searchresults'] = 'Suchergebnisse';



//My Images

$txt['gallery_myimages'] = 'Meine Bilder';

$txt['gallery_myimages_app'] = 'zugelassene Bilder';

$txt['gallery_myimages_notapp'] = 'nicht zugelassenes Bild';





//#############################

//Gallery.php Strings

//#############################

$txt['gallery_error_cat_title'] = 'Du musst einen Kategorietitel eintragen!';

$txt['gallery_error_no_pic_selected'] = 'Kein Bild ausgewählt.';

$txt['gallery_error_pic_notapproved'] = 'Diese Abbildung wurde noch nicht genehmigt und du hast nicht die Berechtigung, sie anzusehen. ';

$txt['gallery_error_no_title'] = 'Du musst einen Bildtitel eingeben.';

$txt['gallery_error_no_cat'] = 'Du musst eine Kategorie auswählen.';

$txt['gallery_error_invalid_picture'] = 'Dies ist keine gültige Bilddatei.';

$txt['gallery_error_img_size_height'] = 'Das Bild übersteigt die erlaubte Größe. Die Bildhöhe war:  ';

$txt['gallery_error_img_size_width'] = ' Die Bildbreite war: ';

$txt['gallery_error_img_filesize'] = 'Das Bild überschreitet die Größenvorgabe. Die max. Bildgröße ist ';

$txt['gallery_error_no_picture'] = 'Keine hochgeladenen Bilder gefunden.';

$txt['gallery_error_noedit_permission'] = 'Du hast nicht die Berechtigung dieses Bild zu bearbeiten.';

$txt['gallery_error_nodelete_permission'] = 'Du hast nicht die Berechtigung dieses Bild zu löschen.';

$txt['gallery_error_no_comment'] = 'Du hast kein Kommentar eingegeben!';

$txt['gallery_error_not_allowcomment'] = 'Dieses Bild erlaubt keine Kommentare...';

$txt['gallery_error_no_com_selected'] = 'Kein Kommentar gewählt.';

$txt['gallery_error_no_user_selected'] = 'Kein Benutzer gewählt.';

$txt['gallery_error_no_report_selected'] = 'Kein Beitrag gewählt.';

$txt['gallery_error_no_search'] = 'Du hast kein Suchbegriff eingegeben...';

$txt['gallery_error_search_small'] = 'Die Suchanfrage ist zu kurz, sie muss mind. eine Länge von 3 Zeichen haben.';



?>


Da die Macher nicht ganz sauber gearbeitet haben, stehen weiterhin vereinzelt Wörter in Englisch in der Gallerie. Dieses Problem kann behoben werden, indem ihr die Gallery.template.php im Verzeichniss Themes/default/ durch diese Datei (http://bgr.beeven.de/smfmods/Gallerie.Deutsch/Gallery.template.zip) ersetzt. (nautürlich erst entpacken ;)) (HINWEIS: Wenn einige Benutzer des Forums eine andere Sprache als Deutsch verwenden, sehen sie diese einzelnen Wörter jetzt in Deutsch!)

Habt ihr Fehler gefunden? Habe ich was falsch übersetzt?
Bitte postet die Fehler hierrein (oder schickt mir ne PN)!!

mfg,
Badelehrling

LIVEDEMO (http://barrikaden-gegen-rechts.beeven.de/Forum/index.php?action=gallery)
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2006, 05:13:47 PM
Thanks! For the translation.  So far we have German and portuguese
Title: Re: SMF Gallery
Post by: Badelehrling on September 19, 2006, 05:17:11 PM
Well, I hope its all correct ;D

If not, I hope you (German people ;)) will give me feedback, so that I can change it!
Title: Re: SMF Gallery
Post by: Ravyn on September 19, 2006, 11:34:50 PM
Seems like a good mod for someone looking for a small gallery or a simple user content based gallery.  I'm setting up a large (read: 1000's of pictures) gallery, as well as scattered Movie files. 

Is there any planned support for mass file uploads, or the ability to upload photos via FTP using directory structure to structure the gallery.  As well as planned support for Movie file types?

Going to have to use Coppermine due to the lack of these features, though it seems like a good mod.
Title: Re: SMF Gallery
Post by: steve in houston on September 20, 2006, 12:21:16 AM
Seems like a good mod for someone looking for a small gallery or a simple user content based gallery.  I'm setting up a large (read: 1000's of pictures) gallery, as well as scattered Movie files. 

Is there any planned support for mass file uploads, or the ability to upload photos via FTP using directory structure to structure the gallery.  As well as planned support for Movie file types?

Going to have to use Coppermine due to the lack of these features, though it seems like a good mod.

vbGamer has another version coming out soon with more features.
maybe he covered some of your request already.
Title: Re: SMF Gallery
Post by: Ravyn on September 20, 2006, 12:35:05 AM
I believe he said he'd just be working on the Pro version from now on.  Maybe if he gets the features I require implemented, it might be worth investing in, but $50 for 1 year seems a bit steep for a mod to a free forum software.
Title: Re: SMF Gallery
Post by: Merlin42 on September 20, 2006, 01:35:36 AM
Well, I hope its all correct ;D

If not, I hope you (German people ;)) will give me feedback, so that I can change it!

Galerie schreibt sich nur mit einem l, "Gallerie" ist falsch, das Wort gibt es nicht ;) Aber mittels Suchen&Ersetzen ist das Problem schnell gelöst.

Danke dir trotzdem!

<scnr>
Title: Re: SMF Gallery
Post by: Alpay on September 20, 2006, 06:14:43 AM
hi.
 new version pls
 I want to add sub category and on that category which I designate, I want to provide that nobody put some pictures
Title: Re: SMF Gallery
Post by: Badelehrling on September 20, 2006, 09:21:06 AM
Galerie schreibt sich nur mit einem l, "Gallerie" ist falsch, das Wort gibt es nicht ;) Aber mittels Suchen&Ersetzen ist das Problem schnell gelöst.

Danke habs korrgiert und oben editiert!
Weiterhin wurden ein paar Redewendungen & Rechtschreibung verbessers. Update wird empfohlen :)

Danke fürs Feedback ;)
Title: Re: SMF Gallery
Post by: Drunken Clam on September 20, 2006, 11:43:35 AM
Hi VB,

This mod really is 'the business', however, I am getting pages of errors whenever I do something other than just view, ie uploading a photo etc.

I'm running it on a brand new test forum running RC3. Gallery installed perfectly, with no errors.

It seems to work just fine, but behind the scenes I'm getting these :-
Code: [Select]
http://www.****.com/****/index.php?action=gallery&amp;sa=add2

8: Undefined index: view_num_guests
File: /home/***/public_html/zooters/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 127

http://www.****.com/zooters/index.php?action=gallery&amp;sa=add2

8: Undefined index: gallery_cat_name
File: /home/***/public_html/zooters/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 64

http://www.****.com/****/index.php?action=gallery&amp;sa=add2

8: Undefined index: allowcomments
File: /home/***/public_html/***/Sources/Gallery.php
Line: 536

http://www.****.com/****/index.php?action=gallery;sa=add;cat=2

8: Undefined index: gallery_commentchoice
File: /home/***/public_html/***/Themes/default/languages/Gallery.english.php (add_picture sub template - eval?)
Line: 495


Your help would be appreciated,

Many thanks again for a great mod.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 20, 2006, 12:30:28 PM
Hi VB,

This mod really is 'the business', however, I am getting pages of errors whenever I do something other than just view, ie uploading a photo etc.

I'm running it on a brand new test forum running RC3. Gallery installed perfectly, with no errors.

It seems to work just fine, but behind the scenes I'm getting these :-
Code: [Select]
http://www.****.com/****/index.php?action=gallery&amp;sa=add2

8: Undefined index: view_num_guests
File: /home/***/public_html/zooters/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 127

http://www.****.com/zooters/index.php?action=gallery&amp;sa=add2

8: Undefined index: gallery_cat_name
File: /home/***/public_html/zooters/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 64

http://www.****.com/****/index.php?action=gallery&amp;sa=add2

8: Undefined index: allowcomments
File: /home/***/public_html/***/Sources/Gallery.php
Line: 536

http://www.****.com/****/index.php?action=gallery;sa=add;cat=2

8: Undefined index: gallery_commentchoice
File: /home/***/public_html/***/Themes/default/languages/Gallery.english.php (add_picture sub template - eval?)
Line: 495


Your help would be appreciated,

Many thanks again for a great mod.
I updated it to filter out some of those errors.
The ones that really troubled me were gallery_cat_name and view_num_guests since those are always defined.. who knows.
Title: Re: SMF Gallery
Post by: Drunken Clam on September 20, 2006, 12:37:17 PM

I updated it to filter out some of those errors.
The ones that really troubled me were gallery_cat_name and view_num_guests since those are always defined.. who knows.

Hi, I was running 1.5 - I'm just going to install 1.6.2, see if that cures it.

Thanks
Title: Re: SMF Gallery
Post by: Drunken Clam on September 20, 2006, 01:03:34 PM

I updated it to filter out some of those errors.
The ones that really troubled me were gallery_cat_name and view_num_guests since those are always defined.. who knows.

Hi, I was running 1.5 - I'm just going to install 1.6.2, see if that cures it.

Thanks

1.6.2  Seems to have cleared most errors, the only remaining one seems to be the 'gallery_commentchoice', which I can live with at the moment.  ;D
Title: Re: SMF Gallery
Post by: haktanir2 on September 20, 2006, 05:34:23 PM
I have 1.4... should I say uninstall before installing new version?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 20, 2006, 05:41:32 PM
You always unistall. Unistall will keep your photos and information in the database.
Title: Re: SMF Gallery
Post by: Ravyn on September 20, 2006, 11:40:55 PM
Any reply as to whether or not the functionality i mentioned will be integraded into a new release vbgamer?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 20, 2006, 11:44:10 PM
Bulk uploading via a form with multiple upload files and also via the gallery folder will be added to the pro edition.
I am going to explore movie support. Just thinking what to show as the preview or thumnail image or ask the user to upload a pic of the movie.
Title: Re: SMF Gallery
Post by: Ravyn on September 20, 2006, 11:48:49 PM
Most other galleries that I've used/seen use a static thumbnail for the movie preview.  Just make a generic pretty movie logo, I'd imagine most users would be happy with that rather than putting time into uploading a thumbnail for each movie.  Just my suggestion.  Good luck with the mod.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 21, 2006, 12:05:27 AM
Thanks, I will keep you all posted on updates. There are a lot of things I want to get into the Pro version and have been working on it everyday.
I do testing on http://www.smfseo.net/forums/index.php?action=gallery
Title: Re: SMF Gallery
Post by: steve in houston on September 21, 2006, 12:35:22 AM
 :o

whoa, Pro looks real good.
cant wait.
Title: Re: SMF Gallery
Post by: Vinspire on September 21, 2006, 12:41:31 AM
Thanks, I will keep you all posted on updates. There are a lot of things I want to get into the Pro version and have been working on it everyday.
I do testing on http://www.smfseo.net/forums/index.php?action=gallery

Pro is the paid version right ? :)
Title: Re: SMF Gallery
Post by: n1kki6 on September 21, 2006, 12:51:18 AM
just a quick clarification, does this version allow for a members own personal gallery or just upload to a general user gallery?
Title: Re: SMF Gallery
Post by: steve in houston on September 21, 2006, 12:53:17 AM
just a quick clarification, does this version allow for a members own personal gallery or just upload to a general user gallery?

1 general gallery
Title: Re: SMF Gallery
Post by: n1kki6 on September 21, 2006, 12:54:38 AM
will the pro have personal galleries, I don't mind waiting and paying if it will have this feature.  If I can avoid having to bridge coppermine and remake a template I am all for it.
Title: Re: SMF Gallery
Post by: ltdeta on September 21, 2006, 03:07:16 AM
feature request

in the preview of any image there are information like

Quote
Betrachtet: 4
Dateigröße: 4.07KB
Datum: September 18, 2006, 08:52:14
Kommentare (0)
Von: Badelehrling

but i have no chance to see a small description (tooltip or someting like that) in this preview



Title: Re: SMF Gallery
Post by: haktanir2 on September 21, 2006, 07:01:48 AM
You always unistall. Unistall will keep your photos and information in the database.
what if it's giving Test Failed on uninstall? should I just leave 1.4 and forget about updating? are tne changes worth the update?
Title: Re: SMF Gallery
Post by: Aat on September 21, 2006, 08:06:12 AM
Good day. I want to say that It is not very convinient how you make your mods. No all of the content stored in lang files that makes impossible correct translation of the mod. If mod works with mySQL database tables, It can't recognize the cyrillic alphabet. And the same problem with all of your mods. I think that it will be better if you think about your mods users conviniance.

Sry my english. :)
Title: Re: SMF Gallery
Post by: vbgamer45 on September 21, 2006, 09:49:36 AM
Good day. I want to say that It is not very convinient how you make your mods. No all of the content stored in lang files that makes impossible correct translation of the mod. If mod works with mySQL database tables, It can't recognize the cyrillic alphabet. And the same problem with all of your mods. I think that it will be better if you think about your mods users conviniance.

Sry my english. :)
What's not in the language files? I put all the strings that I could find except the donation text.  I am not sure about the MySQL tables they are same way as the SMF tables, unless you have an idea on how to fix that.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 21, 2006, 09:51:16 AM
You always unistall. Unistall will keep your photos and information in the database.
what if it's giving Test Failed on uninstall? should I just leave 1.4 and forget about updating? are tne changes worth the update?
Depends on where the unistall doesn't work. I still suggest getting the latest files. I would download the Gallery.template.php and copy to your theme folder, and Gallery.php and copy it to your sources folder and last Gallery.English.php files and copy them to the language file s and then you will be updated.
Title: Re: SMF Gallery
Post by: ivo2296 on September 21, 2006, 10:45:32 PM
Is that same gallery or different? :

http://www.smfhacks.com/smf-gallery.php

Title: Re: SMF Gallery
Post by: vbgamer45 on September 21, 2006, 10:55:30 PM
Is that same gallery or different? :

http://www.smfhacks.com/smf-gallery.php
Same Gallery just two places to download it from. Either from the SMF site or at my site at SMFHacks.com
Title: Re: SMF Gallery
Post by: qd-race on September 22, 2006, 12:22:29 AM
Hi. I'm still new here. Just installed your package. Good mod.

I want to know (currently take Babylon Theme as default theme) which file and line number do I need to add the menu button and link to this gallery. Most of my forum members are using this theme. So, they can't see the gallery link.

If got button image, would be added value.

Thanks.
Title: Re: SMF Gallery
Post by: MiR on September 22, 2006, 08:37:47 AM
I'm using SMF 1.1 RC3.
I installed SMF Gallery using the package manager.

Well... after instalation I do not see any galery.

Cann you help me to solve this problem?

Thank you!
Title: Re: SMF Gallery
Post by: vbgamer45 on September 22, 2006, 08:41:48 AM
For Custom themes
As with all mods only installs on the default theme.
You will need to add a link to it in the template.
You can access it via http://www.sitename.com/index.php?action=gallery

Refer to on how to add a custom link/ menu link
http://www.smfhacks.com/smfgallery/help/#customtheme
And
http://docs.simplemachines.org/index.php?topic=402


If got button image, would be added value.

Thanks.
There is a button for the theme inside the zip package for the mod.
Title: Re: SMF Gallery
Post by: MiR on September 22, 2006, 09:06:07 AM
You can access it via http://www.sitename.com/index.php?action=gallery

THANK YOU!!!!!!

It works!!!!
Title: Re: SMF Gallery
Post by: qd-race on September 22, 2006, 10:55:50 AM
Thanks. I already managed to mod for the menu button and menu after some exploration in index.template.php.
Title: Re: SMF Gallery
Post by: !Hachi! on September 22, 2006, 12:29:42 PM
how i can transfer post to gallery in board named as image gallery we hae some  645 topics with 8000+ posts can i convert it to image gallery with same users name etc.?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 22, 2006, 12:36:46 PM
how i can transfer post to gallery in board named as image gallery we hae some  645 topics with 8000+ posts can i convert it to image gallery with same users name etc.?
Currently there is no way to do that. That would be pretty tricky todo, it would probably take the first meessage in the topic check if it has image attachment, then generate thumbnail, and move all the other posts to the comments section.
Not sure if I would do something like that.
Title: Re: SMF Gallery
Post by: !Hachi! on September 22, 2006, 11:46:42 PM
yep all threads first post have img attacment.it will be fine to transfer 1st post.
Title: Re: SMF Gallery
Post by: qd-race on September 23, 2006, 08:32:48 AM
Dear vbgamer45

I incidently replace the index.template.php file in default theme. I mod back and I need to check what code is missing in this file.

Code: [Select]
// The [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[803] , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Please advise the above code is correct or not and please inform the rest of the code should be in this file.

Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 23, 2006, 09:25:55 AM
Change in the above code
Code: [Select]
<a href="', $scripturl, '?action=gallery">' , $txt[803] , '</a>
To
Code: [Select]
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a>
Title: Re: SMF Gallery
Post by: qd-race on September 23, 2006, 09:35:43 AM
No other code in index.template.php in default theme, I guess. :-\
Title: Re: SMF Gallery
Post by: vbgamer45 on September 23, 2006, 09:46:53 AM
Yeah that is correct code no need to start to topics on it though in two threads.
Title: Re: SMF Gallery
Post by: qd-race on September 23, 2006, 09:55:34 AM
Thanks.
Title: Re: SMF Gallery
Post by: kangkenyot on September 24, 2006, 05:04:07 AM
installed and workwell under diblermc theme (after modify index.template.php)  8)
Title: Re: SMF Gallery
Post by: Webrunner on September 24, 2006, 05:59:25 AM
Is there a way to import an existing coppermine gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 10:37:58 AM
Is there a way to import an existing coppermine gallery?
That is something I have planned to work on but that will be later on. I plan make importers for some of the major gallery systems.
Title: Re: SMF Gallery
Post by: Webrunner on September 24, 2006, 11:42:25 AM
Cool, i will keep an eye on this thread :)
Title: Re: SMF Gallery
Post by: ivo2296 on September 24, 2006, 12:07:05 PM
On RC3 i see in forum error log many like this:

8: Undefined variable: 1
File: /home/djs/public_html/Themes/default/languages/Gallery.english.php (myimages sub template - eval?)
Line: 1662


Any idea?
Title: Re: SMF Gallery
Post by: mark25 on September 24, 2006, 12:13:30 PM
mine:

8: Undefined index: gallery_commentchoice
File: /home/mark25/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 495
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 12:19:48 PM
What gallery version you running? and SMF version
Title: Re: SMF Gallery
Post by: ivo2296 on September 24, 2006, 12:28:32 PM
What gallery version you running? and SMF version

smf 1.1 RC3 + latest lite gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 12:33:56 PM


smf 1.1 RC3 + latest lite gallery
I want you to reinstall the gallery from the SMF mod site. I just checked that line and I am sure I fixed that line.
Title: Re: SMF Gallery
Post by: mark25 on September 24, 2006, 12:51:47 PM
What gallery version you running? and SMF version

smf 1.1 RC3 then the latest gallery too...
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 01:03:04 PM
mine:

8: Undefined index: gallery_commentchoice
File: /home/mark25/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 495
I see that error I will have a fix in the next release.
You can fix it now by just checking gallery comment choice in the settings page save the setting then uncheck again and save it again.
Title: Re: SMF Gallery
Post by: mark25 on September 24, 2006, 01:08:38 PM
how about his one?

http://xxx.xxx/forum/index.php?action=gallery;sa=adminset;sesc

8: Undefined index: gallery_commentchoice
File: /home/mark25/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 1308
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 01:13:06 PM
That's the same thing just  do what I said and the errors will disappear, they occur because that setting is not in the database by default.
Title: Re: SMF Gallery
Post by: mark25 on September 24, 2006, 01:27:06 PM
That's the same thing just  do what I said and the errors will disappear, they occur because that setting is not in the database by default.

i tried what u said but errors didn't disappear... hmm... i try to check it... no error shown up... u know what's the problem?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 01:32:05 PM
Just wait for the update then.
Title: Re: SMF Gallery
Post by: mark25 on September 24, 2006, 01:33:37 PM
Just wait for the update then.

ok.. thanks.. :) ...
Title: Re: SMF Gallery
Post by: ivo2296 on September 24, 2006, 04:57:56 PM


smf 1.1 RC3 + latest lite gallery
I want you to reinstall the gallery from the SMF mod site. I just checked that line and I am sure I fixed that line.

That Will be complicated, i use classic theme and if have to implement all code again i can live with this error.
Will be easy if know what to fix by myself without reinstalling - if it's possible.

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on September 24, 2006, 08:12:35 PM
Latest release for Lite is 1.6.4 just released on 9/9/2006
Fixes and improvements.
Image for category is now sepeate on column the gallery title is in the middle.
Fixed keyword searching.
Fixed some log errors.

If you do not wish to unistall your current version.
You can copy Gallery.php from the mod to the sources folder
And copy Gallery.template.php from the mod to the folder of your theme you are using.
Title: Re: SMF Gallery
Post by: ivo2296 on September 24, 2006, 10:17:56 PM
Latest release for Lite is 1.6.4 just released on 9/9/2006
Fixes and improvements.
Image for category is now sepeate on column the gallery title is in the middle.
Fixed keyword searching.
Fixed some log errors.

If you do not wish to unistall your current version.
You can copy Gallery.php from the mod to the sources folder
And copy Gallery.template.php from the mod to the folder of your theme you are using.


I downloaded and installed the gallery for first time 4-5 days ago, but anyway i'll give a try.


Thanks!
Title: Re: SMF Gallery
Post by: MiR on September 25, 2006, 03:54:51 AM
Everything works fine when I select english language. In other language I do not see a link to gallery.

What must I change to see gallery link in other languages?

Thank you for your answer!
Title: Re: SMF Gallery
Post by: bayfresh on September 25, 2006, 07:20:51 AM
Everything works fine when I select english language. In other language I do not see a link to gallery.

What must I change to see gallery link in other languages?

Thank you for your answer!
You see in the language folder a language file named: Gallery.English.php open it and translate it to your language and save it as : Gallary.YOUR_LANGUAGE.php
Title: Re: SMF Gallery
Post by: MiR on September 25, 2006, 07:28:20 AM
This wasn't problem. I edited Modifications.MY_LANGUAGE.php and everything works great!  8)
Title: Re: SMF Gallery
Post by: Badelehrling on September 25, 2006, 11:06:04 AM
What must I change to see gallery link in other languages?

Goto:
Themes\YOURTHEME\index.template.php

Code: (searchfor) [Select]
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

Code: (addafter) [Select]
// Gallery
if ($context['allow_smfgallery_view'])
echo '
<a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="Gallery" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];


Put the Gallery-Button for ya Theme into:
Themes\YOURTHEME\images\LANGUAGE\gallery.gif
Title: Re: SMF Gallery
Post by: jeremyyeo on September 27, 2006, 12:22:34 AM
Somehow, I cant move the pictures from different one category to another. Anyone know how to?

edit: there is an error uninstalling the older version 1.6.3 (because I want to install the newest)

Quote
Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed

is it safe to uninstall with that error?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 09:19:17 AM
Yeah it is safe to unistall with the Modifications.english.php that's error that happens with most mods since they all try to add to the end of that file.

Well with the Lite Edition you can move them from another category by editing the picture and setting the category to another.
Title: Re: SMF Gallery
Post by: jeremyyeo on September 27, 2006, 09:44:05 AM
Thanks vbgamer. Everythings set up right now. Cant wait for the pro version. Also what was the update from .3 to .4 ? thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 09:46:22 AM
Thanks vbgamer. Everythings set up right now. Cant wait for the pro version. Also what was the update from .3 to .4 ? thanks.
It was minor just fixed some things.
Category text is center in middle like the image text.
Fixed some error log errors.
Fixed Keyword searching.

Pro version is coming soon. I just need to finish off a couple more things then I can get it ready.
Title: Re: SMF Gallery
Post by: mrjuntao on September 27, 2006, 10:24:27 AM
Hey, this mod is just what i need, however i am having trouble egtting smf to get access via FTP, what files do I have to chmod?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 10:28:26 AM


The main board directory needs to be writable Sources folder needs to be writable and the theme folder.

File editing needs index.php
sources/subs.php
sources/ManagePermissions.php
themes/yourtheme/langauges/Modifications.english.php
themes/yourtheme/langauges/Who.english.php
themes/yourtheme/index.template.php
Title: Re: SMF Gallery
Post by: mrjuntao on September 27, 2006, 10:55:14 AM
Hmm i have done that but its still wanting my ftp info and i keep on getting a login incorrect but the details are definately correct. :(
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 10:56:21 AM
You can try to install it manually
http://docs.simplemachines.org/index.php?topic=402
Title: Re: SMF Gallery
Post by: jeremyyeo on September 27, 2006, 11:23:20 AM
hey vb, on the pro version account, will it incorporate post and the gallery together?

eg. When Im writing/posting something and I want to attach a picture, it will ask me which category I want to upload the pic too as well as letting me add discriptions and such. so the image will be in the post, as well as in the gallery.

also, will there be folders in categories? so that all pics dont have to be included in one main category...thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 11:30:54 AM
Well sort off. I was thinking of making an option for a category to have a board to post the message to. So if someone posts in the gallery and the category has an board id it will also create a topic in that board. Debating if I want it to show the thumbnail in the post or the full image.


Subcats/folders/albums I have planned. I am going to see if I can get it into this release or the next release.

Two things I am trying to finish right now are membergroup upload limits, and category viewing permissions.
Title: Re: SMF Gallery
Post by: mrjuntao on September 27, 2006, 11:37:31 AM
Sorry to bother you again (i managed to get the ftp working through anotehr account), but was unsure about this, the first time I installed it did not manage to extract the fiels properly and so when i went back uploaded an unzipped version I see this error:

    Type     Action     Description
1.    Execute Modification    -    Modification parse error

is it still safe to install?

If not what should i do?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 11:38:50 AM
Does it say for what file?? itis trying to modify
Title: Re: SMF Gallery
Post by: mrjuntao on September 27, 2006, 11:44:38 AM
this is the all the info i get:

Install Actions
Installations actions for "SMF Gallery Lite":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    -    Modification parse error
2.    Extract File    ./Sources/Gallery.php    
3.    Extract File    ./Themes/default/Gallery.template.php    
4.    Extract Tree    ./gallery    
5.    Extract File    ./Themes/default/languages/Gallery.english.php    
6.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
7.    Execute Code    galleryinstall.php

hope that clears it up  ::)
Title: Re: SMF Gallery
Post by: vbgamer45 on September 27, 2006, 11:47:13 AM
Just extract the files manually if you already installed it with cause an erorr since the files where already modified.
Title: Re: SMF Gallery
Post by: jeremyyeo on September 27, 2006, 12:11:39 PM
Well sort off. I was thinking of making an option for a category to have a board to post the message to. So if someone posts in the gallery and the category has an board id it will also create a topic in that board. Debating if I want it to show the thumbnail in the post or the full image.

or vice-versa (from forum posts to the gallery) and allow both options (thumbnailed and full).


Quote
Subcats/folders/albums I have planned. I am going to see if I can get it into this release or the next release.

Two things I am trying to finish right now are membergroup upload limits, and category viewing permissions.

those are really much needed features, also see if you guys can tie it in with the shop mod. posted something there. ;)
Title: Re: SMF Gallery
Post by: Bront on October 01, 2006, 11:17:37 AM
I have had an odd problem.

I have my forums tied in to Joomla through a bridge, and so the forum, link is different.  (http://www.bront.org/index.php?option=com_smf&Itemid=27 in my case from www.bront.org)

The forums used to be viewed from http://forums.bront.org, which uses a different cookie than the bridge.

The problem: When I would do some fuctions in the gallery, it would kick me to the forums link instead of the www link, and I wouldn't have access anymore.

I did find a solution. You have to change the gallery URL from <Forum URL>/gallery to <www url>&action=gallery.

In my case, it was http://forums.bront.org/gallery, and I changed it to
http://www.bront.org/index.php?option=com_smf&Itemid=27&action=gallery

A fairly simple fix, but one that probably should be documented.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 01, 2006, 11:47:43 AM
Thanks for posting. I will keep that in mind for people who used bridges.
Title: Re: SMF Gallery
Post by: bayfresh on October 01, 2006, 12:23:45 PM
I would like to have a spotlight option for the pro version  8)
Title: Re: SMF Gallery
Post by: vbgamer45 on October 01, 2006, 12:31:07 PM
I would like to have a spotlight option for the pro version  8)
Suggest for first update heh. I am almost ready to release the first version early next week.
Right now, I am just working on a couple little mods that you can download for the gallery then update the gallery website and should be good to go.
Title: Re: SMF Gallery
Post by: bayfresh on October 01, 2006, 12:32:51 PM
I would like to have a spotlight option for the pro version  8)
Suggest for first update heh. I am almost ready to release the first version early next week.
Right now, I am just working on a couple little mods that you can download for the gallery then update the gallery website and should be good to go.
wowwwwww cool...  ;D
Title: Re: SMF Gallery
Post by: Garry1953 on October 01, 2006, 08:00:29 PM
Thanks for a great mod.
Installed and works perfectly.
Title: Re: SMF Gallery
Post by: maydayke on October 07, 2006, 09:21:47 PM
Great mod, thanks alot!  :)

Got one problem though. When i turn on "show who's viewing the gallery", it's giving me some errors:

Code: [Select]
http://www.fcbzone.com/index.php?action=gallery;sa=adminset2
8: Undefined index: gallery_commentchoice
File: /******/******/public_html/Sources/Gallery.php
Line: 1163

Code: [Select]
http://www.fcbzone.com/index.php?action=gallery;sa=adminset2
8: Undefined index: gallery_who_viewing
File: /******/******/public_html/Sources/Gallery.php
Line: 1166

Code: [Select]
http://www.fcbzone.com/index.php?action=gallery;cat=1
8: Undefined index: can_moderate_forum
File: /******/******/public_html/Themes/default/languages/Gallery.english.php (eval?)
Line: 124

Code: [Select]
http://www.fcbzone.com/index.php?action=gallery;sa=view;id=2
8: Undefined index: can_moderate_forum
File: /******/******/public_html/Themes/default/languages/Gallery.english.php (eval?)
Line: 732

Im using SMF 1.1rc3, TP0.95
Should i worry about them?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on October 07, 2006, 09:24:57 PM
I wouldn't worry about them.
Title: Re: SMF Gallery
Post by: maydayke on October 07, 2006, 09:37:00 PM
Okidoki!

Are you still planning to release updates for the lite version or do i need to upgrade to pro version later?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 07, 2006, 09:39:38 PM
I mainly will be doing bug fixes for the lite edition if they are found.
Title: Re: SMF Gallery
Post by: maydayke on October 07, 2006, 09:41:39 PM
Ok thank you!
Title: Re: SMF Gallery
Post by: mrbones on October 09, 2006, 11:23:22 AM
Hello,

Does this mod allow to assign it to a certain member group in either the lite or pro version? I have some paying subscribers to my board and I'd like to give this feature only to them.

Also, is there a link to where I can see this mod in action?

Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 09, 2006, 11:27:22 AM
Yeah it is all permissions based
Quote
Permissions
View SMF Gallery
Add Picture
Edit own Picture
Delete own Picture
Rate Picture (Pro Edition)
Leave Comments
Edit own Comment (Pro Edition)
Report Pictures/Comments
Auto Approve Comments (Pro Edition)
Auto Approve Pictures
Manage Gallery
Somewhat of a demo nothing official yet
http://www.smfhacks.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: mrbones on October 09, 2006, 11:55:09 AM
Is it easy to upgrade from lite to pro? I'd like to install the lite version just to see how it fits my particular forum.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 09, 2006, 12:20:47 PM
Yes, there is an upgrade from lite to pro. Very easy just unistall lite then install pro. All your pictures and information are saved from the Lite Edition.
Title: Re: SMF Gallery
Post by: mrbones on October 09, 2006, 01:58:52 PM
One last question, I dont see an upload quota on the lite version. Can users upload as many pics as they want? Does that feature only come with the pro version?

btw, Ive installed it without a hitch.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 09, 2006, 02:04:03 PM
Upload quota is only in the pro version. Lite version if they are allowed to upload yes they can upload as much as they want.
Title: Re: SMF Gallery
Post by: mrbones on October 09, 2006, 02:19:40 PM
I just bought the pro version. Thanks.
Title: Re: SMF Gallery
Post by: bayfresh on October 09, 2006, 03:23:01 PM
I shall wait untill the personal gallery option releases :(

When can we accept a option, that every user has his own gallery in their profile area ?  :-[
Title: Re: SMF Gallery
Post by: vbgamer45 on October 09, 2006, 03:30:54 PM
One to two weeks hopefully.
Title: Re: SMF Gallery
Post by: mrbones on October 09, 2006, 03:32:18 PM
I look forward to that, too!
Title: Re: SMF Gallery
Post by: bayfresh on October 09, 2006, 04:12:31 PM
One to two weeks hopefully.
I will pray for you  :P
Title: Re: SMF Gallery
Post by: Giddeaon on October 10, 2006, 08:03:12 PM
I noticed in my error log that this constantly comes up.

Undefined index: smfgallery_admin
File: /All my site info removed for this forum/Sources/Subs.php
Line: 2737

That line is part of this code:

// Admin area 'Forum'.
   if (allowedTo(array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum')))
   {
      $context['admin_areas']['layout'] = array(
         'title' => $txt['layout_controls'],
         'areas' => array()
      );

Specifically, Line 2737 is $context['admin_areas']['layout'] = array(

I'm not a php guru by any means.  Anyone have any idea how to fix that error.  I had this exact same error hundreds of times in the error log.  Any help would be much appreciated.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 10, 2006, 08:10:36 PM
Make sure that the following is in your modifications.english.php file and if you are using a different language make sure it is in modifications.yourlanguage.php
Code: [Select]
$txt['smfgallery_admin'] = 'Gallery Configuration';
Title: Re: SMF Gallery
Post by: Giddeaon on October 10, 2006, 08:49:47 PM
vbgamer - that fixed it!  it was generating that error with almost everything I did while logged in as the admin - now it's gone.

Thanks for such a quick response!
Title: Re: SMF Gallery
Post by: man1ak on October 12, 2006, 09:36:11 AM
i got a problem.
i installed the gallery, all is ok. but the gallery does not show tnumbnails like http://mods.simplemachines.org/index.php?action=download;mod=473;id=19033;image here.
i know the problem is in CHMOD, but when i try 2 set CHMOD @gallery folder in 777, i experienced a error: Request denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation

changings CHMODS on other folders is ok, i cant change chmod only in gallery folder.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 12, 2006, 10:03:51 AM
Hmm try to delete the folder and remake it again and assign the correct permissions
Title: Re: SMF Gallery
Post by: man1ak on October 12, 2006, 01:14:57 PM
cant delete it, assume Request denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation

COMMAND:>   DELE 1408_12_10_06_5_00_36.jpg
      550 Could not delete 1408_12_10_06_5_00_36.jpg: Permission denied
ERROR:>      Requested action not taken (e.g., file or directory not found, no access).

Title: Re: SMF Gallery
Post by: vbgamer45 on October 12, 2006, 01:28:12 PM
You can change the directory path to another folder and then change the url as well.
This seems to be a problem with the smf package manager extracting a folder.
Title: Re: SMF Gallery
Post by: man1ak on October 12, 2006, 01:47:37 PM
You can change the directory path to another folder and then change the url as well.
This seems to be a problem with the smf package manager extracting a folder.
hmm?
where i had manage to change the photos folder?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 12, 2006, 01:50:54 PM
You can change the settings in the gallery configuration area.
Title: Re: SMF Gallery
Post by: man1ak on October 12, 2006, 02:13:19 PM
ty :D
Title: SMF Gallery install error :(
Post by: boblebad on October 13, 2006, 06:47:41 AM
Hi

I've just installed a clean SMF, latest ver., quick painless

I'm now trying to install the Gallery MOD, but i get this message..

Fatal error: Call to undefined function: db_query() in /***********************/forum/galleryinstall.php on line 22

The line 22 is this code, and i'm not a PHP nerd, so i don't understand what's wrong here..

db_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}gallery_pic`(
`ID_PICTURE` int(11) NOT NULL auto_increment,
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
`date` int(10) unsigned NOT NULL default '0',
`title` VARCHAR(100) NOT NULL,
`description` text,
 `views` int(10) NOT NULL default '0',
 `filesize` int(10) NOT NULL default '0',
 `height` int(10) NOT NULL default '0',
 `width` int(10) NOT NULL default '0',
 `filename` tinytext,
 `thumbfilename` tinytext,
 `commenttotal` int(10) NOT NULL default '0',
 `ID_CAT` int(10) NOT NULL default '0',
 `approved` tinyint(4) NOT NULL default '0',
 `allowcomments` tinyint(4) NOT NULL default '0',
 `keywords` VARCHAR(100) NOT NULL,
PRIMARY KEY  (`ID_PICTURE`))", __FILE__, __LINE__);

Best Regards
Carsten, Denmark
Title: Re: SMF Gallery
Post by: vbgamer45 on October 13, 2006, 08:52:37 AM
That sounds like something wrong with the package manager since db_query should be included.
Title: Re: SMF Gallery
Post by: Pedja on October 13, 2006, 02:10:26 PM

- SMF Gallery does not support UTF-8. This is a must.

- Keywords field is too short

- admin option shoult stay at top of the gallery That way admin would easily spot that there are new photos needed to be approved, or reported photos.

- option to send notification to admin as PM on new photos that should waiting for approval or reported photos would be great. Without it admin has to manually check gallery frequently, which is time consuming.


Title: Re: SMF Gallery
Post by: vbgamer45 on October 13, 2006, 03:18:37 PM
If you can tell me how to support UTF then I can fix it.
Title: Re: SMF Gallery
Post by: Pedja on October 15, 2006, 04:19:04 AM
After these changes I was able to use utf8 on my album:

alter table smf_gallery_cat modify column title varchar(100) character set utf8
alter table smf_gallery_cat modify column title description(255) character set utf8
alter table smf_gallery_comment modify column comment text character set utf8
alter table smf_gallery_pic modify column title varchar(100) character set utf8
alter table smf_gallery_pic modify column description text character set utf8
alter table smf_gallery_report modify column comment text character set utf8
Title: Re: SMF Gallery
Post by: NEMINI on October 15, 2006, 05:09:04 PM
is the smfhacks site down? all I get is 'no input file specified' everytime I try to go there for more info on pro version.
Title: Re: SMF Gallery
Post by: ArkServer on October 15, 2006, 05:56:21 PM
I installed it and uploaded some of my stuff. It works like a charm!
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php?action=gallery;cat=1
Title: Re: SMF Gallery
Post by: jrawly on October 15, 2006, 06:07:37 PM
When I try to upload a picture, I get a server error.

The picture has uploaded (I can see it in the gallery folder) it just doesnt seem to update the database and so the gallery.

I downloaded this MOD from mods.simplemachines yesterday so I assume I am using the correct version. Unfortunately, my error log does not seem to be working, so I cannot see what the error is.

If anyone else has experienced this issue and knows how to fix it, I will be grateful,

Thanks

Joe
Title: Re: SMF Gallery
Post by: vbgamer45 on October 15, 2006, 06:25:54 PM
is the smfhacks site down? all I get is 'no input file specified' everytime I try to go there for more info on pro version.
Site back up.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 17, 2006, 10:16:16 PM
Released Version 1.6.5

Fixes some bugs
!Fixed page title on main gallery index
!Fixed embarrassed smiley showing on add and edit comment form in SMF 1.1 RC3
!Fixed date and filesize on edit picture and delete picture for the image view
And some other hardcoded text strings.
Title: Re: SMF Gallery
Post by: denislici on October 18, 2006, 12:19:51 AM

i changed my host, the old pictures are ok, when i add a new one it doesnt display it, the paths are ok, the picture i add is not in gallery directory too... i use smf gallery 1.6.4
Title: Re: SMF Gallery
Post by: mforum on October 18, 2006, 05:01:51 AM
Released Version 1.6.5

Fixes some bugs
!Fixed page title on main gallery index
!Fixed embarrassed smiley showing on add and edit comment form in SMF 1.1 RC3
!Fixed date and filesize on edit picture and delete picture for the image view
And some other hardcoded text strings.


we have to uninstall - install new version or we can overwrite some files ?
Title: Re: SMF Gallery
Post by: qd-race on October 18, 2006, 08:28:52 AM
You need to uninstall old version and install this new 1.6.5 version. I just did it.
Title: Re: SMF Gallery
Post by: udeze on October 18, 2006, 12:54:16 PM
I tried to uninstall my old version, 1.6.4 and I am getting this error at #1.

1.    Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
2.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
3.    Execute Modification    ./index.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful

I am using SMF 1.1 RC3
Title: Re: SMF Gallery
Post by: vbgamer45 on October 18, 2006, 12:56:05 PM
Don't worry about modifications.english.php try it anyway.
Title: Re: SMF Gallery
Post by: udeze on October 18, 2006, 01:49:13 PM
Great, I have just installed, just a little problem when I want to fully view a thumbnail, If I use this Url
http://forumnigeria.com/index.php?action=gallery;sa=view;id=1    I get an internal error, if I change the ;id to &id I will not have any problem, I want to beleive it is a server configuration stuff since it does same fo my SMFShop, but If there is suggested waay i can change ; to &, I'll be happy to resolve it permerently, the MOD that does that ";ID to &ID fix for some servers MOD." appears to be old, dont know if it will work with SMF1.1 RC3 

Also If I may ask, will it be compatible to have gallery MOD and "Profile Comments" at the same time?
./Sources/ManagePermissions.php was unsuccessful when I wanted to uninstall SMF gallery but after uninstalling profile comments, it became sucessful

Thanks 
Title: Re: SMF Gallery
Post by: Pedja on October 19, 2006, 04:17:08 AM
Is utf8 support fixed too?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 19, 2006, 08:34:04 AM
Is utf8 support fixed too?

Nope. You need to run the alter statements yourself.
Title: Re: SMF Gallery
Post by: udeze on October 19, 2006, 05:18:22 PM
so far, Everything works fine with my SMF Shop, I just realised that if I want to view somebody's inventory, example "Sky" it gives me the inventory, if i change it to "sky" ie change from upper case "S" to lower case "s" it gives me user not found error

don't really know whether this is peculiar to me or is it a general thing?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 19, 2006, 05:27:44 PM
so far, Everything works fine with my SMF Shop, I just realised that if I want to view somebody's inventory, example "Sky" it gives me the inventory, if i change it to "sky" ie change from upper case "S" to lower case "s" it gives me user not found error

don't really know whether this is peculiar to me or is it a general thing?
Wrong thread?
Title: Re: SMF Gallery
Post by: udeze on October 20, 2006, 02:44:16 AM
@VBgamer45,  oh, please forgive me  ;), I just realised it. my gallery works fine
Title: Re: SMF Gallery
Post by: jasonlove on October 20, 2006, 11:43:43 PM
Can this gallery allow Sub Categories?

It would be soo cool

Title: Re: SMF Gallery
Post by: vbgamer45 on October 20, 2006, 11:47:32 PM
The lite version does not feature sub categories SMF Gallery Pro 1.1 has subcategories built in.
Title: Re: SMF Gallery
Post by: ArkServer on October 21, 2006, 07:52:21 AM
Is it possible to add a link to the gallery of each member in their profile / topic display?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 21, 2006, 12:49:15 PM
Is it possible to add a link to the gallery of each member in their profile / topic display?
I have a mod for that in the pro version.
Title: Re: SMF Gallery
Post by: udeze on October 21, 2006, 04:36:01 PM
I am having problem uplading a Jpeg image file of 248 KB (253,952 bytes) and 1280 by 960 pixel, I set everything to default which is 5,000,000 bytes and 2500x2500 pixel,  I got an internal server error while tryng to upload my file but I was able to upload a smaller 125x125, 16 kb Gif file, just wondering what might be the cause, my permisions are set to 777
Title: Re: SMF Gallery
Post by: karlbenson on October 22, 2006, 11:43:46 AM
^ increase your memory available to php either via your php.ini file or htaccess.

I bet your on shared server.

basically php hasnt got enough memory to continue performing the function/upload so it results in an internal error.
Title: Re: SMF Gallery
Post by: Tapsa2 on October 22, 2006, 11:58:22 AM
Hi
As a guy who don,t know anything about php, i,ll have to ask for assistance.
I am testing the SMF 1.0.8 version with the Helios Multicolor theme and would like to get the button for "Gallery" shown also with my helios theme.
Could somebody please help me out, what i should write, and where, in the index.template.php to get the gallerybutton shown.

(sorry for my bad english)
Title: Re: SMF Gallery
Post by: tekgik on October 22, 2006, 12:53:58 PM
Hi there, I installed this mod on 1.1 rc3 with tiny portal 0.96. Now im having a problem with the it, it doesnt show the gallery tab on my installed tiny portal theme (aero). How can i add it there?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on October 22, 2006, 12:58:29 PM
Hi there, I installed this mod on 1.1 rc3 with tiny portal 0.96. Now im having a problem with the it, it doesnt show the gallery tab on my installed tiny portal theme (aero). How can i add it there?

Thanks
You have to edit index.template.php of the aero theme look in the menu function in that file and add another tab. Mods only install on the default themes.
Title: Re: SMF Gallery
Post by: mrbones on October 23, 2006, 05:31:10 PM
Is it possible to add a link to the gallery of each member in their profile / topic display?
I have a mod for that in the pro version.

I already have the pro version, where can I download the mod? Can you provide a link? Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 23, 2006, 05:40:43 PM
Its in the pro forums under the mod section. You need to upgrade your smf account in order to access the forums if you haven't already.
Title: Re: SMF Gallery
Post by: warwick on October 24, 2006, 08:26:40 AM
Trying to install package in SMF1.1RC3

got this error:
Incorrect table name ''
File: W:\www\22OctEventful_holidays\smf\Packages\temp\galleryinstall.php
Line: 39

This is on my local JSAS server integrated with Joomla and Joomla-SMF bridge. The Line 39 is:
"PRIMARY KEY  (`ID_PICTURE`))", __FILE__, __LINE__);"

Thanks for any help.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 24, 2006, 08:32:19 AM
Trying to install package in SMF1.1RC3

got this error:
Incorrect table name ''
File: W:\www\22OctEventful_holidays\smf\Packages\temp\galleryinstall.php
Line: 39

This is on my local JSAS server integrated with Joomla and Joomla-SMF bridge. The Line 39 is:
"PRIMARY KEY  (`ID_PICTURE`))", __FILE__, __LINE__);"

Thanks for any help.
What MySQL version?
Title: Re: SMF Gallery
Post by: mrbones on October 24, 2006, 02:05:46 PM
Its in the pro forums under the mod section. You need to upgrade your smf account in order to access the forums if you haven't already.

Where? In your smfhacks.com forum? Upgrade it myself?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 24, 2006, 02:07:36 PM
In the SMFHacks.com forum you need to upgrade your SMFHacks.com account in order to access the customer forums.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfhacks.com%2FThemes%2Fbabylon%2Fimages%2Fenglish%2Flicense.gif&hash=331738065caef0d758033104aa9d3560)
Title: Re: SMF Gallery
Post by: mrbones on October 24, 2006, 02:10:38 PM
Got it thanks.
Title: Re: SMF Gallery
Post by: mrbones on October 24, 2006, 02:15:45 PM
I installed it and it adds it to all users and profiles. I have one member group that is allowed to add to the gallery, I want only those users to have 'view gallery' in the profile. Is that possible?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 24, 2006, 02:49:51 PM
Hmm, that would be a little harder would need an extra check to see if that user can have view gallery link.

Title: Re: SMF Gallery
Post by: mrbones on October 24, 2006, 03:19:53 PM
Can you do it? It only seems to make sense since the gallery mod is permissions based.
Title: Re: SMF Gallery
Post by: warwick on October 26, 2006, 05:03:06 PM
Trying to install package in SMF1.1RC3

got this error:
Incorrect table name ''
File: W:\www\22OctEventful_holidays\smf\Packages\temp\galleryinstall.php
Line: 39

This is on my local JSAS server integrated with Joomla and Joomla-SMF bridge. The Line 39 is:
"PRIMARY KEY  (`ID_PICTURE`))", __FILE__, __LINE__);"

Thanks for any help.
What MySQL version?

On my Local PC, which I use JSAS and has this error, I have: MySQL client version: MySQL - 4.1.14-nt
on my hosting server that I will move the smf forum to: MySQL client version: 4.1.10

Title: Re: SMF Gallery
Post by: keith021773 on October 27, 2006, 03:22:53 PM
I tried installing this on the Dilber MC theme but i couldn't get it to work?   It installed fine, but I couldn't get to the gallery page.   Is there a problem with gallery working on that theme?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 27, 2006, 03:34:20 PM
I tried installing this on the Dilber MC theme but i couldn't get it to work?   It installed fine, but I couldn't get to the gallery page.   Is there a problem with gallery working on that theme?
You need to create a link or button on custom themes in the menu function.

You can access the gallery via http://www.yoursite.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: keith021773 on October 27, 2006, 04:02:00 PM
I tried installing this on the Dilber MC theme but i couldn't get it to work?   It installed fine, but I couldn't get to the gallery page.   Is there a problem with gallery working on that theme?
You need to create a link or button on custom themes in the menu function.

You can access the gallery via http://www.yoursite.com/index.php?action=gallery

Right..  I got that..  Sorry..  Didn't explain myself right..   I went to that link but it just put up a index page..  like your looking at a ftp.   If that makes sence.. 
Title: Re: SMF Gallery
Post by: vbgamer45 on October 27, 2006, 04:26:36 PM
Hmm, it sounds like it didn't install then. If you don't see a gallery configuration in your admin section I would try to reinstall it.
Title: Re: SMF Gallery
Post by: keith021773 on October 27, 2006, 05:19:50 PM
Got it to work..  The link that was in the gallery config screen says url to gallery is http://www.yoursite.com/gallery, But it's actually, http://www.yoursite.com/?action=gallery

So, got it to work..  Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on October 27, 2006, 05:22:06 PM
Do not change the url in the gallery config that is used for the web path to the pictures
Title: Re: SMF Gallery
Post by: keith021773 on October 27, 2006, 05:41:02 PM
I didn't...    All works fine now.
Title: Re: SMF Gallery
Post by: Pratt on October 27, 2006, 06:29:10 PM
Hi there, first of all, great mod!

Im having some permision issues though. My idea is to give Guest, the permision to leave a comment on a picture, as a guest, without needing to register or whatsoever.

I gave the right permisions in the admin panel, but if a guest wants to add a comment, they still are redirected to the "Register/Log in" page.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg104.imageshack.us%2Fimg104%2F2974%2Fclipboard03hv6.th.jpg&hash=489a53bc931552883ec5918c9caed228) (http://img104.imageshack.us/my.php?image=clipboard03hv6.jpg)

Any ideas!

I gave Guests the permision to create new topics/answer to topics, but still no results.

http://www.hablarmierda.net/wiki2/index.php?action=gallery
http://www.hablarmierda.net/wiki2/index.php
Title: Re: SMF Gallery
Post by: vbgamer45 on October 27, 2006, 06:58:13 PM
Guests are not supported to upload or leave comments.
Guests are only supported for viewing the gallery.
Title: Re: SMF Gallery
Post by: littleone on October 28, 2006, 01:15:47 AM
Ok...When you go to the Gallery you can click "MyImages" and it takes you to yours.  U can change the u= ## and get that for any members gallery.....

Here is what I am wondering if I can get some code for...

On the bottom of the members profile page where it says:

Code: [Select]
Send this member a personal message.

Show the last posts of this person.
Show general statistics for this member.

I want to add "View this member's images" so that when anyone clicks on it, it will take you to all the images that member has added so it looks like this:

Code: [Select]
Send this member a personal message.

Show the last posts of this person.
Show general statistics for this member.
View this member's images.

Is this possible? and if so would someone mind sharing the code for this with me.  I'd be overly appreiciative!
Title: Re: SMF Gallery
Post by: mrbones on October 28, 2006, 10:53:10 AM
Can you do it? It only seems to make sense since the gallery mod is permissions based.

??
Title: Re: SMF Gallery
Post by: vbgamer45 on October 28, 2006, 10:58:15 AM
Can you do it? It only seems to make sense since the gallery mod is permissions based.

??
I started looking at it then seemed to be harder than I thought since I would need a way to lookup that user's permissions which I still need to find out.
Title: Re: SMF Gallery
Post by: mrbones on October 28, 2006, 11:01:42 AM
Ok, thanks. Keep me posted.
Title: Re: SMF Gallery
Post by: littleone on October 28, 2006, 01:19:38 PM
VBGamer, not sure if you missed my last post or not, but is what I asked or suggest possible?

is it possible to just get that code and I can manually add it where it needs to go?

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on October 28, 2006, 01:49:43 PM
VBGamer, not sure if you missed my last post or not, but is what I asked or suggest possible?

is it possible to just get that code and I can manually add it where it needs to go?

Thanks!
Yeah that easly done you just need to modify the Profile.template.php of the theme you are using then just link to their my images page using their user id.
Title: Re: SMF Gallery
Post by: littleone on October 28, 2006, 01:56:28 PM
VBGamer, not sure if you missed my last post or not, but is what I asked or suggest possible?

is it possible to just get that code and I can manually add it where it needs to go?

Thanks!
Yeah that easly done you just need to modify the Profile.template.php of the theme you are using then just link to their my images page using their user id.

I looked at that last night (at the code in that very file) and kinda lost and didnt want to mess anything up.  Could you be more specific on how to do this?  What code and where?

Hope its not to be a bother.  Thanks!
Title: Re: SMF Gallery
Post by: Jorin on November 02, 2006, 09:48:03 AM
Well, I hope its all correct ;D

If not, I hope you (German people ;)) will give me feedback, so that I can change it!

Ich habe mir erlaubt, das mal zu überarbeiten und weitere Fehler auszumerzen.

English: I proofed this translation again and correct some mistakes.

Quote
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'SMF Galerie';
$txt['smfgallery_menu'] = 'Galerie';
$txt['smfgallery_version'] = '1.0';
$txt['smfgallery_admin'] = 'Galerie Einstellungen';

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

$txt['permissionname_smfgallery_view'] = 'Zeige die SMF Galerie';
$txt['permissionhelp_smfgallery_view'] = 'Erlaube den Benutzern, die Galerie zu betrachten';
$txt['cannot_smfgallery_view'] = 'Du hast nicht die Berechtigung, die Galerie anzuschauen';

$txt['permissionname_smfgallery_add'] = 'Bild hinzuf&uuml;gen';
$txt['permissionhelp_smfgallery_add'] = 'Erlaubt den Benutzern, ein Bild hinzuzuf&uuml;gen.';
$txt['cannot_smfgallery_add'] = 'Du hast nicht die Berechtigung, ein Bild hinzuzuf&uuml;gen.';

$txt['permissionname_smfgallery_edit'] = 'Eigenes Bild bearbeiten';
$txt['permissionhelp_smfgallery_edit'] = 'Erlaubt dem Benutzer, ein Bild zu &Auml;ndern.';
$txt['cannot_smfgallery_edit'] = 'Du hast nicht die Berechtigung, Bilder zu &Auml;ndern.';

$txt['permissionname_smfgallery_delete'] = 'Eigenes Bild l&ouml;schen';
$txt['permissionhelp_smfgallery_delete'] = 'Erlaubt dem Benutzer, ein Bild zu l&ouml;schen.';
$txt['cannot_smfgallery_delete'] = 'Du hast nicht die Berechtigung, ein Bild zu l&ouml;schen.';

$txt['permissionname_smfgallery_comment'] = 'Kommentar schreiben';
$txt['permissionhelp_smfgallery_comment'] = 'Erlaubt dem Benutzer, Kommentare zu schreiben.';
$txt['cannot_smfgallery_comment'] = 'Du hast nicht die Berechtigung, Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Bilder/Beitr&auml;ge melden';
$txt['permissionhelp_smfgallery_report'] = 'Erlaubt dem Benuter, Bilder und Kommentare zu melden.';
$txt['cannot_smfgallery_report'] = 'Du hast nicht die Berechtigung, Bilder und Kommentare zu melden.';

$txt['permissionname_smfgallery_autoapprove'] = 'Automatisch Bilder freigeben';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Bilder brauchen nicht manuell freigegen zu werden.';

$txt['permissionname_smfgallery_manage'] = 'Galerie verwalten';
$txt['permissionhelp_smfgallery_manage'] = 'Erlaubt dem Benutzer, Kategorien hinzuzuf&uuml;gen, zu l&ouml;schen und zu editieren, Kommentare und Bilder zu l&ouml;schen, sowie Bilder freizugeben';
$txt['cannot_smfgallery_manage'] = 'Du hast nicht die Berechtigung, die Galerie zu verwalten.';

//END SMF Gallery Text Strings

Code: [Select]
<?php

/*

SMF Gallery Lite Edition

Version 1.0

by:vbgamer45

http://www.smfhacks.com

Copyright 2006 SMFHacks.com



############################################

License Information:

SMF Gallery is NOT free software.

This software may not be redistributed.



Links to http://www.smfhacks.com must remain unless

branding free option is purchased.

#############################################



Gallery English Text Strings

*/



//Gallery.template.php Strings



//Title string

$txt['gallery_text_title'] = 'Galerie';



//Main gallery table strings

$txt['gallery_text_galleryname'] = 'Galeriename';

$txt['gallery_text_gallerydescription'] = 'Galeriebeschreibung';

$txt['gallery_text_totalimages'] = 'Bilder insgesamt';

$txt['gallery_text_reorder'] = 'Position';

$txt['gallery_text_options'] = 'Optionen';



$txt['gallery_text_adminpanel'] = 'Galerie Admin Panel';

$txt['gallery_text_addcategory'] = 'Kategorie hinzuf&Uuml;gen';

$txt['gallery_text_editcategory'] = 'Kategorie bearbeiten';

$txt['gallery_text_delcategory'] = 'Kategorie l&ouml;schen';

$txt['gallery_text_settings'] = 'Einstellungen';

$txt['gallery_text_permissions'] = 'Berechtigungen';

$txt['gallery_text_imgwaitapproval'] = 'Bild wird noch gepr&Uuml;ft: ';

$txt['gallery_text_imgcheckapproval'] = 'Kontrolliere zu pr&Uuml;fende Bilder';



$txt['gallery_text_imgreported'] = 'gemeldete Bilder: ';

$txt['gallery_text_imgcheckreported'] = 'Kontrolliere gemeldete Bilder';





$txt['gallery_write_error'] = 'Warnung: Galerieverzeichnis ist nicht beschreibbar! ';

$txt['gallery_text_myimages'] = '[Meine Bilder]';

$txt['gallery_text_search'] = '[Suche]';

$txt['gallery_text_edit'] = '[Editieren]';

$txt['gallery_text_delete'] = '[L&ouml;schen]';

$txt['gallery_text_unapprove'] = '[Sperren]';

$txt['gallery_text_approve'] = '[Freigeben]';

$txt['gallery_text_up'] = '[nach oben]';

$txt['gallery_text_down'] = '[nach unten]';

$txt['gallery_text_reportpicture'] = '[Bild melden]';

$txt['gallery_text_delcomment'] = '[Beitrag l&ouml;schen]';





$txt['gallery_text_filesize'] = 'Dateigr&ouml;&szlig;e: ';

$txt['gallery_text_by'] = 'Von:';

$txt['gallery_text_date'] = 'Datum: ';

$txt['gallery_text_comments'] = 'Kommentare';

$txt['gallery_text_views'] = 'Betrachtet: ';



$txt['gallery_text_addpicture'] = 'Bild hinzuf&Uuml;gen';

$txt['gallery_text_returngallery'] = 'Zur&Uuml;ck zur Galerie';



//Online strings

$txt['gallery_who_viewgallery'] = ' betrachten diese Galerie.';

$txt['gallery_who_viewpicture'] = ' betrachten dieses Bild.';



//Form Strings

$txt['gallery_form_title'] = 'Titel:';

$txt['gallery_form_description'] = 'Beschreibung:';

$txt['gallery_form_icon'] = 'Galerie Icon Url:';



$txt['gallery_warn_category'] = 'Warnung: Dieser Befehl L&ouml;SCHT die Kategorie mit ALL ihren Bildern, Kommentaren und Bewertungen!';



$txt['gallery_form_addpicture'] = 'Bild hinzuf&Uuml;gen';

$txt['gallery_form_category'] = 'Kategorie:';

$txt['gallery_form_keywords'] = 'Stichworte:';

$txt['gallery_form_uploadpic'] = 'Bild hochladen:';

$txt['gallery_form_maxwidth'] = 'max. Breite ';

$txt['gallery_form_maxheight'] = 'max. H&ouml;he ';

$txt['gallery_form_pixels'] = ' Pixel';

$txt['gallery_form_additionaloptions'] = 'Erweiterte Optionen:';

$txt['gallery_form_allowcomments'] = 'Hinzuf&Uuml;gen von Kommentaren erlauben.';

$txt['gallery_form_notapproved'] = 'Dein Bild wird erst ver&ouml;ffentlicht, wenn es gepr&Uuml;ft wurde.';

$txt['gallery_form_editpicture'] = 'Bild bearbeiten';

//View picture

$txt['gallery_text_picstats'] = 'Bilderstatus:';

$txt['gallery_text_height'] = 'H&ouml;he:';

$txt['gallery_text_width'] = 'L&auml;nge:';

$txt['gallery_text_postedby'] = 'gepostet von:  ';

$txt['gallery_text_addcomment'] = 'Kommentar hinzuf&Uuml;gen';

//Delete picture

$txt['gallery_warn_deletepicture'] = 'Warnung: Das wird dein Bild ohne M&ouml;glicheit auf Wiederherstellung l&ouml;schen.';

$txt['gallery_form_delpicture'] = 'Bild l&ouml;schen';





$txt['gallery_form_comment'] = 'Kommentar:';



$txt['gallery_form_reportpicture'] = 'Bild melden';



//Gallery admin pics

$txt['gallery_form_managecats'] = 'Kategorien verwalten';

$txt['gallery_form_approveimages'] = 'Bilder genehmigen';

$txt['gallery_form_reportimages'] = 'gemeldete Bilder';



//Settings page

$txt['gallery_set_description'] = 'Erlaubt Dir, die wichtigsten Einstellungen Deiner Galerie zu &auml;ndern.';

$txt['gallery_set_maxheight'] = 'max. erlaubte Bildh&ouml;he: ';

$txt['gallery_set_maxwidth'] = 'max. erlaubte Bildbreite: ';

$txt['gallery_set_filesize'] = 'max. Bilddateigr&ouml;&szlig;e: ';

$txt['gallery_set_path'] = 'Galeriepfad: ';

$txt['gallery_set_url'] = 'Galerie Url: ';

$txt['gallery_set_whoonline'] = 'Zeige, wer gerade ein Bild betrachtet';

$txt['gallery_set_commentschoice'] = 'Dem Benutzer erlauben, umzuschalten, wenn Anmerkungen oder Abbildungen gezeigt werden k&ouml;nnen oder nicht.';

$txt['gallery_set_permissionnotice'] = 'Zum Schluss: Vergiss nicht, die Berechtigungen zu setzen, damit die Benutzer die Galerie ansehen k&ouml;nnen.';

$txt['gallery_set_editpermissions'] = 'Zulassung bearbeiten';



//Approve list

$txt['gallery_app_image'] = 'Bild';

$txt['gallery_app_title'] = 'Titel';

$txt['gallery_app_description'] = 'Beschreibung';

$txt['gallery_app_date'] = 'Datum';

$txt['gallery_app_membername'] = 'Mitgliedsname';



//Report list

$txt['gallery_rep_piclink'] = 'Bild Link';

$txt['gallery_rep_reportby'] = 'Eingestellt von';

$txt['gallery_rep_comment'] = 'Kommentar';

$txt['gallery_rep_viewpic'] = 'Bild anzeigen';

$txt['gallery_rep_deletepic'] = '[Bild l&ouml;schen]';

$txt['gallery_rep_delete'] = '[Bericht l&ouml;schen]';



//Search Page

$txt['gallery_search_pic'] = 'Bild suchen';

$txt['gallery_search_for'] = 'Suchen nach:';

$txt['gallery_search_title'] = 'Bildtitel durchsuchen';

$txt['gallery_search_description'] = 'Bildbeschreibung durchsuchen';

$txt['gallery_search_keyword'] = 'Stichworte durchsuchen';

$txt['gallery_search'] = 'Suche';



$txt['gallery_searchresults'] = 'Suchergebnisse';



//My Images

$txt['gallery_myimages'] = 'Meine Bilder';

$txt['gallery_myimages_app'] = 'zugelassene Bilder';

$txt['gallery_myimages_notapp'] = 'nicht zugelassenes Bild';





//#############################

//Gallery.php Strings

//#############################

$txt['gallery_error_cat_title'] = 'Du musst einen Kategorietitel eintragen!';

$txt['gallery_error_no_pic_selected'] = 'Kein Bild ausgew&auml;hlt.';

$txt['gallery_error_pic_notapproved'] = 'Diese Abbildung wurde noch nicht genehmigt und du hast nicht die Berechtigung, sie anzusehen. ';

$txt['gallery_error_no_title'] = 'Du musst einen Bildtitel eingeben.';

$txt['gallery_error_no_cat'] = 'Du musst eine Kategorie ausw&auml;hlen.';

$txt['gallery_error_invalid_picture'] = 'Dies ist keine g&Uuml;ltige Bilddatei.';

$txt['gallery_error_img_size_height'] = 'Das Bild &Uuml;bersteigt die erlaubte Gr&ouml;&szlig;e. Die Bildh&ouml;he war:  ';

$txt['gallery_error_img_size_width'] = ' Die Bildbreite war: ';

$txt['gallery_error_img_filesize'] = 'Das Bild &Uuml;berschreitet die Gr&ouml;&szlig;envorgabe. Die max. Bildgr&ouml;&szlig;e ist ';

$txt['gallery_error_no_picture'] = 'Keine hochgeladenen Bilder gefunden.';

$txt['gallery_error_noedit_permission'] = 'Du hast nicht die Berechtigung dieses Bild zu bearbeiten.';

$txt['gallery_error_nodelete_permission'] = 'Du hast nicht die Berechtigung dieses Bild zu l&ouml;schen.';

$txt['gallery_error_no_comment'] = 'Du hast kein Kommentar eingegeben!';

$txt['gallery_error_not_allowcomment'] = 'Dieses Bild erlaubt keine Kommentare...';

$txt['gallery_error_no_com_selected'] = 'Kein Kommentar gew&auml;hlt.';

$txt['gallery_error_no_user_selected'] = 'Kein Benutzer gew&auml;hlt.';

$txt['gallery_error_no_report_selected'] = 'Kein Beitrag gew&auml;hlt.';

$txt['gallery_error_no_search'] = 'Du hast kein Suchbegriff eingegeben...';

$txt['gallery_error_search_small'] = 'Die Suchanfrage ist zu kurz, sie muss mind. eine L&auml;nge von 3 Zeichen haben.';



?>
Title: Re: SMF Gallery
Post by: littleone on November 02, 2006, 10:20:33 AM
I noticed a problem.

When a member leaves a comment and they have an avator is shows with a red X.  So I do a right click on it and what it does is:

http://xxxxxxxxxxx.com/forum/avatars/http://img291.imageshack.us/img291/9426/godsmack1is7.jpg


I guess you have the avators thing in there by default and its putting there custom avator behind that.  How can this be fixed?
Title: Latest image...
Post by: addictedBG on November 03, 2006, 02:45:02 AM
How can I show the latest image,the poster ..... from the gallery to my site...Something like SSI.php but with the gallery?
Title: Re: SMF Gallery
Post by: justafishermen on November 03, 2006, 04:18:43 PM
Anyone know if its possible to have link code display under images in SMF Gallery? Like photobucket?

It would make it much easier for adding photos to a thread for less knowledgable internet users.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 03, 2006, 04:23:01 PM
Anyone know if its possible to have link code display under images in SMF Gallery? Like photobucket?

It would make it much easier for adding photos to a thread for less knowledgable internet users.
Yeah it is possible just need to edit the template a little. Gallery.template.php in the template_viewpicture function
You would just add a textbox with al ink to the photo
Title: Re: SMF Gallery
Post by: justafishermen on November 04, 2006, 09:41:07 AM
Anyone know if its possible to have link code display under images in SMF Gallery? Like photobucket?

It would make it much easier for adding photos to a thread for less knowledgable internet users.
Yeah it is possible just need to edit the template a little. Gallery.template.php in the template_viewpicture function
You would just add a textbox with al ink to the photo

Thanks vb but Im not much of a programmer. Would you mind telling me what I add to those files and where please?

Really appreciate it.
Title: Re: SMF Gallery
Post by: justafishermen on November 06, 2006, 09:38:03 PM
bump. No one knows?
Title: Re: SMF Gallery
Post by: usermike3969 on November 07, 2006, 01:58:09 AM
check out mine and if thats something like what u wont then i can give u that code
Title: Re: SMF Gallery
Post by: !Hachi! on November 07, 2006, 08:36:58 AM
anyone tried animated gif?i can't view animated gif in lite version? vbgamer need help.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 07, 2006, 09:12:09 AM
anyone tried animated gif?i can't view animated gif in lite version? vbgamer need help.
For thumbnails it won't be animated since the image is resized.
Title: Re: SMF Gallery
Post by: !Hachi! on November 07, 2006, 09:25:18 AM
no i can't SEE actually
Title: Re: SMF Gallery
Post by: justafishermen on November 07, 2006, 09:48:32 AM
check out mine and if thats something like what u wont then i can give u that code


Hi Mike,

Yup thats pretty much what I was looking for. Thanks, looking forward to the codes!
Title: Re: SMF Gallery
Post by: usermike3969 on November 07, 2006, 06:37:13 PM
Hi Mike,

Yup thats pretty much what I was looking for. Thanks, looking forward to the codes!

in your default theme open the file Gallery.template.php

look for:
Code: [Select]
<td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" />';
and under put:
Code: [Select]
?><script language="javascript" type="text/javascript">
<!--
function linkingcodes() {
  newwindow2=window.open('','name','height=350,width=800,scrollbars=yes');
  var tmp = newwindow2.document;
  tmp.write('<html><head><title>Linking codes</title>');
  tmp.write('');
  tmp.write('</head><body bgcolor="#000000"><center><font color="#FFFFFF">');
  tmp.write('HTML THUMB</br>&lt;img src="<? echo $modSettings['gallery_url'] .'thumb_'. $context['gallery_pic']['filename'];?>"&gt; ');
  tmp.write('</br></br>HTML</br>&lt;img src="<? echo $modSettings['gallery_url'] . $context['gallery_pic']['filename']; ?>"&gt;');
  tmp.write('</br></br>BBC THUMB</br>[img]<? echo $modSettings['gallery_url'] .'thumb_'. $context['gallery_pic']['filename'];?>[/img]');
  tmp.write('</br></br>BBC</br>[img]<? echo $modSettings['gallery_url'] . $context['gallery_pic']['filename']; ?>[/img]');
  tmp.write('</font></center></body></html>');
  tmp.close();
}
// -->
</script><form>
</br><input type="button" onClick="return linkingcodes()" value="Linking codes!">
</form>

<?

and this is for Version 1.6.4 i dont know if it will work on any other Versions
Title: Re: SMF Gallery
Post by: justafishermen on November 08, 2006, 02:10:19 PM
Hi Mike,

Doesnt work bud. I get the following error:

Code: [Select]
Template Parse Error!
There was a problem loading the /Themes/default/Gallery.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'
Title: Re: SMF Gallery
Post by: justafishermen on November 08, 2006, 04:15:05 PM
Never mind, got it from smfhacks.com

Thanks Mike!
Title: Re: SMF Gallery
Post by: redm on November 10, 2006, 03:24:26 PM
Hi I'm new to SMF as well as the SMF Gallery. 

I'm trying to get the SMF Gallery to work under the Enterprise them. 

I copied and put into the index.template.php the following code for the enterprise theme.  Am I missing something?  The button doesn't come up.  I tried adding my own button (copying a different mod's button and changing everything to 'gallery' and that does show up and appears to work, but causes  'Undefined index: smfgallery_admin' in the forum error log whenever I try to access it.

under the function template_menu()
I added

Code: [Select]
if (in_array($context['current_action'], array('gallery','links','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
I also copied the following that was in the default template

   
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>' : '';
Title: Re: SMF Gallery
Post by: vbgamer45 on November 10, 2006, 03:28:49 PM
Can you post a copy of your index.template.php of the theme you are using?
Title: Re: SMF Gallery
Post by: !Hachi! on November 11, 2006, 11:25:06 AM
VBGAMER plz view that screenshot y  i am unable to see thumbnail for that? its simple jpeg img.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg139.imageshack.us%2Fimg139%2F9475%2Fscdp6.gif&hash=ddf01916d5e1fe872a08bbd52cb6a03a)
Title: Re: SMF Gallery
Post by: vbgamer45 on November 11, 2006, 12:49:12 PM
It depends on how the image is formed needs to be a valid image it uses SMF functions for resizing the image.
Title: Re: SMF Gallery
Post by: !Hachi! on November 11, 2006, 09:48:24 PM
thanks for your reply  actually we can see images by click on comment number but thumbnails are missing IE showing missing imgs..so thumbnail is problem
Title: Re: SMF Gallery
Post by: Nexus-hq on November 22, 2006, 02:44:38 PM
ok first of all i have to say i love this mod

i am in process of starting a render site and i was going to use this but for some reason it wont show my thumbnails.

also my admin account can view the gallery but my test account cannot it gets a error so i sign out of test and log in to my admin and it works fine ( except the thumbnails still no thumbnails)

i am using 1.1RC3

and panics orange-lt's theme
Title: Re: SMF Gallery
Post by: vbgamer45 on November 22, 2006, 03:27:10 PM
Each membergroup has to be given permission to view the gallery.
As for thumbnails I think it is some sort of server/permission issue.
Title: Re: SMF Gallery
Post by: Nexus-hq on November 22, 2006, 11:10:24 PM
ok what to i do it fix the thumbnail prob

when i go to the gallery folder and try to set the permissions to 777 but i get a error so how do i fix it?
Title: Re: SMF Gallery
Post by: Pratt on November 23, 2006, 12:54:10 PM
Hi again, i have another question, and would be gratefull if you guys can help me out on this one.

Some of my users have uploaded pictures, that only have 3 characters as a title/description/keywords. When i go to the search dialog and search for this pictures, i get an error (of course), because the search string is too short.

Is there a way to tweak the search option, so that my users can search pictures with less than 4 characters (in my case, with 3 characters), and which file must i edit?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 23, 2006, 01:34:46 PM
Yes you can I belive it is in Gallery.php
Title: Re: SMF Gallery
Post by: Pratt on November 23, 2006, 01:42:19 PM
Yes you can I belive it is in Gallery.php
Thanks, nailed it!
gallery.php
Code: [Select]
if(strlen($searchfor) <= 3)
fatal_error($txt['gallery_error_search_small'],false);
Changed 3 for 2 and no problem!
Thank you!
Title: Re: SMF Gallery
Post by: mark25 on November 26, 2006, 04:44:29 AM
i have a small problem... when i try to put the blushing emoticon (code :">),
"', document.cprofile.comment); return false;">" shows up... but when i try to put it in popup the error doesn't appear...  ::) ....
Title: Re: SMF Gallery
Post by: dash on November 26, 2006, 11:45:10 AM
Hi,
I've a problem to install the gallery (see attachment).
Can anybody help me?
Title: Re: SMF Gallery
Post by: indigotwilight on November 27, 2006, 06:44:56 PM
It's me again! sorry to keep 'bugging' you with all these questions about coding, but I've an idea for gallery that I'd like to ask you...

First of all, if I wanted to adapt the gallery to upload and store other files such as PDF's and word documents, how would I do it? Can the gallery display thumbnails of the first page of a pdf?

Secondly, noting there is demand for a working music download mod, could I try and use the gallery template system to build such a thing? Maybe allowing the upload of media files such as mp3, .wav? I'd like to give unsigned bands the opportunity to show off their talent in one of my forums, and this seems like a good way of doing it...

Twilight
Title: Re: SMF Gallery
Post by: vbgamer45 on November 27, 2006, 07:34:43 PM
You could modify the mod to upload other files. Thumnails wouldn't work but maybe you could setup a system to use icons for other filetypes that are not images. Getting the first page of PDF would require some php extension to read the format and then somehow get a screenshot of it which would be hard to do.
Title: Re: SMF Gallery
Post by: Arnaldo on November 29, 2006, 08:54:56 AM
Hi all, I new to all this code stuff, and will need to learn it very soon.

I installed SMF Gallery and I'm able to upload pics and able to view thumbnails, but when i click on the thumbnail the full size image is not viewable

Is there a setting that I need to change somewhere?

any help would be great
Title: Re: SMF Gallery
Post by: vbgamer45 on November 29, 2006, 09:17:23 AM
No image at all? Check your Gallery folder and see if the picture was uploaded.
Title: Re: SMF Gallery
Post by: Arnaldo on November 29, 2006, 09:20:00 AM
yea the pictures are there, i just get an empty image holder with a red x in it
Title: Re: SMF Gallery
Post by: Arnaldo on November 29, 2006, 09:57:24 AM
No image at all? Check your Gallery folder and see if the picture was uploaded.
i even check the folder and it has 777 rights on it

what do you think can be wrong

should I uninstall and then reinsall?
Title: Re: SMF Gallery
Post by: Arnaldo on November 29, 2006, 10:08:16 AM
no worries, i unistalled and reinstalled - everything seems to be workig now

sorry for the bother
Title: Re: SMF Gallery
Post by: †MavN† on December 05, 2006, 05:08:05 PM
missing language string
Code: (Gallery.template.php;  line 701) [Select]
echo $txt['gallery_text_postedby'] . ''  . $context['gallery_pic']['realName'] . ' at ' . $context['gallery_pic']['date'] . '
at
Title: Re: SMF Gallery
Post by: vbgamer45 on December 05, 2006, 08:01:01 PM
missing language string
Code: (Gallery.template.php;  line 701) [Select]
echo $txt['gallery_text_postedby'] . ''  . $context['gallery_pic']['realName'] . ' at ' . $context['gallery_pic']['date'] . '
at
Fixed added txt string.
Title: Re: SMF Gallery
Post by: vbgamer45 on December 13, 2006, 01:00:59 PM
Released an update to a bug that was found.

Version 1.6.9
Fixed low quality thumbnails that were being generated. The thumbnails should now retain the color information that the image used.
Title: Re: SMF Gallery
Post by: Adamzon on December 14, 2006, 06:48:02 AM
Gallery "text" dont show up in Swedish

Tried to locate where it is, but i dont get it..

Menu button shows up in English, but dont show in swed, I got all the lang and theme files for swe ..


Help?

/adam
Title: Re: SMF Gallery
Post by: Adamzon on December 15, 2006, 05:16:09 AM
can i add the textbutton my self?
where ?

/Adam
Title: Re: SMF Gallery
Post by: vbgamer45 on December 15, 2006, 02:55:33 PM
You need to copy the text strings from modificaitons.english.php to modifications.yourlanguage.php
Title: Re: SMF Gallery
Post by: jazz on December 18, 2006, 01:06:42 PM
Great mod!  This is very much appreciated.

Just one question.  Is there any way to make the images auto fit the screen when you click on the thumbnail to view?  Some of the pictures you need to scroll all over the place to see the whole thing.
Title: Re: SMF Gallery
Post by: hdhoran on December 19, 2006, 11:30:53 AM
Hi.....love the mod. I'm not new to SMF but don't play in the code often enough to know what I'm doing. I have been running the default theme on 1.1 final with Tiny Portal...I want to switch to the DilbertMC...

Would you mind showing me where in the index.template. php where to put the code and WHAT code to put?

Thanks in advance.  :)


index.template.php attached...
Title: Re: SMF Gallery
Post by: vbgamer45 on December 19, 2006, 11:51:27 AM
File attached check the template_menu function for adding menu links.
Title: Re: SMF Gallery
Post by: hdhoran on December 19, 2006, 12:49:58 PM
Thank you....I looked at what you did and actually understand it...lol.

But it still didn't add the text button?? Is there something else I need to do?
Title: Re: SMF Gallery
Post by: vbgamer45 on December 19, 2006, 12:51:16 PM
Check that the following is in your themes modifications.english.php 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
Title: Re: SMF Gallery
Post by: jazz on December 20, 2006, 11:19:01 AM
Great mod!  This is very much appreciated.

Just one question.  Is there any way to make the images auto fit the screen when you click on the thumbnail to view?  Some of the pictures you need to scroll all over the place to see the whole thing.

Anyone know the answer to this?
Title: Re: SMF Gallery
Post by: vbgamer45 on December 20, 2006, 11:27:27 AM
You could restrict uploads to a certain image size for example 600 width and 600 height.
Title: Re: SMF Gallery
Post by: †MavN† on December 20, 2006, 01:44:51 PM
language string missing again :)
Gallery.template.php
Code: [Select]
<input type="submit" name="savesettings" value="Save Settings" />

I fink it's will be better if you do it this code block with some language strings too

Code: [Select]
<tr class="windowbg"><td><b>Has SMF Gallery helped you?</b> Then support the developers:<br />
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@visualbasiczone.com">
<input type="hidden" name="item_name" value="SMF Gallery">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br />You can also upgrade to the SMF Gallery Pro edition at <a href="http://www.smfhacks.com/smf-gallery-pro.php" target="blank">http://www.smfhacks.com/smf-gallery-pro.php</a>
</td>
</tr>
</table>';
//Keep the copyright links please helps support develop of Mods for SMF
echo '<div align="center"><a href="http://www.smfhacks.com/smf-gallery.php" target="blank">SMF Gallery</a></div>';

and this too

Code: [Select]
echo '<div align="center"><a href="http://www.smfhacks.com/smf-gallery.php" target="blank">SMF Gallery</a></div>';
Title: Re: SMF Gallery
Post by: vbgamer45 on December 20, 2006, 01:45:54 PM
I noticed the Save Settings block. The donate and copyright block I am not going to change since I want it to show as is.
Title: Re: SMF Gallery
Post by: †MavN† on December 20, 2006, 02:01:57 PM
ok. I'll be know :)
Title: Re: SMF Gallery
Post by: rabbithutch on December 20, 2006, 02:30:19 PM
vbgamer45 has done an EXCELLENT job with SMF Gallery.  I have the Lite version installed on my forum and it works great!

One question:  Is there a way to display the gallery file titles on the thumbnail screen?  Instead of the view count and file size and other stuff there, my members want to see an image title and the name of who posted it.

Please pm if this is not the right place for this sort of thing.

TIA
r
Title: Re: SMF Gallery
Post by: vbgamer45 on December 20, 2006, 02:56:22 PM
Yeah you can do that. Just a couple of template changes. Look into Gallery.template.php and under the main function
Title: Re: SMF Gallery
Post by: Adamzon on December 21, 2006, 03:14:34 PM
hi!

i just got the pro version of the gallery
how can i put "random picture" in i Tinyportal block?
ssi??

/adam
Title: Re: SMF Gallery
Post by: chig on December 21, 2006, 04:02:28 PM
hi!

i just got the pro version of the gallery
how can i put "random picture" in i Tinyportal block?
ssi??

/adam

there is more info in the block code snippet section from the http://www.tinyportal.net website and in the smfhack forum (from the developer) ...
Title: Re: SMF Gallery
Post by: vbgamer45 on December 21, 2006, 04:59:15 PM
If you purchased the pro version upgrade your forum account on SMFHacks.com which will give you access to more forums for SMF Gallery Pro and mods for the Gallery.
Title: Re: SMF Gallery
Post by: Adamzon on December 22, 2006, 08:43:53 AM
eehmmum..

My domain is Glidarhoj.se and my username is Adamzon ...
Title: Re: SMF Gallery
Post by: redpanda on December 22, 2006, 10:48:48 AM
Hello, sorry for the troubles. SMF Gallery works fine, but now when I want to manage my Boards in the Admin Panel, I get the following error:

Quote
Fatal error: Cannot redeclare editcategory() (previously declared in /home/---/forum/Sources/Gallery.php:266) in /home/---/forum/Sources/ManageBoards.php on line 337

Any help is greatly appreciated!
Title: Re: SMF Gallery
Post by: vbgamer45 on December 22, 2006, 11:18:28 AM
eehmmum..

My domain is Glidarhoj.se and my username is Adamzon ...

You need to upgrade the account on smfhacks.com click on the license button and enter the license information
Title: Re: SMF Gallery
Post by: stroll on December 23, 2006, 12:30:23 AM
Hello, i'm new on this forum.  I'm running SMF 1.0.8 and i installed the gallery. i have a different theme and create a gallery button to match which is cool.

the problem i have is in FORUM CONFIGURATION menu in the admin section the link GALLERY CONFIGURATION isn't there like in the example on this page http://www.smfhacks.com/smfgallery/help/modifypermissions.PNG

there's actually and empty space there under EDIT SERVER SETTINGS

also in the permissions i don't see these settings at all
    *  View SMF Gallery
    * Add Picture
    * Edit own Picture
    * Delete own Picture
    * Rate Picture (Pro Edition)
    * Leave Comments
    * Edit own Comment (Pro Edition)
    * Report Pictures/Comments
    * Auto Approve Comments (Pro Edition)
    * Auto Approve Pictures
    * Manage Gallery

what do i have to edit in order to see these?

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on December 23, 2006, 12:48:49 AM
You will need to copy the text for the gallery from modifications.english.php in the default theme to the modifications.english.php file in your custom theme.

Or if you are using another language other than english then you need to copy the text strings in modifications.english.php to modifications.yourlanguage.php
Title: Re: SMF Gallery
Post by: stroll on December 23, 2006, 01:01:34 AM
yeah i just figured that out from a previous post to a member you helped out. thanks.

hopefully there won't be any errors.
Title: Re: SMF Gallery
Post by: damacguy on December 27, 2006, 12:50:03 AM
Thumbnails aren't being generated when the images are uploaded. I don't think it's a permissions issue as everything is 777 at the moment (feel like my fly is open). The image path is correct (removing thumb_ from the front of the image loads the correct image).

How are the thumbnails generated?
Title: Re: SMF Gallery
Post by: vbgamer45 on December 27, 2006, 12:52:25 AM
Thumbnails are generated using SMF's thumbnail function which is built in SMF 1.1.1. I am not sure what causes this bug to occur on some servers.
Title: Re: SMF Gallery
Post by: redpanda on December 27, 2006, 09:25:49 PM
I have copied the modifications.english.php entries, which fixed my previos problem, but I'm now encountering another error. :(

When I want to edit Gallery category, I get this error
Quote
Fatal error: Call to undefined function EditCategory() in /---/forum/Sources/Gallery.php on line 76

It generates Forum Error Log
Quote
8: Use of undefined constant smfgallery_menu - assumed 'smfgallery_menu'
File: /---/forum/Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 667
Title: Re: SMF Gallery
Post by: vbgamer45 on December 27, 2006, 09:47:27 PM
You need to copy all entries to every modificaitons.yourlanguage.php file since that is where  smfgallery_menu is defined.
Title: Re: SMF Gallery
Post by: redpanda on December 27, 2006, 09:57:03 PM
I only use English language in my boards.

Edit: Don't worry, I re-installed and it works fine now! Thank you for your help and sorry for the inconvenience!
Title: Re: SMF Gallery
Post by: vbgamer45 on December 27, 2006, 10:05:32 PM
Then make sure you copy to each theme's modifications.english.php file if it exists.
Title: Re: SMF Gallery
Post by: msbask on December 28, 2006, 08:01:17 PM
Great mod!

I'd like to make the thumbnails a little bigger there.  Can you tell me where in the code I can set the thumbnail size or percentage?

Thanks!
Title: Re: SMF Gallery
Post by: Keoll on December 28, 2006, 09:04:13 PM
This mod keeps giving me a Forbidden access message
Title: Re: SMF Gallery
Post by: vbgamer45 on December 28, 2006, 09:20:19 PM
This mod keeps giving me a Forbidden access message
Check out this post
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Gallery
Post by: deko on January 03, 2007, 07:06:32 AM
smf 1.1.1
error message during download over pkg manager 3.1.07
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: SMF Gallery
Post by: drhamad on January 03, 2007, 09:41:46 AM
smf 1.1.1
error message during download over pkg manager 3.1.07
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Same
Title: Re: SMF Gallery
Post by: Greenman on January 04, 2007, 04:10:32 AM
Is there anyway I could tie this SMF Gallery mod into a board?  ???

Just to get the effect of when a new picture is posted the board to be seen as a board with a new thread.


Otherwise none of my members ever check the gallery, so no comments are ever made.
Please. :)

Title: Re: SMF Gallery
Post by: vbgamer45 on January 04, 2007, 08:05:40 AM
Is there anyway I could tie this SMF Gallery mod into a board?  ???

Just to get the effect of when a new picture is posted the board to be seen as a board with a new thread.


Otherwise none of my members ever check the gallery, so no comments are ever made.
Please. :)


That's in the pro version creating new posts in a forum.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 04, 2007, 01:12:58 PM
smf 1.1.1
error message during download over pkg manager 3.1.07
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Same
Still having trouble?
Alternative download link
http://www.smfhacks.com/hacks/SMF-Gallery-Lite.html
Title: Re: SMF Gallery
Post by: drhamad on January 04, 2007, 02:53:57 PM
Thanks, that one works.

I might be missing something here, but I see no way to post pics?  I"m confused...
Title: Re: SMF Gallery
Post by: Greenman on January 04, 2007, 02:54:46 PM
Is there anyway I could tie this SMF Gallery mod into a board?  ???

Just to get the effect of when a new picture is posted the board to be seen as a board with a new thread.


Otherwise none of my members ever check the gallery, so no comments are ever made.
Please. :)


That's in the pro version creating new posts in a forum.
In that case how can I get the pro version without having to pay $50 for a code that is more expensive than my whole website, forum, web host, and everything in between, just for this one small feature? ::)
Isn't very reasonable for me and right now I don't even have the $50 to begin with.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 04, 2007, 02:55:50 PM
For a custom theme you need access it via yoursite.com/index.php?action=gallery
You need to add a button / menu link to the gallery on a custom theme.
Title: Re: SMF Gallery
Post by: remsnel on January 06, 2007, 05:54:52 AM
smf 1.1.1
error message during download over pkg manager 3.1.07
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Same
Still having trouble?
Alternative download link
http://www.smfhacks.com/hacks/SMF-Gallery-Lite.html


It is not working for me!
The message is: The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: SMF Gallery
Post by: Quakeile on January 09, 2007, 01:23:47 AM
Is there a way to show the latest picture? Preferrably on the frontpage.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 09, 2007, 09:39:50 AM
Yes you could if you query the database and get the last picture id.
Title: Re: SMF Gallery
Post by: dsanchez on January 10, 2007, 03:55:04 PM
Hello,

Can you list some pages that are using this mod?

Thanks

David.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 10, 2007, 03:56:02 PM
I think some sites have been listed in the thread. I would only post them if the site owners wanted them posted.
Title: Re: SMF Gallery
Post by: Quakeile on January 11, 2007, 07:08:08 AM
Yes you could if you query the database and get the last picture id.
I was more thinking of if there is a mod/hack/code snippet for this already.
Unfortunately I don't have the knowledge to code it myself.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2007, 10:53:23 AM
Version 1.7.0 Released
Fixed avatar images for remote avatars for comments.
Title: SMF Gallery Not Showing Up
Post by: avidum on January 11, 2007, 12:05:43 PM
I downloaded the smf gallery mod and it shows up in the configuration box but I don't see it anywhere else on the board. Am I doing something wrong? I thought there would be an added link to the menu bar at top too. Sorry but I am new to all of this so if it sounds like a dumb question, I appologize.  ;D
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2007, 12:37:48 PM
I downloaded the smf gallery mod and it shows up in the configuration box but I don't see it anywhere else on the board. Am I doing something wrong? I thought there would be an added link to the menu bar at top too. Sorry but I am new to all of this so if it sounds like a dumb question, I appologize.  ;D
It installs a button/menu link on the default theme only.

For custom themes a link will need to be added to index.template.php of the theme you are using.
Title: Re: SMF Gallery
Post by: joh87swe on January 11, 2007, 01:13:11 PM
How to upgrade from version 1.6.9 to 1.7.0 ?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2007, 01:14:38 PM
Unistall old one and install the new one. Pictures are saved and database information are saved.

Or you can Copy Gallery.template.php from the mod package to your Themes/default folder. And copy Gallery.php from the mod package to your sources folder

Title: Re: SMF Gallery
Post by: Garry1953 on January 11, 2007, 06:46:48 PM
Hello,

Can you list some pages that are using this mod?

Thanks

David.

Your welcome to drop in and have a look at my site.
I just upgraded to Gallery v1.7.0 today.

The Gallery mod is excellent, easy to use and administer.

http://www.gpurcell.com/artforum/index.php?action=gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2007, 06:53:41 PM
Hello,

Can you list some pages that are using this mod?

Thanks

David.

Your welcome to drop in and have a look at my site.
I just upgraded to Gallery v1.7.0 today.

The Gallery mod is excellent, easy to use and administer.

http://www.gpurcell.com/artforum/index.php?action=gallery
Thanks
Title: Re: SMF Gallery
Post by: entwistlej on January 13, 2007, 01:42:02 PM
I get an error when applying 1.7.0 in SMF 1.1.1. It says ...

4.     Execute Modification     ./Themes/default/index.template.php     Test failed

Any ideas ? I've tried both the SMFhacks one and the one on this site.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 13, 2007, 01:45:08 PM
You have mods installed?

The only thing it adds to the index.template.php is a link to the gallery ie a new tab.
Title: Re: SMF Gallery
Post by: entwistlej on January 13, 2007, 03:07:48 PM
Sorry my fault - I wasn't using the original index.template.php. Thanks for the quick reply !
Title: Re: SMF Gallery
Post by: chipp on January 14, 2007, 05:35:00 AM
i installed this mod on a clean board and everything seems o.k. but when i try to upload a picture i get an errormessage saying "not a valid picture file" .

i tried gif, jpg etc. in different sizes. edited the settings, edited the permissions.

can anyone tell me what's wrong ?
Title: Re: SMF Gallery
Post by: nicholas on January 15, 2007, 09:26:10 PM
Ok...When you go to the Gallery you can click "MyImages" and it takes you to yours.  U can change the u= ## and get that for any members gallery.....

Here is what I am wondering if I can get some code for...

On the bottom of the members profile page where it says:


I want to add "View this member's images" so that when anyone clicks on it, it will take you to all the images that member has added so it looks like this:


Is this possible? and if so would someone mind sharing the code for this with me.  I'd be overly appreiciative!

Code: [Select]
<table width="100%"><tr><td colspan="2"><b>Photo Gallery:</b></td><td><a href="/index.php?action=gallery;sa=myimages;u=', $context['member']['id'], '">[View My Gallery]</a></td></tr></table>

goes into Profile.template.php
Title: Re: SMF Gallery
Post by: psychosis on January 15, 2007, 10:00:17 PM
When I tried to install the mod, I found the msg.

./Themes/default/languages/Modifications.english.php Test failed  

I am using  SMF 1.1.1 and tried to install smf gallery 1.69 and 1.7. Same resulted.

Please help :'(
Title: Re: SMF Gallery
Post by: vbgamer45 on January 15, 2007, 10:28:05 PM
Install it anyway.

Then add these text strings to modifications.english.php

Code: [Select]

//Title string
$txt['gallery_text_title'] = 'Gallery';

//Main gallery table strings
$txt['gallery_text_galleryname'] = 'Gallery Name';
$txt['gallery_text_gallerydescription'] = 'Gallery Description';
$txt['gallery_text_totalimages'] = 'Total Images';
$txt['gallery_text_reorder'] = 'Reorder';
$txt['gallery_text_options'] = 'Options';

$txt['gallery_text_adminpanel'] = 'Gallery Admin Panel';
$txt['gallery_text_addcategory'] = 'Add Category';
$txt['gallery_text_editcategory'] = 'Edit Category';
$txt['gallery_text_delcategory'] = 'Delete Category';
$txt['gallery_text_settings'] = 'Settings';
$txt['gallery_text_permissions'] = 'Permissions';
$txt['gallery_text_imgwaitapproval'] = 'Images waiting approval: ';
$txt['gallery_text_imgcheckapproval'] = 'Check Image Approval List';

$txt['gallery_text_imgreported'] = 'Images reported: ';
$txt['gallery_text_imgcheckreported'] = 'Check Reported Images';
$txt['gallery_at'] = ' at ';

$txt['gallery_write_error'] = 'Warning Gallery path is not writable! ';
$txt['gallery_text_myimages'] = '[MyImages]';
$txt['gallery_text_search'] = '[Search]';
$txt['gallery_text_edit'] = '[Edit]';
$txt['gallery_text_delete'] = '[Delete]';
$txt['gallery_text_unapprove'] = '[UnApprove]';
$txt['gallery_text_approve'] = '[Approve]';
$txt['gallery_text_up'] = '[Up]';
$txt['gallery_text_down'] = '[Down]';
$txt['gallery_text_reportpicture'] = '[Report Picture]';
$txt['gallery_text_delcomment'] = '[Delete Comment]';


$txt['gallery_text_filesize'] = 'Filesize: ';
$txt['gallery_text_by'] = 'By:';
$txt['gallery_text_date'] = 'Date: ';
$txt['gallery_text_comments'] = 'Comments';
$txt['gallery_text_views'] = 'Views: ';

$txt['gallery_text_addpicture'] = 'Add a picture';
$txt['gallery_text_returngallery'] = 'Return to Gallery';

//Online strings
$txt['gallery_who_viewgallery'] = ' are viewing this gallery.';
$txt['gallery_who_viewpicture'] = ' are viewing this picture.';
$txt['gallery_who_members'] = 'Members';
$txt['gallery_who_hidden'] = 'Hidden';

//Form Strings
$txt['gallery_form_title'] = 'Title:';
$txt['gallery_form_description'] = 'Description:';
$txt['gallery_form_icon'] = 'Gallery Icon Url:';

$txt['gallery_warn_category'] = 'Warning this WILL DELETE this category and ALL pictures, comments, ratings that category contains...';

$txt['gallery_form_addpicture'] = 'Add Picture';
$txt['gallery_form_category'] = 'Category:';
$txt['gallery_form_keywords'] = 'Keywords:';
$txt['gallery_form_uploadpic'] = 'Upload Picture:';
$txt['gallery_form_maxwidth'] = 'Max width ';
$txt['gallery_form_maxheight'] = 'Max height ';
$txt['gallery_form_pixels'] = ' pixels';
$txt['gallery_form_additionaloptions'] = 'Additional Options:';
$txt['gallery_form_allowcomments'] = 'Allow comments to be posted on this picture.';
$txt['gallery_form_notapproved'] = 'Your picture will not appear in the gallery to others until it is approved.';
$txt['gallery_form_editpicture'] = 'Edit Picture';
//View picture
$txt['gallery_text_picstats'] = 'Picture Stats:';
$txt['gallery_text_height'] = 'Height:';
$txt['gallery_text_width'] = 'Width:';
$txt['gallery_text_postedby'] = 'Posted by:  ';
$txt['gallery_text_addcomment'] = 'Add Comment';
//Delete picture
$txt['gallery_warn_deletepicture'] = 'Warning this will delete your picture and you can not restore it.';
$txt['gallery_form_delpicture'] = 'Delete Picture';


$txt['gallery_form_comment'] = 'Comment:';

$txt['gallery_form_reportpicture'] = 'Report Picture';

//Gallery admin pics
$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';

//Settings page
$txt['gallery_set_description'] = 'Allows you to edit the important settings for your gallery.';
$txt['gallery_set_maxheight'] = 'Max allowed image height: ';
$txt['gallery_set_maxwidth'] = 'Max allowed image width: ';
$txt['gallery_set_filesize'] = 'Max image filesize: ';
$txt['gallery_set_path'] = 'Gallery Path: ';
$txt['gallery_set_url'] = 'Gallery Url: ';
$txt['gallery_set_whoonline'] = 'Display who is viewing a picture';
$txt['gallery_set_commentschoice'] = 'Allow the user to toggle if comments can be shown or a picture or not.';
$txt['gallery_set_permissionnotice'] = 'Lastly! Do not forget to make the permissions are set for each group, in order for them to view and add to the gallery.';
$txt['gallery_set_editpermissions'] = 'Edit Permissions';

//Approve list
$txt['gallery_app_image'] = 'Image';
$txt['gallery_app_title'] = 'Title';
$txt['gallery_app_description'] = 'Description';
$txt['gallery_app_date'] = 'Date';
$txt['gallery_app_membername'] = 'Member Name';

//Report list
$txt['gallery_rep_piclink'] = 'Picture Link';
$txt['gallery_rep_reportby'] = 'Reported by';
$txt['gallery_rep_comment'] = 'Comment';
$txt['gallery_rep_viewpic'] = 'View Picture';
$txt['gallery_rep_deletepic'] = '[Delete Picture]';
$txt['gallery_rep_delete'] = '[Delete Report]';

//Search Page
$txt['gallery_search_pic'] = 'Search for picture';
$txt['gallery_search_for'] = 'Search For:';
$txt['gallery_search_title'] = 'Search Picture Title';
$txt['gallery_search_description'] = 'Search Picture Description';
$txt['gallery_search_keyword'] = 'Search Keywords';
$txt['gallery_search'] = 'Search';

$txt['gallery_searchresults'] = 'Search Results';

//My Images
$txt['gallery_myimages'] = 'MyImages';
$txt['gallery_myimages_app'] = 'Picture Approved';
$txt['gallery_myimages_notapp'] = 'Picture Not Approved';


//#############################
//Gallery.php Strings
//#############################
$txt['gallery_error_cat_title'] = 'You need to enter a category title!';
$txt['gallery_error_no_pic_selected'] = 'No picture selected.';
$txt['gallery_error_pic_notapproved'] = 'This picture is not approved yet and you do not have permission to view it.';
$txt['gallery_error_no_title'] = 'You need to enter a picture title.';
$txt['gallery_error_no_cat'] = 'You need to select a category.';
$txt['gallery_error_invalid_picture'] = 'Not a valid picture file.';
$txt['gallery_error_img_size_height'] = 'Image exceeds size requirements. Your height was:  ';
$txt['gallery_error_img_size_width'] = ' Your width was: ';
$txt['gallery_error_img_filesize'] = 'Picture exceeds max filesize. Max Filesize is ';
$txt['gallery_error_no_picture'] = 'No uploaded picture found.';
$txt['gallery_error_noedit_permission'] = 'You do not have permission to edit that picture.';
$txt['gallery_error_nodelete_permission'] = 'You do not have permission to delete that picture.';
$txt['gallery_error_no_comment'] = 'You did not enter a comment!';
$txt['gallery_error_not_allowcomment'] = 'Wait a second...This picture does not allow comments...';
$txt['gallery_error_no_com_selected'] = 'No comment selected.';
$txt['gallery_error_no_user_selected'] = 'No user selected.';
$txt['gallery_error_no_report_selected'] = 'No report selected.';
$txt['gallery_error_no_search'] = 'You did not enter anything to search for...';
$txt['gallery_error_search_small'] = 'Search string is too small needs to be greater than three characters.';
Title: Re: SMF Gallery
Post by: psychosis on January 15, 2007, 11:05:32 PM
vbgamer45, thanks for your fast response.
I want to confirm if I make the modification "after" I install it!
Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 15, 2007, 11:18:14 PM
yes
Title: Re: SMF Gallery
Post by: psychosis on January 15, 2007, 11:46:33 PM
dont know if I did anything wrong, the "text" show in the front page.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 15, 2007, 11:52:49 PM
make sure you add it before near the end of the file ?>
Title: Re: SMF Gallery
Post by: psychosis on January 16, 2007, 12:54:23 AM
I added at the end of the file.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 16, 2007, 04:34:32 PM
Released version 1.7.1 fixed some forum log errors when deleting a picture and saving settings.
Title: Re: SMF Gallery
Post by: psychosis on January 17, 2007, 01:01:52 AM
ver 1.71 was installed, modification was done, default theme was used.
But cannot assess to the gallery, no button/tab. ???
Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 01:13:18 AM
Can you get to http://www.yoursite.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: psychosis on January 17, 2007, 02:03:35 AM
Can you get to http://www.yoursite.com/index.php?action=gallery

yes, then...how should I do next?
Title: Re: SMF Gallery
Post by: terabyte on January 17, 2007, 12:01:52 PM
Does anyone has a site to show with this Gallery Pro installed?

Paying $50 is quite much and especially without even have seen a up-to-date demo is nothing I would like to do, and there is nowhere a functional demo to see of the Pro version.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 01:09:14 PM
You can singup up for a free forum at SMFForFree.com which has pro installed with a couple of features disabled and running at the 1.0 version.
Title: Re: SMF Gallery
Post by: terabyte on January 17, 2007, 04:26:05 PM
Thanks. That site was donw before. I see it's up again, but it would be nice to see a forum, where there are already images uploaded, hopefully a lot, and see it in action. Signing up for a free forum just to see a mod feels like little over the top. I will never use the free forum anyway.....

Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 04:32:08 PM
Check out the http://www.smfhacks.com website I think some members listed their forums.
Title: Re: SMF Gallery
Post by: terabyte on January 17, 2007, 04:34:43 PM
Check out the http://www.smfhacks.com website I think some members listed their forums.
Have aready looked there. That was the first place I looked at and coudn't find anyone that was using the pro version with more than a couple of images. In most of the old threads, the users forums didn't use the gallery, or it maybe wasn't visible for guests.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 04:57:40 PM
Here is one
http://microstockpix.com/smf/index.php?action=gallery
Title: Re: SMF Gallery
Post by: terabyte on January 17, 2007, 05:00:40 PM
Thanks. Can language translation from Lite version be reused in the pro version, in some part at least?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 05:07:35 PM
Yes the langauge strings can be used. But there has been many more language strings added to the Pro Edition.
Title: Re: SMF Gallery
Post by: maxprofit on January 17, 2007, 09:21:36 PM
The gallery installed with no problems. Now how do I add a button to access it. I am using the Dilber Multicolor theme

TIA
Title: Re: SMF Gallery
Post by: vbgamer45 on January 17, 2007, 09:44:06 PM
The gallery installed with no problems. Now how do I add a button to access it. I am using the Dilber Multicolor theme

TIA
You will have to edit the index.template.php of the custom theme to add the button
Title: Re: SMF Gallery
Post by: thejackal on January 18, 2007, 12:47:52 PM
hi all.
i have a problem. when i try to post one picture, i got error " Not a valid picture file. ".
i do it with even format pictures :(
Title: Re: SMF Gallery
Post by: vbgamer45 on January 18, 2007, 12:52:51 PM
What type of file is it? Only supports png,gif, bmp, jpeg pictures.
Title: Re: SMF Gallery
Post by: thejackal on January 18, 2007, 12:59:46 PM
i do it with all: png,gif, bmp, jpeg pictures
Title: Re: SMF Gallery
Post by: vbgamer45 on January 18, 2007, 01:09:56 PM
Check if you can upload files or add attachements.
Title: Re: SMF Gallery
Post by: thejackal on January 19, 2007, 12:29:38 PM
hi,
thinx foor answer. Yes i can add attachements.
Title: Re: SMF Gallery
Post by: joh87swe on January 20, 2007, 04:43:36 PM
How to get the "recent picture", "Most viewed" window?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2007, 04:46:17 PM
How to get the "recent picture", "Most viewed" window?
What do you mean?
Title: Re: SMF Gallery
Post by: joh87swe on January 20, 2007, 04:47:26 PM
I just see the categories. I want a window who shows the most recent pictures that have been posted.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2007, 04:51:56 PM
Not in the Lite version only in the Pro version.
Title: Re: SMF Gallery
Post by: joh87swe on January 20, 2007, 04:52:25 PM
okey
Title: Re: SMF Gallery
Post by: joh87swe on January 20, 2007, 04:55:53 PM
Does the "Copyright Link Removal" include in the SMF Gallery Pro?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2007, 05:05:04 PM
That's a seperate purchase.
Title: Re: SMF Gallery
Post by: maritimesbob on January 21, 2007, 02:34:23 PM
In the lite version on the index page, there are only text/links to the categories. Should there not be a thumbnail for each category from the last photo uploaded?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 21, 2007, 07:17:41 PM
That currently does not exist in this mod not sure if I would add that.
Title: Re: SMF Gallery
Post by: maritimesbob on January 21, 2007, 09:03:01 PM
Ok no worries.

I`m not sure which template I would need to edit? Would it be easy to create some small images, 100x100 for example and place them on the index page next to each category? Ie, like the IPB gallery has, here`s an example about halfway down http://fishing.ibforums.com/index.php?act=module&module=gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on January 21, 2007, 09:11:23 PM
You can set the gallery category icon to a location of a picture example http://www.yoursite.com/yourimage.jpg
Title: Re: SMF Gallery
Post by: maritimesbob on January 21, 2007, 09:29:52 PM
Doh, I didn`t realise it would be that simple!!! I thought I would be digging through templates...

Thanks.
Title: Re: SMF Gallery
Post by: perplexed on January 26, 2007, 09:58:38 AM
I really like this :)  I installed it on my test forum and it potentially could solve another problem that I have.

I want to be able to limit the file size of banners used in signatures on my site, and this gallery mod allows you to limit the file size of the images uploaded to the gallery, so if we got members to use this to host their banners, then we wouldnt have to check them manually, because the size is aready set!  Brilliant!  Also they would be hosted on our server so it would be quicker to load and not dependent on the availability of the outside site :) Brilliant again!

Apart from getting people to use this instead of what they are used to, I only have one little problem (which is sort of related to getting people to use it).  Getting the url for the image in order to put it in their signature box, has to be done by right-clicking, and getting it from properties. 

Is there any way of displaying the url under the image to make it easier for the technically-challenged?   

Also is there a way of making the image name more user friendly?  The ones I have uploaded seem to have very long urls eg:

http://www.mysite.com/testforum/gallery/1_25_01_07_11_06_38.gif

It would be great if it could be something like :

http://www.mysite.com/testforum/gallery/stargatebanner.gif

Thanks muchly and again, I love this mod!


Title: Re: SMF Gallery
Post by: vbgamer45 on January 26, 2007, 10:39:06 AM
You could add a field below the image that says the url to the image. I think someone did it in this topic a couple pages back. The names are long to avoid naming conflicts if two images have the same name.
Title: Re: SMF Gallery
Post by: perplexed on January 26, 2007, 11:38:17 AM
thanks VB I will go back and read the thread :)
Title: Re: SMF Gallery
Post by: DVD_GR on January 31, 2007, 05:34:13 PM
http://www.clubmini.gr/forums/gallery/

Forbidden
You do not have permission to access this document.

Web Server at clubmini.gr

what have I done wrong? :(
Title: Re: SMF Gallery
Post by: vbgamer45 on January 31, 2007, 05:50:29 PM
That's ok that not how you access the gallery
Gallery would be at
http://www.clubmini.gr/forums/index.php?action=gallery

You need to add a link for custom themes in the index.template.php
Title: Re: SMF Gallery
Post by: Zwerko on February 01, 2007, 04:29:36 PM
hi to all, great work with mod  ;)

I have small problems (view attach), I can't see permissions. I have add all code in Modifications.english.php but problem is still there..Help if u can. Tnx
 
Title: Re: SMF Gallery
Post by: vbgamer45 on February 01, 2007, 04:47:32 PM
I can see the permissions in that picture. They are on the right side top corner of that image.
Manage Gallery, AutoApprove Pictures etc.
 
Title: Re: SMF Gallery
Post by: softtouch on February 02, 2007, 10:28:02 AM
Something with this mod related to permissions is wrong.
I have set my global mods to manage the gallery. When they try to create a category, they are asked for the admin password...????? Their login password does not work. Anybody else has this problem? If they enter the password of an admin, they can create the categories. Why is that so?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 02, 2007, 10:38:08 AM
Something with this mod related to permissions is wrong.
I have set my global mods to manage the gallery. When they try to create a category, they are asked for the admin password...????? Their login password does not work. Anybody else has this problem? If they enter the password of an admin, they can create the categories. Why is that so?

Not sure I will look into it.
Title: Re: SMF Gallery
Post by: Zwerko on February 02, 2007, 12:00:09 PM
I can see the permissions in that picture. They are on the right side top corner of that image.
Manage Gallery, AutoApprove Pictures etc.
 

Upppsss sorry I cant believed, its there, my mistake   :-[ , thanks
Hm then I miss something else in that empty space
Title: Re: SMF Gallery
Post by: puttputt on February 02, 2007, 10:20:27 PM
I have 1.1.1.  When I tried to install this mod, I envoked two "Modification parse errors". This also happened when I tried to install a different package. I (manually) changed all file permissions, but no-go. Any suggestions?

Thanks  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 02, 2007, 10:21:33 PM
On what files? If you have other mods installed it might conflict.
Title: Re: SMF Gallery
Post by: puttputt on February 02, 2007, 10:27:32 PM
On what files? If you have other mods installed it might conflict.
After looking at the error logs, I think I discovered why.  Error says "SAFE MODE Restriction" 

Is there any way to manually install?  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 02, 2007, 10:29:24 PM
Yes you could manually install the mod

Check out
http://docs.simplemachines.org/index.php?topic=402
Title: Re: SMF Gallery
Post by: puttputt on February 02, 2007, 10:30:10 PM
I did try to install (unsuccessfully) another mod prior to this one, but same "Modification parse errors" popped-up.
Title: Re: SMF Gallery
Post by: puttputt on February 02, 2007, 10:31:42 PM
Greatly appreciate your time, vbgamer45. -puttput-
Title: Re: SMF Gallery
Post by: pIECEoFcAKE on February 03, 2007, 05:28:13 PM
Awesome... Is good idea for a further release, I guess.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 03, 2007, 05:35:47 PM
Well, I followed all the steps, and don't works at all. The only thing that works very very well is the payment section. Awesome.

Is good idea for a further release, I guess.
??? Explain their is no payment section.
Title: Re: SMF Gallery
Post by: pIECEoFcAKE on February 03, 2007, 05:52:03 PM
Well, was needed set the permissions manually for installing it; but the link for access the Gallery don't appears, no thumbnails either; now I'm tripping out messing with the XML...
Title: Re: SMF Gallery
Post by: vbgamer45 on February 03, 2007, 05:54:58 PM
Link to access the gallery only appears on the default theme.
Check your gallery folder if images are being uploaded and some are called thumb_ for thumbnails.  Thumbnails require GD to be installed.
Title: Re: SMF Gallery
Post by: pIECEoFcAKE on February 03, 2007, 05:56:07 PM
Ok, thanks I will try.
Title: Re: SMF Gallery
Post by: softtouch on February 04, 2007, 08:12:08 AM
Something with this mod related to permissions is wrong.
I have set my global mods to manage the gallery. When they try to create a category, they are asked for the admin password...????? Their login password does not work. Anybody else has this problem? If they enter the password of an admin, they can create the categories. Why is that so?

Not sure I will look into it.

Any idea already?
Title: Re: SMF Gallery
Post by: jrallen01 on February 04, 2007, 09:00:00 AM
Awesome mod. It installed with no errors. I can see all of the configuration options. I can upload and post photos. When I click on the photo, it displays correctly.

The only issue I have is when accessessing the gallery, it is not rendering the thumbnails. It shows only the small white frames with the X in the center.

I have accessesd with Firefox and IE6.0 and the same thing happens.

I am running  SMF 1.1.1 under Microsoft IIS.

Any suggestions?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 04, 2007, 09:21:08 AM
Do you have GD installed?

In your php.ini you need to uncomment extension=php_gd2.dll
Title: Re: SMF Gallery
Post by: jrallen01 on February 04, 2007, 09:41:23 AM
Yep... duh, I read the documentation and was just coming back to say "never mind". I uncommented and it works beautifully.

Thanks for your prompt response.
Title: Re: SMF Gallery
Post by: hellmet on February 04, 2007, 10:12:18 AM
I'm sorry, I'm too lazy to go thru all 27 pages, but can someone tell me if I can
display the latest/random thumbnails on the Forum Home ??
Please.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 04, 2007, 10:14:13 AM
On all pages or just the board index?
Title: Re: SMF Gallery
Post by: hellmet on February 04, 2007, 10:47:18 AM
only the index :-)
Title: Re: SMF Gallery
Post by: hellmet on February 04, 2007, 12:20:25 PM
hmm...any help?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 04, 2007, 12:21:27 PM
I only have the mod in the Pro edition not for the lite version currently.
Title: Re: SMF Gallery
Post by: softtouch on February 05, 2007, 10:11:37 PM
Its not perfect, but it works.
It lists the last 12 added images from the gallery

I add in boardindex.template.php below this block:

// Here's where the "Info Center" starts...
   echo '<br />
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
      <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
         <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
         ', $txt[685], '
      </div>
      <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
         <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';


the following code:

//gallery thumbs
// ********************************************
   if ($context['user']['is_logged'])
{
   echo'   <tr>
         <td class="titlebg" colspan="2">', 'Recent Gallery Images', '</td>
      </tr>
      <tr>
         <td class="windowbg" width="20" valign="middle" align="center">
            <img src="', $settings['images_url'], '/icons/bullet_grin.gif" alt="', 'Gallery Images', '" />
         </td>
         <td class="windowbg2">';


      $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);
      while ($row = mysql_fetch_assoc($dbresult))
      {
         $cat = $row['ID_CAT'];
         $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
         while ($row2 = mysql_fetch_assoc($dbresult2))
         {
            $dataimg[]=$row2['ID_PICTURE'];
         }
         mysql_free_result($dbresult2);
      }
      mysql_free_result($dbresult);
      rsort($dataimg);



      $maxpictures = 12;
      $maxrowlevel = 4;
      echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%">
                  <tr><td align="center" colspan="' . $maxrowlevel . '">' . '</td>
                  </tr>';
      $rowlevel = 0;
      $pictures = 0;
      foreach ($dataimg as $img)
      {
         $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, p.ID_CAT, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_PICTURE = $img AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
         $row2 = mysql_fetch_assoc($dbresult2);

         $cat = $row2['ID_CAT'];

         $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat WHERE ID_CAT = $cat ORDER BY roworder ASC", __FILE__, __LINE__);
         $row = mysql_fetch_assoc($dbresult);
         $category = $row['title'];
         $catnum = $row['ID_CAT'];
         mysql_free_result($dbresult);


         if($rowlevel == 0)
            echo '<tr>';
         echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $row2['thumbfilename']  . '" border="0" /></a><br />';
         echo '<span class="smalltext">' . 'In: ' . '<a href="' . $scripturl . '?action=gallery;cat=' . $catnum . '">' . $category.'</a><br />';
         echo 'Date: ' . timeformat($row2['date']) . '<br />';
         echo 'Comments:' . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '">' . $row2['commenttotal'] . '</a>)<br />';
         echo 'By:' . ' <a href="' . $scripturl . '?action=profile;u=' . $row2['ID_MEMBER'] . '">'  . $row2['realName'] . '</a><br />';
         echo '</span></td>';
         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '</tr>';
            $rowlevel = 0;
         }
         mysql_free_result($dbresult2);
         $pictures++;
         if ($pictures == $maxpictures)
            break;
      }
      if($rowlevel !=0)
      {
         echo '</tr>';
      }

      echo '</table><br />';

// ********************************************

It works fine for me...
Title: Re: SMF Gallery
Post by: hellmet on February 07, 2007, 02:58:25 AM
ohh. thanks softouch..will try and let ya know. :-)
Title: Re: SMF Gallery
Post by: drhamad on February 07, 2007, 08:55:29 AM
OK 2 questions, now that I'm running it:
1. How can I tell how much space any given person is using
2. How can people see every pic that any given person has posted
Title: Re: SMF Gallery
Post by: vbgamer45 on February 07, 2007, 09:13:31 AM
1. Located under File Space Manager in the Gallery Admin Section. Lists all the users and how much space they are using.
2. action=gallery;sa=myimages;u=1   Change the the u to the member id.  Add a link in the profile to give direct access.
Title: Re: SMF Gallery
Post by: drhamad on February 07, 2007, 09:14:53 AM
1. Located under File Space Manager in the Gallery Admin Section. Lists all the users and how much space they are using.
2. action=gallery;sa=myimages;u=1   Change the the u to the member id.  Add a link in the profile to give direct access.

Perfect.  I can add that link easily enough :)  Thanks.
Title: Re: SMF Gallery
Post by: perplexed on February 09, 2007, 06:26:06 PM
hi vbgamer

I just came across this thread  (http://www.simplemachines.org/community/index.php?topic=110734.0) where you talked about linking images to profiles.  Can you do that with this mod and if so, how does it work/what does it look like?

~thanks
Title: Re: SMF Gallery
Post by: perplexed on February 12, 2007, 12:19:44 PM
hi vbgamer

I just came across this thread  (http://www.simplemachines.org/community/index.php?topic=110734.0) where you talked about linking images to profiles.  Can you do that with this mod and if so, how does it work/what does it look like?

~thanks

*bump*

~thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on February 12, 2007, 12:49:35 PM
I am pretty busy at the moment maybe later on.
Title: Re: SMF Gallery
Post by: perplexed on February 12, 2007, 01:15:13 PM
ah ok, so it isn't currently possible?  thanks I just wondered
Title: Re: SMF Gallery
Post by: vbgamer45 on February 12, 2007, 01:31:53 PM
Possible just takes code which I don't have the time to do.
Title: Re: SMF Gallery
Post by: perplexed on February 12, 2007, 04:07:12 PM
ok, I think I understand, thanks VBGamer
Title: Re: SMF Gallery
Post by: hygron on February 13, 2007, 05:45:57 AM
very easy install...works and looks great.  If only we could set permissions for a private category...hint hint.  Maybe another mod for this gallery would be the ability to upload more than one image at a time...maybe 4.

If all you need is a nice clean easy to operate gallery...this is it.


 
Title: Re: SMF Gallery
Post by: beini on February 14, 2007, 03:46:34 PM
Hi,

just downloaded the Gallery and get this error when installing the package:

Incorrect table name ''
File: D:\www\forum\Packages\temp\galleryinstall.php
Line: 39

I'm using SMF 1.1.1.  Any suggestions?

vbgamer45: when will you launche the pro version?

thanks, beini
Title: Re: SMF Gallery
Post by: vbgamer45 on February 14, 2007, 03:52:43 PM
That means you will have execute the tables manually in phpmyadmin from the galleryinstall.php. Already have the pro version at http://www.smfhacks.com
Title: Re: SMF Gallery
Post by: beini on February 14, 2007, 04:22:39 PM
ok, looks veeery good. Is it possible to see a live demo of it somewhere? I don't want to spend time installing the lite version if I'l go to the pro that I think I will.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 14, 2007, 05:03:01 PM
Couple I found posted
http://microstockpix.com/smf/index.php?action=gallery
http://rewindlancs.com/forum/index.php

I also have SMF Gallery Pro installed on http://www.smfforfree2.com
Title: Re: SMF Gallery
Post by: hygron on February 14, 2007, 06:29:50 PM
you can check out mine at http://hygronomics.com/forum1 (http://hygronomics.com/forum1)
Title: Re: SMF Gallery
Post by: Pegasys on February 15, 2007, 10:41:53 PM
Looks likea great mod... but I am having issues.

Installed... no errors.

Can access it.. no problems.

Permissions and setting in admin... piece of cake.

Everything extrememly well done.


BUT... I get the following error message(s) in the error log whenever I access the edit page of an image.


http://jphayden.com/forum/index.php?action=gallery;sa=edit;id=83 

8: Undefined index: gallery_text_oldpicture
File: /home/jphayd2/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 621

From a user viewpoint, everything looks fine, No error message is displayed and any changes made are saved and work correctly. The error is generated when accessing the page. No error is generated when editing the image (hiting the Edit Picture button)


Part of the problem may be that I can't interprete the SMF error properly. My take is that the error is occuring on line 641 of the Gallery.php file.  Yes/No?  (the Gallery.English.php file is only about 180 line of code)

If so, that line in the Gallery.php file is:

Code: [Select]
Line 639:
 //Check if the user owns the picture or is admin

Line 640:
$dbresult = db_query("SELECT p.ID_PICTURE, p.thumbfilename, p.width, p.height, p.allowcomments, p.ID_CAT, p.keywords, p.commenttotal, p.filesize, p.filename, p.approved, p.views, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE ID_PICTURE = $id AND p.ID_MEMBER = m.ID_MEMBER  LIMIT 1", __FILE__, __LINE__);

Line 641:
$row = mysql_fetch_assoc($dbresult);

... query of the smf_gallery_pic table. The index part throws me. Are we talking about a table index? If so, there is no such index.

Confused.  Please help!!


 


 
Title: Re: SMF Gallery
Post by: vbgamer45 on February 15, 2007, 10:48:40 PM
It jsut means no text string is defined in Gallery.english.php
There should be one like
$txt['gallery_text_oldpicture'] = 'Old Picture';
Title: Re: SMF Gallery
Post by: Pegasys on February 16, 2007, 01:03:36 AM
It jsut means no text string is defined in Gallery.english.php
There should be one like
$txt['gallery_text_oldpicture'] = 'Old Picture';


And that did the trick.  That is the label that appears above the image displayed in the edit screen. I.e.. the old (or existing) picture.

Thanks a ton for the quick response and solution!!

** Now the odd thing is, I installed what I believe is the latest version (v1.7) and the  "$txt['gallery_text_oldpicture'] = 'Old Picture'; " line/code does not exist in either the Gallery.english.php or the Gallery.english-utf8.php files.

So... shouldn't everyone  be getting these same errors? I rechecked the files included in the zip and they are identical to what was copied onto the server during the package install. So is this a bug or did I goof something during the install?

* I'm using a custom theme, and manually updated the theme's index template to add the menu button after installing the package. But the theme does not have any of its own language files and uses those from the default theme. Correct?  (new to SMF after years with phpBB. Still getting the hang of it.)
Title: Re: SMF Gallery
Post by: vbgamer45 on February 16, 2007, 01:06:50 AM
Yes everyone should be gettting an error though seems that no one reported it yet.

If a language file does not exist in your theme it uses the default language files instead.
Title: Re: SMF Gallery
Post by: AON on February 16, 2007, 05:42:29 AM
Hi all, my first post here.

I installed this mod and it seemed to go like clockwork - no errors reported

I set up the permissions and created the first gallery category...

Then I realised I couldn't add a button at the top. Also if I manually go to the default directory of /SMFinstall/gallery/ it's a placeholder text file :(

Any help greatly appreciated
Title: Re: SMF Gallery
Post by: AON on February 16, 2007, 05:48:33 AM
Please ignore - it was a theme incompatibility sorry
Title: Re: SMF Gallery
Post by: perplexed on February 16, 2007, 06:58:14 AM
Couple I found posted
http://microstockpix.com/smf/index.php?action=gallery
http://rewindlancs.com/forum/index.php

I also have SMF Gallery Pro installed on http://www.smfforfree2.com

Is it possible VB, to give a list of what you get extra in gallery pro?  I'm interested but can't find a list of extra features.

thanks :)
Title: Re: SMF Gallery
Post by: vbgamer45 on February 16, 2007, 08:40:47 AM
Partial list http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: Kris on February 18, 2007, 12:43:01 PM
Moved my site and db to another server , but when I upload pictures now they don't appear (neither thumbs0, but when I look in the tables, the entry is there.
So I now have entries without pictures (filesize is correct, files are not there)  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2007, 12:54:56 PM
Did you adjust the paths? In the settings section when you moved the site?
Title: Re: SMF Gallery
Post by: Kris on February 18, 2007, 12:57:58 PM
Did you adjust the paths? In the settings section when you moved the site?

Yes I did.
Have been checking all possible paths. Are there any paths hard coded? In the settings table I checked the entries.  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2007, 01:01:10 PM
No paths are hardcoded. Can you send me link to the board.
Title: Re: SMF Gallery
Post by: Kris on February 18, 2007, 01:17:18 PM
No paths are hardcoded. Can you send me link to the board.

Will do but albums are only open for some groups, not guests.
You need to register and I will add you to the group.
Title: Re: SMF Gallery
Post by: Kris on February 18, 2007, 01:46:14 PM
Problem solved.

in the path I needed to add the slash after gallery, so .../gallery/
 
Title: Re: SMF Gallery
Post by: inivid™ on February 19, 2007, 07:34:41 AM
Thumbnails are generated using SMF's thumbnail function which is built in SMF 1.1.1. I am not sure what causes this bug to occur on some servers.

My thumbnails are not showing up either.  I read posts having to do with thumbnails not showing up and "GD" is mentioned.  What is GD? 

I'm running SMF 1.1.2 and SMF Gallery Lite.  The install was perfect and operation and management of pics is flawless.  My only issue is the ugly red X's.  Thanks in advance. ;)
Title: Re: SMF Gallery
Post by: hygron on February 19, 2007, 07:54:28 AM
check permissions again
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2007, 09:28:20 AM
I would go to Admin -> Support and Credits and see if you have GD listed.
Title: Re: SMF Gallery
Post by: inivid™ on February 19, 2007, 10:11:11 AM
I just checked it out.  I even went so far as to check out the expandable SMF php listing and came up with nothing.  ???
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2007, 11:16:25 AM
If you are your own webhost I would installed the GD module. GD is required for creation of thumbnails.
If you are not a webhost contact your webhosting company and ask to install GD.
Title: Re: SMF Gallery
Post by: kepin on February 19, 2007, 01:39:37 PM
Do you mean the button graphics?
I'm talking about the text within the admin menus.
When ever I'm using the Pn-Pn theme I get this error in my logs when I enter admin area.
Quote
8: Undefined index: smfgallery_admin
File: /home/photo/public_html/forum/Sources/Subs.php
Line: 2728
Make sure these are in the modifications.english.php in your themes language folder
Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0';
$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

Hi there, THANKS for a GOOD gallery mod. I got the same error as someone else in this board, below is  the original code in modifications.english.php

Code: [Select]
<?php
// Version: 1.1; Modifications

$txt['pdx_forum_button'] = 'URL for button that returns to your main (Home) page : ';
$txt['pdx_forum_button_desc'] = 'Input URL here when the button where it returns to the top on your site is necessary. If it is a blank, the button is not displayed.';
$txt['pdx_forum_button_forum'] = 'Forum';

$txt['header_logo'] = 'Use Custom Logo/Header Image';
$txt['header_logo_desc'] = 'If checked the a custom image (orange-lt/images/logo.png) is used for the header (instead of the forum name). Use the logo.png as base for your own image';

$txt['theme_version_attention'] = 'Hide theme version attention';

// The one to press translation of Modifications.english.php
$txt['necessary_to_translate'] = 'Necessary to translate';

?>


then I replaced it with new code in modifications.english.php, BUT I got this error message instead :

Code: [Select]
Attention of orange-lt theme:
You have to create "Modifications.english.php" in the "languages" directory ( http://***.org/forum/Themes/Forum_Theme_SMF__orange-lt07/languages/ ) of your orange-lt theme.

Duplicate the "Modifications.english.php" of the "languages" directory of orange-lt. Next, rename it according to the language for which you use the file.

Please any advice/help would be appreciated !! :)
Title: Re: SMF Gallery
Post by: inivid™ on February 19, 2007, 03:00:48 PM
If you are your own webhost I would installed the GD module. GD is required for creation of thumbnails.
If you are not a webhost contact your webhosting company and ask to install GD.

Does "GD" stand for something?  I want to be sure that my webhost will understand what I'm talking about.  I, for one, haven't the slightest idea what GD is.  I just know that you say I need it for thumbnails to show up. :S
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2007, 03:24:00 PM
More info here:
http://us2.php.net/gd
Title: Re: SMF Gallery
Post by: kepin on February 19, 2007, 04:12:31 PM
Do you mean the button graphics?
I'm talking about the text within the admin menus.
When ever I'm using the Pn-Pn theme I get this error in my logs when I enter admin area.
Quote
8: Undefined index: smfgallery_admin
File: /home/photo/public_html/forum/Sources/Subs.php
Line: 2728
Make sure these are in the modifications.english.php in your themes language folder
Code: [Select]
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0';
$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

Hi there, THANKS for a GOOD gallery mod. I got the same error as someone else in this board, below is  the original code in modifications.english.php

Code: [Select]
<?php
// Version: 1.1; Modifications

$txt['pdx_forum_button'] = 'URL for button that returns to your main (Home) page : ';
$txt['pdx_forum_button_desc'] = 'Input URL here when the button where it returns to the top on your site is necessary. If it is a blank, the button is not displayed.';
$txt['pdx_forum_button_forum'] = 'Forum';

$txt['header_logo'] = 'Use Custom Logo/Header Image';
$txt['header_logo_desc'] = 'If checked the a custom image (orange-lt/images/logo.png) is used for the header (instead of the forum name). Use the logo.png as base for your own image';

$txt['theme_version_attention'] = 'Hide theme version attention';

// The one to press translation of Modifications.english.php
$txt['necessary_to_translate'] = 'Necessary to translate';

?>


then I replaced it with new code in modifications.english.php, BUT I got this error message instead :

Code: [Select]
Attention of orange-lt theme:
You have to create "Modifications.english.php" in the "languages" directory ( http://***.org/forum/Themes/Forum_Theme_SMF__orange-lt07/languages/ ) of your orange-lt theme.

Duplicate the "Modifications.english.php" of the "languages" directory of orange-lt. Next, rename it according to the language for which you use the file.

Please any advice/help would be appreciated !! :)

vbgamer45 : can  you help me on this pls ? thanks in advance!
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2007, 04:13:30 PM
Attach the modificaitons.english.php of your orange theme languages folder never saw that error message before.
Title: Re: SMF Gallery
Post by: kepin on February 19, 2007, 04:34:31 PM
Thanks for your reply. It's the one under folder "/forum/themes/orange_theme/language", right ? here is I attach the file. here is the code

Code: [Select]
<?php
// Version: 1.1; Modifications

$txt['pdx_forum_button'] = 'URL for button that returns to your main (Home) page : ';
$txt['pdx_forum_button_desc'] = 'Input URL here when the button where it returns to the top on your site is necessary. If it is a blank, the button is not displayed.';
$txt['pdx_forum_button_forum'] = 'Forum';

$txt['header_logo'] = 'Use Custom Logo/Header Image';
$txt['header_logo_desc'] = 'If checked the a custom image (orange-lt/images/logo.png) is used for the header (instead of the forum name). Use the logo.png as base for your own image';

$txt['theme_version_attention'] = 'Hide theme version attention';

// The one to press translation of Modifications.english.php
$txt['necessary_to_translate'] = 'Necessary to translate';

?>


thanks again !
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2007, 04:49:31 PM
Replace the file with the file attached:
Title: Re: SMF Gallery
Post by: kepin on February 19, 2007, 04:59:06 PM
THANK YOU !! THANK YOU !!  :D :D :D
Title: Re: SMF Gallery
Post by: inivid™ on February 20, 2007, 01:05:11 AM
More info here:
http://us2.php.net/gd

Thank you! 
I also found this:  http://www.libgd.org/releases/

I'm gonna have to install it myself.  I only need to know which version and where to install it to.  I'm assuming it needs to go into my /html folder?

Thanks for your help, thusfar. :D
 
Title: Re: SMF Gallery
Post by: kepin on February 20, 2007, 02:07:12 AM
vbgamer45, is this Gallery mod has ability to resize the WIDTH / HEIGHT picture if it's exceeds size requirements ?

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2007, 09:10:58 AM
Not in the lite version.
Title: Re: SMF Gallery
Post by: perplexed on February 20, 2007, 02:20:40 PM
Apart from getting people to use this instead of what they are used to, I only have one little problem (which is sort of related to getting people to use it).  Getting the url for the image in order to put it in their signature box, has to be done by right-clicking, and getting it from properties. 

Is there any way of displaying the url under the image to make it easier for the technically-challenged?   


You could add a field below the image that says the url to the image. I think someone did it in this topic a couple pages back. The names are long to avoid naming conflicts if two images have the same name.

ok I went back to pages 16/17 and there was some code posted there but it didnt work, and then someone on that page said they got a solution for this at smfhacks. I just went there and couldnt find it, so can someone please tell me how to display the image url under the image so people can copy it into posts etc instead of having to right-click?

~thanks
Title: Re: SMF Gallery
Post by: Matthew Schenker on February 22, 2007, 03:08:30 PM
Is this mod ready to be installed in 1.1.2?
When I tried to install it, I got an error message.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 22, 2007, 04:09:24 PM
Yes it should be ready for 1.1.2 what error message?
Title: Re: SMF Gallery
Post by: Matthew Schenker on February 22, 2007, 06:50:36 PM
vbgamer,
I get the two errors shown below.  Are they serious?  Or is there something I need to do?
Thanks,
Matthew
Title: Re: SMF Gallery
Post by: vbgamer45 on February 22, 2007, 07:06:43 PM
index.template.php adds a link to the gallery page.

For Modifications.english.php it seems that file does not exist in your themes/default/languages/Modifications.english.php

I would create a file with at least this code if it does not exist then install the mod
Code: [Select]
<?php
//Modifications.english.php

?>

Title: Re: SMF Gallery
Post by: Matthew Schenker on February 22, 2007, 07:44:28 PM
vbgamer,
OK, I got a Modifications.english.php file.  That error went away.
But I'm still getting the "Test failed" error on the index.template.php file.
Do you know how I should fix this?
Matthew
Title: Re: SMF Gallery
Post by: vbgamer45 on February 22, 2007, 08:04:58 PM
You would need to install a link to the gallery manually on the default theme. Some other mod is conflicting with the gallery on the menu.
Title: Re: SMF Gallery
Post by: perplexed on February 23, 2007, 12:43:03 PM
Apart from getting people to use this instead of what they are used to, I only have one little problem (which is sort of related to getting people to use it).  Getting the url for the image in order to put it in their signature box, has to be done by right-clicking, and getting it from properties. 

Is there any way of displaying the url under the image to make it easier for the technically-challenged?   


You could add a field below the image that says the url to the image. I think someone did it in this topic a couple pages back. The names are long to avoid naming conflicts if two images have the same name.

ok I went back to pages 16/17 and there was some code posted there but it didnt work, and then someone on that page said they got a solution for this at smfhacks. I just went there and couldnt find it, so can someone please tell me how to display the image url under the image so people can copy it into posts etc instead of having to right-click?

~thanks
*bump if someone can help with this*
Title: Re: SMF Gallery
Post by: Matthew Schenker on February 23, 2007, 12:50:55 PM
Quote
Some other mod is conflicting with the gallery on the menu.

Here are the packages/mods I have installed on my forum:
FontandSizeDropdown 1.1
EmailFlash 2.0
SMF 1.1.2 Update Package

Do any of these conflict with the Gallery?

Thanks,
Matthew
Title: Re: SMF Gallery
Post by: vbgamer45 on February 23, 2007, 12:56:47 PM
They might. But I would just recommend editing the template and adding a link to the Gallery in the menu. You can still install the mod.
Title: Re: SMF Gallery
Post by: Matthew Schenker on February 23, 2007, 02:54:56 PM
Quote
I would just recommend editing the template and adding a link to the Gallery in the menu.

I have a test forum running, and that one has the Gallery working with no problems.  When I look in the Themes/default/index.template.php file, I see the following 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>' : '';


Can I just insert that manually into the Themes/default/index.template.php file for the production forum?

Thanks,
Matthew
Title: Re: SMF Gallery
Post by: vbgamer45 on February 23, 2007, 03:07:40 PM
Code: [Select]
[code]Yes you could insert that in the template_menu function.

There is one other edit to make the tab selected
Find in index.template.php
[code]
if (in_array($context['current_action'], array(
Add inside
[/code]
'gallery',
[/code]
Title: Re: SMF Gallery
Post by: AANDROID on February 24, 2007, 06:37:30 PM
OK, I was astonished by this great SMF and gallery, but now i found out that it isnt so easy and nice as it was looking like. So, what's the problem?

In uploading of pics.

I installed the mod with no problems (well, I just had to add a "Gallery" button for my theme and switch language files)... and I created a testing category. Now, let's try to upload something. No errors, but one big X instead of the pic. No thumbnail, no pic. When I click on 'Image preferences', I'll find out that this pic should be all right, because image properties refers to a pic in proper folder (gallery), properly named (something like 1_24_02_07_1_09_53.jpg), but that damned file isnt uploaded in that folder on FTP - in fact, theres nothing except of placeholder.txt file.

I tried to upload avatars (implemented in SMF) and files (implemented in TinyPortal, I think) - with no problems, those picture were uploaded to its proper folders, properly named.

When I upload the pic straight to the folder via FTP and rename it to 1_24_02_07_1_09_53.jpg, it finally shows up, but I want to offer ability of uploading to every member of my forum -- therefore I cant give them my FTP login info ;)

One more thing, because the forum is just for testing, the whole forum is CHMODed 777 - gallery folder too.

Any ideas? Thank you...
Title: Re: SMF Gallery
Post by: vbgamer45 on February 24, 2007, 06:49:46 PM
I would try deleting the gallery and remaking it with writable permissions.
Title: Re: SMF Gallery
Post by: AANDROID on February 24, 2007, 06:59:34 PM
Do you mean 'gallery' folder or the whole mod?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 24, 2007, 07:01:04 PM
the gallery folder.
Title: Re: SMF Gallery
Post by: AANDROID on February 24, 2007, 07:02:46 PM
Okay, now it works, I just remaked the folder. You got my respect. Thanks!
 
Title: Re: SMF Gallery
Post by: MinasC on February 25, 2007, 07:55:27 PM
i installed the gallery to my smf 1.1.2/tp 0.971 portal , but encountered 2 dissapointing "problems" :

1) it doesn't support greek (and autorenamed my pics the same way it did to MatthewSchen) .

2) you can only upload pics to your server but not include to the gallery pics you've uploaded to another server (e.g. imageshack) .

the 1st was ungly , but the 2nd one i couldn't afford as i have very limited space and can't upload or let my members upload !!!

are there any solutions to those "problems" !!! another gallery maybe ??
Title: Re: SMF Gallery
Post by: vbgamer45 on February 25, 2007, 08:29:13 PM
I don't plan on offering links for images unless the image is then downloaded to the server. It would not work well since the gallery generates thumbnails and this would not be an option if you are linking an image.

 
Title: Re: SMF Gallery
Post by: Gourgi on February 25, 2007, 10:58:05 PM
vbgamer45 same problems with greek language in SMF 1.1.2 :(
fresh install and the only mod installed is TP 0.9.7.1.
i also tried the greek utf-8 translation found here : http://www.simplemachines.org/community/index.php?topic=148142.0
but nothing happened :(
my site is completely utf-8  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 25, 2007, 11:06:16 PM
What are the problems with the greek language for the gallery? Does it show up?
Title: Re: SMF Gallery
Post by: MinasC on February 26, 2007, 02:18:26 PM
I don't plan on offering links for images unless the image is then downloaded to the server. It would not work well since the gallery generates thumbnails and this would not be an option if you are linking an image.

 

fair enough !!! would be nice though , for people with not nearly enough space ... ::)
Title: Re: SMF Gallery
Post by: joe90 on February 28, 2007, 08:14:14 AM
Just tried to install this but conflicts with The Arcade Mod and gives an error

Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

This file was modified by the installation of the Arcade. Tried on a test forum, if I remove the Arcade I can install the Gallery but then when I try to put the Arcade back I get a different error. Is there a way round it? Can I have both?  
Title: Re: SMF Gallery
Post by: vbgamer45 on February 28, 2007, 08:40:02 AM
Yes installthe gallery anyway but you will need to copy the text strings from smfgallery.xml for modifications.english.php and copy them to your modifications.english.php
Title: Re: SMF Gallery
Post by: joe90 on February 28, 2007, 12:00:08 PM
OK installed it, on my test forum, thanks for that,

How do I find the text string I need, where is smfgallery.xml for modifications.english.php and where do I copy the string to in modifications.english.php

Sorry new to this


Thanks for your help so far

 
Title: Re: SMF Gallery
Post by: joe90 on February 28, 2007, 03:40:06 PM
Sorry don't understand what you are telling me to do, had a look at the file smfgallery.xml, are you saying copy all the contents of the file from where it starts

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM


to


</operation>
</file>
</modification>

and copy them to the modifications.english.php   ?????????
Title: Re: SMF Gallery
Post by: vbgamer45 on February 28, 2007, 04:33:33 PM
Just copy these text strings
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
Title: Re: SMF Gallery
Post by: joe90 on March 01, 2007, 04:12:22 AM
Thanks again, sorry to keep bothering you, but still not there yet. Did say I was new to this.

Found the modifications.english.php file and it just has the Arcade strings in. Tried to add the gallery strings at the top and also at the bottom but just end up with the text at the top of the forum. This is how it looks, clearly I have inserted it in the wrong place or I'm missing something. Help....

<?php
// Version: 1.1; Modifications

$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';   
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administarator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';?>

//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      

 
Title: Re: SMF Gallery
Post by: vbgamer45 on March 01, 2007, 08:33:06 AM
Make sure you have ?> at the end.
Title: Re: SMF Gallery
Post by: TrueSatan on March 01, 2007, 08:51:56 AM
He has one but it's in the wrong place:

Code: [Select]
// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';?>

 It's right at the end of the code above. Move that to the very end and put it on a line of its own...thus:

Code: [Select]
//END SMF Gallery Text Strings 
   
?>
Title: greek characters :(
Post by: Gourgi on March 01, 2007, 09:44:37 AM
What are the problems with the greek language for the gallery? Does it show up?
i can see tha gallery, i can also upload images but in the title - descritpion the greek characters are displayed wrong !
(see attachemnt below )
 
[edit] in the previous version of gallery that i used (v.1.6.6) in a 1.1 RC3 forum all worked well
Title: Re: SMF Gallery
Post by: vbgamer45 on March 01, 2007, 09:59:42 AM
I am not sure if I can support since I do not have a good understanding of UTF.
Title: Re: SMF Gallery
Post by: Gourgi on March 01, 2007, 10:48:53 AM
the thing is that i manually switch the encoding from my browser from UTF-8 to greek-windows charset and greek ISO-8859-7  but still no changes ... i continue to see strange letters in greek description :(
Title: Re: SMF Gallery
Post by: joe90 on March 01, 2007, 11:40:27 AM
Thanks for that Arcade and Gallery seem to be working fine now.
Title: Re: SMF Gallery
Post by: Gourgi on March 01, 2007, 04:40:10 PM
[edit] in the previous version of gallery that i used (v.1.6.6) in a 1.1 RC3 forum all worked well
strange ...
i just upgraded this old forum form 1.1 RC3 to 1.1.2 and the gallery looks ok with the greek characters ..
it seams like there is another issue with the other forum.
i 'll post back if i have news about the encoding thing ...
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 11:45:39 AM
Hi, can anyone tell me how can i add a gallery button to my Aa New Damage theme? I have made a gif image of the button.

Code: [Select]
// Show the start of the tab section.
echo '
<ul class="main-navigation">';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-home"><a href="', $scripturl, '">' , $txt[103] , '</a></li>' , $current_action == 'home' ? '' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-help"><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>' , $current_action == 'help' ? '' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-search"><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>' , $current_action == 'search' ? '' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-admin"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>' , $current_action == 'admin' ? '' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-profile"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>' , $current_action == 'profile' ? '' : '';


// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-messages"><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>' , $current_action == 'pm' ? '' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-calendar"><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>' , $current_action == 'calendar' ? '' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-members"><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>' , $current_action == 'mlist' ? '' : '';
Title: Re: SMF Gallery
Post by: vbgamer45 on March 02, 2007, 11:50:05 AM
Find
Code: [Select]
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-profile"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>' , $current_action == 'profile' ? '' : '';


Add after
Code: [Select]
// Gallery
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-gallery"><a href="', $scripturl, '?action=gallery">Gallery</a></li>' , $current_action == 'gallery' ? '' : '';
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 11:57:30 AM
I just did it but i cant see any button.. and i cant see any error about this..
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 12:33:46 PM
I got it thanks..i just made a few changes in style.css..
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 01:55:52 PM
Οκ, now i have another problem you can see it in the the picture below:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg53.imageshack.us%2Fimg53%2F5148%2Funtitled1vd0.th.gif&hash=ddee6fc0a63ebbaa93d0ddd0081d19b8) (http://img53.imageshack.us/my.php?image=untitled1vd0.gif)

After i add more than 3 pictures the theme is going biger.. :(
Any way to fix this?

 
Title: Re: SMF Gallery
Post by: vbgamer45 on March 02, 2007, 02:51:09 PM
You can limit it to 3 picutres per row by search for $maxrowlevel = 4; and change it to 3 to show three pictures per row.
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 02:52:42 PM
In which file do i search for that?
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 03:00:47 PM
Gallery.template.php found it...

Thanks..
Title: Re: SMF Gallery
Post by: NairB on March 02, 2007, 03:04:28 PM
Folks,

How can I move a members picture from one category to the next easily. Currently, I have to copy the picture to my desktop, delete it from the forum, then add it again to the other category on the forum.

Can we have a move picture link under the thumbnail??

thanks,

NairB

 
Title: Re: SMF Gallery
Post by: Photoshocker on March 02, 2007, 03:05:03 PM
Ok i hope this is my last question

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg159.imageshack.us%2Fimg159%2F6024%2Funtitled1gz0.th.gif&hash=2384aa0e07240a625b31b18fbd8a271d) (http://img159.imageshack.us/my.php?image=untitled1gz0.gif)

as you can see the tables are a little bit to the left can i move it to center?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 02, 2007, 03:31:10 PM
Folks,

How can I move a members picture from one category to the next easily. Currently, I have to copy the picture to my desktop, delete it from the forum, then add it again to the other category on the forum.

Can we have a move picture link under the thumbnail??

thanks,

NairB

 
I think the lite edition allows you to the edit picture and change the category it is located in.
Title: Re: SMF Gallery
Post by: NairB on March 02, 2007, 04:59:40 PM
Thankyou vbgamer45....I forgot about the category dropdown box list you see when you click the edit......it works a treat.

Thanks again friend.

NairB
Title: Re: SMF Gallery
Post by: Syndel on March 04, 2007, 09:08:39 PM
I just attempted to intall this mod in a FRESH install of SMF and nothing happens. No menu button, no admin area link. What is possibly going on?  
Title: Re: SMF Gallery
Post by: Coldfx on March 04, 2007, 09:43:10 PM
I just attempted to intall this mod in a FRESH install of SMF and nothing happens. No menu button, no admin area link. What is possibly going on? 

I assume you uploaded from the Package Manager, installed on default theme, and no errors were listed?
Title: Re: SMF Gallery
Post by: Syndel on March 04, 2007, 09:50:26 PM
That is right.
Title: Re: SMF Gallery
Post by: Ellion Cold on March 05, 2007, 12:17:43 AM
Is there any link with the faq to manual install?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2007, 12:21:49 AM
Make sure that all files in SMF are writable. Link only appears on the default theme.
Title: Re: SMF Gallery
Post by: Syndel on March 05, 2007, 12:32:35 AM
Everything is writable. I have no other mods, no other themes than the Default. Still it shows no errors in the installation but then redirects me to the Home area and not a shadow of this gallery in anywhere. No access to it in the Admin area, no nothing.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2007, 12:34:41 AM
Can you install any other mods? If not you would probably need to install the mod manually.
Title: Re: SMF Gallery
Post by: Therealmat on March 05, 2007, 09:02:07 AM
I tried to add a button to the saf-mc1 tp theme but this happens,
http://i58.photobucket.com/albums/g277/Therealmat/ishot-1-1.png
this is the code I have been using for the button
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>' : '';
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2007, 09:11:27 AM
Use the button code from your theme then change it to gallery  
Title: Re: SMF Gallery
Post by: Therealmat on March 05, 2007, 09:21:02 AM
What do I put in this bit?
$txt[' ']

Sorry for the questions, dont have a clue as to what I am doing. lol
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2007, 09:23:48 AM
Should be like this $txt['smfgallery_menu']
Title: Re: SMF Gallery
Post by: Therealmat on March 05, 2007, 09:29:18 AM
I fixed it  :D

Code: [Select]
// Show the [gallery] button.
echo '<li><a' , $current_action == 'gallery' ? ' class="active"' : '', ' href="', $scripturl, '?action=gallery">' , $txt[smfgallery_menu] , '</a></li>';

That is what I used for the SAF multicolour theme. :)

Thanks for the help vbgamer45. :)
Title: Re: SMF Gallery
Post by: pyrozz on March 05, 2007, 07:36:28 PM
Installed the gallery with no issues...

When an image is uploaded, no thumbnails are created...

The following Messages appear in the error log:

http://www.cxoc.net/index.php?action=gallery&amp;sa=add2 
2: rename(/home/cxoc/public/gallery/13_05_03_07_11_43_20.jpg_thumb,/home/cxoc/public/gallery/thumb_13_05_03_07_11_43_20.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/cxoc/public/Sources/Gallery.php
Line: 603
 
http://www.cxoc.net/index.php?action=gallery&amp;sa=add2 
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/cxoc/public/Sources/Gallery.php
Line: 562
 
http://www.cxoc.net/index.php?action=gallery&amp;sa=add2 
2: rename(/home/cxoc/public/gallery/13_05_03_07_11_42_46.jpg_thumb,/home/cxoc/public/gallery/thumb_13_05_03_07_11_42_46.jpg) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/cxoc/public/Sources/Gallery.php
Line: 603
 
http://www.cxoc.net/index.php?action=gallery&amp;sa=add2 
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/cxoc/public/Sources/Gallery.php
Line: 562

Its version 1.1.2
 
Any Suggestions?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2007, 08:14:52 PM
Do you have GD installed?
Admin -> Support and Credits
Title: Re: SMF Gallery
Post by: pyrozz on March 06, 2007, 06:20:02 AM
Installing the GD Library worked!

Thanks!
Title: Re: SMF Gallery
Post by: pixidustedu on March 07, 2007, 04:21:04 PM
Problem:
- Gallery menu item does not show in my general adminstration panel. I know it is there because there is a skipped line between "Server Settings" and "Current Theme". It is not clickable.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffarm1.static.flickr.com%2F164%2F413973420_c836383c71_o.png&hash=645bd3a6d2f1d2d37aa7fc6899e6f75c)
- Gallery-individual permissions do not show in the "Permissions" section of the board. They only show as skipped lines between "Personal Messaging" and "Member Profiles".
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffarm1.static.flickr.com%2F177%2F413973418_74d5a95daa_o.png&hash=51e74b87db7f2d831b54fe86feeaa615)

I have successfully installed the gallery mod, and I am able to access the gallery via http://www.myforum.net/forums/index.php?action=gallery.

I can successfully access the admin panel via http://www.myforum.net/forums/index.php?action=gallery;sa=adminset.

I have successfully added a tab [which i learned from reading this thread] to my index.template.php.

I do have a custom theme. What file do I edit to make the text show?  
Title: Re: SMF Gallery
Post by: vbgamer45 on March 07, 2007, 08:04:32 PM
Copy the text strings from modificaitons.english.php in themes/default/languages to  themes/yourtheme/lanuages/modificaitons.english.php
Title: SMF Gallery Lite
Post by: andycoll on March 08, 2007, 02:32:12 PM
SMF Version: SMF 1.1.2
Hi all

(O god hes back already)

i am trying to install SMF Gallery Lite

it loads up fine but when i click Apply Mod i get this error mesage
Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


and it shows this falier
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

any idea what i need to do

i only have the Default Theme
The default theme from Simple Machines. and the Babylon Theme installed
 
Title: Re: SMF Gallery
Post by: pixidustedu on March 08, 2007, 04:05:56 PM
Thanks! ~worked perfectly~
Title: Re: SMF Gallery
Post by: upgrant on March 08, 2007, 04:36:54 PM
Could someone please help me install this mod!!!!

When i install all seems successful .... but when i direct browser to gallery it goes to the home page.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 08, 2007, 04:44:24 PM
That means the mod did not install. Make sure all the files are writable.
Title: Re: SMF Gallery
Post by: upgrant on March 08, 2007, 04:52:38 PM
I believe that they all are!!! How do i check this?
Title: Re: SMF Gallery Lite
Post by: andycoll on March 10, 2007, 09:12:26 AM
Support requests for mods need to be placed in the correct support thread for the mod you are using, which would be: http://www.simplemachines.org/community/index.php?topic=114291.0

I have asked for it to be moved

Quote
Some advice, it sounds like you have other mods installed. And this is preventing your gallery mod installing. You could proceed with the install and then make the modifications to the files manually.

Please use the above URL for support on that mod though.

the only mod i had installed at the time was the admin note pad so i deleted it and tried again i also removed the only other theme i had installed which left me with one theme (SMF Defult) no mods but i still get the same warning mesage
Title: Re: SMF Gallery
Post by: vbgamer45 on March 10, 2007, 10:30:26 AM
What message do you recieve?
Title: Re: SMF Gallery
Post by: Taintedlore on March 10, 2007, 05:59:50 PM
SMF Version: SMF 1.1.2
Hi all

(O god hes back already)

i am trying to install SMF Gallery Lite

it loads up fine but when i click Apply Mod i get this error mesage
Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


and it shows this falier
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

any idea what i need to do

i only have the Default Theme
The default theme from Simple Machines. and the Babylon Theme installed
 

I am getting the same error also. I am using SMF 1.1.2 with a custom theme.
Mods installed: Custom Profile Field Mod 3.16
Redirection Boards 2.01
Member Awards 1.0.2
SMF Arcade 2.0.7
Title: Re: SMF Gallery
Post by: vbgamer45 on March 10, 2007, 06:02:06 PM
Open /Themes/default/languages/Modifications.english.php
Find
Code: [Select]
?>Make sure it is on its own line then try to install the mod again.
Title: Re: SMF Gallery
Post by: Taintedlore on March 10, 2007, 06:45:22 PM
Open /Themes/default/languages/Modifications.english.php
Find
Code: [Select]
?>Make sure it is on its own line then try to install the mod again.
Thanks, can install sucessfully now, problem solved. :)[
Title: Re: SMF Gallery
Post by: Taintedlore on March 10, 2007, 11:11:34 PM
Just one problem. I can view the link for the Gallery when logged in as admin, but not see the link when logged in as a regular member. Any ideas as to why that's happening?

Thanks in advance.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 11, 2007, 09:50:28 AM
Admin -> Permissions -> Set view gallery permission for each membergroup.
Title: Re: SMF Gallery
Post by: Ken. on March 12, 2007, 09:59:35 AM

Open /Themes/default/languages/Modifications.english.php
Find
Code: [Select]
?>Make sure it is on its own line then try to install the mod again.
Thanks, can install sucessfully now, problem solved. :)[

When having issues with something it’s always good to read through threads that are already posted about those issues… in other words;
“Thanks VB, you answered my question before I even had a chance to ask!!!”  :)
Worked like a charm.
Thanks... Ken
Title: Re: SMF Gallery
Post by: edwardsiow on March 13, 2007, 11:33:12 AM
after i have installed smf gallery, no thumbnails appear after i have uploaded the photos...

i am using smf 1.1.2 and tiny portal installed...using mySql and apache server...

don't have other mods installed and using default theme...

anybody know why? thanks for your help....your kindness much appreciate....
Title: Re: SMF Gallery
Post by: vbgamer45 on March 13, 2007, 05:56:24 PM
You need to have GD installed.
Check Admin -> Support and Credits GD needs to be listed.
Title: Re: SMF Gallery
Post by: dumbelljunkie on March 14, 2007, 08:42:58 AM
I've been struggeling with this mod all morning and I'm pretty pissed.
SMF 112, fresh install, PHP 4.3.11 MySQL 4.1.21, GD 2.0.28 compatible, Apache 2.0.53

Code: [Select]
512: package_flush_cache(): some files are still not writable
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Subs-Package.php
Regel: 1905

2: fopen(/home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Gallery.php): failed to open stream: No such file or directory
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Subs-Package.php
Regel: 1901

it generates about 40 errors to install, what the heck am I doing wrong here ?
Title: Re: SMF Gallery
Post by: Ken. on March 14, 2007, 09:00:54 AM
Most likely we'll have to wait for vbgamer45 to give you the right answer, but the first line in your error msg is saying that some files are not writable so while waiting for him I would try checking to be sure that the required files are set to 777.
Title: Re: SMF Gallery
Post by: edwardsiow on March 14, 2007, 10:19:01 AM
my GD version: bundled (2.0.28 compatible)

but no thumbnails appear....

hmm.....any help?
Title: Re: SMF Gallery
Post by: G6™ on March 14, 2007, 10:20:36 AM
I've been struggeling with this mod all morning and I'm pretty pissed.
SMF 112, fresh install, PHP 4.3.11 MySQL 4.1.21, GD 2.0.28 compatible, Apache 2.0.53

Code: [Select]
512: package_flush_cache(): some files are still not writable
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Subs-Package.php
Regel: 1905

2: fopen(/home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Gallery.php): failed to open stream: No such file or directory
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/forums/Sources/Subs-Package.php
Regel: 1901

it generates about 40 errors to install, what the heck am I doing wrong here ?

As ken said, make sure you have set the permissions to the /Sources/Gallery.php 755 or 777 depending on your host server settings, and try again.
Title: Re: SMF Gallery
Post by: Boottis on March 14, 2007, 01:48:05 PM
Hello! I would love to have some help...

I have upgraded SMF to 1.1.2 and SMF gallery to 1.7.1 and i have now a little error... Every time when a user watches a picture in Gallery it gives a error like this:

8: Undefined index: gallery_at
Tiedosto: /home/webadmin/www.>CENCORED<.net/html/Keskustelu/Themes/default/languages/Gallery.finnish.php (eval?)
Rivi: 695


What does that mean? I have copyed the language files all over again and it gives the same error again and again... The gallery works OK anyway but i have to delete 17 pages of errors everyday from SMF and it is quite boring...

If someone can help i would be very happy :-)
 
Title: Re: SMF Gallery
Post by: vbgamer45 on March 14, 2007, 07:56:16 PM
Make sure that you have the latest language files for your translatation.
New versions of the Gallery have the gallery_at language string.
Title: Re: SMF Gallery
Post by: edwardsiow on March 14, 2007, 08:35:35 PM
ok....finally i have solved the problem...

first time, i installed the SMF Gallery without GD library installed (PHP)...
so, i installed it after that...but i still can't view the thumbnail....
i try to uninstall the SMF Gallery and install again....this time i can see the thumbnail...
thanks god....i like to have this good mods....and successfully installed without problem....

thanks vbgamer45 and G6 for helping me solving the problem....

Title: Re: SMF Gallery
Post by: papados on March 14, 2007, 09:43:37 PM
Hi there! I have a small problem, when I try to view a picture before it is approved. I press on the thumbnail, and everything stucks. After that, I cannot browse anymore the forum and I need to delete the cookie file and log-in again. Is this a known issue?

edit: It was my fault. Sorry for the false alarm  :(

I would also like to make a suggestion, regarding pictures awaiting approval. I believe that it would be nice, if a moderator could see from this menu, which category the picture is uploaded to. And be able to affect that in this menu. Many members get confused and upload pictures to the wrong category, especially when they are uploading many pictures in the row.

Well done for this nice gallery. Of course the lite version is quite poor in functionality, however with some hand-made additions I did for personal use, it is fine.  :D ;)
Title: Re: SMF Gallery
Post by: Matthew Schenker on March 15, 2007, 12:50:31 PM
I'm interested in upgrading to the Pro version of this software.

Just want to make sure I don't have any issues:
I installed the Lite version in SMF 1.1.1
I then upgraded to SMF 1.1.2, and I had to do some tweaking of Gallery Lite to get it working (not fun)

My question is, if I install Gallery Pro will it go into my forum cleanly?  I really don't feel like tweaking code again.

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on March 15, 2007, 09:40:25 PM
What kind of issues were you having witht the lite edition?
Using a custom theme will always require one edit on the index.template.php of the custom theme.
Title: Re: SMF Gallery
Post by: Matthew Schenker on March 16, 2007, 07:26:39 AM
What kind of issues were you having witht the lite edition?
Using a custom theme will always require one edit on the index.template.php of the custom theme.

I'm using the default theme, and I had to manually change the menus to have "Gallery" appear and have it link to the files.
 
Title: No menu in german
Post by: ra-punzel72 on March 16, 2007, 09:54:32 AM
This does not work when the board is set to german -> there is no menu item for the configuration.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 16, 2007, 10:40:06 AM
This does not work when the board is set to german -> there is no menu item for the configuration.
You need to copy the txt strings from modifications.english.php to languages/modifications.yourlanguage.php


What kind of issues were you having witht the lite edition?
Using a custom theme will always require one edit on the index.template.php of the custom theme.

I'm using the default theme, and I had to manually change the menus to have "Gallery" appear and have it link to the files.
 
If it fails on the defaul ttheme I can manually install it on the default theme for you.
Title: Re: SMF Gallery
Post by: Ilovefoxes on March 18, 2007, 06:56:56 PM
I really like the mod.

Suggestions:
- Set as optional to display "max kb limit" and "max width and height";
- Allow to display on gallery index the latest images on categories and or a general latest images;
Title: Re: SMF Gallery
Post by: Photoshocker on March 18, 2007, 09:01:24 PM
Hi, is there any way to put my pictures with imageshack in the gallery?  
Title: Re: SMF Gallery
Post by: vbgamer45 on March 18, 2007, 09:12:11 PM
Not at this time pictures need to be directly uploaded.
Title: Re: SMF Gallery
Post by: thatguy on March 19, 2007, 06:35:11 PM
I have tried like 6 times to install this package but after install when I go to edit permissions, the area where the permissions for this package are supposed to be is blank. I have no idea why. I have tried in Firefox and IE7. Any idea what could causing that? I can't edit the permissions if I can't see them ! LoL.  
Title: Re: SMF Gallery
Post by: Photoshocker on March 19, 2007, 07:27:36 PM
What language are you using?
Title: Re: SMF Gallery
Post by: thatguy on March 19, 2007, 07:29:34 PM
English.  
Title: Re: SMF Gallery
Post by: vbgamer45 on March 19, 2007, 07:46:16 PM
English utf? Make sure you copy the txt strings to all modifications.language.php
Title: Re: SMF Gallery
Post by: thatguy on March 19, 2007, 07:50:09 PM
English utf? Make sure you copy the txt strings to all modifications.language.php

What does that mean? Sorry I thought this was simply click and install, I didn't know I had to edit code. Thanks though, I don't have the time for that.  
Title: Re: SMF Gallery
Post by: vbgamer45 on March 19, 2007, 08:49:44 PM
It is. But if you don't have time I understand I don't have time to explain how to do it either.
Title: Re: SMF Gallery
Post by: Photoshocker on March 20, 2007, 11:33:07 AM
Hi, is there any way to make the  pictures in the gallery to click on the image a popup window would show the full image with scrollbars?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 20, 2007, 07:36:05 PM
Not at this time maybe in the future.
Title: Re: SMF Gallery
Post by: indbjoe on March 22, 2007, 12:27:35 PM
Hi

After the installation SMF Gallery this happens: ( its only some of the text)
I have vers. SMF 1.1.2

please help!!!!


2006 SMFHacks.com ############################################ License Information: SMF Gallery is NOT free software. This software may not be redistributed. Links to http://www.smfhacks.com must remain unless branding free option is purchased. ############################################# */ function template_main() { global $db_prefix, $scripturl, $txt, $context, $ID_MEMBER, $modSettings, $boarddir,$boardurl; echo '
'; //Permissions $g_manage = allowedTo('smfgallery_manage'); $g_add = allowedTo('smfgallery_add'); if ($g_manage) { //Check if the gallery path is set if(empty($modSettings['gallery_path'])) { $modSettings['gallery_path'] = $boarddir . '/gallery/'; } //Warn the user if they are managing the gallery that it is not writable if (!is_writable($modSettings['gallery_path'])) echo '', $txt['gallery_write_error'], $modSettings['gallery_path'] . ''; } //Check if the gallery url has been set if not use the default if(empty($modSettings['gallery_url'])) { $modSettings['gallery_url'] = $boardurl . '/gallery/'; } //Get the Category if present @$cat = (int) $_REQUEST['cat']; //Check if a category is selected if($cat) { //Permissions if they are allowed to edit or delete their own gallery pictures. $g_edit_own = allowedTo('smfgallery_edit'); $g_delete_own = allowedTo('smfgallery_delete'); if($g_add && !($context['user']['is_guest'])) echo '
' . $txt['gallery_text_myimages'] . ' ' . $txt['gallery_text_search'] . '
'; $maxrowlevel = 4; echo '
'; //Show the pictures $dbresult = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE p.ID_MEMBER = m.ID_MEMBER AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__); $rowlevel = 0; while($row = mysql_fetch_assoc($dbresult)) { if($rowlevel == 0) echo ''; echo ''; if($rowlevel < ($maxrowlevel-1)) $rowlevel++; else { echo ''; $rowlevel = 0; } } if($rowlevel !=0) { //$cspan = $maxrowlevel - $rowlevel; //echo ''; echo ''; } mysql_free_result($dbresult); //Display who is viewing the picture. if (!empty($modSettings['gallery_who_viewing'])) { echo ''; } //Show return to gallery link and Show add picture if they can echo ' '; echo '
' . @$context['gallery_cat_name'] . '

'; echo '' . $txt['gallery_text_views'] . $row['views'] . '
'; echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB
'; echo $txt['gallery_text_date'] . timeformat($row['date']) . '
'; echo $txt['gallery_text_comments'] . ' (' . $row['commenttotal'] . ')
'; echo $txt['gallery_text_by'] . ' ' . $row['realName'] . '
'; if ($g_manage) echo ' ' . $txt['gallery_text_unapprove'] . ''; if ($g_manage || $g_edit_own && $row['ID_MEMBER'] == $ID_MEMBER) echo ' ' . $txt['gallery_text_edit'] . ''; if ($g_manage || $g_delete_own && $row['ID_MEMBER'] == $ID_MEMBER) echo ' ' . $txt['gallery_text_delete'] . ''; echo '
 


 
Title: Re: SMF Gallery
Post by: vbgamer45 on March 22, 2007, 07:36:46 PM
Doesn't sound like it was installed currently? When does that error occur?
Title: Re: SMF Gallery
Post by: indbjoe on March 23, 2007, 03:01:03 AM
Doesn't sound like it was installed currently? When does that error occur?

It happen right after Installation.

This is what happen.

Picture of my screen !
http://www.harstad.dk/Bilder/Error.jpg

Can I Install this manual? If yes, how?

Thanks!!
Title: Re: SMF Gallery
Post by: tlee on March 24, 2007, 08:23:08 PM
I just tried installing Gallery 1.7.1 on SMF 1.1.2. However, it's not instaling. It giives me an error that the version might be incompatible or that the package may be corrupted. What am I doing wrong?
Title: Re: SMF Gallery
Post by: indbjoe on March 26, 2007, 02:53:22 AM
Doesn't sound like it was installed currently? When does that error occur?

It happen right after Installation.

This is what happen.

Picture of my screen !
http://www.harstad.dk/Bilder/Error.jpg

Can I Install this manual? If yes, how?

Thanks!!

I have found out what the problem for my question is :) When I sett the Themes to default: POFF.. FIX! ;D

Espen
Title: Re: SMF Gallery
Post by: FreeSporePrints on March 26, 2007, 05:29:44 PM
Hi all!

I've installed the SMF Gallery Lite on my SMF 1.1.2, with default theme.

I've configured that also the Global Moderators can upload pics etc etc but into the forum the global moderators can't upload pics (but common members and the administrator yes!).

Why?!? Can anyone solve this enigma?

thank you all!
F.
Title: Re: SMF Gallery
Post by: Photoshocker on March 27, 2007, 07:27:38 PM
Check your permissions..
Title: Re: SMF Gallery
Post by: Teunel on March 28, 2007, 06:19:39 AM
Hi, First of all: Great mod! I can't wait to use it. I tried to install it with the package manager, but that didn't work (probably because I use a dutch version, or because I installed some other mods). When I did everything manually, everything went fine, untill I had to put in the MySQL queries. I did this manually too, because the galleryinstall.php didn't work.

When I try this in phpMyAdmin, it gives me this error:
Code: [Select]
SQL-query:

`ID_PICTURE` int(11) NOT NULL auto_increment, `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0', `date` int(10) unsigned NOT NULL default '0', `title` VARCHAR(100) NOT NULL, `description` text, `views` int(10) NOT NULL default '0', `filesize` int(10) NOT NULL default '0', `height` int(10) NOT NULL default '0', `width` int(10) NOT NULL default '0', `filename` tinytext, `thumbfilename` tinytext, `commenttotal` int(10) NOT NULL default '0', `ID_CAT` int(10) NOT NULL default '0', `approved` tinyint(4) NOT NULL default '0', `allowcomments` tinyint(4) NOT NULL default '0', `keywords` VARCHAR(100) NOT NULL, PRIMARY KEY (`ID_PICTURE`))", __FILE__, __LINE__)

MySQL retourneerde: Documentatie
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ID_PICTURE` int(11) NOT NULL auto_increment,
`ID_MEMBER` mediumint(8) unsigned ' at line 1

What am I doing wrong? :(
 
Title: Re: SMF Gallery
Post by: TalkNFC on March 29, 2007, 05:54:25 AM
Is there not a security issue with leaving the gallery folder chmod at 777?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 29, 2007, 07:49:25 AM
No there really isn't but you can keep it at 755 instead of 777
Title: Re: SMF Gallery
Post by: papados on March 30, 2007, 11:04:16 AM
However, you can always copy the index.php file from your attachments folder to the gallery folder, so that not everyone can browse your gallery folder.

It works for me at least.
Title: Re: SMF Gallery
Post by: TalkNFC on March 30, 2007, 12:50:25 PM
No there really isn't but you can keep it at 755 instead of 777
CHMOD 755
Warning Gallery path is not writable! /home/tsfan/public_html/forum/gallery/
Title: Re: SMF Gallery
Post by: vbgamer45 on March 30, 2007, 07:44:17 PM
Guess then try 777
Title: Re: SMF Gallery
Post by: bbulldog on March 31, 2007, 04:10:53 PM
This does not work when the board is set to german -> there is no menu item for the configuration.
You need to copy the txt strings from modifications.english.php to languages/modifications.yourlanguage.php

Dont you also need to have other language versions of these files in your languages directory?
Gallery.english.php
Gallery.english-utf8.php

I have just copied them to

Gallery.german.php
Gallery.german-utf8.php

will translate them later.

plus the file languages/who.enlish.php is changed too
 
Title: Re: SMF Gallery
Post by: vbgamer45 on March 31, 2007, 04:35:25 PM
I have a german language pack at
http://www.smfhacks.com/index.php/topic,111.0.html
Title: Re: SMF Gallery
Post by: bbulldog on March 31, 2007, 04:46:18 PM
ah great just what i need  ;D
Title: Re: SMF Gallery
Post by: Teunel on April 01, 2007, 11:00:48 AM
Hi, First of all: Great mod! I can't wait to use it. I tried to install it with the package manager, but that didn't work (probably because I use a dutch version, or because I installed some other mods). When I did everything manually, everything went fine, untill I had to put in the MySQL queries. I did this manually too, because the galleryinstall.php didn't work.

When I try this in phpMyAdmin, it gives me this error:
Code: [Select]
SQL-query:

`ID_PICTURE` int(11) NOT NULL auto_increment, `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0', `date` int(10) unsigned NOT NULL default '0', `title` VARCHAR(100) NOT NULL, `description` text, `views` int(10) NOT NULL default '0', `filesize` int(10) NOT NULL default '0', `height` int(10) NOT NULL default '0', `width` int(10) NOT NULL default '0', `filename` tinytext, `thumbfilename` tinytext, `commenttotal` int(10) NOT NULL default '0', `ID_CAT` int(10) NOT NULL default '0', `approved` tinyint(4) NOT NULL default '0', `allowcomments` tinyint(4) NOT NULL default '0', `keywords` VARCHAR(100) NOT NULL, PRIMARY KEY (`ID_PICTURE`))", __FILE__, __LINE__)

MySQL retourneerde: Documentatie
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ID_PICTURE` int(11) NOT NULL auto_increment,
`ID_MEMBER` mediumint(8) unsigned ' at line 1

What am I doing wrong? :(
 

Sorry, but does anybody what's wrong here?  
Title: Re: SMF Gallery
Post by: papados on April 02, 2007, 10:04:48 PM
The "report picture" function doesn't support multilanguage characters (at least not for me (greek)).

I'm using utf8 character set.

I fixed the error replacing this line in function ReportPicture2 (in Gallery.php):

Code: [Select]
$comment = htmlentities($_REQUEST['comment'],ENT_QUOTES);
with this:

Code: [Select]
$comment = htmlspecialchars($_REQUEST['comment'],ENT_QUOTES);
cheers.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2007, 10:18:27 PM
Thanks for the fix.
vbgamer45
Title: Re: SMF Gallery
Post by: perplexed on April 07, 2007, 01:32:32 PM
I would still to have a link on posts that takes people to a members 'myimages' page, can someone tell me how to do this please?
 
Title: In search of an SMF Gallery package
Post by: jayc on April 08, 2007, 11:25:42 AM
I have recently started out with SMF after working with IPS and BBPHP in the past, not to mention bbs systems going back into the 1980's.

I am in search of a gallery package for some personal systems that I have up.  I have tried out both coppermine and gallery in the past, but am attracted to the SMFHacks Gallery, but I notice there has been no chatter about this package on the SMF board in the last six months or so, is this because there is a problem, or because there are so few problems that no one says anything

jayr
Title: Re: SMF Gallery
Post by: vbgamer45 on April 08, 2007, 07:54:07 PM
The package is fine. For more information on SMF Gallery visit http://www.smfhacks.com that is the home of SMF Gallery.
Title: Re: SMF Gallery
Post by: janiceihg on April 09, 2007, 06:45:18 PM
ok, I think I did the gallery - but I can't get to it....if I just want to place a link somewhere on my forum to the gallery - what is the proper link? Should it be my sitre and then /gallery or should it be /?action=gallery

TIA for any help or insight.

Also, I am not sure I changed anything to 777 - I did the package download straight from the admin area - is that correct?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 09, 2007, 07:50:22 PM
Proper link for gallery is http://www.yoursite.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: perplexed on April 10, 2007, 07:11:32 AM
I would still to have a link on posts that takes people to a members 'myimages' page, can someone tell me how to do this please?
 

anyone?   
Title: Re: SMF Gallery
Post by: fondled on April 10, 2007, 11:07:06 AM
solved  ;D

Title: Re: SMF Gallery
Post by: pixidustedu on April 10, 2007, 11:37:11 AM
Hi, vbgamer!

Just wondering if it is possible to import my old phpbb2 album into the SMF Gallery?

tia
Title: Re: SMF Gallery
Post by: vbgamer45 on April 10, 2007, 07:46:10 PM
Not currently possible to import from phpbb2
Title: Re: SMF Gallery
Post by: ragots on April 11, 2007, 06:54:00 PM
Hello, I would like guest to be able to leave comments. I checked that in Permissons but guests still cannot leave comments. And I would like guests to upload pics too.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 11, 2007, 07:44:03 PM
Currently not possible in the Lite addition. I think I added guest comment support in the pro addition.
Title: Re: SMF Gallery
Post by: hato17 on April 14, 2007, 05:36:40 AM
Hello


i would like to have images titles on thumbnails view.

how can i do that ? have you think about that in the next update ?

another thing, is it possible to view new images posted to gallery
in the index of a website ?

sorry for my english :-\

thx
Title: Re: SMF Gallery
Post by: perplexed on April 14, 2007, 03:34:44 PM
I would still to have a link on posts that takes people to a members 'myimages' page, can someone tell me how to do this please?
 

anyone?   

come on, someone must know how to do this, please?
Title: Re: SMF Gallery
Post by: perplexed on April 15, 2007, 04:16:02 PM
I discovered a problem with gallery lite today.  I have 5 categories and I was trying to move one up from the bottom to the top ie  from position 5 to position 1.  I was able to move it up to position 4 but then when I tried to move it up again it said :

An Error Has Occurred!
There is no category above the current one.

But there are several above it.  I can move it back down to position 5 but nothing else.

So I tried to move one of the top ones down ie move 1 down to 2, and I got the same error message, so I cant move any of the gallery categories?
Title: Re: SMF Gallery
Post by: uwesubaqua on April 16, 2007, 09:42:06 AM
can you upload more than one image at a time?

and what themes work with it?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2007, 07:37:36 PM
Lite edition you can only upload one image at a time.
Works with all themes just need to add a button/link to the gallery.
Title: Re: SMF Gallery
Post by: nitsua on April 16, 2007, 08:35:16 PM
okay awesome mod but i have a problem, when a picture is uploaded it wont show. i am using default theme
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2007, 08:42:45 PM
Do you have GD installed? Admin -> Support and Credits
If so then check your path settings for gallery url and gallery path.
Title: Re: SMF Gallery
Post by: nitsua on April 16, 2007, 08:46:15 PM
whats GD?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2007, 09:02:27 PM
Handles image functions for PHP
http://us2.php.net/gd
Title: Re: SMF Gallery
Post by: keith021773 on April 16, 2007, 09:16:04 PM
I have this mod installed and I really want to uninstall it..     I have version 1.6.6 but there is no uninstall for it...     What is the easiest way to delete it?    Thanks for your help.
Title: Re: SMF Gallery
Post by: nitsua on April 17, 2007, 02:05:07 PM
do you have to have GD to use the gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 17, 2007, 07:51:46 PM
Yes required for thumbnails.
Title: Re: SMF Gallery
Post by: nitsua on April 17, 2007, 07:54:13 PM
can you give me that in a .zip?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 17, 2007, 08:26:18 PM
GD is found on this page
http://www.libgd.org/releases/
You need to have access to your php config to enable it.
Title: Re: SMF Gallery
Post by: calv on April 17, 2007, 10:43:52 PM
Hi,
Ive just installed this great little mod, but I cant see it? It looks like the gallery link under the admin area didnt work, as there a blank space?
Im using smf 1.1.2 and a custom mod. Any help appreciated! Im still fairly new to this stuff...  8)  Said install ran successfully? lol

TIA
Title: Re: SMF Gallery
Post by: calv on April 18, 2007, 04:01:40 AM
Hiya's,
anybody? still playing, keen to get this working before I buy the pro version? Will I have this problem too?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 18, 2007, 07:58:41 AM
You will need to copy the text from themes/default/languages/modifications.english.php to themes/yourthemelanguages/modifications.english.php  if that file exists.

Also you will need to copy the text strings to any other language that you have and want the information to appear
themes/default/languages/modifications.yourlanguage.php
Title: Re: SMF Gallery
Post by: calv on April 19, 2007, 03:20:16 AM
Hi vbgamer45  8)
thats fixed the blank bits thanks! Can now see the gallery config in the Admin ... Just having problem viewing the gallery? Ive added a picture to test it. Also  enabled permissions for guest, there's no enable buttons for mods? guess they can view by default?

cheers!
Title: Re: SMF Gallery
Post by: wesleyuk on April 19, 2007, 05:02:24 AM
does it work with SMF 1.2?

i installed this mod but got error in laugnage.php. i ignored the warning and installed it. cant find the gallery anywhere in my SMF lol guess it's cos error or wrong version?

thanks?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 19, 2007, 07:54:50 AM
Yes it works with the latest SMF what was the error?
And are you using custom themes?
Title: Re: SMF Gallery
Post by: wesleyuk on April 19, 2007, 08:21:31 AM
Quote
1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed

got many themes installed but use default theme when apply this mod

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on April 19, 2007, 08:26:49 AM
Open up /Themes/default/languages/Modifications.english.php

Add before ?>

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
Title: Re: SMF Gallery
Post by: wesleyuk on April 19, 2007, 08:33:20 AM
cant find "?>" anywhere.; very odd!

Title: Re: SMF Gallery
Post by: calv on April 19, 2007, 08:43:27 AM
Hi vbgamer45,
Ive already done this as you suggested in you previous post, fixed the blank bits but still cant see a gallery? Where should it be located? Ive added pic's but cant view? something small somewhere...

TIA!
Title: Re: SMF Gallery
Post by: calv on April 19, 2007, 08:54:09 AM
hi vbgamer45,
ok got it working when I type in  http://sitename.com/forum/index.php?action=gallery into the url. 8) All lookn pretty funky 
I could add a button to make this work but have you got this coded to add a buitton elsewhere? dont really like to hack code... findn it pretty wierd how it got permission checkboxes under guest and members only, no mods? like the idea of members only to view... has some great potential! Pretty keen to get the advance version of this, guess you wrote this too vbgamer45? if so will I have the same install problems?

thanks!

Title: Re: SMF Gallery
Post by: bbulldog on April 19, 2007, 09:22:20 AM
It should add a button at the top of the board where calendar, members, logout is.
Title: Re: SMF Gallery
Post by: bbulldog on April 19, 2007, 09:25:46 AM
cant find "?>" anywhere.; very odd!


that should be the last thing on your modifications.php!! but its missing from yours. that is why the entries are not being added.

try this file, its your file with the strings added for the gallery.

Title: Re: SMF Gallery
Post by: calv on April 19, 2007, 11:51:32 PM
no buttons up the top near my calander?  what code does this where? so I can check it's ok... learning learning...
Title: Re: SMF Gallery
Post by: perplexed on April 20, 2007, 07:43:29 AM
I would still to have a link on posts that takes people to a members 'myimages' page, can someone tell me how to do this please?
 

anyone?   

come on, someone must know how to do this, please?


I discovered a problem with gallery lite today.  I have 5 categories and I was trying to move one up from the bottom to the top ie  from position 5 to position 1.  I was able to move it up to position 4 but then when I tried to move it up again it said :

An Error Has Occurred!
There is no category above the current one.

But there are several above it.  I can move it back down to position 5 but nothing else.

So I tried to move one of the top ones down ie move 1 down to 2, and I got the same error message, so I cant move any of the gallery categories?


bumping both, sorry to be annoying but I still need help
Title: Re: SMF Gallery
Post by: vbgamer45 on April 20, 2007, 07:50:13 AM
That error I never fixed yet for the Lite edition.
Title: Re: SMF Gallery
Post by: nitsua on April 20, 2007, 06:24:09 PM
how do i install gd?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 20, 2007, 07:49:07 PM
Search on google you need access to configure php
Title: Re: SMF Gallery
Post by: mrgray on April 21, 2007, 02:40:27 PM
I get this error from the free gallery:

8: Undefined index: smfgallery_admin
File: /blah/blah/blah/blah/ufodbase/Sources/Subs.php
Line: 2759

Any ideas?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2007, 05:04:04 PM
Missing the text string in modifications.english.php
Title: Re: SMF Gallery
Post by: calv on April 21, 2007, 06:07:21 PM
Hi vbgamer,
no buttons up the top near my calander?  what code does this where? so I can check it's ok... learning learning...
as asked before, very keen to get this going...  Will I have these problems with the pro version? the members image gallery is a great necessity for my requirements... think Im wasting my time here with the lite version. sorry to be a pain need to get this sorted or find an alternative...
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2007, 06:36:32 PM
Need help on adding a menu button/link for a custom theme if so attach the index.template.php file.
Title: Re: SMF Gallery
Post by: calv on April 22, 2007, 05:33:48 AM
vbgamer,
very consice clearly written answer...
Im quite capable to do that... as Ive said too  ::)

Plesae answer my question and read my full posts if you want to sell your gallery code.

I want it to do what you say it does, members "myimages" is very important to me...  It doesn’t exist? and from what Ive read it doesn’t work anyway?

I very keen to purchase your full version but dubious about paying for something that may not work! Would cost me more in my own development time if any problems...

Has anyone had any success with the pro version on 1.1.2 and custom mod's?  Id like to know the features vbgamer has listed will work or require work if Im paying for it...  might write my own if it this hard. By the time I work out your code I could build my own!
Title: Re: SMF Gallery
Post by: perplexed on April 22, 2007, 10:24:06 AM
I would still to have a link on posts that takes people to a members 'myimages' page, can someone tell me how to do this please?
 

anyone?   

come on, someone must know how to do this, please?


Ok it's taken a while but I finally worked this out by myself - yay me for learning new things :)



I discovered a problem with gallery lite today.  I have 5 categories and I was trying to move one up from the bottom to the top ie  from position 5 to position 1.  I was able to move it up to position 4 but then when I tried to move it up again it said :

An Error Has Occurred!
There is no category above the current one.

But there are several above it.  I can move it back down to position 5 but nothing else.

So I tried to move one of the top ones down ie move 1 down to 2, and I got the same error message, so I cant move any of the gallery categories?


bumping both, sorry to be annoying but I still need help

That error I never fixed yet for the Lite edition.

It would be nice if you could fix it, thanks :)
Title: Re: SMF Gallery
Post by: vbgamer45 on April 22, 2007, 10:26:22 AM
Maybe one day too busy right now with other things to work on free stuff.
Title: Re: SMF Gallery
Post by: dyota on April 22, 2007, 10:36:25 PM
Could we make 5 thumbnail of newest pics that appear in the certain of forum. Sample attached
Title: Re: SMF Gallery
Post by: perplexed on April 23, 2007, 05:46:52 AM
Maybe one day too busy right now with other things to work on free stuff.

ok, thanks for your reply.  Perhaps you could put a note on the mod page that this is a known problem to save time with other people asking the same question once they notice it?

thanks again
Title: Re: SMF Gallery
Post by: johnik on April 25, 2007, 07:42:29 AM
How doI get the link button in the default theme? It was there when I installed SMF Gallery but disappeared the next time I logged on. I've been reading this post for one hour now, and can not see how to solve this.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2007, 07:59:09 AM
Make sure that permissions for each group that you want have view gallery.
Title: Re: SMF Gallery
Post by: johnik on April 25, 2007, 08:31:47 AM
Make sure that permissions for each group that you want have view gallery.

Well, ther's no place to do that. Also I discovered that in the left menu under configuration, there should link to the gallery settings which is not showing. (It's in the html source, but for some kind of reason it does not show as a link or text.) Another thing is that under Members->Permissions I have a lot of check boxes to the right without any description..

And the last thing: I can access the gallery by typing the url for it in IE7 for all users.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2007, 08:34:04 AM
That's a common issue search for other posts in this topic on that.
Title: Re: SMF Gallery
Post by: johnik on April 25, 2007, 08:42:41 AM
That's a common issue search for other posts in this topic on that.

Finally understood it. Thanks guys.
Title: Re: SMF Gallery
Post by: rhommel on April 25, 2007, 01:41:10 PM
How can I fix the redirectexit problem with this gallery when using joomla/smf bridge by joomlahacks?

Joomla 1.0.12
SMF 1.1.2
Jommla-SMF Bridge by JoomlaHacks


When trying to add/comment/modify boards or images, it goes to the stand alone forum. the redirect is this

redirectexit('action=gallery;sa=view;id=' . $id);

is there any way to fix this? I really want to purchas the smf gallery pro but this little problem is preventing me from doing so. I wanna use it here

http://www.canonphotographers.net

thank you
Title: Re: SMF Gallery
Post by: mrgray on April 25, 2007, 06:43:38 PM
Hello,

I need to manually remove this mod because the automatic package uninstall doesn't work for me. Can someone tell me how to get this done?

I am using the newest versions of SMF and Tiny Portal.

I am getting a cascade of error messages in the error log section of maintenance.


Thank you!
Title: Re: SMF Gallery
Post by: John S on April 25, 2007, 09:28:06 PM
hi, im using gallerylite - is there a way i can:

1/ create a personal gallery for each profile, or

2/ display the latest 5 images of a user in their profile and link that to their 'my images'

please help me do this or provide me with the code necessary, thanks guys
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2007, 09:31:21 PM
Those two things are not in the lite edition.
Title: Re: SMF Gallery
Post by: mrgray on April 25, 2007, 10:12:31 PM
Hello,

I need to manually remove this mod because the automatic package uninstall doesn't work for me. Can someone tell me how to get this done?

I am using the newest versions of SMF and Tiny Portal.

I am getting a cascade of error messages in the error log section of maintenance.


Thank you!
Title: Re: SMF Gallery
Post by: bbulldog on April 26, 2007, 02:40:35 AM
what are the error messages? could it be a language file problem?
Title: Re: SMF Gallery
Post by: mrgray on April 26, 2007, 03:22:14 AM
Hi bbulldog,

Quote
Undefined index: smfgallery_admin
File: /home/html/ufodbase/Sources/Subs.php
Line: 2757

Line 2757:

Code: [Select]
'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',

Thanks 4 your help!
Title: Re: SMF Gallery
Post by: bbulldog on April 26, 2007, 07:49:16 AM
If you go into your theme folder and then in the languages folder open this file Modifications.english.php and see the following is in there, if not add it.

// Version: 1.1; Modifications

//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


or if you have another language look in that language file.
ie Modifications.german.php
Title: Re: SMF Gallery
Post by: mrgray on April 26, 2007, 05:35:31 PM
Thanks bbulldog,

But I'm trying to get rid of the gallery. I uninstalled so these errors are an aborition I need to remove.

If I were to back up the database, backup my entire FTP, and reinstall everything, would my forum posts still be there? I have about 800 posts I don't want to lose.

Thanks bud!
Title: Re: SMF Gallery
Post by: bbulldog on April 27, 2007, 03:05:09 AM
Line 2757 is still a part of the gallery, if you want to delete the gallery then this line must be removed, but be careful if you do it by hand.
It looks to me as if not everything was deleted when you uninstalled it.
Title: Re: SMF Gallery
Post by: mrgray on April 27, 2007, 03:57:56 AM
Thanks bulldog!

I don't know what to do. So If I remove the line cleanly the error should go away? I'm scared to do it because there must be more code to it. Maybe?
Title: Re: SMF Gallery
Post by: bbulldog on April 27, 2007, 04:19:30 AM
there probably is more code

these are the files that are changed

ThemseDirectory/language/Modifications.english.php
ThemseDirectory/language/Who.english.php
themedir/index.template.php
source/Subs.php
source/ManagePermissions.php

if you want you can send them to me and i can check them out?

I will send a PM with my work mail addy
Title: Re: SMF Gallery
Post by: TrueSatan on April 27, 2007, 04:22:21 AM
Please use http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/) and into it put the mod package file...it will output all the details of the code changes made by this mod and the files affected. Go through those files reversing the changes.
Title: Re: SMF Gallery
Post by: mrgray on April 27, 2007, 04:23:08 AM
ok

Thank you very much!

1:30 am now. I better wait till tomorrow. I will report back then.

THX!!!
Title: Re: SMF Gallery
Post by: bbulldog on April 27, 2007, 04:25:09 AM
@TrueSatan thats a cool site thanks
Title: Re: SMF Gallery
Post by: mrgray on April 28, 2007, 05:37:19 AM
Very great website!

I'm in a contest for site of the month so better wait till after. Only a couple days left.

 ;)
Title: Re: SMF Gallery
Post by: sessus on April 29, 2007, 04:29:38 AM
I have the latest SMF and TP installed. Everything seems to work fine. The only problem that I experience is tha display of "Gallery Configuration". Rather than being displayed within the normal Administration are, TP and admin display are overlayed (see attached picture).

This is a fresh install without any theme modifications.

- sessus
Title: Re: SMF Gallery
Post by: vbgamer45 on April 29, 2007, 03:39:52 PM
That is normal. You will need to edit the tiny portal code for the gallery to show its own window.
Title: Re: SMF Gallery
Post by: lwjuan on April 30, 2007, 10:47:14 PM
I can't view the thumbnails of my pictures after a moved server..My errors..

8: Undefined index: gallery_text_oldpicture
File: /home/lwjuan/domains/lwjuan.com/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 621

2: move_uploaded_file(/home/lwjuan/domains/lwjuan.com/public_html/forum/gallery1_30_04_07_10_11_55.gif) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/lwjuan/domains/lwjuan.com/public_html/forum/Sources/Gallery.php
Line: 596

2: getimagesize(/home/lwjuan/domains/lwjuan.com/public_html/forum/gallery1_30_04_07_10_11_55.gif) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/lwjuan/domains/lwjuan.com/public_html/forum/Sources/Subs-Graphics.php
Line: 242

2: rename(/home/lwjuan/domains/lwjuan.com/public_html/forum/gallery1_30_04_07_10_11_55.gif_thumb,/home/lwjuan/domains/lwjuan.com/public_html/forum/gallerythumb_1_30_04_07_10_11_55.gif) [<a href='function.rename'>function.rename</a>]: No such file or directory
File: /home/lwjuan/domains/lwjuan.com/public_html/forum/Sources/Gallery.php
Line: 603

I tried to delete the folder and re-create it..still can't work..the folder permission is 777..is it my gallery path is wrong or the codings?

And..another error is the menu button..pls see the pic that i attached..thx..
Title: Re: SMF Gallery
Post by: mrgray on May 01, 2007, 04:29:12 AM
Be patient. Hundreds of people before you in many sections.

:)
Title: Re: SMF Gallery
Post by: lwjuan on May 01, 2007, 09:48:10 AM
anyone can help me?
Title: Re: SMF Gallery
Post by: TrueSatan on May 01, 2007, 10:29:23 AM
That is normal. You will need to edit the tiny portal code for the gallery to show its own window.

 Actually clicking the LHS control button at the extreme RHS of the main navigation bar would collapse the LHS blocks of Tiny Portal so as to allow the centre area to be full screen width (click it again to re-expand them when done)...that might well do all that is needed.
Title: Re: SMF Gallery
Post by: lwjuan on May 01, 2007, 11:16:07 AM
problems solved :)
Title: Re: SMF Gallery
Post by: dimdom on May 02, 2007, 05:33:35 AM
I ve got a 1.1.2 SMF installed. I use it with english configuration but all the articles and comments are written in Greek (Hellas). No problem with that and no errors at all.

I installed lite gallery with no errors but in default theme and in black22 theme (the themes I use in my site) when i am trying to write something in Greek (ie the name of a new category or a comment) strange symbols appear instead of normal letters.

In the error log i have these 2 errors for every written comment in gallery:

Code: [Select]
http://www.tttttttttexample.com/index.php?action=gallery;sa=comment;id=2

8: Undefined offset: 533
File: /home/ttttttttt/public_html/Themes/default/languages/Post.english.php (eval?)
Line: 906



http://www.tttttttttexample.com/index.php?action=gallery;sa=comment;id=2

8: Undefined offset: 532
File: /home/tttttttt/public_html/Themes/default/languages/Post.english.php (eval?)
Line: 905

Any thoughts?
Title: Re: SMF Gallery
Post by: dimdom on May 02, 2007, 07:12:18 AM
I managed to see the right greek characters in gallery by changing the attributes (utf-8) to SMF sql tables.

But while everything now works fine I keep having the errors mentioned in my previous post  in errors log when I submmit a comment....(look one post above).
Title: Re: SMF Gallery
Post by: Hadrian on May 05, 2007, 10:22:56 AM
i like this mod a lot vary nice thanks  :)
Title: Re: SMF Gallery
Post by: Pranav on May 05, 2007, 10:19:11 PM
I am having problem installing.In the install it shows this -
1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed

After installing it shows this in error log -
Quote
http://www.ulgaming.net/forum/index.php?action=gallery;sa=adminset
Apply Filter: Only show the errors with the same message
8: Undefined index: smfgallery_admin
File: /home/ulgaming/public_html/forum/Sources/Subs.php
Line: 2735

and

Quote
http://www.ulgaming.net/forum/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: smfgallery_admin
File: /home/ulgaming/public_html/forum/Sources/Subs.php
Line: 2735
Title: Re: SMF Gallery
Post by: vbgamer45 on May 05, 2007, 10:24:12 PM
Add these text strings to your modifications.english.php file before the ?>

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
Title: Re: SMF Gallery
Post by: Gorm on May 06, 2007, 05:48:05 AM
I want to show max filesize along with maxheight and maxwidth on the upload page. Is this posible?

/Johan
Title: Re: SMF Gallery
Post by: vbgamer45 on May 06, 2007, 09:06:47 AM
Yes you would need to edit the Gallery.template.php file.
Title: Re: SMF Gallery
Post by: Gorm on May 06, 2007, 11:21:31 AM
Yes you would need to edit the Gallery.template.php file.

Thanks, I have managed to figure that out myself, what I dont know is what and where I must edit.  ::)

/Johan
Title: Re: SMF Gallery
Post by: John S on May 06, 2007, 07:28:03 PM
Can we add more than one photo attachment in the same time?

Can we have a link at the bottom that says: "more attachments" and then when clicked will create another upload box underneath and the user can upload more photos.. instead of uploading then going back and clicking the upload again etc etc..

Please let me know if i'd be able to do this.

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on May 06, 2007, 07:50:13 PM
That is not built into Lite.
Title: Re: SMF Gallery
Post by: John S on May 06, 2007, 11:40:56 PM
wats the code for me to allow this feature?
Title: Re: SMF Gallery
Post by: dimdom on May 07, 2007, 06:05:13 AM
I ve got a 1.1.2 SMF installed. I use it with english configuration but all the articles and comments are written in Greek (Hellas). No problem with that and no errors at all.

I installed lite gallery with no errors but in default theme and in black22 theme (the themes I use in my site) when i am trying to write something in Greek (ie the name of a new category or a comment) strange symbols appear instead of normal letters.

In the error log i have these 2 errors for every written comment in gallery:

Code: [Select]
http://www.tttttttttexample.com/index.php?action=gallery;sa=comment;id=2

8: Undefined offset: 533
File: /home/ttttttttt/public_html/Themes/default/languages/Post.english.php (eval?)
Line: 906



http://www.tttttttttexample.com/index.php?action=gallery;sa=comment;id=2

8: Undefined offset: 532
File: /home/tttttttt/public_html/Themes/default/languages/Post.english.php (eval?)
Line: 905

Any thoughts?

Not a solution for the above errors?
Title: Re: SMF Gallery: Tags?
Post by: merosler on May 08, 2007, 09:43:18 PM
Is there a way to integrate the "keywords" I associate in the pictures I upload in the gallery with my "Tags" page for the whole site?

...My tags page displays all the tags associated with just the message board posts.. it would be great to also integrate the photo gallery key words into this "tags" page

thanks,!
matt
Title: Re: SMF Gallery
Post by: vbgamer45 on May 08, 2007, 09:48:32 PM
Is there a way to integrate the "keywords" I associate in the pictures I upload in the gallery with my "Tags" page for the whole site?

...My tags page displays all the tags associated with just the message board posts.. it would be great to also integrate the photo gallery key words into this "tags" page

thanks,!
matt

Currently that is something I could look into intergrating with the Tag Mod.
Title: Re: SMF Gallery
Post by: hotrod on May 09, 2007, 03:54:38 AM
Could we make 5 thumbnail of newest pics that appear in the certain of forum. Sample attached

Yes please.. or 10 thumb's ? Or is this posible already ?
regards Hotrod  ;)
Title: Re: SMF Gallery
Post by: vbgamer45 on May 09, 2007, 07:57:30 AM
I have a mod for that for in the Pro edition.
Title: Re: SMF Gallery
Post by: hein on May 11, 2007, 09:10:06 AM
hi there, great mod ;)
thanks a lot for your work

just one question..
how can i integrate gallery to the linktree?
i mean that when i enter the gallery i see the linktree with the gallery on it...
i currently manage to get the linktree on the gallery page... but it only shows this (site name > forum)... i want it to look like (site name > forum > gallery) and hopelly when i move to other section of the gallery, for example a galery category, the link tree show more detailed information (site name > forum > gallery > category ) etc..
in a few words.. fully integrate the linktree to the smf gallery...

hope it can be done, and it isnt very complicated..

greetings.

pd: sry for my english..
Title: Re: SMF Gallery
Post by: watt on May 12, 2007, 01:41:25 AM
thank you for cool mod
Title: Re: SMF Gallery
Post by: dyota on May 12, 2007, 05:08:54 AM
Quote
I have a mod for that for in the Pro edition.

If you dont mind may i have this mod?
Title: Re: SMF Gallery
Post by: AeroFennec on May 12, 2007, 10:38:55 PM
Is there a way to have different permissions for each gallery? I want some gallerys to be viewed by everyone, but others only by users in a certain group. I can't find any way to do this, is there an option for this in the pro version? I'd buy it if there is, but I need that feature to use it at all.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 12, 2007, 10:53:38 PM
Category level permission by membergroups is in the pro version.
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 09:29:27 AM
Joomla 1.0.12
SMF 1.1.2
SMF bridge 1.1.7

Babylon Theme

Trying to install Gallery 1.7.1

I receive this error

"Some of the files the package manager needs to modify are not writable. "

My question is therefore, what files would these be?
I can make writable very easily if I know which ones are required.

I don't mind installing manually if given instructions.
I have already tried running the galleryinstall.php file from a browser which produces a blank white page.

Please advise.
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 09:58:11 AM
Rather than making files writable piecemeal you'd be better off using the SMF system that's built into your forum:

 ACP>Packages>Options>Installation Options

...and fill in your ftp data then use Cleanup Permissions on that page and make all files writable...you would also do well to check via your ftp client that the CHMOD permissions really have changed to either 775 or 777...this should be done prior to installing any mod...after installation you can use the same system to lower the permissions on your files if you so wish.
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 10:37:49 AM
I've tried the CP>Packages>Options route with no success.

Also, I use sftp rather than ftp so using the package manager ftp route is not viable.
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 11:07:32 AM
Is there an installation guide for this gallery mod instead of using the package manager which isn't working for me?
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 11:50:21 AM
There is no real need of an installation guide as such...use the Package Parser by Daniel15 on any mod at all and it will output pretty much what you require.

http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php)
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 12:18:56 PM
I've visited Daniels Package Parser, uploaded the Gallery zip file, here's what I get...

-----
PHP script to execute: galleryinstall.php
-----

As mentioned previously, I have tried this from a browser, got a blank page as a result, and no files or folders were created in the installation location.


Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 12:42:33 PM
I just went to it, uploaded the mod zip file and it worked as it should...there seems to be something odd with regard to your machine/configuration

Quote
General Package Information
This is general information about the package, such as the package ID and name.
Package ID: vbgamer45:smfgallery
Package name: SMF Gallery Lite
Package version: 1.7.1
Package type: modification

Installation instructions for SMF versions: 1.1.2,1.1.1,1.1, 1.1 RC3, 1.1 RC2
Readme:
*******************************
SMF Gallery Lite Edition
By: vbgamer45
http://www.smfhacks.com
*******************************

Mod Information:
For SMF 1.1.2 and 1.0.10

Install Information:
Upload to your packages directory of your SMF folder
Goto your package manager and apply the mod.
Then afterwords make the gallery directory writable.


An in depth gallery for SMF.
Features:
Categories
Comment System
Picture Approval
Reporting of Picture.
Permissions for adding/editing/approving/deleting and more
And much more...


############################################
License Information:
SMF Gallery is NOT free software.
This software may not be redistributed.

Links to http://www.smfhacks.com must remain unless
branding free option is purchased.
#############################################

Other mods can be found at
SMFHacks.com
Include:
SMF Staff Mod
SMF Links
SMF Trader System
SMF Archive
Profile Comments



PHP script to execute: galleryinstall.php
Files installed

&nbsp; &nbsp; * Gallery.php will be copied to $sourcedir
&nbsp; &nbsp; * Gallery.template.php will be copied to $themedir
&nbsp; &nbsp; * Gallery.english.php will be copied to $themedir/languages
&nbsp; &nbsp; * Gallery.english-utf8.php will be copied to $themedir/languages

Directories installed

&nbsp; &nbsp; * gallery will be copied to $boarddir

Modifications to SMF files
In file $languagedir/Modifications.english.php
Find:

 
?>



Add before:

 
//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         
 




In file $languagedir/Who.english.php
Find:

 
?>



Add before:

 
//Begin SMF Gallery
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
//END SMF Gallery Strings         
 




In file $boarddir/index.php
Find:

 
      'help' => array('Help.php', 'ShowHelp'),



Add after:

      'gallery' => array('Gallery.php', 'GalleryMain'),




In file $themedir/index.template.php
Find:

$current_action = 'admin';
   if (in_array($context['current_action'], array(



Add after:

'gallery',




Find:

// the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
            </td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
 



Add after:

 
   // 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']&nbsp; , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
 




In file $sourcedir/Subs.php
Find:

'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',



Add after:

 
   'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',
 




Find:

$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);



Add after:

 
      $context['allow_smfgallery_view'] = allowedTo('smfgallery_view');




In file $sourcedir/ManagePermissions.php
Find:

'pm' => array(
            'pm_read' => false,
            'pm_send' => false,
         ),



Add after:

 
'smfgallery' => array(
            'smfgallery_view' => false,
            'smfgallery_add' => false,
            'smfgallery_edit' => false,
            'smfgallery_delete' => false,
            'smfgallery_comment' => false,
            'smfgallery_report' => false,
            'smfgallery_autoapprove' => false,
            'smfgallery_manage' => false,
         ),




Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 12:53:38 PM
Hi TrueSatan

I was also presented with all the information you have pasted above from the Package Parser, but the only relevant part for me was the line I mentioned in my previous post.

------
PHP script to execute: galleryinstall.php
------

This script is not executing from the SMF package manager and unzipping the Gallery package and running galleryinstall.php manually produces nothing.

No files or directories are added.

So, from Daniels Package Parser everything after the line about galleryinstall.php is not relevant to me.
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 01:12:42 PM
OK I understand what you are askiing now...the galleryinstall.php file isn't supposed to create files or directories, rather it is a file that alters your database...it adds the necessary parts (tables and settings) to the database for the mod to run and that's all it does. The package parser tells you what files to edit and what edits to make it doesn't list the database changes. After running the galleryinstall.php file a blank screen wouldn't be a surprise...the thing to check (via phpMyadmin) is if the tables and settings for the gallery were added to your database by said file...if they were it did its job.

 Your original query asked about some files not being writable...this was what I was still trying to help you get around. You still need to edit files as per the package parser details if the edits failed to be made by the package installer...at the very least check each file to see that the edits were made.
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 01:29:47 PM
ahaaaaaa, ok, I've looked at the galleryinstall.php file again to see what tables it should create

gallery_pic
gallery_comment
gallery_cat
gallery_report

None of these have been added to the database
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 01:43:45 PM
I don't know your level of experience but what I'd do is to create the tables according to what is in that file but do it via phpMyadmin...it's not that difficult a task but you should certainly take a backup of your database before doing it (or anything else.) Unless you are both confident and experienced opt to work on a fresh test forum running on a different database from your main one and try the work on that. Id probably also choose to restore the database backup of your live forum onto a new database and again do the work on that...all this just makes sure that when/if you do go ahead with the work on your main database you a) have a backup b) have all issues resolved and know exactly what to do.
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 02:06:00 PM
Thanks for all your help satan, and I can manually create database tables and make backups easily enough, but my gut feeling is that this mod is not going to prove suitable for me.

My intention was to try it out before buying the Pro version, but when an installation takes as long as this and it is not succesful via the standard smf package manager method, it makes me think twice about going any further.

However, I'll double check the working of the smf package manager and if that works correctly with a different mod I'll sideline the Gallery. If however I find the smf package manager to be at fault I will persevere a little more with Gallery.
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 02:15:33 PM
That sounds reasonable enough to me...mind you I've used this mod on a number if forums and haven't had any issues with it but there could be some odd issue with your host that is making it a difficult one to use.

 Have you considered Oldiesman's bridge to Menalto Gallery (open source) as an alternative?
Title: Re: SMF Gallery
Post by: joejackson on May 16, 2007, 07:33:46 PM
I manage the server myself so I can adjust it anyway necessary.

I haven't yet considered the bridge for Menalto you mention.
In your opinion how would that impact the current setup which has Joomla and SMF bridged and working successfully successfully together.
Title: Re: SMF Gallery
Post by: TrueSatan on May 16, 2007, 10:16:38 PM
To be honest I've not tried the double bridge in question and without actually running it on a test forum I'd be loath to make any comment on it save that if it can be got to work at all (which I would think that it can) it should work without too many problems...the trick will be in putting it together and that could be an "interesting" task. Personally I'd try it just to see if it will do what you want...in fact when I have some time (maybe next week) I'll be very tempted to put that combination together on a test forum just to satisfy my own curiosity...I still think that if you can get past the initial setup then the composite systems should run well together.
Title: Re: SMF Gallery
Post by: lwjuan on May 17, 2007, 10:23:10 PM
I searched the forum and can't find anythng related to my problem..

Is there any code to be added to this mod to enable user to have the "next pic" and "previous pic" button?

regards,
juan
Title: Re: SMF Gallery
Post by: vbgamer45 on May 17, 2007, 10:30:37 PM
Not in the lite version.
Title: Re: SMF Gallery
Post by: Matthew Schenker on May 18, 2007, 12:55:27 PM
Hi Everyone,
I love this modification and have been using it for some time.  However, I recently had to restore one of my forums, and when I re-activated the Gallery modification it is showing up with two entries in the main menu.  (I've attached an image to show you what I mean).

Can someone point me to the code I need to alter in order to remove the extra listing?

Thanks!
Title: Re: SMF Gallery
Post by: bbulldog on May 18, 2007, 01:02:41 PM
Its in the index.template.php in the theme directory

look for this, will be in twice

Quote
   // 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>' : '';
Title: Re: SMF Gallery
Post by: Matthew Schenker on May 18, 2007, 01:29:02 PM
bbulldog,
That fixed it.
Thank you very much!
Title: Re: SMF Gallery
Post by: ROGUE-Master on May 18, 2007, 07:33:35 PM
Could someone make a Helios_Multi Gallery button or give me a URL to one?  Thanks!
Title: Re: SMF Gallery
Post by: Matthew Schenker on May 18, 2007, 10:48:22 PM
Quote
Could someone make a Helios_Multi Gallery button or give me a URL to one?  Thanks!

What is a Helios_Multi Gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 18, 2007, 10:54:22 PM
Helios_Multi is a theme.
Title: Re: SMF Gallery
Post by: ROGUE-Master on May 19, 2007, 03:57:01 PM
A gallery button for the theme.. like this: http://forums.clanrogue.net/Themes/heliosfinal/images/english/calendar.gif exept with gallery. 
Title: Re: SMF Gallery
Post by: bbulldog on May 21, 2007, 09:38:46 AM
bbulldog,
That fixed it.
Thank you very much!
Its a pleasure
Title: Re: SMF Gallery
Post by: papados on May 22, 2007, 12:09:49 PM
My buttons for the Helios Multi Theme for English and Greek languages.

Rename the filenames according to the code you will add to index.template.php.
Title: Re: SMF Gallery
Post by: ROGUE-Master on May 22, 2007, 02:30:27 PM
My buttons for the Helios Multi Theme for English and Greek languages.

Rename the filenames according to the code you will add to index.template.php.

You are my hero. Thank you very much!
Title: Re: SMF Gallery
Post by: IVY420 on May 22, 2007, 10:49:09 PM
I have installed this mod through the package installer.  I have the default theme set, and SMF 1.1.2.  I didnt get any errors during install(at least i dont think i did :/)  I have gone into quite a few of the files I saw mentioned on here and everything seems to be in order, but I get no button on the menu and no options through the admin panel.

This is listed in my index.template.php file:
Quote
// 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>' : '';
As well as this part which shows the names of the buttons
Quote
$current_action = 'admin';
   if (in_array($context['current_action'], array('gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'paypal')))

Also, the test strings are listed in my modifications.english.php file. 

When i go to list the files of the package in my admin area, this is what is displayed:
Quote
Gallery.template.php (78297 bytes)
smfgallery.xml (5743 bytes)
gallery.gif (873 bytes)
Gallery.english-utf8.php (7682 bytes)
galleryinstall.php (2862 bytes)
gallery/placeholder.txt (33 bytes)
package-info.xml (2291 bytes)
ReadMe.txt (967 bytes)
Gallery.php (54289 bytes)
smfgallery108.xml (5333 bytes)
Gallery.english.php (7682 bytes)

I then thought, ok, maybe ill try uninstalling/reinstalling & when i went to uninstall, I got an error:
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

Any help is appreciated.  I would love to get this working ;)
Title: Re: SMF Gallery
Post by: TrueSatan on May 23, 2007, 04:11:16 AM
Very odd...would you mind posting as attachments your index.template.php and Modifications.english.php so we can see them in full?

 It's a long shot but have you tried clearing your browser cache and if that doesn't do any good even a reboot of your machine then viewing your site again...just to be sure that you are seeing the current state of it.

 Would you mind giving me your site URL (do it via PM if you like) I might need a test account too.?
Title: Re: SMF Gallery
Post by: bbulldog on May 23, 2007, 05:11:26 AM
I have installed this mod through the package installer.&nbsp; I have the default theme set, and SMF 1.1.2.&nbsp; I didnt get any errors during install(at least i dont think i did :/)&nbsp; I have gone into quite a few of the files I saw mentioned on here and everything seems to be in order, but I get no button on the menu and no options through the admin panel.

This is listed in my index.template.php file:
Quote
// 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']&nbsp; , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
As well as this part which shows the names of the buttons
Quote
$current_action = 'admin';
   if (in_array($context['current_action'], array('gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'paypal')))

Also, the test strings are listed in my modifications.english.php file.&nbsp;

When i go to list the files of the package in my admin area, this is what is displayed:
Quote
Gallery.template.php (78297 bytes)
smfgallery.xml (5743 bytes)
gallery.gif (873 bytes)
Gallery.english-utf8.php (7682 bytes)
galleryinstall.php (2862 bytes)
gallery/placeholder.txt (33 bytes)
package-info.xml (2291 bytes)
ReadMe.txt (967 bytes)
Gallery.php (54289 bytes)
smfgallery108.xml (5333 bytes)
Gallery.english.php (7682 bytes)

I then thought, ok, maybe ill try uninstalling/reinstalling & when i went to uninstall, I got an error:
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

Any help is appreciated.&nbsp; I would love to get this working ;)

It looks like the setting in the modification.english.php file are missing, this is all the text needed for the options in admin and the button at the top. If the gallery is still installed open up the modifications.english.php file int the languages directory and see if this is in there
if not add it before the ?>
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
if not add it. if you are using another language check the modifications.yourlanguage.php file
Title: Re: SMF Gallery
Post by: TrueSatan on May 23, 2007, 05:36:35 AM
@bbulldog

 That was my first thought too but the poster did say
Quote
Also, the test strings are listed in my modifications.english.php file. 

 So unless that was a mistaken claim there's something else wrong. BTW...for test I assume read txt LOL
Title: Re: SMF Gallery
Post by: bbulldog on May 23, 2007, 07:41:24 AM
ok i see where i read 'wrong' ;D

but it still sounds like it.
Title: Re: SMF Gallery
Post by: IVY420 on May 23, 2007, 12:42:26 PM
Very odd...would you mind posting as attachments your index.template.php and Modifications.english.php so we can see them in full?

 It's a long shot but have you tried clearing your browser cache and if that doesn't do any good even a reboot of your machine then viewing your site again...just to be sure that you are seeing the current state of it.

 Would you mind giving me your site URL (do it via PM if you like) I might need a test account too.?

Thx for your response.  I went ahead and cleared out my cache, and that didnt help.  I have restarted my comp a few times in between adding this mod, clearing out my cache etc, so that didnt do it, but was a good thought.

I have attached the files you referenced.  My site is www.clanofsin.com/forums.  Its a gaming site and i just started having people register and start posting there.  TY to anyone who takes the time to look at my issue and offer any guidance. :)
Title: Re: SMF Gallery
Post by: TrueSatan on May 23, 2007, 03:44:49 PM
Those two files look OK but your site seems very messed up. The themes seem to be a confused area with the index.template.php you uploaded here not being called into play. If it were working properly then the template file you uploaded here would show the gallery link as it is properly coded into it.

 Perhaps the easiest way to resolve the problems might be to replace all the files save for Settings.php and Settings_bak.php in the forum root....if you don't need them then there's no need to have any other theme than the SMF default so you don't need to upload Babylon or Yabb themes. Get the SMF 1.1.2 full install package and upload everything but the two settings files, install.php and themes you don't need.

 Your choice of shoutbox might be a problem too...as the author of it says himself it either needs your hosting to have a php accelerator available or to have its refresh rate substantially reduced from the default...personally even then if a php accelerator were not available I'd use a different system.

 Replacing all the files won't affect your database at all so all the postings will be there and you'll just be resetting back to a forum without mods. Please make sure that you don't overwrite or remove the two files I mentioned above.

 In future please remember that SMF advise you to backup your files and database before installing any mods.
Title: Re: SMF Gallery
Post by: bbulldog on May 25, 2007, 03:22:11 AM
what about the other files in the source directory?
have a look at Subs.php for this

'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',

and this

$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');



and ManagePermissions.php for this

'smfgallery' => array(
            'smfgallery_view' => false,
            'smfgallery_add' => false,
            'smfgallery_edit' => false,
            'smfgallery_delete' => false,
            'smfgallery_comment' => false,
            'smfgallery_report' => false,
            'smfgallery_autoapprove' => false,
            'smfgallery_manage' => false,
         ),
Title: Re: SMF Gallery
Post by: TrueSatan on May 25, 2007, 04:22:22 AM
@bbulldog  Unfortunately the index.template.php posted earlier isn't working as it should...it isn't being used for some reason. The Gallery button is properly installed into it yet if you go to the poster's site then it isn't displayed although the theme appears to be correctly selected. Even if all the other Gallery related files are awry you should still see the button although it might not do anything if clicked.

 Given that the poster seems to have few mods installed I still think that the easiest solution, and one that is certain to be effective, is to go back to clean files and re-install mods one by one checking for problems at each stage.
Title: Re: SMF Gallery
Post by: bbulldog on May 26, 2007, 03:54:07 AM
yeah i agree with that, i too would delete all mods then upload a new set of default theme files and start again one maod at a time and look in the error log in admin after every install.
Title: Re: SMF Gallery
Post by: TrueSatan on May 26, 2007, 04:56:19 AM
 I'd go that one step further as I detailed earlier...remove all files save for Settings.php and Settings_bak.php then put on a complete fresh set also save for those two files...those files contain your basic board settings...things like the database name and password.

 While bbulldog's solution might be enough the themes problem could be a sign of more issues in non theme files so it's best to do the lot and be sure.

 Doing it as I detailed would mean that you wouldn't need to remove the mods as the clean files wouldn't have them installed anyhow...as you'd be replacing the installed.list file in the Packages directory the installed mods shown in the ACP would be shown as none too so you wouldn't need to do anything extra with that.

 All in all a full replacement isn't really any more work.
Title: Re: SMF Gallery
Post by: Yuripro84 on May 28, 2007, 01:54:10 PM
Don't know if this was already mentioned, or if you even care, but on version 1.7.1, file Gallery.english, I found a typo.

For string '$txt['gallery_set_commentschoice']' you accidentally said the following:
Allow the user to toggle if comments can be shown or a picture or not

Did you mean 'for a picture or not'?

Just thought I'd point this out :) I would tell you the exact line, but I am not sure, as I am using notepad to edit the code lol, but it's under this comment..if it helps any:
//Settings page

EDIT:
Just a suggestion, but maybe you should allow users to change the name of the Gallery in the admin panel, since you just named it 'Gallery'.  The GUI is very basic.  But still, I've got to say, it's a VERY nice mod, thanks for all your hard work :) I know you didn't have to do this, and it goes beyond what I expected.  Very nice job.
Title: Re: SMF Gallery
Post by: pixidustedu on May 30, 2007, 10:51:52 AM
I am having trouble with images not showing.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffarm1.static.flickr.com%2F192%2F521582973_34c8253390_o.png&hash=5a09d1518d5de3d02a04a21a7d82a240)

I recently moved servers, and transferred all the files and databases as they were. I changed the settings in the gallery config to point to the directory...where could I have gone wrong?

Solved: I had the code
Code: [Select]
http://www.prestigeguild.net/forums/gallery
which was missing the last slash at the end.

Code: [Select]
http://www.prestigeguild.net/forums/gallery/
Title: Re: SMF Gallery
Post by: vbgamer45 on May 30, 2007, 11:25:35 PM
Released an update 1.7.2

Fixes some reordering categories bugs.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 31, 2007, 08:15:42 PM
Released an update to the Gallery 1.7.3

Fixed category reordering
Added SMF Shop settings to add points if a user uploads a picture or posts a comment (Only if SMF Shop is installed)
Title: Re: SMF Gallery
Post by: webmistress on June 06, 2007, 01:38:17 PM
http://coloreddiamond.info/index.php?action=gallery (http://coloreddiamond.info/index.php?action=gallery)

I started my gallery. I could not find it at first since it did not make a button. When perusing through here I saw someone else's address and copied it with my domain name and there it was in all its glory.

http://yoursite/index.php?action=gallery

vbgamer- Way cool mod. We might have to go pro. I really like your mods. The You Tube has been awesome.

Title: Re: SMF Gallery
Post by: bbulldog on June 08, 2007, 05:29:41 AM
Found an error while editing a picture. this comes up in the error log.

Quote
http://www.homepage.com/forum/index.php?action=gallery;sa=edit;id=3 
8: Undefined index: gallery_text_oldpicture
File: /homepages/*****/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 621


In the Gallery.english.php there is no $txt['gallery_text_oldpicture'] but in the gallery.template on line 621 there is, what should this value be in the language file?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 08, 2007, 07:57:28 AM
$txt['gallery_text_oldpicture'] = 'Old Picture';
Title: Re: SMF Gallery
Post by: Juris on June 13, 2007, 12:14:36 AM
can u please help me.

i tried everything.. install and uninstall and install again the gallery

i download the package and it doing ok... but when i upload a sample picture, i just saw X . it does not show the picture.

please help me. thanks!
Title: Re: SMF Gallery
Post by: TrueSatan on June 13, 2007, 12:35:58 AM
Check to see that GD is enabled on your php configuration...you may need to contact your host if it isn't.
Title: Re: SMF Gallery
Post by: Juris on June 13, 2007, 01:19:57 AM
Check to see that GD is enabled on your php configuration...you may need to contact your host if it isn't.

what is GD? sorry but im not that good. im just new and trying to have a website. where can i find the php configuration?

thanks
Title: Re: SMF Gallery
Post by: TrueSatan on June 13, 2007, 05:48:48 AM
GD is a php image function needed for this (and other) mods to work...if you read through the rest of this topic you will find it discussed further. If you are on shared hosting you may not be able to alter your php configuration and thus, as I noted before, have to contact your host about enabling it.

 The following link gives you details of how to find out about your server's php configuration using phpinfo:

http://uk.php.net/phpinfo (http://uk.php.net/phpinfo)

 The link even gives the details of a file you can create and browse to in order to load phpinfo.

 Please note...reading the topic in full before asking questions will, often, get you the answers you need.
Title: Re: SMF Gallery
Post by: Tommy Voodoo on June 13, 2007, 10:34:02 AM
A great mod for sure, but I've ran into a problem.. not with the mod, but with my hosting storage limits..

Is there a way to have the mod upload and display from an external source?

Not from one of those photobucket types of sites, but from one of my other hosting accounts..

I'm running low on storage on one site, and have a few gigs to spare on another..



Title: Re: SMF Gallery
Post by: vbgamer45 on June 13, 2007, 07:35:41 PM
A great mod for sure, but I've ran into a problem.. not with the mod, but with my hosting storage limits..

Is there a way to have the mod upload and display from an external source?

Not from one of those photobucket types of sites, but from one of my other hosting accounts..

I'm running low on storage on one site, and have a few gigs to spare on another..




Not currently cause it needs access to the files to create the thumbnails
Title: Re: SMF Gallery
Post by: bbulldog on June 14, 2007, 07:11:59 AM
surely in the Gallery settings the gallery path & gallery url can be changed to an external site?
Ok all files then need to be on this site as you cant split them.
Title: Re: SMF Gallery
Post by: TrueSatan on June 14, 2007, 07:34:29 AM
I don't think GD will be able to do dynamic creation of thumbnails if the images are on a different host...it needs them to be on the same hosting it is on.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 14, 2007, 07:59:31 AM
I don't think GD will be able to do dynamic creation of thumbnails if the images are on a different host...it needs them to be on the same hosting it is on.
Correct needs to on the same host.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 17, 2007, 08:02:40 PM
Version 1.7.5 Released
Now works without GD will show resized image via html for thumbnail
Title: Re: SMF Gallery
Post by: django on June 18, 2007, 05:52:05 PM
I installed SMF Gallery on my test site and uninstalled and deleted it from there after that I am getting this message on top of my site.....any idea how to get rid of this?....

l != '' ? '' . $txt[$label] . '' : ''); else return ''; } ?>xt']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo '   ', implode('  |  ', $button_strip) , '  '; } ?>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 ?>
Title: Re: SMF Gallery
Post by: TrueSatan on June 18, 2007, 08:55:17 PM
You appear to have a problem in your Modifications.english.php file Find it in Themes/default/languages.
Code: [Select]
?> needs to appear once only and to be at the end of the file on a line of its own...you appear to have two instances of it...one at the end of the code you quote (but even that isn't on a line of its own) and one before the start of that code. Remove the one at the start of the code completely and move the one at the end to a line of its own.
Title: Re: SMF Gallery
Post by: django on June 19, 2007, 04:50:22 AM
as you told ?> was appearing on line 12...so I removed it...but after that I am getting this error....

l != '' ? '' . $txt[$label] . '' : ''); else return '' . $txt[$alt] . ''; } ?>l != '' ? '' . $txt[$label] . '' : ''); else return '' . $txt[$alt] . ''; } ?>xt']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo '   ', implode('  |  ', $button_strip) , '  '; } ?>xt']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo '   ', implode('  |  ', $button_strip) , '  '; } ?> array(); if (!allowedTo('admin_forum')) $context['illegal_permissions'][] = 'admin_forum'; if (!allowedTo('manage_membergroups')) $context['illegal_permissions'][] = 'manage_membergroups'; if (!allowedTo('manage_permissions')) $context['illegal_permissions'][] = 'manage_permissions'; } ?> array(); if (!allowedTo('admin_forum')) $context['illegal_permissions'][] = 'admin_forum'; if (!allowedTo('manage_membergroups')) $context['illegal_permissions'][] = 'manage_membergroups'; if (!allowedTo('manage_permissions')) $context['illegal_permissions'][] = 'manage_permissions'; } ?>


Title: Re: SMF Gallery
Post by: TrueSatan on June 19, 2007, 05:18:28 AM
It still looks as though you have extra instances of
Code: [Select]
?>...there must be only one and it must be at the end of the file on a line of its own.

 I rather suspect that the rest of the file may be messy with multiple copies of some blocks of code...if you'd like to post the file as an attachment to a message here I'll have a look at it and, if you're lucky, I'll tidy it up for you.
Title: Re: SMF Gallery
Post by: django on June 19, 2007, 05:53:34 AM
Thanks...I have attached the file....

mean time is it possible to completely remove it and do a re-installation.....


Title: Re: SMF Gallery
Post by: TrueSatan on June 19, 2007, 05:58:18 AM
 Your file you posted above isn't causing your problems.

 Your problems are much more extensive than an issue with one file. It looks as though you have been installing and uninstalling mods that have had fails shown in the package manager and got your forum in a bad state of repair as a result.

 Given that you only appear to have a very few mods installed the easiest way for you to get back to a good state again may be to backup all your files (which you ought to have done prior to installing any mod!) backup your database (again do this before installing any mod!) and then save for your Settings.php and Settings_bak.php in your forum root replace all the files and with ones from the SMF forum installer pack. N.B do not overwrite these two files.

 Your error above shows multiple instances of problems and makes me very suspicious as to the state of the rest of your files which is why I recommend this clean replacement with new files. Replacing your files won't affect your database but it will remove all mods and themes you had installed.

 The code you show above seems to relate to ManagePermissions.php in the Sources directory but if that is so mangled there are probably other problems in your files so a wholesale repair is your best option as detailed above.
Title: Re: SMF Gallery
Post by: kyyote on June 22, 2007, 09:25:56 AM
I spent a couple of hours reading posts and didn't find the answer.&nbsp; I have coppermine bridged to my smf forum.&nbsp; The file for coppermine is 'gallery'.&nbsp; I added the mod on my test site and all went well.&nbsp; I added it on my site with coppermine and all I get are little red x's.&nbsp; The files I uploaded to test are in the gallery folder, and when I go to them in my control panel they work.&nbsp;

Title: Re: SMF Gallery
Post by: TrueSatan on June 22, 2007, 09:31:32 AM
@ kyyote

 This topic relates to the SMF Gallery Mod not to a bridge to Coppermine Gallery which is an entirely different and completely unrelated thing. For help relating to Coppermine Gallery you might be best asking on their own forums.
Title: Re: SMF Gallery
Post by: kyyote on June 22, 2007, 11:37:41 AM
I understand that.&nbsp; I am asking about Gallery 1.7.5.&nbsp; You see I have coppermine bridged to my smf forum, but I also want to use smf gallery .&nbsp; I already had coppermine in a folder titled 'gallery'.&nbsp; So, when I upload a picture with gallery  it goes into my gallery folder, whick is the folder containing all of the files for coppermine.&nbsp; The two-coppermine and gallery - both have the 'gallery' name.&nbsp; I wouldn't care if the files piled up in the gallery folder, but gallery doesn't seem to be able to bring them up.&nbsp; As I said, the files are in the gallery folder, and when I click on them in my contro panel file manager they come up, but when I try to see them in gallery  they are shown as being there but with just the little red x's.&nbsp; Right clicking show pic, doesn't help.
Title: Re: SMF Gallery
Post by: notting on June 22, 2007, 04:06:20 PM
Very very cool mod - have been using it for a little while so would like to say thanks!

One niggle though. I have a forum where some people are not to computer savvy - they have trouble resizing pictures before uploading them. This is no problem for me in terms of space but when people look at the pictures they turn out huge on the screen and you have to scroll. Ie:

http://theafricangreyparrot.com/forum/index.php?action=gallery;sa=view;id=91

It would be cool if the mod autosized the pictures so that they fit the screen and there was a button to blow them up too.

Possible?

Cheers
Notting
Title: Re: SMF Gallery
Post by: Gararion on June 23, 2007, 06:39:45 AM
Question, I have installed this on my board but I can't seem to find out where to go to upload images to my gallery.  I am using SMF 1.1.2 with the Aa New Damage theme being used.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 23, 2007, 09:54:11 AM
You need to first create a category then inside the category you can upload images.
Title: Re: SMF Gallery
Post by: Gararion on June 23, 2007, 03:22:27 PM
Okay, I created a Category.  But how do get to the gallery from the index?  The only way I can see to get there now is through the Admin section.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 23, 2007, 03:24:08 PM
For custom themes you need to add a link to the gallery by modifying the index.template.php of the custom theme.
Title: Re: SMF Gallery
Post by: kyyote on June 24, 2007, 08:27:40 AM
I understand that.&nbsp; I am asking about Gallery 1.7.5.&nbsp; You see I have coppermine bridged to my smf forum, but I also want to use smf gallery .&nbsp; I already had coppermine in a folder titled 'gallery'.&nbsp; So, when I upload a picture with gallery  it goes into my gallery folder, which is the folder containing all of the files for coppermine.&nbsp; The two-coppermine and gallery - both have the 'gallery' name.&nbsp; I wouldn't care if the files piled up in the gallery folder, but gallery doesn't seem to be able to bring them up.&nbsp; As I said, the files are in the gallery folder, and when I click on them in my contro panel file manager they come up, but when I try to see them in gallery  they are shown as being there but with just the little red x's.&nbsp; Right clicking show pic, doesn't help.
Is there a way to rename the 'gallery' to gallery2 or something, and changing all 'gallery' s  to gallery2?
Title: Re: SMF Gallery
Post by: notting on June 25, 2007, 07:29:44 AM
I recently had to reinstall my theme and it has removed the gallery button from the main menu bar. What is the best way of getting the button back on there?

Do I need to reinstall the mod. If so, how do I go about doing this? If I uninstall the mod will it delete all of the pictures in the gallery?

Or would it be easier to  edit the template  files of my theme?

Thanks in advance for your help

Jamie
Title: Re: SMF Gallery
Post by: TrueSatan on June 25, 2007, 07:33:21 AM
@ notting

Please see http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531) and edit the file accordingly.
Title: Re: SMF Gallery
Post by: notting on June 25, 2007, 07:47:23 AM
Thanks TrueSatan,

I have another problem which I should deal with first.

I want to upgrade to the latest version. As I understand it, I need to uninstall the old version first. Unfortunately I deleted the package 1.6.7 and now I cannot install it - it returns the error - "Cannot find package".

I need to get hold of the package 1.6.7 and upload it before I can uninstall it

Whoops! Where can I get hold of the old package?

Notting
Title: Re: SMF Gallery
Post by: TrueSatan on June 25, 2007, 08:27:57 AM
I don't have a copy of the old package so I can't help with that...N.B don't delete packages relating to mods you have installed.

 I don't think that the database has changed for this mod though so you might be able to get around it by not uninstalling but manually upgrading the files and the edits the package makes then editing installed.list in the Packages directory to make the new version show in the package manager installed packages list and uploading the current package to the Packages directory (via ftp) so that you would be able to uninstall it at a later date should you no longer want it or need to upgrade to a newer version.

 Prior to trying any of the above (and, as directed by SMF, before installing any mod or theme) backup both your database and all your files so that you would be able to return to the current state should you need to do so.
Title: Re: SMF Gallery
Post by: kyyote on June 26, 2007, 12:32:17 PM
@ kyyote

 This topic relates to the SMF Gallery Mod not to a bridge to Coppermine Gallery which is an entirely different and completely unrelated thing. For help relating to Coppermine Gallery you might be best asking on their own forums.

I am asking a question about SMF Gallery Mod.  I have added this mod to my smf forum.  However, I also have a coppermine gallery bridged to my forum.  The coppermine gallery is in my kyyotesden.com/gallery/ (path?, directory?) file.

When I upload files into my SMF Gallery Mod it puts them into the same kyyotesden.com/gallery/.. file.  But, when I go to the SMF Gallery, it shows them as being there, but there are little red x's where the thumbnails would be, and when I click on the red x thumbnail it goes to the full size to display the image, but it just has the red x in the uper left corner where the image would be.  Is there any way to fix this? 
Title: Re: SMF Gallery
Post by: vbgamer45 on June 26, 2007, 08:05:49 PM
Would need to see a link to the forum and do you have GD installed?
Title: Re: SMF Gallery
Post by: kyyote on June 26, 2007, 10:43:54 PM
This is my test forum.. There are some differences, but because this one has the thumbnails, I assume that I must have GD.
http://kyyotesden.com/Mine/index.php?action=gallery;cat=1 (http://kyyotesden.com/Mine/index.php?action=gallery;cat=1)

This is my real site
http://kyyotesden.com/index.php?action=gallery;cat=1 (http://kyyotesden.com/index.php?action=gallery;cat=1)

Thanks for the response.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 26, 2007, 10:49:16 PM
Yeah if you thumbnails on one and not the other. Probably is a path issue. Make sure the paths are correct for images under settings.
Title: Re: SMF Gallery
Post by: kyyote on June 26, 2007, 11:04:14 PM
Everything is working fine.  I finally had both site configurations open and realized that the gallery url was wrong.  Sorry for bugging you, but that is what caused me to look in the right place, so you did solve the problem.
btw, I am very glad I am going to be able to use the Gallery.  Thank you for making it available to us all.
kyyote
Title: Re: SMF Gallery
Post by: a2h on June 27, 2007, 01:02:24 PM
trying to install gallery 1.7.5.1 onto smf 1.1.3 & TP 9.83

i keep getting this test failure when applying...

 Execute Modification ./Themes/default/languages/Modifications.english.php Test failed


only other mod installed at moment is arcade 2.0.9
Title: Re: SMF Gallery
Post by: TrueSatan on June 27, 2007, 01:41:21 PM
@ a2h

 The arcade mod edits Modifications.english.php and thus the file isn't in an unedited condition when the Gallery also tries to edit it...thus the Gallery reports a fail. You can go ahead and install the mod via the package manager then edit the Modifications .english.php manually to add the necessary code.

Add (as shown in the package)

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

 Add it before:

Code: [Select]
?>
 ...which should be at the very end of the file on a line of its own.
Title: Re: SMF Gallery
Post by: Marcus Orentius on June 27, 2007, 08:11:36 PM
Sorry if this has already been asked, but when I exit the gallery, I don't see any way to get back into it. All I see is a gap between the four links in the configuration menu in the Admin CP. Any help? I'm on SMF 1.1.2.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 27, 2007, 08:20:39 PM
Copy the text to every themes/default/languages/modifications.language.php 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
Repeat the same for all custom themes as well
Title: Re: SMF Gallery
Post by: Marcus Orentius on June 28, 2007, 05:12:27 AM
No Crashes, but no visible effect either. I added a modifications.english.php file to the languages folder of my arcane magic theme folder, but no effect. :(
Title: Re: SMF Gallery
Post by: TrueSatan on June 28, 2007, 05:23:15 AM
@ Marcus Orentius

Does the mod work properly in the SMF default theme? At least let's see if we can narrow this down to a problem with some custom theme.
Title: Re: SMF Gallery
Post by: Marcus Orentius on June 28, 2007, 02:24:47 PM
No it doesn't. :/
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2007, 10:33:15 AM
Version 1.7.6 Released
Added image linking codes.
Includes BBC Code, Direct Link, and Html link codes
Title: Re: SMF Gallery
Post by: - danny on July 02, 2007, 06:21:37 AM
I tried to reinstall it and got this:

Quote
1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
2.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
3.    Execute Modification    ./index.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Extract File    ./Sources/Gallery.php    
8.    Extract File    ./Themes/default/Gallery.template.php    
9.    Extract Tree    ./gallery    
10.    Extract File    ./Themes/default/languages/Gallery.english.php    
11.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
12.    Execute Code    galleryinstall.php

I'm on the default theme, with current SMF version. Any clues?
Title: Re: SMF Gallery
Post by: TrueSatan on July 02, 2007, 06:28:59 AM
Yes...it's an extremely common error reported (in various forms) on the forums here thousands (no exaggeration) of times. All it means is that another mod you have already installed has altered the files that show as failed and thus that you need to do a manual installation of the mod. You might first check that in /Themes/default/languages/Modifications.english.php

Code: [Select]
?>
...appears only once and at the end of the file on a line of its own and if it doesn't edit the file so that it does and then try the automatic installation again but otherwise please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Title: Re: SMF Gallery
Post by: a2h on July 02, 2007, 12:55:53 PM
i updated my SMF language files, and it all installed without any errors...thanks everyone for the help ;D
Title: Re: SMF Gallery
Post by: farknduckRC on July 04, 2007, 06:38:23 AM
Hi, I was wondering if anyone could tell me how to resize the Gallery thumbnails? I have SMF Gallery Lite.. I'd like them to be a little larger so they look better in the random gallery image boxes..

I'm assuming this setting is going to be in the Gallery.template.php file, if someone could give me an approximate idea of which line to look for, that would be great! (since it's a mile long..)

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on July 04, 2007, 07:53:47 AM
Its in Sources/Gallery.php look at AddPicture2 function and EditPicture2
Title: Re: SMF Gallery
Post by: Matthew Schenker on July 05, 2007, 12:05:02 PM
I just uninstalled this modification from my forum.  However, it's leaving a space between the "Server Settings" and "Current Theme"  options in the Configuration menu.

Can someone tell me how to fix this?

I attached a screen shot to show you what I'm talking about.

Thanks!
Title: Re: SMF Gallery
Post by: TrueSatan on July 05, 2007, 05:48:22 PM
Matthew,

 In Sources/Subs.php look for:

Code: [Select]
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
'edit_theme_settings' => '<a href="' . $scripturl . '?action=theme;sa=settings;th=' . $settings['theme_id'] . ';sesc=' . $sc . '">' . $txt['theme_current_settings'] . '</a>',

 The above is what you should have but I expect that you have an extra </a> in there.
Title: Re: SMF Gallery
Post by: Matthew Schenker on July 05, 2007, 07:07:51 PM
TrueSatan,
Thank you for your help!  Yes, that was the trouble.

Here's what my code for that spot looked like:
Code: [Select]
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',

'edit_theme_settings' => '<a href="' . $scripturl . '?action=theme;sa=settings;th=' . $settings['theme_id'] . ';sesc=' . $sc . '">' . $txt['theme_current_settings'] . '</a>',

I removed those lines with the word "gallery" in them.

I'm including it here so other people can benefit, if they have the same issue.

Thank you again!
Title: Re: SMF Gallery
Post by: TrueSatan on July 05, 2007, 08:19:44 PM
It's always a pleasure Matthew...but you know that already.
Title: Re: SMF Gallery
Post by: aldo on July 06, 2007, 03:51:01 PM
I have the DilberMC theme and when i installed your mod it didnt put in a link in the navigation bar. So how can i get one in?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 06, 2007, 03:55:24 PM
You will need to edit the index.template.php of the custom theme to add a menu link.
Title: Re: SMF Gallery
Post by: aldo on July 06, 2007, 03:58:51 PM
do you no how to do that? ??? because i dont
Title: Re: SMF Gallery
Post by: TrueSatan on July 06, 2007, 04:27:56 PM
@ aldo

Please read the official documentation on how to add  mods to custom themes:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Title: Re: SMF Gallery
Post by: Sonicboom on July 06, 2007, 05:21:41 PM
@ aldo

Please read the official documentation on how to add&nbsp; mods to custom themes:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

Is there any other way? I tried with all my might to understand that but I just can't. Maybe I'm too dumb, maybe it's Friday afternoon and I need a drink but I can't wrap my brain around those instructions. I've worked with scripts before but man I'm just lost.

Sonicboom
Title: Re: SMF Gallery
Post by: TrueSatan on July 06, 2007, 05:25:29 PM
No...but if you stay patient and work through it slowly it isn't that difficult to do. Perhaps if you look carefully at what the mod has done to the SMF default theme it will be more easy for you to see what to do to a custom theme.
Title: Re: SMF Gallery
Post by: Sonicboom on July 06, 2007, 05:36:08 PM
No...but if you stay patient and work through it slowly it isn't that difficult to do. Perhaps if you look carefully at what the mod has done to the SMF default theme it will be more easy for you to see what to do to a custom theme.

For now I've decided just to go back to the original. So I uninstalled the image gallery mod using the package uninstall link. I think this is just over my head. I can follow instructions very well but the second my situation differs from the one in the instructions I am completely thrown off course. For example if the instructions say "search for <operation>" and I can't find it anywhere in MY file then I am lost. Because I'm not a programmer I can't use experience to figure it out so therefore I have no choice but to quit or go crazy.

Sonicboom
Title: Re: SMF Gallery
Post by: TrueSatan on July 06, 2007, 05:44:14 PM
Before you give up why not try using the SMF Package Parser by Daniel15?

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

 It lets you put the package you want to analyse into it and will output detailed instructions of what to do to in a, somewhat, more human-readable form than you get by just looking at the package files...that might just be enough to get you running again.
Title: Re: SMF Gallery
Post by: Sonicboom on July 06, 2007, 06:13:45 PM
Before you give up why not try using the SMF Package Parser by Daniel15?

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

 It lets you put the package you want to analyse into it and will output detailed instructions of what to do to in a, somewhat, more human-readable form than you get by just looking at the package files...that might just be enough to get you running again.

That was a really great site and of course normally it might work. However, in my case it didn't. Any other ideas or tricks? Here is what the parser gave me:

Code: [Select]
In file Themes/[your theme]/index.template.php

Find: $current_action = 'admin';
if (in_array($context['current_action'], array(

Add after:
'gallery',


Find:
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
 

Add after:
 
// 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']&nbsp; , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Then here is my index.template.php:

Ok I can't post it here for some reason. I tried to insert the file using the code tags but it just doesn't work and I don't know why. Sorry

Sonicboom
Title: Re: SMF Gallery
Post by: TrueSatan on July 06, 2007, 06:28:08 PM
The only other thing that could make it any easier for you would be to choose a good editor so that the searching is just a matter of putting in a line of what you want, letting it search for that and making sure that the rest of the block of code is correct before making the edit...that aside there's not much more I can offer save to, again, suggest patience and a refusal to quit.

 Good editors you might consider would include http://www.context.cx/ (http://www.context.cx/) or http://www.mpsoftware.dk/downloads.php (http://www.mpsoftware.dk/downloads.php)
Title: Re: SMF Gallery
Post by: RiderRaghav on July 07, 2007, 04:21:41 PM
I'm getting the following error while installing :( ......
What should I do ??? .....
Any help would be greatly appreciated :) .....



Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php Test failed
2.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
3.    Execute Modification    ./index.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Extract File    ./Sources/Gallery.php    
8.    Extract File    ./Themes/default/Gallery.template.php    
9.    Extract Tree    ./gallery    
10.    Extract File    ./Themes/default/languages/Gallery.english.php    
11.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
12.    Execute Code    galleryinstall.php    
Title: Re: SMF Gallery
Post by: TrueSatan on July 07, 2007, 04:37:24 PM
Your report just shows that one of the other mods you have installed has edited the file that reports a fail and thus the file isn't now as this mod would expect to find it...you need to do a manual install.

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

 In the postings on this mod and many others you will see similar reports being handled...please read the topic.
Title: Re: SMF Gallery
Post by: Sonicboom on July 09, 2007, 11:46:23 AM
Hi! it's me again. I have really tried to get this going but I'm not having any luck. It's not even for anything that important (my WoW guild site) but it's the principal of the thing. I want to learn how to do this but I can't seem to figure it out. The template I'm using is one I downloaded from here called wowdk11_d. I've tried the online Mod Parser and using TextPad 5.2 I edited the index.template.php file according to the instructions. I also tried the "Manual Installation of Mods" instructions by editing the Display.template.php file. I still cannot see a Tab at the top with a link to the Gallery. I also cannot see a link in the Admin page for the Gallery Configuration. However, if I use the default theme it shows up fine. I've included the code the parser told me to change. Is there anything else I'm forgetting that may be specific to this theme? Sorry to be a pest but I really want to learn this. Any help is greatly appreciated!

** I don't know if this matters but I am running SMF 1.1.2 (updated from 1.1.1) and the Theme says it is for 1.1.2 as well. **

Code: [Select]
Installation instructions for SMF versions: 1.1 - 1.1.99, 1.1 RC3, 1.1 RC2
Note: If a file does not exist in your theme, it doesn't matter (as the file from the Default theme will be used).

In file Themes/[your theme]/index.template.php
Find: $current_action = 'admin';
if (in_array($context['current_action'], array(

Add after:
'gallery',


Find: // the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
 

Add after:
 
// 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']&nbsp; , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: SMF Gallery
Post by: TrueSatan on July 09, 2007, 12:27:10 PM
@ Sonicboom

Would you please put the following files from the theme you are trying to edit into a zip archive and post them here as an attachment? Leave whatever editing you have done in the files in place so I can see how far you have got.

Modifications.english.php (in the language directory of your custom theme)

Who.english.php (also in the language directory of your custom theme)

index.template.php (in the root directory of your custom theme...N.B. not the forum root)

I suspect that in index.template.php you may have failed to do this edit:

Find:

Code: [Select]
$current_action = 'admin';
if (in_array($context['current_action'], array(



Add after:

Code: [Select]
'gallery',
...but given the trouble you've been having I'd like to check the other files to see that they are also OK.

 This mod does not edit, or need to edit, the Display.template.php file so I don't know why you've edited that.

 My preferred choice of editor is phpDesigner2007 but a lot of people use Context...you might consider trying these products.
Title: Re: SMF Gallery
Post by: Sonicboom on July 09, 2007, 05:56:24 PM
@ Sonicboom

Would you please put the following files from the theme you are trying to edit into a zip archive and post them here as an attachment? Leave whatever editing you have done in the files in place so I can see how far you have got.

Modifications.english.php (in the language directory of your custom theme)

Who.english.php (also in the language directory of your custom theme)

index.template.php (in the root directory of your custom theme...N.B. not the forum root)

Ok I have zipped those files up. I double checked the index.template.php file and it looked right to me. I think the issue is with the other two since I didn't edit them. When I used the online parser it failed to mention anything about editing those files. Anyway here they are and thank you so much for your help!

Sonicboom

Title: Re: SMF Gallery
Post by: TrueSatan on July 09, 2007, 09:59:23 PM
I've fixed your files as promised...sorry for the delay.

 As regards use of the Package Parser had you set it to show All Edits not just the theme ones it would have spat out the language directory ones as well. I'll have a word with Daniel15 as he might be able to alter the code a little so that language directory ones are included in the theme request. The language directory is part of the theme you see.

 Your editing of index.template.php lacked some spacing as you'll be able to tell from my fixed version...it's not a big problem but it does help with any future work that might be needed on the file as readability is improved by it.

 I hope these work for you.
Title: Re: SMF Gallery
Post by: tumbleweed on July 10, 2007, 01:22:22 AM
Hi,

 I had uninstalled the gallery. Yet know when anyone looks at anything i get error's thrown up in the forum error's section. the error's alaways sart with:

Undefined index: allow_smfgallery_view

Just trying to find out what is left so i can get the dang errors to stop.

tumble
Title: Re: SMF Gallery
Post by: tumbleweed on July 10, 2007, 01:35:30 AM
Hi,

 I had uninstalled the gallery. Yet know when anyone looks at anything i get error's thrown up in the forum error's section. the error's alaways sart with:

Undefined index: allow_smfgallery_view

Just trying to find out what is left so i can get the dang errors to stop.

tumble

Thi sissue has been fixed. It seems that for some reason the "Tab" button code was left on the index.template.php file once removed the forums show no error.

tumble
Title: Re: SMF Gallery
Post by: Sonicboom on July 10, 2007, 05:13:21 PM
I've fixed your files as promised...sorry for the delay.

 As regards use of the Package Parser had you set it to show All Edits not just the theme ones it would have spat out the language directory ones as well. I'll have a word with Daniel15 as he might be able to alter the code a little so that language directory ones are included in the theme request. The language directory is part of the theme you see.

Your editing of index.template.php lacked some spacing as you'll be able to tell from my fixed version...it's not a big problem but it does help with any future work that might be needed on the file as readability is improved by it.

 I hope these work for you.

Well that almost did it. I still don't have a link to the gallery from the forum pages. However, I do have a link in the admin page to the gallery configuration (which I didn't have before). So there was some progress. I can't figure out what I'm doing wrong. If you have any more suggestions please let me know.

Thanks!
Sonicboom
Title: Re: SMF Gallery
Post by: Dejv on July 10, 2007, 05:25:53 PM
Hi,

can anyone please tell me if it is possible to set from where the pictures are loaded?
I run one forum for two websites and would like to use one gallery for both of them. Can they be loaded from one directory for multiple websites?

Thanks

David
Title: Re: SMF Gallery
Post by: TrueSatan on July 10, 2007, 06:19:46 PM
@ Sonicboom

 The index.template.php file is the one that gives the link you are seeking so as I know the file I fixed for you has the code properly put into it might I ask if it was the one for your custom theme? If it was then would you please do a hard refresh of your browser clearing out the cache (you might try a reboot if that isn't easy for you.) The link should be there if the file I fixed for you is in your custom theme...if you still have problems please may I have a link to your forum (PM me with it if you don't want to post it publicly.) A test account would help too if you would set one up for me.

@ Dejv

 vbgamer45 might have some ideas to help you as he's the mod developer but as far as I know you won't be able to do what you want as the images uploaded via one forum won't show up in the other even if you make them share the same directory.
Title: Re: SMF Gallery
Post by: Dejv on July 10, 2007, 07:03:04 PM
@ TrueSatan

Thanks!
Title: Re: SMF Gallery
Post by: Late_Tuning on July 11, 2007, 02:21:29 PM
About the installation...I copy all files and folders in .rar to my forum folder and thats it??
Title: Re: SMF Gallery
Post by: TrueSatan on July 11, 2007, 04:07:46 PM
@ Late_Tuning

 No! You have to install this mod as you do any mod. You can either do so using the package installer in your forum or via a manual installation.
Title: Re: SMF Gallery
Post by: Late_Tuning on July 11, 2007, 04:26:58 PM
@ Late_Tuning

 No! You have to install this mod as you do any mod. You can either do so using the package installer in your forum or via a manual installation.
Ok. I done that and then installer say check that CHMOD is 777. Which files/folders in my forums should be "777" to get this thing work?
Title: Re: SMF Gallery
Post by: TrueSatan on July 11, 2007, 04:54:27 PM
@ Late_Tuning

 The Package Manager in your forum offers you a system that will set the forum up for installation of any mod then let you alter the CHMOD settings after the installation of the mod.

ACP>Packages>Options

Set the "Installation Options" appropriate to your forum; set "Cleanup Permissions" so that "all files are writeable" then check, via ftp, that the CHMOD of all the files of your forum have been set to either 777 or 775 (depending on server configuration)...this will prove that you have entered the right settings and that the system has worked properly...if it has then install the mod. You can then use the same system to make less files writeable if you so wish.
Title: Re: SMF Gallery
Post by: naxstorm on July 11, 2007, 08:06:54 PM
I'm really sorry if this question has already been asked/answered, but my Search-Fu is weak and I haven't noticed anything while digging through the page replies. ;)

I was just curious if it's possible to place a few of the thumbnail images or some part of the Gallery on, say, the index page of a website. Like how you can with news, topics, etc. If so, does anyone know where this SMF noob could find that info, or a tutorial? Thanks much. Awesome mod, by the way. =)
Title: Re: SMF Gallery (Help: SMF Gallery does not take UTF-8 text )
Post by: wjhdiz on July 12, 2007, 09:29:50 AM
It seems that SMF Gallery can be used in English only. My forum character set is set to UTF-8 and it has no problems taking international characters. However, I tried to type some Chinese words for category name in Gallery and it all messed up.

Please help.
Thank you.
Jimmy
Title: Re: SMF Gallery
Post by: TrueSatan on July 12, 2007, 10:03:51 AM
Many, if not most, mods only contain code for english use...to make them work in other languages one must take Modifications.english.php in the languages directory of the default theme and use it as a basis to make a Modifications.<new language>.php and place it in the same directory as the original file.
Title: Re: SMF Gallery
Post by: KnightRobby on July 12, 2007, 02:15:42 PM
Hi, I just installed the gallery and it is wonderful, btw!  Thanks a lot for creating such an awesome mod/extension.  However, I have a bit of a problem.

I am not wanting four columns on this page:
http://www.webquad.com/site/component/option,com_smf/Itemid,44/action,gallery/cat,2

Is it possible to have only three columns?  Can you give me the code and show me how this might be done, which file to access, and which code to change appropriately?

Thanks again and sorry for being such a pain :P

Robby :)
Title: Re: SMF Gallery
Post by: KnightRobby on July 12, 2007, 02:21:16 PM
NOTE: Problem solved.  Your reply is not needed.  I found the code!:)

Thanks,
Robby
Title: Re: SMF Gallery
Post by: wjhdiz on July 12, 2007, 02:40:30 PM
I am not so sure about this. Actually, I just decided to go back and use CPG. This thing just compromized too much.

Thanks.
Jimmy

Many, if not most, mods only contain code for english use...to make them work in other languages one must take Modifications.english.php in the languages directory of the default theme and use it as a basis to make a Modifications.<new language>.php and place it in the same directory as the original file.
Title: Re: SMF Gallery
Post by: kimba on July 12, 2007, 08:25:22 PM
I've got something weird going on here. I've just installed the gallery and it uploads fine. The only problem now is that every time I go to the admin CP and click on the gallery configuration, I get sent straight back to my board. Someone help?
Title: Re: SMF Gallery
Post by: TrueSatan on July 12, 2007, 09:30:18 PM
@ Kimba

 Please check the following...in Server Settings ensure that your forum is set to english and not english utf8 (the gallery should work with english utf8 but let's play safe), make sure you are using the SMF default theme. If these are OK then I would suspect that not all the file edits the mod needs to make were made by the Package manager...please follow the install.xml file in the package and check that they were made editing as appropriate if they were not made. Check that the files from the package were uploaded in their correct places...see the package-info.xml file for details of that.
Title: Re: SMF Gallery
Post by: †MavN† on July 14, 2007, 10:04:11 AM
Some words not in the lang files
Code: [Select]
<td><input type="checkbox" name="allowcomments" ' . ($context['gallery_pic']['allowcomments'] ? 'checked="checked"' : '' ) . ' /><b>Allow comments to be posted on this picture.</b>

Title: Re: SMF Gallery
Post by: vbgamer45 on July 14, 2007, 11:09:51 AM
Some words not in the lang files
Code: [Select]
<td><input type="checkbox" name="allowcomments" ' . ($context['gallery_pic']['allowcomments'] ? 'checked="checked"' : '' ) . ' /><b>Allow comments to be posted on this picture.</b>

Nice catch. Here is a hotfix
Open Gallery.template.php
Find
Code: [Select]
<b>Allow comments to be posted on this picture.</b>
Replace with
Code: [Select]
<b>',$txt['gallery_form_allowcomments'],'</b>
Title: Re: SMF Gallery
Post by: †MavN† on July 14, 2007, 12:11:17 PM
I am find another word :)

Code: [Select]
' . $txt['gallery_set_filesize'] . '<input type="text" name="gallery_max_filesize" value="' .  $modSettings['gallery_max_filesize'] . '" /> (bytes)<br />

Title: Re: SMF Gallery
Post by: †MavN† on July 15, 2007, 04:59:06 AM
Russian Translation for this mod UTF8 (http://www.simplemachines.ru/index.php?action=tpmod;dl=item86)  win1251 (http://www.simplemachines.ru/index.php?action=tpmod;dl=item85)
Title: Re: SMF Gallery
Post by: myoung on July 18, 2007, 06:14:46 PM
Can anyone point me in the right direction to find the needed changes to add Gallery to the Dilber MC theme?.... install went fine.. have treid editing the template code, but can't seem to find all the code that will place a link to gallery in the main forums links on top of the page... trying to place it between messages & calendar ....thanks
Title: Re: SMF Gallery
Post by: farknduckRC on July 18, 2007, 07:58:30 PM
Hi, I was wondering if anyone could tell me how to resize the Gallery thumbnails? I have SMF Gallery Lite.. I'd like them to be a little larger so they look better in the random gallery image boxes..

I'm assuming this setting is going to be in the Gallery.template.php file, if someone could give me an approximate idea of which line to look for, that would be great! (since it's a mile long..)

Thanks


Its in Sources/Gallery.php look at AddPicture2 function and EditPicture2

Thanks for the help...

I went in and found the size info, and changed all the values to what I wanted (from 120x78 to 145x95) - but all the thumbnails are still the same size as before, nothing changed  ::)  Was there something else I needed to edit?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 18, 2007, 08:14:38 PM
Hi, I was wondering if anyone could tell me how to resize the Gallery thumbnails? I have SMF Gallery Lite.. I'd like them to be a little larger so they look better in the random gallery image boxes..

I'm assuming this setting is going to be in the Gallery.template.php file, if someone could give me an approximate idea of which line to look for, that would be great! (since it's a mile long..)

Thanks


Its in Sources/Gallery.php look at AddPicture2 function and EditPicture2

Thanks for the help...

I went in and found the size info, and changed all the values to what I wanted (from 120x78 to 145x95) - but all the thumbnails are still the same size as before, nothing changed  ::)  Was there something else I needed to edit?
That's correct each image will need to be uploaded for the changes to take in affect.
Title: Re: SMF Gallery
Post by: dede on July 19, 2007, 06:32:56 PM
I don't know what I have set incorrectly, but I can access, upload etc no problem as administrator.

As soon as I log in as an ordinary member, instead of the gallery, all I get is:

                                 An Error Has Occurred!

If I go to permissions and give regular members admin permissions they can log in too.  Anyone got any idea what I've done or got wrong?
Title: Problems backing up SMF gallery images with ftp program.
Post by: ApplianceJunk on July 19, 2007, 06:55:34 PM
Forum version: SMF 1.1.3


When I ftp my forum files back to my computer to save as a backup my SMF Gallery images look ok, but all the smaller thumbnail photos look scrambled.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffarm2.static.flickr.com%2F1141%2F837298106_936434f251_o.jpg&hash=5144a1f7ff84970fd9c6749e522ef511)

When I try and open one of the scrambled looking files to view it I get this message.

This is not a valid JPEG-JFIF file.

I am using FireFTP and have Download/Uploads>Options set to Binary Mode. I tried Automatic Mode first and the same thing happened.

What am I doing wrong?

 Mod I have installed.
 
1. SMF 1.1.2 Update Package 1.1.2&nbsp; &nbsp;
2. SMF 1.0.11 / 1.1.3 Update 1.1&nbsp; &nbsp; &nbsp;
3. SMF Gallery Lite 1.7.6&nbsp; &nbsp;
4. Ad Managment 2.3&nbsp; &nbsp;
5. Streaming 3 4.2.2b&nbsp; &nbsp;



I tried a couple other ftp programs and they all do the same thing with the smaller thumbnail images.

I also tried a number of different setting on the ftp programs and I still can not download the smaller thumbnail images without them being messed up.

Not sure what to even try anymore.
I am out of idea's at this time.



I did also post this in another post with no replies, so I thought maybe I posted it in the wrong section.

http://www.simplemachines.org/community/index.php?topic=183090.0

Sorry for any double posting.

Just looking to get some help on this one.

Thanks..
Title: Re: SMF Gallery
Post by: TrueSatan on July 19, 2007, 09:15:19 PM
I don't know what I have set incorrectly, but I can access, upload etc no problem as administrator.

As soon as I log in as an ordinary member, instead of the gallery, all I get is:

                                 An Error Has Occurred!

If I go to permissions and give regular members admin permissions they can log in too.  Anyone got any idea what I've done or got wrong?

 Go to permissions and edit each groups permissions to allow their use of the Gallery.
Title: Re: SMF Gallery
Post by: TrueSatan on July 19, 2007, 09:33:43 PM
@ Appliance Junk

 SMF Gallery creates thumbnail images "on the fly" (meaning as and when they are required to be displayed) using a very fast system that your host has added to your PHP installation...it's called GD.

 The thumbnail files made by GD tend to have incorrectly attributed file extensions but are really.png files...try making a copy of one on your local machine and altering the file extension to .png and it may work better with the image viewer you are using.

 You may need to get a viewer that can properly render .png files (google for irfan view.)
Title: Re: SMF Gallery
Post by: ApplianceJunk on July 19, 2007, 10:01:15 PM
@ Appliance Junk

 SMF Gallery creates thumbnail images "on the fly" (meaning as and when they are required to be displayed) using a very fast system that your host has added to your PHP installation...it's called GD.

 The thumbnail files made by GD tend to have incorrectly attributed file extensions but are really.png files...try making a copy of one on your local machine and altering the file extension to .png and it may work better with the image viewer you are using.

 You may need to get a viewer that can properly render .png files (google for irfan view.)

Yeah, .png...
I do not really need to view them. I just want to make sure I am saving my images right it I want to use them for a backup.

If the thumbnail images are created "on the fly" then I really don't even need to save the thumbnail images for backups, correct?

If I ever need to restore my SMF gallery photos from my backup I can just download all the .jpg images and new thumbnails will be created?

Would there be any reason to save the thumbnail images with my other backup files?

Thanks..
Title: Re: SMF Gallery
Post by: ApplianceJunk on July 19, 2007, 10:07:09 PM
Quote
You may need to get a viewer that can properly render .png files (google for irfan view.)

I was trying to view the thumbnail files in paint shop pro XI and could not.
I can use my firefox browser to view them just fine. :)

Now I have a much better understanding of what is going on.
If I were to restore or create a new smf gallery with the files I backed up that had the images and thumbnails what would happen?

Would second thumbnail images be created or would the gallery just use the ones I had already saved for the images?

Thanks a million!
Title: Re: SMF Gallery
Post by: dede on July 20, 2007, 01:33:10 AM
Already tried this but as I've not seen this mod before, I didn't know if it added gallery to permissions or not - if it is supposed to, it hasn't on mine - there are no more or no less permissions than there were before so I can't allow or disallow members to use it.

I don't know what I have set incorrectly, but I can access, upload etc no problem as administrator.

As soon as I log in as an ordinary member, instead of the gallery, all I get is:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;An Error Has Occurred!

If I go to permissions and give regular members admin permissions they can log in too.&nbsp; Anyone got any idea what I've done or got wrong?

 Go to permissions and edit each groups permissions to allow their use of the Gallery.
Title: Re: SMF Gallery
Post by: dede on July 20, 2007, 02:51:41 AM
Quote
I don't know what I have set incorrectly, but I can access, upload etc no problem as administrator.

As soon as I log in as an ordinary member, instead of the gallery, all I get is:

                                 An Error Has Occurred!

If I go to permissions and give regular members admin permissions they can log in too.  Anyone got any idea what I've done or got wrong?

I've checked carefully.
I've downloaded another copy and re-installed.
I do not have any permissions for gallery users anywhere.

What I do have under "General Permissions - Regular Members" at the right below personal messaging is a column of 8 tick boxes without names Is this something to do with the gallery? And if so, where are the labels?

Title: Re: SMF Gallery
Post by: TrueSatan on July 20, 2007, 05:38:56 AM
@ ApplianceJunk

 You will still need to backup those images...the system will still need them as it will assume they were created and not make afresh. You can prove this by going, via ftp, to your Gallery directory, rename a thumbnail (change, for instance, .jpg to .jpgold so it is easy and obvious to find and reverse the change later) and you'll see that when you come to view the Gallery selection screen the thumbnail image you altered won't be shown.

 The restoration/creation is a bit more complicated. If you made a new Gallery on a new forum with a new database and just put the images and thumbnails in the Gallery directory there they wouldn't be accessed at all...you see the details of them wouldn't be in the new database. You'd need to add each image via the normal method so as to register them in the database and have them assigned to a particular member etc...and thumbnails would be made at that point.

 If you were to restore the database and files together so that database records and files were in sync then you'd be OK.

 I hope that helps.

@ Dede

Your problems make me suspect that you may have the wrong setting in ACP>Server Settings>

 Please make sure that your forum language is set to english and not english utf8...that change could well be all you need to make the lost items appear.

 If that doesn't fix it then you may have to go through the files this mod edits and manually check that the edits have been made properly fixing as you go any that are missing or duplicated.

 Before you added the mod I would hope that you went to ACP>Packages>Options and set the Installation Options appropriate to your hosting then used the Cleanup permissions to "Make all files writeable" and checked, via ftp, that they were then set to either CHMOD 775 or 777 (depending on hosting it could be either) post installing you could, if you wish, change to settings to a "tighter" level...you should make all files writeable prior to installing or uninstalling any mod or theme.

 I would also hope that you didn't ignore any fail reports from the Package Manager and that you are referring to the SMF Default theme rather than any other theme (any other theme would be a custom theme and need manual installation of the mod into it.)
Title: Re: SMF Gallery
Post by: ApplianceJunk on July 20, 2007, 07:58:10 AM
Quote
If you were to restore the database and files together so that database records and files were in sync then you'd be OK.

 I hope that helps.

Very helpful,
 thanks again..
Title: Re: SMF Gallery
Post by: TrueSatan on July 20, 2007, 08:51:43 AM
My pleasure!
Title: Re: SMF Gallery
Post by: dede on July 21, 2007, 04:24:51 PM
Quote
Your problems make me suspect that you may have the wrong setting in ACP>Server Settings>

 Please make sure that your forum language is set to english and not english utf8...that change could well be all you need to make the lost items appear.

TrueSatan:

Absolutely right! Thanks for the help - all working correctly now.
Title: Re: SMF Gallery
Post by: TrueSatan on July 21, 2007, 05:44:39 PM
Once more my pleasure!
Title: Re: SMF Gallery
Post by: MYBESTHOMESnet on July 22, 2007, 10:35:25 PM
Hi all,

Could someone point me where to modify and manually install this mod using techHead theme?

thanks in advance
Title: Re: SMF Gallery
Post by: vbgamer45 on July 22, 2007, 10:37:51 PM
Upload the mod to this package parser
http://www.smfhacks.com/smf-package-parser.html

Gives you the generally idea what files to edit for the themes.
Title: Re: SMF Gallery
Post by: MYBESTHOMESnet on July 22, 2007, 10:49:33 PM
thanks for your help vbgamer45:

nice tool but my problem now is my theme/language folder has only "settings.english" file, no "Modifications.english.php" which i need to modify. No other files found.

thanks again.
Title: Re: SMF Gallery
Post by: ~Unkn0wn~ on July 23, 2007, 12:13:49 AM
Works on 1.1.3?
Works on custom themes?
Title: Re: SMF Gallery
Post by: TrueSatan on July 23, 2007, 04:16:37 AM
@ MYBESTHOMESnet

 As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

 If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.
Title: Re: SMF Gallery
Post by: MYBESTHOMESnet on July 23, 2007, 04:23:25 AM
@ MYBESTHOMESnet

 As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

 If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.

thanks truesatan. i will try this one.
Title: Re: SMF Gallery
Post by: ~Unkn0wn~ on July 23, 2007, 02:00:34 PM
@ MYBESTHOMESnet

 As is the case with all custom themes if they don't have their own version of a particular file they will use the file of the same name in the SMF Default theme.

 If you want to make a particular change to Modifications.english.php for that theme then copy the one from the SMF Default theme to the custom theme's language directory and edit as required.

@ assasnklla

Yes, yes with manual installation.

TY, if you tell me how i reallyt manually install it would be good, example first install then edit this in this etc
Title: Re: SMF Gallery
Post by: TrueSatan on July 23, 2007, 02:18:15 PM
You need to first read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

...then use the following which will give you the list of actions to take that you mention:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: sonst-was on July 26, 2007, 07:41:30 AM
Hi,

nice Mod, really. But i have a little problem with the button.

I installed the mod with the Package Parser, the system is also working, only the [SMF Gallery] button doesnt appear in the menu (although it is in the code)...

Is there a way to make the button visible?
Title: Re: SMF Gallery
Post by: TrueSatan on July 26, 2007, 08:32:37 AM
@ sonst-was

 It sounds as though you've missed one of the edits to index.template.php

Look for:

Code: [Select]
$current_action = 'admin';
if (in_array($context['current_action'], array(

...and, immediately following, add to it:

Code: [Select]
'gallery',
Title: Re: SMF Gallery
Post by: sonst-was on July 27, 2007, 08:18:38 AM
That cant be the problem, because the "gallery" is already there...

Code: [Select]
$current_action = 'admin';
if (in_array($context['current_action'], array('gallery', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

I controlled the edits several times... but ive never found something forgotten... ???
Title: Re: SMF Gallery
Post by: TrueSatan on July 27, 2007, 12:25:20 PM
 If the edits are properly in place in index.template.php and it is being called properly (in other words the right file is being used) then it ought to display the button...even if the rest of the mod weren't working the button would still be displayed (in the event of the rest of the mod not working the button would still be there but clicking on it would not work.)

 If you are sure that you are using the theme you have edited then I would have to say that the rest of the theme, and perhaps other files in your forum, were not working as they should.

 You might first try replacing the theme's files and re-editing them to put in the mods you wish to use but if this is not sufficient to solve your problem you would then need to replace all the files from the SMF installation package (including those in directories) save for Settings.php and Settings_bak.php in the forum root with fresh copies from the SMF installation package and reapply all your mods, edits and themes.

 This would not affect the stored records in your database.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 27, 2007, 11:02:09 PM
Released SMF Gallery 1.8
+Added guest add picture support. Guests can now be allowed to add pictures to gallery if they have the add picture permission.
Title: Re: SMF Gallery
Post by: Bulakbol on July 28, 2007, 03:13:57 AM
ShouldI uninstall version 1.7.4 first before installing 1.8 version? 

Thanks.
Title: Re: SMF Gallery
Post by: TrueSatan on July 28, 2007, 04:31:26 AM
@ JohnyB

 Yes. You won't lose any images, comments etc so it is safe to do.
Title: Re: SMF Gallery
Post by: ozoknar on July 28, 2007, 07:36:00 AM
i just install 1.8 version but i can't see on admin panel?
what is the problem?

smf 1.1.3

turkish
Title: Re: SMF Gallery
Post by: sonst-was on July 28, 2007, 07:47:54 AM
If the edits are properly in place in index.template.php and it is being called properly (in other words the right file is being used) then it ought to display the button...even if the rest of the mod weren't working the button would still be displayed (in the event of the rest of the mod not working the button would still be there but clicking on it would not work.)

Okay, ive found one problem... Now the link is shown, but not the image gallery.gif (ive copied it also in the german image-folder).

I also cant find any <img>-Tag in the code, where button should be included. I think thats the reason why i was only seeing a text-link an not a linked button/image:

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>' : '';

If im right, i have to use this code:

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"> <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt['smfgallery_menu'] . '" style="margin: 2px 0;" border="0" /></a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

With these code i the the button/image and also click on it...

Edit:
ozoknar: I think you have to add the texts you added into Modifications.english.php also into the Modifications.turkish.php (you can translate it if you want to).
Title: Re: SMF Gallery
Post by: ozoknar on July 28, 2007, 08:01:54 AM
Quote
Edit:
ozoknar: I think you have to add the texts you added into Modifications.english.php also into the Modifications.turkish.php (you can translate it if you want to).

i just want to  see the gallery menu at side panel
thanks
Title: Re: SMF Gallery
Post by: sonst-was on July 28, 2007, 08:05:24 AM
i just want to  see the gallery menu at side panel
thanks

Yes, but the text for the menu is in english. and if you added the texts only in the Modifications.english.php you can also see the menu if your language is english (you can choose it in your profile)...
If you want to see the menu also in turkuish, you have to add the same texts (or the turkish translation) into the Modifcations.turkish.php.
Title: Re: SMF Gallery
Post by: ozoknar on July 28, 2007, 08:30:50 AM
Quote
Yes, but the text for the menu is in english. and if you added the texts only in the Modifications.english.php you can also see the menu if your language is english (you can choose it in your profile)...
If you want to see the menu also in turkuish, you have to add the same texts (or the turkish translation) into the Modifcations.turkish.php.

ok.

i copied the "Modifications.english.php" to "Modifications.turkish-utf8.php"

thanks...
now ican see and modify my settings in English no prob.
thanks
Title: Re: SMF Gallery
Post by: Bulakbol on July 28, 2007, 08:51:52 AM
@ JohnyB

 Yes. You won't lose any images, comments etc so it is safe to do.

That's good.  I'll uninstall the old one first then install this new one. Thanks TrueSatan.
Title: Re: SMF Gallery
Post by: TrueSatan on July 28, 2007, 08:55:24 AM
@ sonst-was

 Thanks for helping ozoknar

 The code in this mod should work properly without the alteration you suggest...remember this is a very popular mod so it is well tried and tested.

 I still suspect that you have some part of this mod missing from your forum...please recheck all edits and all extra files to see that everything is in place.

@ JohnyB

 My pleasure...
Title: Re: SMF Gallery
Post by: ozoknar on July 28, 2007, 09:04:31 AM
Can Gallery mod ???
do, show all my topics , replies ...vs  and messages  with any picture type on main forum page in thumbnail box or mini box  and users can click image to go  view page....( go topic )
?????

or Any mod released for this applications?
thanks
Title: Re: SMF Gallery
Post by: TrueSatan on July 28, 2007, 11:45:33 AM
@ ozoknar

 No, not currently and I rather doubt that that would fall within its scope...also I know of no other mod that would do anything close to what I think you are describing...the impact on page load speed would also be rather an issue if it were to be done.
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 01:16:13 PM
Please help,
I'm having two galery buttons on my forum since i delete the former file from the package and reinstall it.

Please how do i remove one of the galery button from my forum ? please click on the link to see what i'm talking about http://hyippolice01.com/worldforum/index.php your help will be well appreciate, THANKS.

 
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 01:32:59 PM
 You will have to edit index.template .php...look for the following code:

Code: [Select]
$current_action = 'admin';
if (in_array($context['current_action'], array(

 Following that you will find:

Code: [Select]
'gallery',
 You should have one instance only of the second code above...edit to remove extra instances.

 Find:

Code: [Select]
'allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

 Following that you will find:

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>' : '';


 Once more edit to remove extra instances of the second code block.

 It is possible that you may have other duplicate code in other files so please go to:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

 ...and input the mod into it...based on the output of that site please check all the files it mentions to see that the edits it mentions have not been duplicated.
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 01:50:19 PM
God bless you problem solved
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 02:05:28 PM
My Pleasure!
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 02:14:54 PM
Please can you help me again with this INVITATION PROBLEM

Gentlemen please I need help,
I'm geting this error message each time i try to send new invitation " Sorry, the invite key could not be sent (already sent maybe?)"
It started just after i installed galery to my forum, i uninstalled the galery but the problem still remain, please help because most of members are by invitation, I'm using SMF 1.1.3 Defaut theme.

THANKS.
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 02:21:59 PM
Would I be right in thinking that you are using the following mod:

http://custom.simplemachines.org/mods/index.php?mod=653 (http://custom.simplemachines.org/mods/index.php?mod=653)

...if so the code of that may also have been subject to duplications as was your Gallery code...please use the same site as I gave above to check the files it edits and adds removing any duplications as you go...if that mod is what you are using please post to the topic on this board relating to the mod...you will get proper support for it that way.
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 02:46:57 PM
I have check the index php their is no invitation duplication.
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 02:52:06 PM
If you are using the mod I refered to above your query needs to be stated on the topic for that mod...I'm sorry but this is the topic for the SMF Gallery and we can't answer Invite mod queries here.
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 03:05:52 PM
I have posted it in invite board still no reply, but thanks for your help.
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 03:10:04 PM
Please remember we're all volunteers here and giving up our free time to help...also it is a Sunday...be patient and you should get a reply.
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 03:17:29 PM
Ok.
Title: Re: SMF Gallery
Post by: Mettafix on July 29, 2007, 04:16:08 PM
Is there any way to mass upload pictures into SMF Gallery,like using some FTP client etc.(without upgrading to pro version).
Title: Re: SMF Gallery
Post by: Kenny01 on July 29, 2007, 04:16:53 PM
Please how do i use Parser

In file $boarddir/index.php
Find: &nbsp;
      'jsoption' => array('Themes.php', 'SetJavaScript'),
 

Add before:
 
      'invite' => array('Invite.php', 'InviteMain'),



In file $sourcedir/ModSettings.php
Find: &nbsp;
   $context['sub_template'] = 'show_settings';
 
   $subActions = array(
 

Add after:
      'invite' => 'ModifyInviteSettings',
 


Find: &nbsp;
   require_once($sourcedir . '/ManageServer.php');
 
   $subActions = array(
 

Add after:
      'invite' => 'ModifyInviteSettings',
 


Find: &nbsp;
         'layout' => array(
            'title' => $txt['mods_cat_layout'],
            'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
         ),
 

Add after:
 
         'invite' => array(
            'title' => $txt['invite_title'],
            'href' => $scripturl . '?action=featuresettings;sa=invite;sesc=' . $context['session_id'],
         ),
 


Find: &nbsp;
function ModifyKarmaSettings()
 

Add before:
 
// Invite MOD
function ModifyInviteSettings()
{
   global $sourcedir;
   require_once($sourcedir . '/Invite.php');
   InviteSettings();
}
 
 



In file $sourcedir/ManagePermissions.php
Find: &nbsp;
   $groupLevels['global']['restrict'] = array(
 

Add after:
      'invitees_any',
 


Find: &nbsp;
   $groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
 

Add after:
      'invite',
      'invite_unlimited',
      'invitees_own',
 


Find: &nbsp;
         'pm' => array(
            'pm_read' => false,
            'pm_send' => false,
         ),
 

Add after:
         'invite' => array(
            'invite' => false,
            'invite_unlimited' => false,
            'invitees' => true,
         ),
 


Find: &nbsp;
   $non_guest_permissions = array(
 

Add after:
      'invite',
      'invite_unlimited',
 



In file $sourcedir/Register.php
Find: &nbsp;
   // Check if the administrator has it disabled.
   if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
      fatal_lang_error('registration_disabled', false);
 
 

Add after:
 
   // Invite MOD; check if we're only accepting invites, and if so check for a valid invite key.
   global $sourcedir;
   require_once($sourcedir . '/Invite.php');
   $context['invite_key'] = validateInviteKey(empty($_REQUEST['invite_key']) ? '' : $_REQUEST['invite_key'], !empty($modSettings['invite_only']));
 
 


Find: &nbsp;
   // You can't register if it's disabled.
   if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
      fatal_lang_error('registration_disabled', false);
 
 

Add after:
 
   // Invite MOD; check if we're only accepting invites, and if so check for a valid invite key.
   global $sourcedir;
   require_once($sourcedir . '/Invite.php');
   $context['invite_key'] = validateInviteKey(empty($_REQUEST['invite_key']) ? '' : $_REQUEST['invite_key'], !empty($modSettings['invite_only']));
 
 


Find: &nbsp;
   $memberID = registerMember($regOptions);
 

Add after:
 
 
   // Invite MOD; looks like registration went ok, let's mark the invite key as used and who it was used by.
   if ($context['invite_key'] !== false)
   {
      db_query("
         UPDATE {$db_prefix}invites
         SET ID_REGISTRATION = '$memberID'
         WHERE inviteKey = '{$context['invite_key']}'
         LIMIT 1", __FILE__, __LINE__);
   }
   elseif (!empty($_REQUEST['inviter']) && (int)$_REQUEST['inviter'] !== 0)
   {
      db_query("
         INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION, inviteTime)
         VALUES ('" . (int)$_REQUEST['inviter'] . "', '$memberID', " . time() . ")
         ", __FILE__, __LINE__);
   }
 



In file $sourcedir/Memberlist.php
Find: &nbsp;
   // They're searching..
   if (isset($_REQUEST['search']) && isset($_REQUEST['fields']))
 

Replace with:
 
   // Invite MOD. &nbsp;Not really a user search, just using the fine table and such that's already here for the invitees list...
   if (isset($_REQUEST['inviter']) && loadMemberData(array($_REQUEST['inviter'])))
   {
      global $user_profile;
 
      if (($_REQUEST['inviter'] == $context['user']['id'] && !allowedTo('invitees_own')) || !allowedTo('invitees_any'))
         fatal_lang_error('invitees_any', false);
 
      // Just to let the members know it's not really a search.
      $context['page_title'] = $txt['invited_by'] . ' ' . $user_profile[$_REQUEST['inviter']]['realName'];
      $context['sort_links'][1]['label'] = $context['page_title'];
 
      // We need this so it thinks it's a regular search and won't be all ******y about variables...
      $context['old_search'] = '';
      $context['old_search_value'] = '';
 
      // Find the number of results.
      $request = db_query("
         SELECT COUNT(*)
         FROM {$db_prefix}members AS mem
            LEFT JOIN {$db_prefix}invites AS inv ON (inv.ID_REGISTRATION = mem.ID_MEMBER)
         WHERE inv.ID_MEMBER = $_REQUEST[inviter]
            AND is_activated = 1", __FILE__, __LINE__);
      list ($numResults) = mysql_fetch_row($request);
      mysql_free_result($request);
 
      $context['page_index'] = constructPageIndex($scripturl . '?action=mlist;sa=search;inviter=' . $_GET['inviter'], $_REQUEST['start'], $numResults, $modSettings['defaultMaxMembers']);
 
      // Find the members from the database.
      // !!!SLOW This query is slow.
      $request = db_query("
         SELECT mem.ID_MEMBER
         FROM {$db_prefix}members AS mem
            LEFT JOIN {$db_prefix}invites AS inv ON (inv.ID_REGISTRATION = mem.ID_MEMBER)
            LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
            LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
         WHERE inv.ID_MEMBER = $_REQUEST[inviter]
            AND is_activated = 1
         LIMIT $_REQUEST[start], $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
      printMemberListRows($request);
      mysql_free_result($request);
   } // End Invite MOD.
   // They're really doing a search.
   elseif (isset($_REQUEST['search']) && isset($_REQUEST['fields']))
 



In file $sourcedir/Stats.php
Find: &nbsp;
   // Activity by month.
 

Add before:
 
   // Invite MOD. &nbsp;Top 10 Inviters.
   global $sourcedir;
   require_once($sourcedir . '/Invite.php');
   InviteStats();
   // End Invite MOD.
 
 



In file $sourcedir/Profile.php
Find: &nbsp;
      // This block is only concerned with email address validation..
 

Add before:
 
      // Invite MOD. &nbsp;Change the number of inviter.
      if (!empty($_POST['inviter']) && (int)$_POST['inviter'] != 0 && (int)$_POST['inviter'] != $memID && allowedTo('moderate_forum'))
      {
         global $sourcedir;
         require_once($sourcedir . '/Invite.php');
 
         if (inviter($memID))
            db_query("
               UPDATE {$db_prefix}invites SET ID_MEMBER = {$_POST['inviter']}
               WHERE ID_REGISTRATION = $memID
               LIMIT 1", __FILE__, __LINE__);
         else
            db_query("
               INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION)
                  VALUES ({$_POST['inviter']}, $memID)", __FILE__, __LINE__);
      }
      elseif (isset($_POST['inviter']) && empty($_POST['inviter']))
      {
         db_query("
            DELETE FROM {$db_prefix}invites
            WHERE ID_REGISTRATION = $memID
            LIMIT 1", __FILE__, __LINE__);
      }
 
 



In file $themedir/index.template.php
Find: )))
      $current_action = $context['current_action'];

Add before:
, 'invite'


Find: &nbsp;
   // If the user is a guest, show [login] button.
 

Add before:
 
   // Invite MOD.
   if (allowedTo('invite'))
   {
      global $modSettings;
      echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
            </td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   }
 
 



In file $themedir/Profile.template.php
Find: &nbsp;
               <td>', $context['member']['registered'], '</td>
            </tr><tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
 

Replace with:
 
               <td>', $context['member']['registered'], '</td>
            </tr>';
 
   // Invite MOD.
   global $sourcedir;
   require_once($sourcedir . '/Invite.php');
   if (($context['user']['is_owner'] && allowedTo('invitees_own')) || allowedTo('invitees_any'))
   {
      if (inviter($context['member']['id']))
         echo '
            <tr>
               <td><b>', $txt['invited_by'], ': </b></td>
               <td><a href="', $scripturl, '?action=profile;u=', $context['member']['invited_by'], '">', $context['member']['invited_by_name'], '</a></td>
            </tr>';
 
      if ($context['member']['invitees_count'] = invitees($context['member']['id']))
         echo '
            <tr>
               <td><b>', $txt['invitees_count'], ': </b></td>
               <td><a href="', $scripturl, '?action=mlist;sa=search;inviter=', $context['member']['id'], '">', $context['member']['invitees_count'], '</a></td>
            </tr>';
   }
   // End Invite MOD.
 
   echo '
            <tr>
               <td><b>', $txt['lastLoggedIn'], ': </b></td>
 


Find: &nbsp;
      // Only display if admin has enabled "user selectable language".
 

Add before:
 
      // Invite MOD. &nbsp;Allow the administrator to change the inviter.
      if ($context['user']['is_admin'])
      {
         global $sourcedir;
         require_once($sourcedir . '/Invite.php');
         echo '
                     <tr>
                        <td><b>', $txt['invited_by'], ' (ID): </b></td>
                        <td><input type="text" name="inviter" size="4" value="', inviter($context['member']['id']), '" /></td>
                     </tr>';
      }
 
 



In file $themedir/Stats.template.php
Find: &nbsp;
         </tr><tr>
            <td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
 

Replace with:
 
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters_by_posts'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_inviters'] as $inviter)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $inviter['link'], '</td>
                     <td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $inviter['num'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_inviters_by_posts'] as $inviter)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $inviter['link'], '</td>
                     <td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $inviter['num'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
 



In file $themedir/Register.template.php
Find: &nbsp;
   echo '
   <br />
   <div align="center">
      <input type="submit" name="regSubmit" value="', $txt[97], '" />
   </div>


Add before:
 
   // Invite MOD
   if (!empty($context['invite_key']))
      echo '
   <input type="hidden" name="invite_key" value="', $context['invite_key'], '" />';
   elseif (!empty($_REQUEST['inviter']) && (int)$_REQUEST['inviter'] !== 0)
      echo '
   <input type="hidden" name="inviter" value="', $_REQUEST['inviter'], '" />';
 
 



In file $languagedir/Modifications.english.php
Find: &nbsp;
?>

Add before:
 
 
// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';
 
$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},
 
You have received an invitation to {forum}, click the following link to register:
 
{link}
 
{inviter} also sent this comment to you:
 
{message}
 
 
This message is not spam.';
 
$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invite_link'] = 'You can invite someone new by sending them the following link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';
 
 
$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';
$txt['invite_sent'] = 'The invitation has been sent.';
 
$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';
 
$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invite_unlimited'] = 'Unlimted invite credits';
$txt['permissionhelp_invite_unlimited'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to have unlimited invite credits.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';
 
$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
 
$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 04:32:33 PM
Is there any way to mass upload pictures into SMF Gallery,like using some FTP client etc.(without upgrading to pro version).

 No...that's why people pay for the pro version.
Title: Re: SMF Gallery
Post by: TrueSatan on July 29, 2007, 04:38:53 PM
@ Oga 123

 Really this is not the support topic for the invite mod and the query you are asking is about the code from that mod...your question belongs in the topic for the invite mod!

 If you read through what you posted you will find that the exact details of what you need to find etc are stated...you follow those instructions.

 I feel that the only way I can avoid contributing to taking this discussion off topic (the correct topic being SMF Gallery) is to decline to reply here to any more postings relating to the invite mod otherwise I will be playing a part in taking this off topic.
Title: Re: SMF Gallery
Post by: alisoncc on July 31, 2007, 07:55:32 AM
Hi,

just tried to install the Gallery mod. Everything seemed to run smoothly but the menu item for setting it up doesn't appear. There is just a blank space between "Server Settings" and "Current theme", which wasn't there before.

I am using version SMF 1.1.3 and the forum error log shows:

8: Undefined index: smfgallery_admin
.........................Sources/Subs.php
c949d7bebed56e55000492b3f66f5e18

Any clues?

Alison
PS. this is brand new install of SMF with no members or activities as yet.

Title: Re: SMF Gallery
Post by: TrueSatan on July 31, 2007, 09:13:43 AM
Your "blank space" issue suggests that you need to go to ACP>Server Settings and make sure that your forum is set to use English and not English utf8.

 If you are using a custom theme (i.e. anything other than the SMF Default theme) then you need to install the mod into it manually.

 Try that and see if the error persists.
Title: Re: SMF Gallery
Post by: burrito on August 01, 2007, 06:29:08 AM
Hi there
1.st can you tell me which files need a chmod and which
2nd, when i try to install it i get

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that .....

1.   Execute Modification   smfgallery.xml   Modification parse error
2.   Execute Modification   -   Modification parse error

I have the 1.1.3 version
Can anyone help?
Title: Re: SMF Gallery
Post by: TrueSatan on August 01, 2007, 07:07:34 AM
You would do best to use the inbuilt systems in your forum rather than altering individual files CHMOD settings to install this, or any other, mod. Go to:

ACP>Packages>Options>Installation Options

...and set the details appropriate to your hosting then go to "Cleanup Permissions" on the same page and make "All files writeable"...you can use the same system to "tighten" your settings after a mod installation/uninstallation if you so wish...set all files writeable prior to any installation/uninstallation.

 Check, via ftp, to see that the above worked and if not then review the "Installation Options" settings to make sure they are correct...they are usually the problem in such circumstances or the host may have a misconfigured server...otherwise it will work.

 If you then see fails reported in the Package Manager there will be due to other mods having already edited the files this mod seeks to edit so please do a manual installation of the mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: burrito on August 02, 2007, 04:50:32 AM
Hi TrueSatan
Thanks for the info, I will try that and see
Title: Re: SMF Gallery
Post by: casp3r on August 07, 2007, 08:16:48 AM
Sorry if this has been asked before but it's a long thread :) Is it possible to have the main forum search include the Gallery keywords and/or image descriptions? If it's not included in the Lite version is this possible with the Pro version?

Many thanks in advance
Title: Re: SMF Gallery
Post by: vbgamer45 on August 07, 2007, 08:30:00 AM
Not possile with either version that would require a good amount of work to accomplish.
Title: Re: SMF Gallery
Post by: casp3r on August 07, 2007, 08:38:34 AM
Thanks for the speedy reply. Another question then if you don't mind. Using the Gallerys own search facility is it possible to reduce the number of characters needed in the search phrase? It's currently set to 3 - I might want to search for 'Dog' but this will be rejected.

Many thanks
Title: Re: SMF Gallery
Post by: npereira on August 07, 2007, 12:17:42 PM
I have done the translation of this mod to french-utf8


Here is the file:
Title: Re: SMF Gallery
Post by: Klozi on August 09, 2007, 10:34:17 AM
Please can you tell me, how to display the image thumbnails in alphabetic order? It would be great in a cover gallery.

Hope you can help me. :)
Title: Re: SMF Gallery
Post by: neogeek on August 09, 2007, 06:05:56 PM
I am interested in purchasing the PRO version for my forum. However, I would like to see more screen shots or any website that has it up and running. Thanks!
Title: Re: SMF Gallery
Post by: TrueSatan on August 09, 2007, 06:30:00 PM
I'm sure vbgamer45 will be able to tell you whatever else you need to know but this link may help...screenshots and a feature list.

http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)
Title: Re: SMF Gallery
Post by: Kristopher424 on August 09, 2007, 11:34:58 PM
Hello,

I am having issues with the SMF Gallery not loading pages properly.  I put the info, as well as screen shots of the issues at http://www.simplemachines.org/community/index.php?topic=187754.msg1195604#msg1195604 .

If someone could take a look and let me know what might be wrong.  I really would like to get this working as I have seen the demo's/live sites/and screenshots for it and it looks amazing.  I have confidence!

Thanks,
Kristopher
Title: Re: SMF Gallery
Post by: Klozi on August 10, 2007, 02:50:44 AM
Are the language files accessable?
Title: Re: SMF Gallery
Post by: TrueSatan on August 10, 2007, 04:27:07 AM
@ Kristopher424

 As per vbgamer45's reply on the link you gave:

Quote
Copy Gallery.english.php from themes/default/languages/   
To every
themes/customtheme/languages/   
Folder.

 That should fix your problem.

@ Klozi

As you can see from the reply given to Kristopher424 the language strings are split out from the rest of the code (barring any that may have been inadvertently missed though those appear to have all be put right) so you have a single file to translate.
Title: Re: SMF Gallery
Post by: Ashdaw on August 10, 2007, 09:18:20 AM
I have installed this mod onto my forum but can't seem to get it to work. It took me three efforts to install it and I finally have it. The config part shows up in the Admin section and it is configurable but I get NO links in the forum itself. I am using the CS Classic theme but I truly don't know how to alter the
Code: [Select]
index.template.php of my theme to have this work. The gallery folder is chmodded to 777 and my forum is ver 1.1.3. I have a limited knowledge of Php and any help would certainly be appreciated.

This is my forum greycastloz.org (http://greycastloz.org) :D
Title: Re: SMF Gallery
Post by: TrueSatan on August 10, 2007, 10:09:23 AM
@ Ashdaw

 Like almost all mods this one has to be edited into the files of any custome theme. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: Ashdaw on August 11, 2007, 06:09:50 AM
Thanks TrueSatan, this is the second time you have come to my aid. :)
Title: Re: SMF Gallery
Post by: TrueSatan on August 11, 2007, 08:47:01 AM
My pleasure...as it will be if additional times are also needed...
Title: Re: SMF Gallery
Post by: FreeSporePrints on August 11, 2007, 01:47:15 PM
Hello!

How can i modify this white baground of the Gallery Lite Mod?

http://www.freesporeprints.org/SCREENSHOTS/gallery.gif (http://www.freesporeprints.org/SCREENSHOTS/gallery.gif)

Thank you  :)
F.
Title: Re: SMF Gallery
Post by: Klozi on August 11, 2007, 05:11:05 PM
I have set the max width and max height to 10000 pixels and the max filesize to circa. 10 mb, but if I want to upload a high quality cover, I get the following error message after uploading:

Not a valid picture file.

But that can't be, bere some information about the uploading image:

Width: 3236 Pixels
Height: 2161 Pixels
Filesize: 4,04 MB
Format: *.jpg


I am using SMF 1.1.3 with SMF Gallery Lite 1.7.1

Hope you can help me. :)
Title: Re: SMF Gallery
Post by: TrueSatan on August 12, 2007, 05:54:55 AM
@ Freesporeprints

 Have a look at Gallery.template.php

@ Klozi

 Firstly please make sure it is a valid .jpg file...many files that throw errors have had their extensions changed but are really a different file type. I'm not sure if there are absolute limits coded into SMF Gallery as regards file size and dimensions but I suspect that there may be and that your image may have exceeded them.
Title: Re: SMF Gallery
Post by: ApplianceJunk on August 12, 2007, 11:43:02 AM
I wonder if my gallery search is working right.

Take this photo for example.

http://appliancejunk.com/forums/index.php?action=gallery;sa=view;id=371 (http://appliancejunk.com/forums/index.php?action=gallery;sa=view;id=371)

The only way I can get it to show up in a search is to search for "Dishwasher".

I do a search for title and key words using the words, dishwasher float or dishwasher water and nothing is found.

Why?

Thanks,
Title: Re: SMF Gallery
Post by: Saskya on August 12, 2007, 02:48:33 PM
Hi Guys. Hope everyone is doing well on this humid rainy sunday. Well, ok - at least it's humid and rainy in FL.

I've got a small problem that i am hoping i can get a bit of assistance with. I've spent my afternoon researching and attempting to fix this, but i've hit a snag that i just cannot get past.

My 'gallery' link isn't showing up. I am 95% sure i've identified the issue, but i don't know where to go or what to edit to fix it.

(By the way, http://modparser.dev.dansoftaustralia.net/index.php is amazing.)

All of the coding/replacing is correct except for this:

in the index.template.php in my theme dir (amber11final) i am supposed to find this:
Code: [Select]
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

and add

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>' : '';

However, the first block of code just. is. not. in. that. file. I am so stumped it's just not funny. Any suggestions?
Title: Re: SMF Gallery
Post by: Reis_TÜRK on August 12, 2007, 02:59:11 PM
thanks.
Title: Re: SMF Gallery
Post by: TrueSatan on August 12, 2007, 03:22:24 PM
@ Saskya

 I would suggest that you query the developer of that theme and see how you are advised to make the navigation bar work in it...or switch to a theme that isn't so much distant, code wise, from the SMF Default theme.
Title: Re: SMF Gallery
Post by: Saskya on August 12, 2007, 04:21:22 PM
@truesatan

Thank you for the suggestion. Digging into the theme's thread worked perfectly to get me what i needed!
Title: Re: SMF Gallery
Post by: OmegaSupreme on August 13, 2007, 09:20:00 PM
I tried to search through this thread and saw a few people ask about this but all I could find was that it could be done by modifying gallery.template.php

I would like to modify gallery.template.php to be able to see the Title of the pictures that we upload on the page that displays the thumnails. Either top center of the pic or just below the pic, right above the "views" stat.  I tried to do it myself for about 2 hours now, but can't seem to figure it out. Any help would be greatly appreciated. 
Title: Re: SMF Gallery
Post by: dxyy on August 15, 2007, 01:37:37 PM
I have a question that I couldn't find the solution to from the few pages that I checked in this thread.

My forum uses both English and Chinese. On the English side everything appears to be fine. On the Chinese side though, there is no way for users to get to gallery as there is no tab for it where it says "home . help . search . profile . my messages . members . 'gallery' . logout "

I think that this is an easy fix for someone who knows what they are doing and is comfortable with PHP etc.; unfortunately that someone is not me. :( Therefore, I would really appreciate some guidance on this. Please be as clear as you can.

Thanks in advance. :)
Title: Re: SMF Gallery
Post by: TrueSatan on August 15, 2007, 03:48:23 PM
There's no need for PHP knowledge or any great difficulty for you in doing this...as per a previous reply given by vbgamer45:

Quote
Copy Gallery.english.php from themes/default/languages/   
To every
themes/customtheme/languages/   
Folder.

...then translate the file and all is done.

 You would translate the file by altering it as follows...looking at line 24 as an example:

Code: [Select]
$txt['gallery_text_title'] = 'Gallery';
...you would alter only the word after the equals sign...so if you were translating into French you would get:

Code: [Select]
$txt['gallery_text_title'] = 'Galerie';
 Treat each line of that file where a txt string is handled the same way and save your new file as Gallery.chinese.php leaving the existing Gallery.english.php in place and putting the new file in the same directory as it and in all your themes in the same way.
Title: Re: SMF Gallery
Post by: dxyy on August 15, 2007, 03:57:27 PM
Thanks for your reply. I'll give it a shot and let you know how it works out.
Title: Re: SMF Gallery
Post by: OmegaSupreme on August 15, 2007, 06:14:41 PM
I tried to search through this thread and saw a few people ask about this but all I could find was that it could be done by modifying gallery.template.php

I would like to modify gallery.template.php to be able to see the Title of the pictures that we upload on the page that displays the thumnails. Either top center of the pic or just below the pic, right above the "views" stat.  I tried to do it myself for about 2 hours now, but can't seem to figure it out. Any help would be greatly appreciated. 

Nobody got anything for me yet :D..I want to release this to our forum members but would like to get this resolved first!
Title: Re: SMF Gallery
Post by: dxyy on August 18, 2007, 05:50:31 AM
I have another problem. :(

Whenever I try to delete a picture it says something like: "An error has occurred. No picture selected"

Has anyone else had problems with this?
Title: Re: SMF Gallery
Post by: dxyy on August 19, 2007, 05:48:55 AM
Is it possible to have "previous" and "next" buttons in the gallery so that members can go through the pictures a lot more conveniently?

If this is not a feature, I hope whoever is in charge of this mod will consider that as an add-on in the future. :)

Also does anyone have any help for concerning my last post?

I have another problem. :(

Whenever I try to delete a picture it says something like: "An error has occurred. No picture selected"

Has anyone else had problems with this?
Title: Re: SMF Gallery
Post by: TrueSatan on August 19, 2007, 06:22:53 AM
Firstly please note that this is the free (Lite) version of SMF Gallery and that there is a pay to use pro version with many more features available...vbgamer45 usually charges for custom coding and the additions being requested would be likely to fall under the category of custom coding.

@ hugodiaz

 Does the image delete properly...if so ignore the report as it is just saying that the image it deleted isn't there anymore.
Title: Re: SMF Gallery
Post by: dxyy on August 19, 2007, 10:01:55 AM
Firstly please note that this is the free (Lite) version of SMF Gallery and that there is a pay to use pro version with many more features available...vbgamer45 usually charges for custom coding and the additions being requested would be likely to fall under the category of custom coding.

@ hugodiaz

 Does the image delete properly...if so ignore the report as it is just saying that the image it deleted isn't there anymore.
No the image is not deleted. For now, I have just been un-approving them so that they will not show in the gallery. Even then when I try to delete them it doesn't work. After I click delete, it takes me to a new screen which says:

Warning this will delete your picture and you can not restore it.

Delete Picture

Views:
Filesize: 0kb
Date: January 01, 1970, 07:00:00 AM
Comments ()

But from the information you can see that someone no picture is selected, and therefore nothing gets deleted. :(
Title: Re: SMF Gallery
Post by: TrueSatan on August 19, 2007, 10:25:49 AM
Go through the mod as per a manual installation and check that all edits and files are in place then check the paths are correct in ACP>Gallery Configuration>Settings and that the CHMOD of the gallery directory is set to 777
Title: Re: SMF Gallery
Post by: Coalesce on August 19, 2007, 10:06:27 PM
I just installed this mod, and have gone through and modified all permissions. I have also looked at and installed the different Language files, and moving things about appropriately.

Current SMF version: 1.1.3

Issue: No fonts are displaying. By this I mean nothing in the Admin panel. It shows the space where it is suppose to be, but nothing more. Doesn't display in the title bar or anything of the sort. I have tried it on the uploaded template as well as the default -- both are the same.

Any help would be appreciated -- just whenever you guys get around to my issue. I looked through the thread and saw nothing (that helped my issue).

Thanks
David
Title: Re: SMF Gallery
Post by: vbgamer45 on August 19, 2007, 10:25:22 PM
Have you copy the text from  modifications.english.php from themes/default/langauges/modifications.english.php
To every themes/default/langaugesmodifications.*.php file
And the same for any custom theme that has those files
 
Title: Re: SMF Gallery
Post by: Coalesce on August 20, 2007, 12:35:36 PM
Yeah, I tried doing that. I even tried simply using the default skin, and nothing showed at all. There were no errors reported upon "installation."  I've went through and un-installed and then re-installed. Also went through the suggestions already given and made sure that it did install the code in the files in the Sources folder.

I so far have not been able to get even a letter to display in the Admin panel or on the Links menu. Let me know if you can think of anything else I may have done wrong.
Title: Re: SMF Gallery
Post by: TrueSatan on August 20, 2007, 07:13:26 PM
Please check ACP>Server Settings to make sure that your forum language is set to English and not English utf8
Title: Re: SMF Gallery
Post by: npereira on August 22, 2007, 07:05:59 PM
I have this mod and when I click on gallery management link in the admin panel, I get "Not implemented ". Yet the mod is installed and there are pictures in the sections.

How can I fix this?

Also, in TP, the mode in the theme is also enabled.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 22, 2007, 08:48:36 PM
Do you have the mod installed? It should be under Gallery configuration.
The not implemented link is for TinyPortal
Title: Re: SMF Gallery
Post by: GazG on August 23, 2007, 07:18:14 AM
Hi all,
New to SMF and the Gallery, so be gentle.
Got a slight problem and hope you can point me in the right direction.
Gallery was running fine. Here goes.....
In SMF, when people upload their own avatars, it wasn't automatically resizing them - apparantly because the PHP GD library wasn't installed, ok so I enabled the GD library, but this has had the knock-on effect now that the gallery doesnot display the thumbnail images in the categories (in IE) and doesn't display any placeholder at all in Firefox - if you click the placeholder in IE the pictures display fine. Any ideas what the problem might - I was using 1.7.6 have upgraded to 1.8 and still the same problem. Using SMF 1.1.3 too.
Any help appreciated - I understand this may not be the correct place to ask but it affects the Gallery directly so I thought I'd start here.
Cheers

PS I just tried adding a new picture to the gallery and that's fine - link problems?
Title: Re: SMF Gallery
Post by: Ken. on August 23, 2007, 12:21:06 PM
I have this mod and when I click on gallery management link in the admin panel, I get "Not implemented ". Yet the mod is installed and there are pictures in the sections.

How can I fix this?

Also, in TP, the mode in the theme is also enabled.

When you look at the 'Gallery Admin' in the TinyPortal control panel you are not seeing a control for this SMF Gallery mod.
It is instead a feature of TinyPortal that has not yet been implemented but will be at some future date and it has no current relationship to the SMF Gallery mod at all.
You should just set it to Off
Title: Re: SMF Gallery
Post by: npereira on August 23, 2007, 02:47:54 PM
ok, but how do i manage the gallery ?
Title: Re: SMF Gallery
Post by: Ken. on August 23, 2007, 07:25:30 PM
For the SMF Gallery your controls are under the Admin>Configuration>Gallery Configuration menu.
Title: Re: SMF Gallery
Post by: drumsage on August 25, 2007, 11:16:21 PM
I enabled the GD library, but this has had the knock-on effect now that the gallery doesnot display the thumbnail images in the categories (in IE) and doesn't display any placeholder at all in Firefox - if you click the placeholder in IE the pictures display fine. Any ideas what the problem might - I was using 1.7.6 have upgraded to 1.8 and still the same problem.

I've got a similar issue. The gallery WAS resizing the photos and making thumbnails, but I needed to have GD running on my server for another program, and it wasn't installed. I've added php_GD successfully, but now the thumbnails and images no longer show up in the Gallery.

I went ahead and upgraded to Gallery 1.8 as well, but that obviously didn't fix anything. I'm assuming that Gallery was using Image Magik since I didn't have GD installed, but now that GD is running ... well, something is a mess.

New images being added to the Gallery seem to be fine, but not the old images or thumbnails. Does this mean the older images will have to be reinstalled?

Any suggestions?
Title: Re: SMF Gallery
Post by: Sulgicur on August 27, 2007, 08:17:24 PM
Hello chaps. I tried to install this for 1.1.3 but got an error in /Themes/default/index.template.php

Can you help me? I'd really like to have this mod.

Cheers
Title: Re: SMF Gallery
Post by: vbgamer45 on August 27, 2007, 08:31:36 PM
Hello chaps. I tried to install this for 1.1.3 but got an error in /Themes/default/index.template.php

Can you help me? I'd really like to have this mod.

Cheers
Install the mod then manually add the menu link to the template file.
Title: Re: SMF Gallery
Post by: FreeSporePrints on August 30, 2007, 02:15:10 PM
Hello,
why if i uninstall the mod, i have into the "Permissions" the options of SMF Gallery? How can i remove them?

Really thank you,
F.
Title: Re: SMF Gallery
Post by: TrueSatan on August 30, 2007, 04:54:42 PM
It would appear that you haven't completely uninstalled the mod...reverse the process of a manual installation and remove all edits the mod makes and your problem should disappear.
Title: Re: SMF Gallery
Post by: FreeSporePrints on August 31, 2007, 02:21:12 AM
It would appear that you haven't completely uninstalled the mod...reverse the process of a manual installation and remove all edits the mod makes and your problem should disappear.

Argh!!

I'm completly not able to do that. There's a tutorial to learn it?

Thanks,
F.
Title: Re: SMF Gallery
Post by: TrueSatan on August 31, 2007, 04:38:47 AM
You will have to look at the official documentation regarding manual installation and reverse the process therein described:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: vehla_jatt_4_u on August 31, 2007, 02:10:58 PM
i have successfully installed this packag on smf 1.1.3,but button gallery is hidden,i m using other thememnot smf default,help me
Title: Re: SMF Gallery
Post by: TrueSatan on August 31, 2007, 03:00:37 PM
Please use the links I provided in my previous post (reply 911) to perform a manual installation into your custom theme.
Title: Re: SMF Gallery
Post by: Jori on September 01, 2007, 08:54:23 AM
I have installed the gallery but i can't see it or acces it via the menubar. I'm using the dilber mc theme. Can anyone help me!!?
Title: Re: SMF Gallery
Post by: TrueSatan on September 01, 2007, 10:21:18 AM
Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: AON21 on September 04, 2007, 02:22:33 AM
When I install Gallery I get this message:
1.Execute Modification./Themes/default/languages/Modifications.english.phpTest failed

when I followed the links above, I found that there was no "<operation>" tag in this php file

Do I need to grab another copy of this php file?

Cheers
Title: Re: SMF Gallery
Post by: TrueSatan on September 04, 2007, 04:21:41 AM
The <operation> tag is part of the .xml file that tells the package manager how to work...it is not, and should not be, part of the php file being edited.

 The Modifications.english.php is particularly easy to edit and if you use the mod parser (last of the links above) it will show you exactly what to do.
Title: Re: SMF Gallery
Post by: AON21 on September 04, 2007, 06:24:19 AM
Thanks for the reply TrueSatan

Just so no one else makes the same mistake, you might be able to clear some things up for me - this came from the links above:
Quote
1. Open the .xml file with any text editor and search for <file name="...">. You will find the filename in the "name" attribute.
So far so good - Found that to be <file name="$languagedir/Modifications.english.php">

I then went to the next step:
Quote
2. Open up the specified file and look for a set of <operation>...</operation> tags. This indicates a single modification step within the specified file.
But there is no "<operation>" tag in the file above

Then to follow your advice, I went to this link as you suggested:
http://modparser.dev.dansoftaustralia.net/
which is deader than a doorknob  :-[

What did I miss?
Title: Re: SMF Gallery
Post by: TrueSatan on September 04, 2007, 08:17:53 AM
The part of the .xml file in question that refers to the file you need to edit is this:

Code: [Select]
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//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
]]></add>
</operation>
</file>

 The operation tag is in the second line of the above code.

 The operation is to search for:

Code: [Select]
?>
 and to put:

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

...prior to it. Make sure that you preserve the whitespace in the above code.

 The above edit is made to your Modifications.english.php file.

 Daniel15 provides the SMF Package Parser and hosts it himself...he does so as a service to the community but there are times when his host is down.
Title: Re: SMF Gallery
Post by: cru on September 04, 2007, 09:28:08 AM
hi, even if i set the permission for guests to NOT be able to post a picture, i have 1 guest who successfully posted one photo, and i accidentally approved it, and the problem is, i can't delete it.

im logged in as admin, and in the gallery, when i click delete, the warning comes out "Warning this will delete your picture and you can not restore it." and when i continue, by clicking on the delete button, it says " No picture selected" I would like to delete it directly from my file folder, but it may show up as a blank space in my gallery.


smf 1.1.3 default theme
Title: Re: SMF Gallery
Post by: ASi ve MAVi on September 04, 2007, 08:24:18 PM
hi

This is Turkish language translate

http://rapidshare.com/files/53468032/Gallery1.8.zip.html

Add Please

Thank you
Title: Re: SMF Gallery
Post by: AON21 on September 04, 2007, 11:59:26 PM
The part of the .xml file in question that refers to the file you need to edit is this:
code went here....
The operation tag is in the second line of the above code.

The operation is to search for:

Code: [Select]
?>
Gotcha thanks

and to put:
code...
...prior to it. Make sure that you preserve the whitespace in the above code.

The above edit is made to your Modifications.english.php file.
OK I will copy exactly and back up the originals - thanks for this TrueSatan

Daniel15 provides the SMF Package Parser and hosts it himself...he does so as a service to the community but there are times when his host is down.
Thanks for the history on Daniel15's generous donation to 'the cause' - Nice to know this is a giving community :)
If I ever need to pass that link on, I'll remember to add the disclaimer that it's down a fair bit so no one else is scratching their head like I was ;)

Fingers crossed - I'll try this out now

edit - it worked - I have all the Admin links now :)
I don't have the regular (front end) navigation links but I think I saw that covered in a previous post for customizing for themes :)

Thanks TrueSatan :)
Title: Re: SMF Gallery
Post by: TrueSatan on September 05, 2007, 04:46:58 AM
My pleasure
Title: Re: SMF Gallery
Post by: Klabautermann on September 05, 2007, 05:28:45 AM
I have applied the mod, but after the installation when he wants to redirect my I get this error message:

Unable to load the 'main' template.

And even when I hit the link to the gallery I get this error.

What can I do to resolve this?
Title: Re: SMF Gallery
Post by: Dragooon on September 05, 2007, 06:07:13 AM
Make sure Galllery.template.php is there in /Themes/default/ Folder.
Title: Re: SMF Gallery
Post by: Klabautermann on September 05, 2007, 06:41:48 AM
Gallery.template.php is in the default folder. Also extracted the mod and put the gallery.template.php from th ezip file to the server.
Title: Re: SMF Gallery
Post by: TrueSatan on September 05, 2007, 07:38:13 AM
Follow the normal process of a manual installation and check that all edits the mod makes are in place and all files uploaded...the following links may help explain the process:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Gallery
Post by: cru on September 05, 2007, 07:53:44 AM
Quote
hi, even if i set the permission for guests to NOT be able to post a picture, i have 1 guest who successfully posted one photo, and i accidentally approved it, and the problem is, i can't delete it.

im logged in as admin, and in the gallery, when i click delete, the warning comes out "Warning this will delete your picture and you can not restore it." and when i continue, by clicking on the delete button, it says " No picture selected" I would like to delete it directly from my file folder, but it may show up as a blank space in my gallery.


smf 1.1.3 default theme
]

anybody? please.. now what i did was unapprove the picture. still i cannot delete it from the gallery approval list. i see its not in the root folder though.
Title: Re: SMF Gallery
Post by: cru on September 08, 2007, 06:48:27 AM
hi, why do i get this error?

Warning Gallery path is not writable! /home/public_html/gallery/

I have used the gallery for the past month and i get this error just now...
i have set permissions to 775
Title: Re: SMF Gallery
Post by: Dragooon on September 08, 2007, 06:52:29 AM
Make it 777.
Title: Re: SMF Gallery
Post by: cru on September 08, 2007, 08:13:35 AM
thanks! its working now!
Title: Re: SMF Gallery
Post by: Dragooon on September 08, 2007, 08:14:29 AM
Glad you got it working. :D
Title: Re: SMF Gallery
Post by: Klabautermann on September 12, 2007, 01:27:38 AM
Can't animated it to work. Can someone please help me?
Title: Re: SMF Gallery
Post by: TrueSatan on September 12, 2007, 04:06:26 AM
Unless you can give us specific details it is difficult to be of help to you.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 12, 2007, 08:13:21 AM
Animated gifs will not work for thumbnails since they are resized but for the main picture view they should work fine.
Title: Re: SMF Gallery
Post by: Klabautermann on September 14, 2007, 08:19:19 AM
Unless you can give us specific details it is difficult to be of help to you.

I have applied the mod, but after the installation when he wants to redirect my I get this error message:

Unable to load the 'main' template.

And even when I hit the link to the gallery I get this error.

What can I do to resolve this?

Allready tried the manuell installation

Are there more informations you need?
Title: Re: SMF Gallery
Post by: TrueSatan on September 14, 2007, 08:29:06 AM
@ Klabautermann

 Please do the following and see if it resolves the problem. Go to ACP>Packages>Options set the "Installation Options" according to the specifics of your hosting and then on the same page set "Cleanup Permissions" to "All files writeable" Having done this check, via ftp, to see that your forum files are set to CHMOD777 and if they are not alter your entries in Installation Options then try again...if the settings are right the process should CHMOD your files.
Title: Re: SMF Gallery
Post by: Klabautermann on September 14, 2007, 09:31:45 AM
Hi TrueSatan, yes the prozess set the rights for all files first to 777 and later to 755. That seems to work
Title: Re: SMF Gallery
Post by: TrueSatan on September 14, 2007, 10:27:28 AM
@ Klabautermann

 Does the gallery mon work properly for you now? If it is not then I would unpack the mod on your local machine and from it upload the Gallery.template.php file making sure that the new file has CHMOD 777
Title: Re: SMF Gallery
Post by: mzeblu on September 15, 2007, 08:58:47 PM
I see everyone pointing to this thread for support.

I am getting errors after installing SMF Gallery Lite 1.8 and SMF Trader System 1.1 on my SMF 1.1.3 forum.

8: Undefined index: smftrader_admin
File: /home/gchurch/public_html/forum/Sources/Subs.php
Line: 2836

8: Undefined index: smfgallery_admin
File: /home/gchurch/public_html/forum/Sources/Subs.php
Line: 2838

Here are lines 2836 & 2838

   'trader_settings' => '<a href="' . $scripturl . '?action=trader;sa=admin;sesc=' . $sc . '">' . $txt['smftrader_admin'] . '</a>',

   'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',


I would appreciate any help on this.  :P
Title: Re: SMF Gallery
Post by: vbgamer45 on September 15, 2007, 09:05:52 PM
Copy themes/default/languages/modifications.english.php to every modifications.*.php file
If you using a copy theme do the same
themes/default/languages/modifications.english.php
to every modifications.*.php file
themes/customtheme/languages/
Title: Re: SMF Gallery
Post by: mzeblu on September 15, 2007, 09:50:42 PM
Copy themes/default/languages/modifications.english.php to every modifications.*.php file
If you using a copy theme do the same
themes/default/languages/modifications.english.php
to every modifications.*.php file
themes/customtheme/languages/

And this is when I feel really silly... but I dont understand what you are telling me to do.
I located the themes/default/languages/modifications.english.php file, copied it.. languages directory in each custom theme, yet I am still getting this error.  The odd thing was that in the theme Egad's Gold Night 2.2 theme (http://custom.simplemachines.org/themes/index.php?lemma=293) there is no languages directory.

I'm sorry for being such a noob to all this but I am gaining insight with every thread that I read here, someday I'll be able to contribute too....  Thanks.
Title: Re: SMF Gallery
Post by: TrueSatan on September 16, 2007, 05:43:11 AM
For a start make a languages directory in that theme and copy into it... Does the mod work for you in the SMF Default theme...if so any the custom theme in question continues to give problems it would probably be sensible for you to stop using it.
Title: Re: SMF Gallery
Post by: mzeblu on September 16, 2007, 08:56:58 AM
No, this mod is not working in any of the themes and the settings which would appear in the admin panel are not there.  I did make a languages directory, copied the file into it and still.. it did not work.

I do appreciate this help
Title: Re: SMF Gallery
Post by: TrueSatan on September 16, 2007, 09:20:21 AM
Have you gone to ACP>Server Settings and made sure that your forum is set to English and not English utf8?

Please also try going to ACP>Packages>Options>Installation Options and set the fields as appropriate for your hosting then, on the same page go to Cleanup Permissions and set that to All Files Are Writeable...then check, via ftp, that all files are set to CHMOD 777 or 775 if your hosting won't allow 777...if this hasn't happened it will be due to a wrong field in Installation Options so check there again, make sure of the settings and repeat the process...keep fiddling with the settings until you get it right if you don't do so first time.

 This should make file permissions such that they won't be preventing the mod from working and the first part should make the ACP options show up.
Title: Re: SMF Gallery
Post by: mzeblu on September 16, 2007, 11:01:13 AM
Have you gone to ACP>Server Settings and made sure that your forum is set to English and not English utf8?

YES YES YES..  I think this did it! :)  so far.. no errors!  I did have it set as English utf8 which must be a default setting or ?? who knows... but so far,, no more errors..   

Thank you for helping this swf noob!  I'm loving this software and it is hands down 1000 times better than phpbb imo.

Thanks again!   :) :) :) :) :)
Title: Re: SMF Gallery
Post by: TrueSatan on September 16, 2007, 12:22:31 PM
It's a pleasure...and knowing phpBB rather well (I have to give support for phpBB arcades on another site) I fully concur with you about it.

English utf8 seems to get set as defult when the forum is installed via Fantastico or other such server software...don't know why...but anyhow I'm glad you got up and running with your forum.
Title: Re: SMF Gallery
Post by: jossanaijr on September 17, 2007, 08:49:06 AM
Does this mod allows edit Categories permissions, ie, have some category for only a membergroup?
Title: Re: SMF Gallery
Post by: gouvernante on September 17, 2007, 09:03:09 AM
Noob question:
If I click on "apply mod" after uploading, "Execute modification" says "test successful", but nothing is indicated for "Extract Tree", "Extract File" and "Execute Code".

What does this mean and what can I do about it?
Title: Re: SMF Gallery
Post by: TrueSatan on September 17, 2007, 11:10:38 AM
@ jossanaijr

 The mod offers the following permissions per membergroup, you can choose which of them you want to enable for each membergroup:

View SMF Gallery    
Add Picture    
Edit own Picture    
Delete own Picture    
Leave Comments    
Report Pictures/Comments    
Auto Approve Pictures    
Manage Gallery    
 
Title: Re: SMF Gallery
Post by: jossanaijr on September 17, 2007, 11:15:23 AM
@ jossanaijr

 The mod offers the following permissions per membergroup, you can choose which of them you want to enable for each membergroup:

View SMF Gallery    
Add Picture    
Edit own Picture    
Delete own Picture    
Leave Comments    
Report Pictures/Comments    
Auto Approve Pictures    
Manage Gallery    
 
Ok, but it is not exactly what I'm asking.
All membergroups can use all those permissions in my gallery's forum.  What I need now is to create a specific category that will be available to only ONE of those all members, remaining the permissions to all others that can see,..,.., all others gallery categories.
Title: Re: SMF Gallery
Post by: TrueSatan on September 17, 2007, 11:19:04 AM
@ gouvernante

In ACP>Packages>Browse Packages does the mod show as being installed? If not please get a fresh version (preferably via a different browser) and install again...if it is shown in that list then try using it...does it work? Remember you have to set permissions etc. The mod will only be installed in your SMF Default theme and your forum language in ACP>Server Settings will need to be set to English and not English utf8

 In ACP>Packages>Options>Installation options you should set the fields according to the details of your hosting and on the same page in Cleanup Permissions set to All files are writeable and check via ftp that they are set to either CHMOD 777 or 775 check the Installation Options entries and amend if this has not happened.

 Prior to installing or uninstalling any mod or theme you should back up both your files and your database.
Title: Re: SMF Gallery
Post by: TrueSatan on September 17, 2007, 11:20:34 AM
@ jossanaijr

 No, that is not available in the "Lite" version of this mod...there is a pay to use "Pro" version that may have that ability available via SMF Hacks website
Title: Re: SMF Gallery
Post by: mzeblu on September 17, 2007, 02:37:04 PM
Have you gone to ACP>Server Settings and made sure that your forum is set to English and not English utf8?

YES YES YES..  I think this did it! :)  so far.. no errors!  I did have it set as English utf8 which must be a default setting or ?? who knows... but so far,, no more errors..   

Thank you for helping this swf noob!  I'm loving this software and it is hands down 1000 times better than phpbb imo.

Thanks again!   :) :) :) :) :)

NO NO NO, I spoke to soon.  How silly am I to test in one theme, fix the issue, and then test  the fix in a different theme! urgg!  I dont know where my head was.  Changing the language did however make some options that were not displaying in my ACP now appear there, but not for my SMF Default-Core theme.

So, bottom line,  I still need help with it.

here is the error again,

8: Undefined index: smftrader_admin
File: /home/gchurch/public_html/forum/Sources/Subs.php
Line: 2836

8: Undefined index: smfgallery_admin
File: /home/gchurch/public_html/forum/Sources/Subs.php
Line: 2838

Here are lines 2836 & 2838

   'trader_settings' => '<a href="' . $scripturl . '?action=trader;sa=admin;sesc=' . $sc . '">' . $txt['smftrader_admin'] . '</a>',

   'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',


****** I am also getting this error a lot too.

8: Undefined index: smftrader_profile
File: /home/gchurch/public_html/forum/Themes/default/languages/index.english-utf8.php (eval?)
Line: 287

Here are lines 285, 286, 287 & 288

$txt[660] = 'You\'ve got';
$txt[661] = 'Click';
$txt[662] = 'here';
$txt[663] = 'to view them.';

8: Undefined index: fc_chat
File: /home/gchurch/public_html/forum/Themes/default/languages/Who.english-utf8.php (eval?)
Line: 591

THE LAST LINE ON THIS FILE IS LINE 92


8: Undefined index: smfgallery_menu
File: /home/gchurch/public_html/forum/Themes/default/languages/Who.english-utf8.php (eval?)
Line: 605

AGAIN, THE LAST LINE ON THIS FILE IS LINE 92
Title: Re: SMF Gallery
Post by: glennk on September 17, 2007, 03:39:00 PM
Hi I installed the gallery in 1.1.3 and it looks fine but is throwing up a couple of errors as follows



da402573509ffef451f4e591cfc4ba5e
http://www.whitbyseaanglers.co.uk/forum/?action=gallery&amp;sa=add2
No uploaded picture found.



and



http://www.whitbyseaanglers.co.uk/forum/?action=gallery;sa=edit;id=12
Apply Filter: Only show the errors with the same message
8: Undefined index: gallery_text_oldpicture
File: /home/glennk/public_html/forum/Themes/default/languages/Gallery.english.php (edit_picture sub template - eval?)
Line: 629
Title: Re: SMF Gallery
Post by: TrueSatan on September 17, 2007, 06:45:21 PM
@ mzeblu

 Hmmm...what a mess! You are reporting what appear to be errors in three different mods...SMF Gallery, SMF Trader and what I think is some chat mod though I don't recognise which one...it also is apparent that english utf8 files are still being called. Please make sure that your forum language really is set to English and not English utf8. In case one or more of your members are selecting English utf8 please go to ACP>Features and Options>Basic Features and uncheck Enable user-selectable language support. The errors concerning Who.english-utf8 should then disappear...they can only be generated if English utf8 is being  used...I suspect that at least one person on your forum is still using English utf8 and this action should stop that from happening.

 When you see an error that includes "eval" that tells you that an error has occurred in a different file from the one mentioned in the error and that error has then made the mentioned file fail to work...hence the odd line numbers you often see with it.

 Hopefully that should fix most if not all of the problems you have reported.
Title: Re: SMF Gallery
Post by: TrueSatan on September 17, 2007, 07:03:43 PM
@ glennk

 Your first error shows that a picture wasn't uploaded properly...perhaps the picture was of an unsupported type or over the maximum limits...unless it persists with images you know should work properly I'd tend to try to identify the actual image(s) in question and se if you can investigate it to spot a reason for it/them not uploading.

 I'll offer what I think should fix your second error but you'll need to test it!

 In Gallery.english.php go to line 66 and add a new line immediately after it with the following in it:

Code: [Select]
$txt['gallery_text_oldpicture'] = 'Old Picture';
 Fingers crossed...I think it should work and await shooting by vbgamer45 if it doesn't.

 
Title: Re: SMF Gallery
Post by: John S on September 17, 2007, 10:32:09 PM
I can't uninstall this mod:

i've got installed smf gallery lite 1.7.1 and i get this error:

Quote
An Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

how can i uninstall it manually?
Title: Re: SMF Gallery
Post by: TrueSatan on September 18, 2007, 04:34:03 AM
Please go through the following links that detail a manual installation process and give you a human readable version of the .xml file in the package and reverse the process of a manual installation...your lack of an uninstaller is probably due to your having installed the mod prior to upgrading your forum from an earlier SMF version...the uninstaller was likely to have been specific to your old forum version and other older versions but not contain official support for the current version and thus is not shown in the page you viewed.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Gallery
Post by: inferno.xc on September 18, 2007, 11:08:52 AM
the gallery button in the menu on top and in the admin -> Configuration doesn't show up i get the following error logs



8: Undefined index: smfgallery_admin
File: /home/infernus/public_html/BT3/Forum/Sources/Subs.php
Line: 2762
 

8: Undefined index: smfgallery_admin
File: /home/infernus/public_html/BT3/Forum/Sources/Subs.php
Line: 2760
 
can anyone help me plz
Title: Re: SMF Gallery
Post by: TrueSatan on September 18, 2007, 01:37:57 PM
Are you using a custom theme? Anything other than the SMF Default theme is a custom theme...if so almost no mods will install into anything other than the SMF Default theme and this one is no exception...you will need to look at the installation into the default theme and try to manually replicate it in any custom theme...the following links may help:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


 Please check in ACP>Server Settings that your forum language is set to English and not English utf8 and go to ACP>Packages>Options>Installation Options and put in the detailsappropriate to your hosting then on the same page go to Cleanup Permissions and set to All file writeable...you should then check via ftp to see that all your files have been set to CHMOD 777 or 775 according to the peculiarities of your hosting...you should do this prior to installing any mods.

 Prior to installing or uninstalling any mods or themes you should backup both your files and your database.

 If you continue to have problems please try overwriting the files this mod adds with fresh versions taken from the mod package.
Title: Re: SMF Gallery
Post by: inferno.xc on September 18, 2007, 01:54:34 PM
thank thank thank thank thank you very much half the mods that i got where full with errors but when i chaged from English utf8 to English they where all fixed thanks very much
Title: Re: SMF Gallery
Post by: TrueSatan on September 18, 2007, 02:03:53 PM
My Pleasure.
Title: Re: SMF Gallery
Post by: biribise on September 19, 2007, 07:11:30 PM
hello i'm using turkish language, and some problems with chars ç, ş, ü, İ, ı, ğ, ö .... i add (accept-charset="', $context['character_set'], '") inside every <form> tag at gallery.template.php. but it doesn't work. i think its a bad idea. so how can i fix it? any helpful idea?



// fixed... change utf8 db tables.... thanks @vbgamer45
Title: Re: SMF Gallery
Post by: AON21 on September 20, 2007, 01:55:35 AM
Hi there,
If I want to add the Gallery link in the menu of a theme (ApolloBB) am I better to ask here, or in a thread relating to ApolloBB?
Thanks for reading
Title: Re: SMF Gallery
Post by: TrueSatan on September 20, 2007, 05:28:07 AM
I'll give you links to the official SMF documentation and other resources about general work adding mods to custom themes but if you want specific advice about a particular theme then you had best ask the theme developer.

 The general advice etc is as follows:

 Study the way the mod edits the SMF Default theme using the links below then try to replicate it in your custom theme:

 Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Gallery
Post by: DarkHarlequin on September 20, 2007, 12:05:53 PM
I am getting the error

Parse error:

syntax error, unexpected $end in /home/stripy/public_html/SMF/Sources/Gallery.php on line 86

I copied it as stated to the Packages directory, went to the packages link in admin, it appeared under the list, clicked the apply mod link, then install and said redirecting, after that it loaded up the error.

Anyone help?
Title: Re: SMF Gallery
Post by: TrueSatan on September 20, 2007, 12:45:46 PM
When you install a mod you don't need to copy via ftp...begin by going to ACP>Packages>Options and set Installation Options appropriate to your hosting then on the same page set Cleanup Permissions to All files writeable...check, via ftp, that this has happened and if not ammend your installation options settings and try again until it works. Go to ACP>Server Settings and make sure that your forum language is set to English and not to English utf8 also go to ACP>Features and Options>Basic Features and uncheck User Selectable Language Support. Prior to installing or uninstalling any mod or theme backup both your database and your site files. Now go to ACP>Packages>Download Packages and upload mods via the system on that page.

 It looks as though the files you uploaded may not have transferred properly...did the mod show any failed items during installation? You may need to try a new copy of the offending Gallery.php file uploaded from the package and see if that remedies the error...CHMOD it to 777
Title: Re: SMF Gallery
Post by: Teunel on September 23, 2007, 02:54:59 PM
Hi,

Is it possible to keep the original filenames, when I upload my images??
Title: Re: SMF Gallery
Post by: TrueSatan on September 23, 2007, 03:07:00 PM
Sorry, no. Part of the processing of it on the server means that the filename isn't preserved.
Title: Re: SMF Gallery
Post by: Teunel on September 24, 2007, 03:55:24 PM
Ah okay :) Oh well, I can live with it! :p
Title: Re: SMF Gallery
Post by: Brenda on October 01, 2007, 04:11:09 PM
I think I have everything loaded up correctly but I cannot for the life of me, figure out how to add a button in my forum for the gallery? Help!
Title: Re: SMF Gallery
Post by: RustyBarnacle on October 01, 2007, 04:15:16 PM
Basically you have to create a button to match the buttons used by your theme, save it to the same spot and then in the index.template.php file add it the same as the big strip of buttons already there.
Title: Re: SMF Gallery
Post by: TrueSatan on October 02, 2007, 09:09:24 AM
 If you are trying to use the mod in a custom theme you need to edit it into that theme and just adding a button will not be sufficient.
Title: Re: SMF Gallery
Post by: Brenda on October 02, 2007, 09:38:12 AM
Got my smf gallery uploaded and for some reason, I have 2 gallery toolbar buttons. How do I remove one of them?
Title: Re: SMF Gallery
Post by: Brenda on October 02, 2007, 10:26:30 AM
Fixed it....another question.

Anyway for each member to make their own separate album? Or do I need to create categories for each of them?
Title: Re: SMF Gallery
Post by: TrueSatan on October 02, 2007, 10:27:47 AM
Categories for each one.
Title: Re: SMF Gallery
Post by: Brenda on October 02, 2007, 10:31:11 AM
Thanks!
Title: Re: SMF Gallery
Post by: cru on October 03, 2007, 05:28:44 AM
Hi, i made the settings in order that all photos will not be displayed unless approved by the admin.

Now after a member uploads, this text is displayed:
Quote
Picture Not Approved


Where do i edit this text, coz what i want to display is:
Quote
Photo Upload Successful! Pls wait for admin's approval

TIA!
Title: Re: SMF Gallery
Post by: TrueSatan on October 03, 2007, 06:59:16 AM
Gallery.english.php line 169
Title: Re: SMF Gallery
Post by: cru on October 03, 2007, 08:10:45 AM
thanks! :)
Title: Re: SMF Gallery
Post by: TrueSatan on October 03, 2007, 08:56:31 AM
My pleasure!
Title: Re: SMF Gallery
Post by: TheWrath! on October 09, 2007, 01:04:45 PM
I get this error when trying to upload a .jpg file.

Quote
An Error Has Occurred!
Not a valid picture file.

why am i getting this?

my gallery directory i can not even upload anything to. I will be calling my hosting company and see what they say. but that error message i wanted to post here and see what you guys said.
Title: Re: SMF Gallery
Post by: TrueSatan on October 09, 2007, 04:22:14 PM
I'd start off by making sure it isn't a file/directory permissions problem:

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

 Try some different images and see if the error persists...sometimes files that have a .jpg extension aren't really jpg files (just ones that have been renamed with a wrong extension) or the image might be corrupted so that it really doesn't pass muster as a valid image file.

 Try to get an image you know to be good and see if the error persists.
Title: Re: SMF Gallery
Post by: topbuyer on October 11, 2007, 10:56:25 AM
I can't browse through all 50pages of this thread.

Can someone provide me the sample URL of smf forum which is working with this module. I would be able to see the live working module.
Title: Re: SMF Gallery
Post by: RustyBarnacle on October 11, 2007, 11:34:45 AM
I have it on my site
Title: Re: SMF Gallery
Post by: TheWrath! on October 11, 2007, 04:27:14 PM
topbuyer

you can visit my site as well....www.blueridgefireandrescue.com.  we do not have many photographs up at the moment but it gives you the idea.
Title: Re: SMF Gallery
Post by: texasflats on October 11, 2007, 07:33:53 PM
Take a look at http://texasflats.net/index.php?action=gallery

I plan to upgrade to "pro" in the future, it's a great module.
Title: Re: SMF Gallery
Post by: cru on October 14, 2007, 08:42:48 AM
hi, even if i set the permission for guests to NOT be able to post a picture, i have 1 guest who successfully posted one photo, and i accidentally approved it, and the problem is, i can't delete it.

>> First thing i did was unaprove it. now its in the image approval list.
im logged in as admin, and in the gallery, when i click delete, the warning comes out "
Quote
Warning this will delete your picture and you can not restore it.

Delete Picture

Views:
Filesize: 0kb
Date: January 01, 1970, 08:00:00 AM
Comments ()


>>and when i continue, by clicking on the delete button, it says
Quote
" No picture selected"


It's still in the root folder. why is it that 0kb is reflected in its properties in my quote above?


my mods
Code: [Select]
SMF1.1.4DefaultTheme. My mods- TP0.9.8, New Topic Button1.0,
SMF Trader System1.1, Referrals Mod1.4, Ad Managment2.3, SMF Gallery Lite1.8,
YouTube BBC Tag (XHTML Compliant)1.0, SMF Sitemap 1.2.1
Title: Re: SMF Gallery
Post by: vbgamer45 on October 14, 2007, 09:26:34 AM
What version of the gallery?
Title: Re: SMF Gallery
Post by: cru on October 14, 2007, 09:50:53 AM
lite 1.8 boss. now i deleted it in my root folder. but in my image approval list, its still there.
though there's no image, there's a title and description. don't know how i can remove it from the image approval list.
Title: Re: SMF Gallery
Post by: eveanimevengeance on October 18, 2007, 07:44:32 PM
I need some assistance, where do i go to change the permissions for my gallery for certain group members on my forum i went to gallery and permissions and it leads me to the regular permissions for the forum and not the permissions for the gallery PLEASE HELP ME !!!!
Title: Re: SMF Gallery
Post by: TrueSatan on October 18, 2007, 08:21:22 PM
Your forum and gallery are working as they should...the gallery permissions are in the "regular permissions". Please ensure that you are using the SMF Default theme (you will have to install this mod, like almost all mods, manually into any other theme) and have set your language correctly in case that is why they aren't showing for you.

 You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
Title: Re: SMF Gallery
Post by: eveanimevengeance on October 19, 2007, 12:14:58 AM
OMG THANK YOU SO MUCH !!!!!
Title: Re: SMF Gallery
Post by: StuR on October 19, 2007, 04:32:19 AM
i have just installed this mod, i can see the setting in admin cp, but cant find any access from the forum.

when i go to the direct link i just get a blank parent directory, how do i fix this??  im using 1.1.2
Title: Re: SMF Gallery
Post by: TrueSatan on October 19, 2007, 06:36:11 AM
Firstly I would strongly advise you to bring your forum up to date (SMF 1.1.4). Please see the reply I gave to eveanimevengean (reply 993) above and follow the same procedure...the setting of your forum language and theme.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 19, 2007, 08:56:44 AM
i have just installed this mod, i can see the setting in admin cp, but cant find any access from the forum.

when i go to the direct link i just get a blank parent directory, how do i fix this??  im using 1.1.2
Normally, accessed via http://www.yoursite.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: coldthunder on October 19, 2007, 10:50:53 AM
i currently have gallery lite 1.7.5.1. Is this one the pro version? i need user gallerys were a user can create a folder and put their pics in their folder.

Do i have to pay for that version to get that? if so where is the link and can i just upgrade to it from my current lite version or how to i converted over to the pro or whatever version supports the user galleries.

thanks
Title: Re: SMF Gallery
Post by: jamesk on October 19, 2007, 10:59:51 AM
Quote
currently have gallery lite 1.7.5.1. 

That is not the PRO.

The pro version:

http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)

I think you need to uninstall the lite version prior to installing the pro version.  I don't believe there's a straight upgrade, but check the install instructions...

Title: Re: SMF Gallery
Post by: cru on October 19, 2007, 11:45:20 AM
*bump*

hi, even if i set the permission for guests to NOT be able to post a picture, i have 1 guest who successfully posted one photo, and i accidentally approved it, and the problem is, i can't delete it.

>> First thing i did was unaprove it. now its in the image approval list.
im logged in as admin, and in the gallery, when i click delete, the warning comes out "
Quote
Warning this will delete your picture and you can not restore it.

Delete Picture

Views:
Filesize: 0kb
Date: January 01, 1970, 08:00:00 AM
Comments ()


>>and when i continue, by clicking on the delete button, it says
Quote
" No picture selected"


It's still in the root folder. why is it that 0kb is reflected in its properties in my quote above?


my mods
Code: [Select]
SMF1.1.4DefaultTheme. My mods- TP0.9.8, New Topic Button1.0,
SMF Trader System1.1, Referrals Mod1.4, Ad Managment2.3, SMF Gallery Lite1.8,
YouTube BBC Tag (XHTML Compliant)1.0, SMF Sitemap 1.2.1

now i deleted the said photo in my root folder. but in my image approval list, its still there.
though there's no image, there's a title and description. don't know how i can remove it from the image approval list.
Title: Re: SMF Gallery
Post by: coldthunder on October 20, 2007, 12:49:14 AM
Quote
currently have gallery lite 1.7.5.1. 

That is not the PRO.

The pro version:

http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)

I think you need to uninstall the lite version prior to installing the pro version.  I don't believe there's a straight upgrade, but check the install instructions...



vbgamer45  can you donfirm this, do i have to unistall the old one and install the pro? or can i upgrade? what about the pictures i haven now in lite? Can i read install instruction before purchasing it? thanks
Title: Re: SMF Gallery
Post by: NEMINI on October 20, 2007, 01:58:46 AM
coldthunder: http://www.smfhacks.com/index.php/topic,1068.0.html
Title: Re: SMF Gallery
Post by: vbgamer45 on October 20, 2007, 10:34:49 AM
Quote
currently have gallery lite 1.7.5.1. 

That is not the PRO.

The pro version:

http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)

I think you need to uninstall the lite version prior to installing the pro version.  I don't believe there's a straight upgrade, but check the install instructions...



vbgamer45  can you donfirm this, do i have to unistall the old one and install the pro? or can i upgrade? what about the pictures i haven now in lite? Can i read install instruction before purchasing it? thanks

You would unistall lite all pictures and database information is saved and then install the pro edition.
Title: Re: SMF Gallery
Post by: shumar on October 23, 2007, 05:18:15 AM
Is there any chance to get bbcode of thumbnail in lite version ?

Thank you.
Title: Re: SMF Gallery
Post by: eniaroyah on October 23, 2007, 06:25:41 AM
I'v got "Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed" error when I tried to install... What should I do?
Title: Re: SMF Gallery
Post by: TrueSatan on October 23, 2007, 07:52:35 AM
The probable cause is that you have failed to set up your forum properly prior to applying any new mods or themes...

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 08:46:09 AM
One question please.

Can someone tell me what must I inport (copy) into the file "modification.english.php" to see the permisions of gallery. I can't see any permisions only checkmarks.
See attached printscreen!!!

Thanks
Title: Re: SMF Gallery
Post by: jamesk on October 23, 2007, 09:15:32 AM
Double check in the default modifications.english.php file, but I believe it's:

Code: [Select]
//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.';
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 09:24:22 AM
Thanks,

I will try and let you know!
Title: Re: SMF Gallery
Post by: TrueSatan on October 23, 2007, 09:26:44 AM
The reason you are having this problem isn't due to your modifications.english.php file...

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 11:14:18 AM
Double check in the default modifications.english.php file, but I believe it's:

Code: [Select]
//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.';

thanks. That was the problem

solved
Title: Re: SMF Gallery
Post by: jamesk on October 23, 2007, 11:25:46 AM
You're welcome...

Quote
The reason you are having this problem isn't due to your modifications.english.php file...

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

I thought it was because some themes install their own modifications.english.php file, in which case the forum doesn't use the default.  Adding a new mod updates the default modifications.english.php, but not the ones inside other themes and that's why any additions to the file have to manually be copied into the ones in the themes....  No?

Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 12:40:15 PM
One question again:

How can I hide or disable in gallery this:
Picture Stats:
Views: xxx
Filesize: xxxx
Height: xxxx Width: x
Keywords: xxxxxxxx
Posted by: xxxxx

I don't need this

Another question is:
Is it possible to have the picture name above every picture, so that user don't need to open this picture to see his name?

Thanks
Title: Re: SMF Gallery
Post by: TrueSatan on October 23, 2007, 12:43:16 PM
Normally when you see a gap like that it's down to a languages issue however I see the questioner neglected to mention that he was using a custom theme as well so that also came ionto play this time...I'd always start by checking languages though.
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 12:51:23 PM
You don't understad me.
I wan't all picture stats to be disable. I don't need the picture stats.
Title: Re: SMF Gallery
Post by: shumar on October 23, 2007, 01:11:40 PM
Is there  any solution for this:
I wish that when I link picture from gallery to forum I get thumbnail, like I get when put picture as attachment.
Title: Re: SMF Gallery
Post by: jamesk on October 23, 2007, 02:09:30 PM
Dean B:

Make sure you backup the file first, but in gallery.template.php, lines 683-700 show those stats:

Code: [Select]
<b>' . $txt['gallery_form_description'] . ' </b>' . ($bbc_check ? parse_bbc($context['gallery_pic']['description']) : doUBBC($context['gallery_pic']['description']) ). '
<hr />
' . $txt['gallery_text_picstats'] . '<br />

' . $txt['gallery_text_views'] . $context['gallery_pic']['views'] . '<br />
' . $txt['gallery_text_filesize']  . $context['gallery_pic']['filesize'] . 'kb<br />
'  . $txt['gallery_text_height'] . ' ' . $context['gallery_pic']['height']  . '  ' . $txt['gallery_text_width'] . ' ' . $context['gallery_pic']['width'] . '<br />
' .  $txt['gallery_form_keywords'] . ' ';

for($i = 0; $i < $keywordscount;$i++)
{
echo '<a href="' . $scripturl . '?action=gallery;sa=search2;key=' . $keywords[$i] . '">' . $keywords[$i] . '</a>&nbsp;';

}
echo '<br />';

echo $txt['gallery_text_postedby'] . '<a href="' . $scripturl . '?action=profile;u=' . $context['gallery_pic']['ID_MEMBER'] . '">'  . $context['gallery_pic']['realName'] . '</a>' . $txt['gallery_at'] . $context['gallery_pic']['date'] . '<br />
<br />';

If you delete (or better yet comment out) that block but leave the last semi-colon, it should work...
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 02:22:17 PM
please can you tell me where exactly I can find this file: gallery.template.php

I looked but nothing.
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 02:50:27 PM
it don't work:
Parse error

Code: [Select]
676: </tr>
677: <tr class="windowbg2">
678: <td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" /></td>
679: </tr>
680: <tr class="windowbg2">
681:
682: <td>
683:
684:
685: echo $txt['gallery_text_postedby'] . '<a href="' . $scripturl . '?action=profile;u=' . $context['gallery_pic']['ID_MEMBER'] . '">'  . $context['gallery_pic']['realName'] . '</a>' . $txt['gallery_at'] . $context['gallery_pic']['date'] . '<br />686:
687:
Title: Re: SMF Gallery
Post by: jamesk on October 23, 2007, 02:54:56 PM
Where's the semi-colon?

Please re-read my post....  You need a semi-colon...

Also, you didn't delete the last line.
Title: Re: SMF Gallery
Post by: DeMar on October 23, 2007, 04:02:42 PM
With a help from jamesk problem is solved. But....

There in the gallery where the pic is shown smaller. Under the pic is this:
Views:
Filesize:
Date:
Comments (1)
By:

How can I insted "Filesize" have the name (Title) of the picture!
Title: Re: SMF Gallery
Post by: jamesk on October 23, 2007, 10:01:39 PM
Well, in Gallery.template.php, around line 83 you have:

Code: [Select]
echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
That's where you'd replace with what you're looking for.

The question is, what is it you're looking to put in there?  What do you mean by the name (title) of the picture?  Not the original filename, right?  I don't even think those original filenames are stored in the database.

The thumbnail filenames are there...

If you're talking about the description, I don't think the variable $context['gallery_pic']['title'] has even been set at this stage yet...

Also, I'm not sure what variables are set
Title: Re: SMF Gallery
Post by: DeMar on October 24, 2007, 12:16:49 AM
Instead the "filesize" I want to have picture name.
When you upload (add picture) there you can put title, description, keywords of a picture.
So I want instead "filesize" to have this title that you put when you upload your picture.
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 12:28:13 AM
Initially, I want to say put
Code: [Select]
echo $context['gallery_pic']['description'].'<br />';
but the $context['gallery_pic']['description'] variable hasn't been declared yet.

I gotta peep around some...

Unless, of course someone wants to chime in...
Title: Re: SMF Gallery
Post by: DeMar on October 24, 2007, 12:50:49 AM
I think gallery description would not be OK for me. Because I will have a long description, and it wouldn't be OK. The best solution is picture title that we put in during upload of pic.
If you find something, please post here.

maybe, something like this: echo $context['gallery_pic']['title'].'<br />';
Title: Re: SMF Gallery
Post by: cru on October 24, 2007, 01:09:59 AM
hi, can someone help me with this?
http://www.simplemachines.org/community/index.php?topic=114291.msg1279554#msg1279554

maybe i can solve this by editing my files, but i dont know what file to edit. TIA
Title: Re: SMF Gallery
Post by: yllas on October 24, 2007, 07:12:13 AM
I have this mod on my forum and am loving it :) 

I'm now wondering how I can turn off the ability to click on the thumbnail image, as I want to make it so that the images are only seen as thumbnails.

thanks inadvance
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 09:34:31 AM
Quote
I think gallery description would not be OK for me. Because I will have a long description, and it wouldn't be OK. The best solution is picture title that we put in during upload of pic.
If you find something, please post here.


Replace (around line 83 of Gallery.template.php)

Code: [Select]
echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
with

Code: [Select]
echo $row['title'].'<br />';
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 09:50:39 AM
Quote
I'm now wondering how I can turn off the ability to click on the thumbnail image, as I want to make it so that the images are only seen as thumbnails.

You can turn off the link (which turns off the ability to click the image) and will show the images only very simply.  However, someone can always enter the URL manually to get to the image -- this takes more work...

For just removing the clicks:

In forum/Themes/default/Gallery.template.php

find (around line 81):

Code: [Select]
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';

and replace it with:
Code: [Select]
echo'<td align="center"><img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';
Title: Re: SMF Gallery
Post by: DeMar on October 24, 2007, 11:05:58 AM
Quote
I think gallery description would not be OK for me. Because I will have a long description, and it wouldn't be OK. The best solution is picture title that we put in during upload of pic.
If you find something, please post here.


Replace (around line 83 of Gallery.template.php)

Code: [Select]
echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
with

Code: [Select]
echo $row['title'].'<br />';

Hello jamesk,

that's it. That is what I wanted.
Thanks a lot

Is it possible to display this title a little bigger, maybe bold?
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 12:56:08 PM
Quote
Is it possible to display this title a little bigger, maybe bold?

That -- I won't help you with as it nothing to do with SMF.  That's a basic HTML question which you can find an answer by doing an internet search.
Title: Re: SMF Gallery
Post by: DeMar on October 24, 2007, 01:16:30 PM
I tried with basic HTML and nothing.
That's why asked.

Sorry for my question!
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 01:42:30 PM
You don't have to be sorry.  I'm just trying to help you help yourself.  I know it's pretty difficult and that's why I'm here as well since I've only installed SMF very recently and am trying to get a better feel for it as well as learn myself.

If you do an internet search for "bold html" you should find a ton of results.  Here's one:
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_formattingch (http://www.w3schools.com/html/tryit.asp?filename=tryhtml_formattingch)

It shows you need to wrap the text around <b> and </b>.  So, for your example, you can:

Code: [Select]
echo '<b>',$row['title'],'</b><br />';
Notice the new <b> </b> surrounding the $row['title'].  I had to add the single quotes around the <b> as that is HTML.  You can do a search on PHP echo statements which is very necessary to do any kind of modification in SMF.

Anyways, do a search on changing the font.  You can probably start off with deprecated HTML just to get the effect you want and then move onto the way it should be done through CSS (http://www.w3schools.com/css/css_intro.asp (http://www.w3schools.com/css/css_intro.asp))

Hope that helps...
Title: Re: SMF Gallery
Post by: DeMar on October 24, 2007, 01:48:22 PM
Thank you very much!
I'm in learning.

Thanks
Title: Re: SMF Gallery
Post by: yllas on October 25, 2007, 04:42:22 AM
Quote
I'm now wondering how I can turn off the ability to click on the thumbnail image, as I want to make it so that the images are only seen as thumbnails.

You can turn off the link (which turns off the ability to click the image) and will show the images only very simply.  However, someone can always enter the URL manually to get to the image -- this takes more work...

For just removing the clicks:

In forum/Themes/default/Gallery.template.php

find (around line 81):

Code: [Select]
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';

and replace it with:
Code: [Select]
echo'<td align="center"><img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';

Many thanks :)
Title: Re: SMF Gallery
Post by: ArkServer on October 26, 2007, 06:07:30 AM
I haven't read all these pages but is there a way to let users have a personal album?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 26, 2007, 08:13:18 AM
I haven't read all these pages but is there a way to let users have a personal album?
Note in the lite edition
Title: Re: SMF Gallery
Post by: cru on October 26, 2007, 08:43:16 AM
*bump*
hi, can someone help me with this?
http://www.simplemachines.org/community/index.php?topic=114291.msg1279554#msg1279554

maybe i can solve this by editing my files, but i dont know what file to edit. TIA
Title: Re: SMF Gallery
Post by: shumar on October 26, 2007, 08:55:04 AM
Is there any chance to link images from gallery in posts, like is in attachment ?
Title: Re: SMF Gallery
Post by: dry3210 on October 26, 2007, 02:07:44 PM
Without searching through 52 pages of posts...(although I did do a general search and didn't come up with anything)...

What about...
1. Having a default size for images and an option to view full size. 
2. Having a link to the person user gallery under their avatar and/or in their profile

Great mod by the way!
Title: Re: SMF Gallery
Post by: Itheniel on October 26, 2007, 06:13:39 PM
This is weird..
I just installed this mod, but I dont get any new configurable options in my admin panel..

after reading through some of the post here, I think there should be a "gallery config" option in my admin panel, but I dont have anything like it..

Could someone help me please?
Title: Re: SMF Gallery
Post by: jamesk on October 26, 2007, 06:22:01 PM
Try using default theme...  If it's there, then at least you know it installed properly.

Once verified, you have to understand that many mods to change the template files for other themes so you have to do it yourself.
Title: Re: SMF Gallery
Post by: autobug on October 26, 2007, 06:37:49 PM
i just installed the gallery mod ( lite version ) and clicked 'apply mod' then the following screen appears

http://i49.photobucket.com/albums/f253/snowgoose88/screenauto.png

any ideas what this means and how do i sort/fix it?

Cheers

Jake
Title: Re: SMF Gallery
Post by: Vendetta1990 on October 30, 2007, 11:38:04 AM
hi peoples

when i would install the gallery always this message is comming:

1.     Execute Modification     smfgallery.xml     Modification parse error
2.    Execute Modification    -                    Modification parse error

Sorry for this question, but i am not very good at this things, and my english is either not very well:-)

Thanks for help

Best regards
Manuel
Title: Re: SMF Gallery
Post by: TrueSatan on October 30, 2007, 01:28:58 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Gallery
Post by: cru on October 30, 2007, 07:52:58 PM
*bump*
hi, can someone help me with this?
http://www.simplemachines.org/community/index.php?topic=114291.msg1279554#msg1279554

maybe i can solve this by editing my files, but i dont know what file to edit. TIA
Title: Re: SMF Gallery
Post by: shumar on October 31, 2007, 04:45:16 PM
Is there any chance for this:
Resize images when showing under posts If I use image from gallery on same forum ??
Title: Re: SMF Gallery
Post by: shijmus on November 01, 2007, 03:54:34 PM
hi, anybody can look at my problem here?
I installed the SMF gallery, but, when I login with admin, I got this problem(see attached image), I don't know where it comes that many gallery menu. Please help me to remove it, thanks.
Title: Re: SMF Gallery
Post by: TrueSatan on November 01, 2007, 06:58:13 PM
You have obviously installed the mod a great many times and thus have a great many copies of the code this mod adds to files added to them...multiple instances. You will need to manually edit your files to remove the duplicate code...all the files this mod edits are likely to be affected.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Gallery
Post by: Jovian on November 03, 2007, 06:05:14 AM
Hi,

I have just installed SMF 1.1.3 using Fantastico and have upgraded it to 1.1.4.

Using the Packages options I have uploaded the Gallery zip file. When I try to install the Gallery mod the install actions look like this.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wyldjokers.com%2Fpics%2Fsmfinstallactions.jpg&hash=aeab184bb9c8271b0e18690a02c3e51a)

Items 1 - 6 are marked test successfull but 7 - 12 are blank and I assume they should have a comment under the description.

Then I hit install and my error log fills up. The 1st 3 errors as follows.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wyldjokers.com%2Fpics%2Fsmferrorlog.jpg&hash=275c2f240dfb61056c066edc6df65977)

Can anyone please help on this. I love SMF but really need Gallery to function and dread the manual install.

Thanks
Title: Re: SMF Gallery
Post by: Jovian on November 03, 2007, 06:13:19 AM
The pics do not show well so here are errors

8: Undefined index: smfgallery_admin
File: /home/wyldjoke/public_html/forum/Sources/Subs.php
Line: 2742

8: Undefined index: smfgallery_menu
File: /home/wyldjoke/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 575

8: Undefined index: smfgallery_admin
File: /home/wyldjoke/public_html/forum/Sources/Subs.php
Line: 2742



Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Themes/default/languages/Who.english.php Test successful
3. Execute Modification ./index.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Extract File ./Sources/Gallery.php 
8. Extract File ./Themes/default/Gallery.template.php 
9. Extract Tree ./gallery 
10. Extract File ./Themes/default/languages/Gallery.english.php 
11. Extract File ./Themes/default/languages/Gallery.english-utf8.php 
12. Execute Code galleryinstall.php
Title: Re: SMF Gallery
Post by: TrueSatan on November 03, 2007, 06:51:30 AM
The package installer doesn't show comments on file extractions so your report is actually free of errors...Fantastico tends to give a few issues...here's what to do:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

 Do those and see if your errors persist.
Title: Re: SMF Gallery
Post by: MinasC on November 03, 2007, 08:38:40 AM
hello there,

i recently put a drop down menu to my forum and i tried to put there a link for "My Pictures" of the forum's gallery , so that every member could see his/her own pics with a click ! i looked in Gallery.template.php and found that the link was

Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>
so i put that in my menu but it didn't work ! instead i get the message "no user has been chosen" ! i used several similar links such as

Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $row['ID_MEMBER'] . '">' . $txt['gallery_text_myimages'] . '</a>
but none worked either ! anyone knows what is the right link ?

thnx in advance !
Title: Re: SMF Gallery
Post by: jamesk on November 03, 2007, 11:05:14 AM
Do you have a

global $ID_MEMBER

where you're trying to display the link?  It's obviously not picking up the variable $ID_MEMBER.

Title: Re: SMF Gallery
Post by: MinasC on November 03, 2007, 11:42:43 AM
it's within a javascript :

Code: [Select]
<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
//menu1[0]=\'<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $memID . '">My Pics</a>\'

var menuwidth=\'200px\' //default menu width
var menubgcolor=\'lightblue\'  //menu bgcolor
var disappeardelay=200  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write(\'<div id="dropmenudiv" style="visibility:hidden;width:\'+menuwidth+\';background-color:\'+menubgcolor+\'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>\')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>
Title: Re: SMF Gallery
Post by: jamesk on November 03, 2007, 12:10:54 PM

Let me clarify.  In whichever template file (maybe index.template.php) you're using to try to display the link, you need to have the $ID_MEMBER variable "visible."  You obviously have other variables like $scripturl as global.

So, look at the PHP code in the file, and find the function that you want to display in and find the code that looks like:

Code: [Select]
global $context, $settings, $options, $scripturl, $txt, $modSettings;
Of course, yours may be different as (again) I don't know where you're trying to display it.  Try adding $ID_MEMBER in there as well.
Title: Re: SMF Gallery
Post by: MinasC on November 03, 2007, 12:29:05 PM
it worked !!!
i put $ID_MEMBER as you told me here

Code: [Select]
global $context, $settings, $options, $scripturl, $txt, $modSettings, $ID_MEMBER;
and i changed the link in my menu looking like that

Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>
and it worked just fine !

thnx so much mate , you are a lifesavior !!!
Title: Re: SMF Gallery
Post by: Jovian on November 03, 2007, 07:15:30 PM
Thanks a million TrueSatan . I followed your steps and everything works fine now. :) You made the steps very simple. Thank you again

Jovi
Title: Re: SMF Gallery
Post by: TrueSatan on November 05, 2007, 04:08:21 AM
My Pleasure.
Title: Re: SMF Gallery
Post by: vmpre2 on November 10, 2007, 10:39:25 AM
This might have been asked already. But are there are options for Batch uploading lots of images?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on November 10, 2007, 10:41:17 AM
Not in the lite edition.
Title: Re: SMF Gallery
Post by: shumar on November 10, 2007, 11:06:07 AM
Can I have BBcode for thumbnails, to have something like I have when put picture as attachment??
Title: Re: SMF Gallery
Post by: LinkinParkBoy on November 10, 2007, 05:51:44 PM
This mod have Portuguese translation please?
Title: Re: SMF Gallery
Post by: JenniferW on November 10, 2007, 11:19:40 PM
Upon trying to install I got:

1. Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed

What should I do to fix this? I am using SMF v1.1.4
Title: Re: SMF Gallery
Post by: vbgamer45 on November 10, 2007, 11:26:26 PM
I would still continue you will need to manuallly make the changes to modifications.english.php
Use this link and upload the package to this page
http://www.smfhacks.com/smf-package-parser.html
To figure out the changes
Title: Re: SMF Gallery
Post by: JenniferW on November 10, 2007, 11:52:50 PM
Thanks! This mod is great!
Title: Re: SMF Gallery
Post by: vmpre2 on November 11, 2007, 01:38:02 AM
Not in the lite edition.

OK, so where is the full version? :)

Right never mind, found it.
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 11, 2007, 02:06:02 AM
Installed the gallery, no problems, works great, looks great and is a nice touch up! :)

good job!

 
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 05:30:02 AM
ok..... obviously i didnt read all 54 pages of this but i searched and skimmed. I apologize if this is a repeat. I have installed this mod, and i LOVE it! but i cant seem to get it to work with the candy theme, or that dilbur one either. I have tried manual install with no luck. Any other ideas? I really dont like the default theme- as most dont. Its kinda boring - works for guys but ladies arent too much into it, not the ones my forum is directed at anyways considering I am a graphics designer and all of my other pages are crazy with color! lol. Thank you in advance. Let me know if theres anything you need to know in order to assist me further!
Title: Re: SMF Gallery
Post by: TrueSatan on November 11, 2007, 05:52:19 AM
I notice that postings of yours to other mods say you can't get mods to install into your chosen custom themes...I've answered there giving general advice on what to do.
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 07:12:07 AM
aw yes truesatan , i figured out this mod due to your post thank you very much!
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 09:36:21 AM
ugh! ok looks like i didnt have it completely figured out after all. Seems it wont let me upload. it says invalid file type. So far this seems to be the only thing wrong with it......any suggestions?
Title: Re: SMF Gallery
Post by: TrueSatan on November 11, 2007, 10:38:10 AM
Quoting vbgamer45's initial description of the mod:

Quote
Supports bmp, gif, jpeg, and png images

 So...what file type did you try and have fail? Are you certain that the file(s) in question were valid ones...meaning properly coded for the file type that they claim to be...occasionally you may find file on the Internet (and elsewhere) that have a certain file extension but are not valid files of the type the extension suggests they are.
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 10:49:54 AM
I thought it would support those files, I tried more than just one file as well, i thought maybe it was something wrong withe the files but i went thru a crap load with again, no avail!  I am not sure what you mean abt being certain they are valid- i have never had a problem before when i upload these same files to hosts that say they only support those same file types......
Title: Re: SMF Gallery
Post by: TrueSatan on November 11, 2007, 11:04:18 AM
 Does your host have GD enabled in its PHP installation...that is a requirement for this mod to work? No GD mod no workee.

 Sometimes people, for instance, take a .gif file and think they are changing it into a .jpg file by just altering the extension...they are wrong and all they get is an invalid .jpg file...sometimes files are just corrupt...that's what I meant.
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 11:16:08 AM
I called and asked my host (yahoo) abt what you mentioned and they guy said it wasnt on the list of supported php functions...... The list is here

http://help.yahoo.com/l/us/yahoo/geocities/php/php-33.html


Is there a way to tell if the file is corrupt? i dont necessarily think that they are because like i said this is the first instance, and actually a friend of mine has a forum- i forgot to mention- that is powered by SMF and i was able to upload a couple of the same files to hers. Of course i didnt try them all because at the time i wasnt testing the files lol.

Title: Re: SMF Gallery
Post by: TrueSatan on November 11, 2007, 12:04:25 PM
Let me cut to the chase a little...you see the image in my signature section under each posting...it is a valid .jpg image so save that to your local machine and try adding it to your forum.

 Abandon all themes but the SMF default while you are trying to get any mod to work...get it to work in the default theme and only then consider other themes.
Title: Re: SMF Gallery
Post by: perpetuallove on November 11, 2007, 12:39:10 PM
Ok i tried that- Nope! didnt work. same message that it is an invalid file......? I am undoing what i have done and will be trying again, if it doesnt work i can delete the whole forum and reinstall til i get it right since this is just my test forum.
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 11, 2007, 10:51:46 PM
Admin notification for uploaded images? - would be a great idea in the light version!
Currently I have to check Approve Images every day?

Title: Re: SMF Gallery
Post by: Ol' Wombat on November 12, 2007, 03:59:32 AM
What exactly can I do with Edit-Picture?

I got GD installed and all it does when clicking the Edit-Picture button is it falls back to the gallery - is that normal?

(Latest gallery installed)
Title: Re: SMF Gallery
Post by: perpetuallove on November 12, 2007, 05:42:09 AM
hmmmmm.... I am still getting the "Not a valid picture file." error.  What is this GD ? I have yahoo- how can i "install" this feature that has to be enabled?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 12, 2007, 08:24:51 AM
GD is required to make thumbnails and I think to get the picture information.
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 12, 2007, 03:15:58 PM
GD is required to make thumbnails and I think to get the picture information.

I thought (auto) resizing image should work too? currently oversized images are just rejected.
Title: Re: SMF Gallery
Post by: TrueSatan on November 12, 2007, 09:51:03 PM
GD is an addition to PHP that is added (or not) by the server admin as part of the PHP installation that you use. Depending on your hosting you may, or may not, have it and may, or may not, be able to use a custom version of PHP that you self configure...in any event if the PHP version you use does not have GD as part of it then many image functions will be unusable on your forum...actually SMF specify GD as part of the server requirements for an installation for the above reasons.
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 12, 2007, 10:36:33 PM
My webhost confirms GD is installed and enabled - still the gallery's Edit-Picture does nothing else but dropping back to view gallery?

Sounds like something is wrong but where? the gallery or my web host? is there a way to test GD's functionality?

see phpinfo attached
Title: Re: SMF Gallery
Post by: jamesk on November 12, 2007, 11:22:29 PM
I don't believe GD has anything to do with the edit feature.  The edit feature is the same as the add picture function, but just replaces the old picture's edited values (ie Title, Category, Description, Keywords, etc...)

If you click edit, and it drops back to the main gallery menu, then there's probably something wrong with the installation.  Are you getting errors in your forum error log?  I suspect there might be some undefined index errors.


Title: Re: SMF Gallery
Post by: Ol' Wombat on November 13, 2007, 12:55:46 AM
I don't believe GD has anything to do with the edit feature.  The edit feature is the same as the add picture function, but just replaces the old picture's edited values (ie Title, Category, Description, Keywords, etc...)

OK, that could very well be and it indeed acts like that - however, then "Edit Picture" is somewhat misleading me thinks.

If you click edit, and it drops back to the main gallery menu, then there's probably something wrong with the installation.  Are you getting errors in your forum error log?  I suspect there might be some undefined index errors.

No error log entries, it just behaves like editing picture's *attached properties* (or replacing the picture). But it's not like editing-the-picture-itself like maybe resizing the image or something. That's my only confusing point and that's why I am asking what's up with Edit-Picture :)

I know GD is pretty powerful and would allow a lot more than editing image's  properties. Somehow, my inkling tells me, it could be a much better Edit-Picture  ;D
Title: Re: SMF Gallery
Post by: vbgamer45 on November 16, 2007, 12:50:25 AM
It just redirects to Viewing the Gallery or goes to your my images page?
What version of the gallery are you running?
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 16, 2007, 01:11:15 AM
It just redirects to Viewing the Gallery or goes to your my images page?
What version of the gallery are you running?

The Edit-Picture button redirects me to my-images - the gallery is v1811
Title: Re: SMF Gallery
Post by: RogueDOC on November 16, 2007, 03:03:35 PM
 Is there a way to display the latest pic from a catagory.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 16, 2007, 08:53:06 PM
Is there a way to display the latest pic from a catagory.
You would need to query the database to do that.
Title: Re: SMF Gallery
Post by: Ol' Wombat on November 16, 2007, 09:05:31 PM
may I request one more thing for the lite gallery? - it would be nice, if there are images for approval, the admin sees a pop-up(?) when he enters the admin panel. This reminder should stay on until images are approved or deleted.

certainly not a hard task  O:)

Title: Re: SMF Gallery
Post by: Sic0 on November 23, 2007, 05:42:18 AM
Is it possible for the Gallery mod to make a post when a user uploads a picture?

There is a similar thing in operation with the "Download" mod.

Example:

// Board
$txt['downloads_text_postingoptions'] = 'Posting Options';
$txt['downloads_text_boardname'] = 'Board Name:';
$txt['downloads_postingoptions_info'] = 'Information: If you select a board, on a new download that is approved a post will be created.';
$txt['downloads_posting_showlinktodownload'] = 'Show link to main download page';
$txt['downloads_posting_locktopic'] = 'Lock Topic';
Title: Re: SMF Gallery
Post by: ASF on November 24, 2007, 02:37:17 PM
how can i put ads just above every picture in my smfgallery?, i've editted the gallery.index.php many times and no changes occur...

please help this is important!!
Title: Re: SMF Gallery
Post by: nikiobicata on November 26, 2007, 03:38:55 AM
Problem with instalation :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.data.bg%2F07%2F11%2F26%2F680403_t.jpg&hash=051987aae3b77604d4ead1e69f1de543) (http://img.data.bg/i.php?id=680403)

After i push instal button nothing HAPPEN (page can be found)

Little help please  :-[
Title: Re: SMF Gallery
Post by: TrueSatan on November 26, 2007, 04:02:34 AM
@ nikiobicata

 Youappear to be using a custom theme...any theme bar the SMF Default theme is a custom theme...like almost all mods this mod has to be manually edited into any custom theme. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


 Additionally the mod, again like almost all mods, will need to be converted to use your, non-English, language...please search the SMF documentation for further details.
Title: Re: SMF Gallery
Post by: nikiobicata on November 26, 2007, 04:41:19 AM
i change to the SMF Default theme and stil have the  same problem  :(

i have problem only with this mod ... others instaled fine
Title: Re: SMF Gallery
Post by: TrueSatan on November 26, 2007, 05:10:43 AM
Try the following please:

The likely reasons are:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support. Again, if you want to use other than English language you will have to translate the mod files as per the SMF Documentation.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Title: Re: SMF Gallery
Post by: Bluey on November 26, 2007, 06:04:50 AM
Hi

Just a newbie and I have tried to work out the answer for this from previous post but am having trouble.

I have SMF V1.1.4 installed. Have uploaded and installed Gallery Lite V1.8.1.1 on the default theme. It installed ok and redirected me to the controls but still no meu button. When I leave the control screen I was redirected to I cannot get back. Nthing in admin for gallery

I uninstalled and reinstalled same problem. What have I done wron?
Title: Re: SMF Gallery
Post by: TrueSatan on November 26, 2007, 06:20:01 AM
When you say "installed OK" do you mean no errors/fails were shown by the Package Manager...it any are shown the safest solution is a manual installation. From the rest of your post...no nav bar menu...no admin etc it sounds as though the mod is not fully installed and I'd still like you to check the CHMOD settings and use the Installation Options to get them all right.

 You may then need to follow the process of a manual installation and check to see that all edits the mod makes and all files it adds are properly in place...see my post #1096 above for details.
Title: Re: SMF Gallery
Post by: forumnet.be on November 27, 2007, 03:33:29 PM
Hi

Just a newbie and I have tried to work out the answer for this from previous post but am having trouble.

I have SMF V1.1.4 installed. Have uploaded and installed Gallery Lite V1.8.1.1 on the default theme. It installed ok and redirected me to the controls but still no meu button. When I leave the control screen I was redirected to I cannot get back. Nthing in admin for gallery

I uninstalled and reinstalled same problem. What have I done wron?

Exactly the same problem here, no errors by package manager. I also installed Dutch language pack and the Gallery Controls page changes to Dutch after that, but no links in menu or admin bar ...
All other packages installed without problems (ad management pack & TP, both dutch versions)

Patrick.
Title: Re: SMF Gallery
Post by: RogueDOC on November 27, 2007, 05:49:31 PM
Is there a way to display the latest pic from a catagory.
You would need to query the database to do that.

 Would someone like to put up a sample code to do this? Thanks!
Title: Re: SMF Gallery
Post by: ValeriusCdlP on November 29, 2007, 06:44:12 AM
Hi all, and sorry for my bad english... i'll try to explain my problem.


I installed this mod perfectly, and make the necessary changes to use it in spanish. The mod works perfectly on the default theme on both languages.

But I use the Dilber MC theme, and... on this theme, the SMF Gallery mod works fine, except the "GALLERY" button on the forum index (where you can see HOME, HELP, PROFILE, CALENDAR...). Using Dilber MC theme, the GALLERY button disappears.

¿How can i show this button on the Dilber MC? ¿What modifications are needed on Dilber's index.template.php?


Thanks a lot.
Title: رد: SMF Gallery
Post by: TrueSatan on November 29, 2007, 07:09:42 AM
Almost all mods only install into the SMF default theme...other themes are termed custom themes and will need you to manually install the mod into them...

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Gallery
Post by: ValeriusCdlP on November 29, 2007, 07:27:19 AM
OK, i solved it.

simply adding this code below of "// the [member] list button" code in Dilber's index.template.php

Quote
// the [SMF Gallery] button
   
    if ($context['allow_smfgallery_view'])
 
      echo'
   
                <td align="center" class="menubg' , $current_action == 'gallery'  ? '2' : '' , '">
                
                <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>     
               
             </td>';


With this, SMF Gallery works fine on Dilber MC theme.

Thanks a lot  :)
Title: Re: SMF Gallery
Post by: Bluey on December 01, 2007, 12:35:37 AM
When you say "installed OK" do you mean no errors/fails were shown by the Package Manager...it any are shown the safest solution is a manual installation. From the rest of your post...no nav bar menu...no admin etc it sounds as though the mod is not fully installed and I'd still like you to check the CHMOD settings and use the Installation Options to get them all right.

 You may then need to follow the process of a manual installation and check to see that all edits the mod makes and all files it adds are properly in place...see my post #1096 above for details.

Howdy

Found the problem.  My server setting panel was greyed out. I fixed that by adjusting the setting to 666 and then made the language English not English -Utf8.  Hey presto I have a gallery button and everythings is fine. Thanksor your help
Title: Re: SMF Gallery
Post by: forumnet.be on December 02, 2007, 09:49:14 AM
I finally got the Dutch version working, but it gives one strange "error", in that way that I can't see all the fields in the settings screen. See picture attached.

Can somebody please send me a picture of the English version of that screen to see what fields are missing there?

Patrick
Title: Re: SMF Gallery
Post by: vbgamer45 on December 02, 2007, 03:09:57 PM
You are missing some language strings check out modifications.english.php for the complete list of gallery text strings
Title: Re: SMF Gallery
Post by: forumnet.be on December 02, 2007, 03:26:56 PM