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 the mod (https://custom.simplemachines.org/index.php?mod=473)



SMF Gallery

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


Compatibility
Works with SMF 2.1.x and 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 https://www.smfhacks.com/smf-gallery-pro.php (https://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
7.1
!Make main image display mobile friendly for SMF 2.1.x Thanks to Mick idesignsmf.com
!Start support for webp

7.0
+Top add picture button now detects if inside a category and will have that category preselected when adding a picture
!Fix undefined show_bbc in SMF 2.1
!Fixed who is viewing picture to handle ;pic too instead of just ;id=
!Raised memory limits when adding/editing pictures.
!Minor typo changes

6.0b
!Minor tweaks/fixes for SMF 2.1.x

6.0
!Fixed possible injection issue due to regression in category view. Must update.

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.

QuoteUnknown 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
Quote from: 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?

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
Quote from: 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.


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

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
Quote from: 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.

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
Quote from: 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
Fixed unistall old mod, reinstalll new one.
Title: Re: SMF Gallery
Post by: steve in houston on September 17, 2006, 02:33:42 PM
Quote from: vbgamer45 on September 17, 2006, 02:18:45 PM
Quote from: 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
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
Quote from: 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???
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
Quote from: 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.
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
Quote from: 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

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.
Quote8: 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
Quote from: 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.
Quote8: 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

//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 ;)
<?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
QuoteTemplate 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?
<?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  

/Begin SMF Gallery Text Strings
Put 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
Quote from: 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.
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
Quote from: vbgamer45 on September 18, 2006, 06:00:04 PM
Quote from: 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.
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
Quote from: 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.
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
Quote from: bayfresh on September 18, 2006, 06:27:35 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...

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:

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..

$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:)

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 ?>:
//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 ?>:
//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:
<?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
Quote from: 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.

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
Quote from: 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!

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
Quote from: Merlin42 on September 20, 2006, 01:35:36 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 :-

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
Quote from: Long Time Dead 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 :-

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
Quote from: vbgamer45 on September 20, 2006, 12:30:28 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
Quote from: Long Time Dead on September 20, 2006, 12:37:17 PM
Quote from: vbgamer45 on September 20, 2006, 12:30:28 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
Quote from: 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

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
Quote from: 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?

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

QuoteBetrachtet: 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
Quote from: vbgamer45 on September 20, 2006, 05:41:32 PM
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
Quote from: 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. :)
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
Quote from: haktanir2 on September 21, 2006, 07:01:48 AM
Quote from: vbgamer45 on September 20, 2006, 05:41:32 PM
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
Quote from: ivo2296 on September 21, 2006, 10:45:32 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

Quote from: qd-race on September 22, 2006, 12:22:29 AM

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
Quote from: vbgamer45 on September 22, 2006, 08:41:48 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
Quote from: hassan 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.?
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.

// 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

<a href="', $scripturl, '?action=gallery">' , $txt[803] , '</a>

To

<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
Quote from: Webrunner on September 24, 2006, 05:59:25 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
Quote from: vbgamer45 on September 24, 2006, 12:19:48 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
Quote from: ivo2296 on September 24, 2006, 12:28:32 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
Quote from: vbgamer45 on September 24, 2006, 12:19:48 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
Quote from: 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
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
Quote from: 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.

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
Quote from: vbgamer45 on September 24, 2006, 01:32:05 PM
Just wait for the update then.

ok.. thanks.. :) ...
Title: Re: SMF Gallery
Post by: ivo2296 on September 24, 2006, 04:57:56 PM
Quote from: vbgamer45 on September 24, 2006, 12:33:56 PM
Quote from: ivo2296 on September 24, 2006, 12:28:32 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
Quote from: 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.


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
Quote from: 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!
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
Quote from: MiR on September 25, 2006, 03:54:51 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)

QuoteExecute 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
Quote from: 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.
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
Quote from: 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.

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


QuoteSubcats/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
Quote from: bayfresh on October 01, 2006, 12:23:45 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
Quote from: vbgamer45 on October 01, 2006, 12:31:07 PM
Quote from: bayfresh on October 01, 2006, 12:23:45 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:

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


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


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


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
Quote from: vbgamer45 on October 09, 2006, 03:30:54 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

$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
Quote from: 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.
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
Quote from: 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.
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
Quote from: 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.


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
Quote from: Pedja on October 19, 2006, 04:17:08 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
Quote from: 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?
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
Quote from: 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?
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
Quote from: 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
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
Quote from: vbgamer45 on October 21, 2006, 12:49:15 PM
Quote from: 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?
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
Quote from: 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.
What MySQL version?
Title: Re: SMF Gallery
Post by: mrbones on October 24, 2006, 02:05:46 PM
Quote from: 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.

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=65bb7c2480de5e77f0260bf5331a6a662e40e110)
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
Quote from: vbgamer45 on October 24, 2006, 08:32:19 AM
Quote from: 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.
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
Quote from: 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?
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
Quote from: vbgamer45 on October 27, 2006, 03:34:20 PM
Quote from: 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?
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=ae982337995657d675f64f0b21493d53aeef8c2f) (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:

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:

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
Quote from: 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: vbgamer45 on October 28, 2006, 10:58:15 AM
Quote from: mrbones on October 28, 2006, 10:53:10 AM
Quote from: 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.

??
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
Quote from: 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!
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
Quote from: vbgamer45 on October 28, 2006, 01:49:43 PM
Quote from: 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!
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
Quote from: 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!

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

<?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
Quote from: 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.
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
Quote from: vbgamer45 on November 03, 2006, 04:23:01 PM
Quote from: 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.
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
Quote from: hassan on November 07, 2006, 08:36:58 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
Quote from: 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


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
Quote from: justafishermen on November 07, 2006, 09:48:32 AM
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: <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: ?><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:

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

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

   // 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=a3d20449a66a7cc228034bd1af9ad9955b508c50)
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
Quote from: vbgamer45 on November 23, 2006, 01:34:46 PM
Yes you can I belive it is in Gallery.php
Thanks, nailed it!
gallery.php

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
Quote from: vbgamer45 on November 29, 2006, 09:17:23 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
Quote from: †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
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

//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
Quote from: 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.

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

<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


<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="[email protected]">
<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


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
Quote from: 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

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:

QuoteFatal 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
Quote from: Adamzon on December 22, 2006, 08:43:53 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
QuoteFatal error: Call to undefined function EditCategory() in /---/forum/Sources/Gallery.php on line 76

It generates Forum Error Log
Quote8: 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
Quote from: Keoll on December 28, 2006, 09:04:13 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
Quote from: 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.

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
Quote from: 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. :)


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
Quote from: drhamad on January 03, 2007, 09:41:46 AM
Quote from: 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.

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
Quote from: vbgamer45 on January 04, 2007, 08:05:40 AM
Quote from: 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. :)


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
Quote from: vbgamer45 on January 04, 2007, 01:12:58 PM
Quote from: drhamad on January 03, 2007, 09:41:46 AM
Quote from: 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.

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
Quote from: vbgamer45 on January 09, 2007, 09:39:50 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
Quote from: 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
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
Quote from: dsanchez on January 10, 2007, 03:55:04 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
Quote from: Garry1953 on January 11, 2007, 06:46:48 PM
Quote from: dsanchez on January 10, 2007, 03:55:04 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
Quote from: 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:


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!


<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



//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
Quote from: vbgamer45 on January 17, 2007, 01:13:18 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
Quote from: vbgamer45 on January 17, 2007, 04:32:08 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
Quote from: 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
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
Quote from: joh87swe on January 20, 2007, 04:43:36 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
Quote from: 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?

Not sure I will look into it.
Title: Re: SMF Gallery
Post by: Zwerko on February 02, 2007, 12:00:09 PM
Quote from: 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.


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
Quote from: vbgamer45 on February 02, 2007, 10:21:33 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
Quote from: pIECEoFcAKE on February 03, 2007, 05:28:13 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
Quote from: vbgamer45 on February 02, 2007, 10:38:08 AM
Quote from: 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?

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
Quote from: 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.

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
Quote from: 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

*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:

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
Quote from: 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';


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
Quote from: 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

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
Quote from: vbgamer45 on February 18, 2007, 12:54:56 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
Quote from: vbgamer45 on February 18, 2007, 01:01:10 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
Quote from: 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.

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
Quote from: vbgamer45 on September 18, 2006, 05:18:49 PM
Quote from: 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.
Quote8: 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

//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

<?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 :

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
Quote from: 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.

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
Quote from: kepin on February 19, 2007, 01:39:37 PM
Quote from: vbgamer45 on September 18, 2006, 05:18:49 PM
Quote from: 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.
Quote8: 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

//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

<?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 :

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

<?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
Quote from: vbgamer45 on February 19, 2007, 03:24:00 PM
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
Quote from: perplexed on January 26, 2007, 09:58:38 AM
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?   


Quote from: 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.

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

<?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
Quote from: perplexed on February 20, 2007, 02:20:40 PM
Quote from: perplexed on January 26, 2007, 09:58:38 AM
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?   


Quote from: 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.

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
QuoteSome 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
QuoteI 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]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
Quote from: 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.



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

//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:

// 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:

//END SMF Gallery Text Strings 
   
?>
Title: greek characters :(
Post by: Gourgi on March 01, 2007, 09:44:37 AM
Quote from: vbgamer45 on February 25, 2007, 11:06:16 PM
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
Quote from: Gourgi on March 01, 2007, 09:44:37 AM
[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.

// 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

// 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

// 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=03c4aaa95cfd0e7c822f178cbe7daa34aa0c7a04) (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=ece7f52eb9fac93ca772defba5fa70fafa9fff26) (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
Quote from: 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


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
Quote from: 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? 

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
// 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

// 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=bd4e17730ed6414c85c131b613c8696d424396cd)
- 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=995e7c3a8240a9a6baaf457f7103fe809cfa537d)

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
Quote from: redone on March 08, 2007, 02:42:20 PM
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

QuoteSome 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
Quote from: 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


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
?>
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
Quote from: vbgamer45 on March 10, 2007, 06:02:06 PM
Open /Themes/default/languages/Modifications.english.php
Find
?>
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

Quote from: Taintedlore on March 10, 2007, 06:45:22 PM
Quote from: vbgamer45 on March 10, 2007, 06:02:06 PM
Open /Themes/default/languages/Modifications.english.php
Find
?>
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

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
Quote from: 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

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
Quote from: 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.

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
Quote from: 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.
You need to copy the txt strings from modifications.english.php to languages/modifications.yourlanguage.php


Quote from: Matthew Schenker on March 16, 2007, 07:26:39 AM
Quote from: 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.

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
Quote from: vbgamer45 on March 19, 2007, 07:46:16 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
Quote from: vbgamer45 on March 22, 2007, 07:36:46 PM
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
Quote from: indbjoe on March 23, 2007, 03:01:03 AM
Quote from: vbgamer45 on March 22, 2007, 07:36:46 PM
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:
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
Quote from: vbgamer45 on March 29, 2007, 07:49:25 AM
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
Quote from: vbgamer45 on March 16, 2007, 10:40:06 AM
Quote from: 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.
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
Quote from: 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:
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):

$comment = htmlentities($_REQUEST['comment'],ENT_QUOTES);

with this:

$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
Quote from: 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?


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
Quote from: perplexed on April 10, 2007, 07:11:32 AM
Quote from: 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?


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
Quote1.     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 ?>


//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
Quote from: wesleyuk on April 19, 2007, 08:33:20 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
Quote from: perplexed on April 14, 2007, 03:34:44 PM
Quote from: perplexed on April 10, 2007, 07:11:32 AM
Quote from: 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?


anyone?   

come on, someone must know how to do this, please?


Quote from: 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?


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,
Quote from: 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...
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
Quote from: perplexed on April 20, 2007, 07:43:29 AM
Quote from: perplexed on April 14, 2007, 03:34:44 PM
Quote from: perplexed on April 10, 2007, 07:11:32 AM
Quote from: 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?


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 :)



Quote from: 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?


bumping both, sorry to be annoying but I still need help

Quote from: vbgamer45 on April 20, 2007, 07:50:13 AM
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
Quote from: vbgamer45 on April 22, 2007, 10:26:22 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
Quote from: vbgamer45 on April 25, 2007, 07:59:09 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
Quote from: vbgamer45 on April 25, 2007, 08:34:04 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,

QuoteUndefined index: smfgallery_admin
File: /home/html/ufodbase/Sources/Subs.php
Line: 2757

Line 2757:

'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
Quote from: 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.

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:

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 -
Quotehttp://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

Quotehttp://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 ?>


//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
Quote from: vbgamer45 on May 06, 2007, 09:06:47 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
Quote from: 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:

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
Quote from: 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

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
Quote from: 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

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
QuoteI 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
QuoteCould 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
Quote from: Matthew Schenker on May 18, 2007, 01:29:02 PM
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
Quote from: 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.

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
Quote from: IVY420 on May 22, 2007, 10:49:09 PM
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 ?>


//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
Quote from: 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.?

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=b60a5bbcc98e59cc6a1f153809d1a901f989c798)

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
http://www.prestigeguild.net/forums/gallery

which was missing the last slash at the end.

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.

Quotehttp://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
Quote from: 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.

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: K4EEO 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
Quote from: Studio1031 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..




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
Quote from: 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.
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. ?> 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 ?>...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
Quote from: 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.

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)


//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:

?>

...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


//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:

Quote1.     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

?>

...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:

'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:
'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
Quote from: TrueSatan on July 06, 2007, 04:27:56 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
Quote from: 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.

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
Quote from: 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.

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:


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 :) .....



QuoteInstalling 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. **

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:

$current_action = 'admin';
if (in_array($context['current_action'], array(




Add after:

'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
Quote from: 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)

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
Quote from: 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

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
Quote from: 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.

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
Quote from: 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.
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

Quote from: 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: CraftyLion 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

<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
Quote from: †MavN† on July 14, 2007, 10:04:11 AM
Some words not in the lang files

<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

<b>Allow comments to be posted on this picture.</b>

Replace with

<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 :)


' . $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
Quote from: vbgamer45 on July 04, 2007, 07:53:47 AM
Quote from: 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


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
Quote from: farknduckRC on July 18, 2007, 07:58:30 PM
Quote from: vbgamer45 on July 04, 2007, 07:53:47 AM
Quote from: 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


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=6813c3c6be2441e8bcf2ae8c847e0cc3f1d4e8f6)

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
Quote from: 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?

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
Quote from: 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.)

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
QuoteYou 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.

Quote from: TrueSatan on July 19, 2007, 09:15:19 PM
Quote from: 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:

&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
QuoteI 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
QuoteIf 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
QuoteYour 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
Quote from: 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.

thanks truesatan. i will try this one.
Title: Re: SMF Gallery
Post by: ~Unkn0wn~ on July 23, 2007, 02:00:34 PM
Quote from: 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.

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:

$current_action = 'admin';
if (in_array($context['current_action'], array(


...and, immediately following, add to it:

'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...

$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
Quote from: 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.)

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:

// 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:

// 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
QuoteEdit:
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
Quote from: ozoknar on July 28, 2007, 08:01:54 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
Quote from: 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.

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:

$current_action = 'admin';
if (in_array($context['current_action'], array(


Following that you will find:

'gallery',

You should have one instance only of the second code above...edit to remove extra instances.

Find:

'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:


// 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
Quote from: 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).

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:

QuoteCopy 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 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:
// 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

// 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:

QuoteCopy 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:

$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:

$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
Quote from: 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. 

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?

Quote from: hugodiaz 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: 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
Quote from: 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.
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
Quote from: 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.

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
Quote from: GazG on August 23, 2007, 07:18:14 AM
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
Quote from: 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
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
Quote from: 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.

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:
Quote1. 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:
Quote2. 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:

<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:


?>


and to put:


//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
Quote from: 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 went here....
The operation tag is in the second line of the above code.

The operation is to search for:


?>

Gotcha thanks

Quote from: TrueSatan on September 04, 2007, 08:17:53 AM
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

Quote from: TrueSatan on September 04, 2007, 08:17:53 AMDaniel15 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
Quotehi, 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
Quote from: 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.

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
Quote from: 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/

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
Quote from: 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?

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
Quote from: 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    

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
Quote from: mzeblu on September 16, 2007, 11:01:13 AM
Quote from: 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?

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:

$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:

QuoteAn 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:
QuotePicture Not Approved


Where do i edit this text, coz what i want to display is:
QuotePhoto 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 "
QuoteWarning 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 modsSMF1.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
Quote from: 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
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
Quotecurrently 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*

Quote from: 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 "
QuoteWarning 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 modsSMF1.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 from: jamesk on October 19, 2007, 10:59:51 AM
Quotecurrently 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 from: coldthunder on October 20, 2007, 12:49:14 AM
Quote from: jamesk on October 19, 2007, 10:59:51 AM
Quotecurrently 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:

//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
Quote from: jamesk on October 23, 2007, 09:15:32 AM
Double check in the default modifications.english.php file, but I believe it's:

//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...

QuoteThe 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:

<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

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:

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
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
QuoteI 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)

echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';

with

echo $row['title'].'<br />';
Title: Re: SMF Gallery
Post by: jamesk on October 24, 2007, 09:50:39 AM
QuoteI'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):

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:
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 from: jamesk on October 24, 2007, 09:34:31 AM
QuoteI 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)

echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';

with

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
QuoteIs 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:

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 from: jamesk on October 24, 2007, 09:50:39 AM
QuoteI'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):

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:
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
Quote from: 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?
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=32195a488e90afd86c48f8e5306a06ec07efda02)

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=cf1a401dc74aa93268d37b1496e896f35ff2fb15)

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

<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

<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 :

<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:

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

global $context, $settings, $options, $scripturl, $txt, $modSettings, $ID_MEMBER;

and i changed the link in my menu looking like that

<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
Quote from: vbgamer45 on November 10, 2007, 10:41:17 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:

QuoteSupports 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
Quote from: vbgamer45 on November 12, 2007, 08:24:51 AM
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
Quote from: 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...)

OK, that could very well be and it indeed acts like that - however, then "Edit Picture" is somewhat misleading me thinks.

Quote from: jamesk on November 12, 2007, 11:22:29 PM
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
Quote from: 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?

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
Quote from: RogueDOC on November 16, 2007, 03:03:35 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=617de3d46792d427ef822c98c1f8da2cf7c775a6) (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
Quote from: 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?

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
Quote from: vbgamer45 on November 16, 2007, 08:53:06 PM
Quote from: RogueDOC on November 16, 2007, 03:03:35 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
Quote from: 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.

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
Quote from: 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

Somebody told me that exact same thing yesterday in the Dutch forum.
Nope, modifications.english.php is 100% identical to modifications.dutch.php ! (except for the language of course)
Same number of strings ...

Other takers?

Can someone please send me the ENGLISH screenshot of that settings screen?

Patrick.
Title: Re: SMF Gallery
Post by: TrueSatan on December 02, 2007, 05:03:59 PM
Try looking at Gallery.english.php particularly lines 121 to 123 inclusive where the missing strings, which relate to SMF shop are to be found. If you want to see what it looks like in a forum set to English language why not use a test forum set up in that way?
Title: Re: SMF Gallery
Post by: Vendetta1990 on December 03, 2007, 07:12:25 AM
Hi

when i want to apply the mod then always this error comes:

1. Execute Modification smfgallery.xml Modification parse error
2. Execute Modification - Modification parse error

Sorry for the question, but i am new here ;-)

Thanks
Vendetta
Title: Re: SMF Gallery
Post by: forumnet.be on December 03, 2007, 03:24:33 PM
Quote from: TrueSatan on December 02, 2007, 05:03:59 PM
Try looking at Gallery.english.php particularly lines 121 to 123 inclusive where the missing strings, which relate to SMF shop are to be found. If you want to see what it looks like in a forum set to English language why not use a test forum set up in that way?

THX TrueSatan!
Problem solved!

There were 11 text strings in total that were not copied into my Gallery.dutch.php file. I just copied the English version of those strings for now, will worry about translations later ...  :)

Patrick
Title: Re: SMF Gallery
Post by: Vendetta1990 on December 04, 2007, 05:59:04 AM
Can someona help me? ;-)
Title: Re: SMF Gallery
Post by: TrueSatan on December 04, 2007, 06:18:48 AM
Please remember that the forum search function is there to help you and that most questions have been asked and answered previously...

http://www.simplemachines.org/community/index.php?topic=134429.0 (http://www.simplemachines.org/community/index.php?topic=134429.0)
Title: Re: SMF Gallery
Post by: Vendetta1990 on December 04, 2007, 07:23:27 AM
yeah i`ve seen that, but its not working. Always the same error
Title: Re: SMF Gallery
Post by: TrueSatan on December 04, 2007, 09:45:17 AM
Once you have tried to use the Package Manager system to change the CHMOD settings of your files do they in fact change to 777 or 775 (depending on the details of your hosting?) If you aren't able to change the CHMOD settings of your files it is a problem your host will have to rectify using CHOWN...you can't do that for yourself.
Title: Re: SMF Gallery
Post by: johnnyskid on December 04, 2007, 10:01:21 AM
Don't want to get off on the wrong foot here.  This is a very big community and I am excited to stumble across it.

In using the theme "mysticjade" with TP and gallerylite.  I am having the trouble getting a gallery button to show up.  I'm sure that since I am having this trouble many others are.  So could anyone point me in the right direction on this?  I seem to have tried everyting I know on how to get this to work. 

Thanks
Title: Re: SMF Gallery
Post by: TrueSatan on December 04, 2007, 11:07:04 AM
Like almost all mods this mod only installs automatically into the SMF default theme...all other themes are custom themes and require manual installation of almost all mods 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: MinasC on December 08, 2007, 01:33:17 PM
hello there.

i noticed that under each picture in the gallery where comments appear , last post comes first (order of comments display is new to old). is there a way to reverse that so that it shows first comment first (order old to new) ?

one more thing/question ! i know there is no notification for new comment in pictures of the gallery but could it be that when a new comment is made the member that posted the picture gets a new pm notifying him/her that a new comment has been posted in one of his pictures ? or a popup ? some kind of notification anyway !

thnx a lot !
Title: Re: SMF Gallery
Post by: ryuuza on December 10, 2007, 02:34:28 PM
i have this kind of problem: my gallery works fine i mean uploading and menagment but... there are no pisc visible!!

no mini images, no full images. directory is chmoded to 777, plenty of space and nothing.

take a look:

http://www.kopernika.pl/smf/index.php?action=gallery

please help\!!
Title: Re: SMF Gallery
Post by: Ol' Wombat on December 10, 2007, 04:03:49 PM
do you have GD installed and enabled?

talk to your web host
Title: Re: SMF Gallery
Post by: ryuuza on December 10, 2007, 06:34:54 PM
yes and its working for avatars.it broke suddenly
Title: Re: SMF Gallery
Post by: souljaa on December 12, 2007, 06:43:38 PM
Hey guys! Anyways I just installed the SMF gallery (Lite Version) and I'm having a bit of problems.
Well it was all succesfully installed, everythings working smoothly, until I upload some picture (which worked out great as well), but when I try to click [Edit], [UnApprove] or [Delete] it leads me to an error page.
Even when I try to click on the picture, to enlarge it, it leads me to a page where it says "Not Found".
Anyways, I really appreciate your help.
And thanks a lot in advance!
Souljaa
Title: Re: SMF Gallery
Post by: vbgamer45 on December 12, 2007, 06:44:26 PM
Do you have any mods installed?
What is the exact erorr message? And where are the links pointed to?
Title: Re: SMF Gallery
Post by: Ol' Wombat on December 12, 2007, 06:50:09 PM
look into the SMF error log (admin panel) and post the related error entry
Title: Re: SMF Gallery
Post by: souljaa on December 12, 2007, 07:09:32 PM
I get this Error.
QuoteToday at 08:04:45 PM 
d3e9b43239be647d495a5f03f455a091 
http://gfxpros.org/index.php 
2: ksort() expects parameter 1 to be array, null given
File: /home/souljaa/public_html/SSI.php
Line: 706

Leads me to this page.
http://gfxpros.org/index.php?action=gallery;sa=view;id=3

And the mods I have installed are:
Member Group Legend, Member Color Link, SMF Affiliates, SMFShop, Users Online Today Mod, TinyPortal, Redirection Boards

Thanks once again!
Souljaa
Title: Re: SMF Gallery
Post by: vbgamer45 on December 12, 2007, 07:17:31 PM
Ah that is a mod_security error.

Follow instructions in this topic
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Gallery
Post by: ryuuza on December 13, 2007, 04:04:07 AM
some help on my problem anyone? :)
Title: Re: SMF Gallery
Post by: Ol' Wombat on December 13, 2007, 04:12:58 AM
Quote from: ryuuza on December 13, 2007, 04:04:07 AM
some help on my problem anyone? :)

have you check the SMF error log? - maybe there is something valuable in there?  O:)

Title: Re: SMF Gallery
Post by: Augh on December 13, 2007, 04:33:52 AM
I receive this error page when I try to open image from gallery:

Page header: "501 Method Not Implemented"

Method Not Implemented

GET to /forums/index.php not supported.

Just did a fresh smf-install and gallery contains only one test image. This is related to cgi-scripts or something? Can I fix this or is this more like server related problem?
Title: Re: SMF Gallery
Post by: TrueSatan on December 13, 2007, 04:39:43 AM
@ ryuuza

Your problem still looks to me to be host related so there's no all that much help we can give you. I would, however, suggest that you double check ACP>Permissions to make certain that you have allowed viewing of the gallery.

@ Augh

It's server related...talk to your host.
Title: Re: SMF Gallery
Post by: ryuuza on December 13, 2007, 06:05:17 AM
did it all and still nothing. even after re installing
Title: Re: SMF Gallery
Post by: TrueSatan on December 13, 2007, 06:44:57 AM
@ ryuuza

If, as you have been advised, your problem is host related it is hardly surprising that the re-install fares no better than the first install.
Title: Re: SMF Gallery
Post by: ryuuza on December 13, 2007, 06:51:21 AM
but what to ask the host about?
Title: Re: SMF Gallery
Post by: TrueSatan on December 13, 2007, 09:19:36 AM
The most likely culprit remains a problem with GD.
Title: Re: SMF Gallery
Post by: MySQASI on December 21, 2007, 01:14:41 AM
hi.. this mod is really good but it lack some feature...
how about to have a feature to list a recent new photos that having uploaded...
i wonder if this feature can be add to next version and can be appear on board index...

thx,,,,
Title: Re: SMF Gallery
Post by: Hoochie Coochie Man on December 29, 2007, 06:14:59 PM
I'm using 1.8 now..
Is there any problem apears when I install 1.8.1.2
(By the way, when the 1.8.1.2 release?  :-\ )
Title: Re: SMF Gallery
Post by: TrueSatan on December 29, 2007, 06:24:58 PM
Do you have a specific problem you think might occur?

As per normal with this mod you should uninstal, your old version and install the new as there is no upgrade system for an installed mod...items already in the database will be unaffected.
Title: Re: SMF Gallery
Post by: Hoochie Coochie Man on December 29, 2007, 06:40:32 PM
Thank you, I update
Now I'm using 1.8.1.2, and there is no differance with 1.2
Title: Re: SMF Gallery
Post by: TrueSatan on December 29, 2007, 07:29:32 PM
Just small things with each new version...mostly bug fixes. It's worthwhile keeping up to date though just so as to have all the bug fixes in place.
Title: "Dual Gallerys"
Post by: Teal on December 30, 2007, 05:57:23 PM
Is it possible, to install a second instance of the Gallery mod?

I would like to be able to have tighter reigns on who can access different areas of the Gallery. At the moment, we have the Gallery installed and working well. The problem is, when we create different categories, it appears that we have no way of settings permissions individually.

Part of our gallery is becoming adult oriented and as such needs to be isolated somewhat. So, unless there is a way to do something more with permissions, we would like to add a second gallery (somehow).

Thanks

Edit: Sorry, but I should of posted here :
http://www.simplemachines.org/community/index.php?topic=114291.1140

EDIT by greyknight17: No problem. Merged :)
Title: Re: SMF Gallery
Post by: TrueSatan on December 31, 2007, 04:57:52 AM
Each Gallery specific function within the code would have to be renamed and quite a few other changes made so while it would be possible it would also be a fair bit of work and not within the scope of the average user. I would think that you would need to employ vbgamer45 on a paid basis if you were to wish to have such work undertaken on your behalf as it is both extensive and falls well outside the normal scope of the mod.
Title: Re: SMF Gallery
Post by: vbgamer45 on December 31, 2007, 10:55:13 AM
You would need two forums to have two instances of the gallery mod. The pro edition does allow category level permissions to be set though.
Title: Re: SMF Gallery
Post by: Silent on December 31, 2007, 11:09:04 AM
I've done a little Hack for the Gallery, cause it messed up when entering pics greater than 800x600 px. Now they are shown in highest resolution => 800x600.

In Gallery.template.php find:

// Check which version of the parser exists
$bbc_check = function_exists('parse_bbc');


insert after:

if ($context['gallery_pic']['width'] > "800")
{
$context['gallery_pic']['width'] = "800";
$context['gallery_pic']['height'] = "600";
}


Just a little hack but it helped me a lot  ;)
Title: Re: SMF Gallery
Post by: Teal on December 31, 2007, 11:25:28 AM
Thanks for the input!  :)
Title: Re: SMF Gallery
Post by: MoreBloodWine on January 02, 2008, 02:56:25 AM
Quote from: vbgamer45 on December 31, 2007, 10:55:13 AM
You would need two forums to have two instances of the gallery mod. The pro edition does allow category level permissions to be set though.
Pro edition ? Where does one get this pro edition... and what are the differences between it and this...
Title: Re: SMF Gallery
Post by: TrueSatan on January 02, 2008, 04:46:13 AM
http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)
Title: Re: SMF Gallery
Post by: MoreBloodWine on January 02, 2008, 08:02:38 AM
Quote from: TrueSatan on January 02, 2008, 04:46:13 AM
http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)
Thx for that... now if I only had a paypal account that works which I dont ;-/... they dont like me much over there since we had a issue that never got resolved...

@VB any other way to get you paid besides paypal... like can I maybe mail a MO or something ?

Edit : BTW I got the lite edition stalled and its running great as far as I can tell...
Title: Re: SMF Gallery
Post by: Sic0 on January 14, 2008, 10:01:31 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';


I realise that this is an option in the paid for version... I'm just asking for a bit of help as to where to start looking for the relevant code to edit.

Thanks
Title: Thumbnail Size
Post by: jamesk on January 16, 2008, 05:58:39 PM
I believe the (default) max-thumbnail size is hard-coded as 120x78. 

Is this a "normal" thumbnail size?  What are the consequences of increasing it slightly?  Say 150x98?

Title: Re: SMF Gallery
Post by: MoreBloodWine on January 16, 2008, 07:59:11 PM
Quote from: MoreBloodWine on January 02, 2008, 08:02:38 AM
Quote from: TrueSatan on January 02, 2008, 04:46:13 AM
http://www.smfhacks.com/smf-gallery-pro.php (http://www.smfhacks.com/smf-gallery-pro.php)
Thx for that... now if I only had a paypal account that works which I dont ;-/... they dont like me much over there since we had a issue that never got resolved...

@VB any other way to get you paid besides paypal... like can I maybe mail a MO or something ?

Edit : BTW I got the lite edition stalled and its running great as far as I can tell...

Hey VB would be cool to get an answer to this... shows you last active as today... so next time your on please try to get an answer to me, Thx ;-)

Last Active:  Today at 09:45:06 AM
Title: Re: SMF Gallery
Post by: vbgamer45 on January 16, 2008, 08:11:02 PM
Currently I only accept PayPal.
Title: Re: SMF Gallery
Post by: MoreBloodWine on January 16, 2008, 08:14:07 PM
Quote from: vbgamer45 on January 16, 2008, 08:11:02 PM
Currently I only accept PayPal.
Well that sucks, because PayPal doesnt like me much right now and the only options I have is a personal check / postal MO... so you dont have a P.o. Box I could mail one to or something... I like what the Pro version has to offer but honestly all I really need at this point is the ability to span images on multile plages which the lite version doesnt do the other options of the pro version I just see as bonuses.
Title: Re: SMF Gallery
Post by: gamelee on January 18, 2008, 07:29:29 PM
Hello, I have two mods that I would like to request for the SMF Gallery mod.

1. A horizontal block feature which is similar to this one - http://www.maddgamerz.com/index.php?action=forum

I am using this theme (http://custom.simplemachines.org/themes/index.php?lemma=108) and I want the horizonal block to be placed on the bottom of the main forum which shows the last 5 images that was uploaded.

2. I have a different forum which uses the default theme. I need a right sidebar (vertical position) on the main forum which displays two images. The first image is a random image and the second one is the latest image.

If anyone can do it for me (and for others who want this feature) for free, that would be great. If not, then I am willing to pay a small amount via paypal.

Also, I prefer if you (whoever decides to accept the requests) post screen shots here or  send me a PM for the screen shots before you send me the code. Thanks.
Title: Re: SMF Gallery
Post by: RoarinRow on January 19, 2008, 06:34:26 PM
Very cool, thanks for this mod!   8)
Title: Re: SMF Gallery
Post by: loudog on January 20, 2008, 01:32:03 AM
Once this mod is install, does it have to be un-install each time there is a board update? If it does have to be un-installed when you re-install it does all the information and pictures show back up in the gallery?
Title: Re: SMF Gallery
Post by: MoreBloodWine on January 20, 2008, 01:46:53 AM
Quote from: MoreBloodWine on January 16, 2008, 08:14:07 PM
Quote from: vbgamer45 on January 16, 2008, 08:11:02 PM
Currently I only accept PayPal.
Well that sucks, because PayPal doesnt like me much right now and the only options I have is a personal check / postal MO... so you dont have a P.o. Box I could mail one to or something... I like what the Pro version has to offer but honestly all I really need at this point is the ability to span images on multile plages which the lite version doesnt do the other options of the pro version I just see as bonuses.
Guess I'll never get pro and I like this mod... ;-/
Title: Re: SMF Gallery
Post by: jusplay77 on January 20, 2008, 04:39:08 AM
Powered by SMF 1.1.4
SMF Gallery Lite      1.8.1.2
Theme: Babylon
Package Install:

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

How do I fix this?
Title: Re: SMF Gallery
Post by: TrueSatan on January 20, 2008, 07:36:35 AM
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(s) 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)

N.B Please read the topic and use the forum search function as this query has been answered countless times before...also note that custom themes such as yours will need manual editing to make most mods work in them.
Title: Re: SMF Gallery
Post by: valechan on January 20, 2008, 03:38:37 PM
Question, I installed the gallery and it works beautifully, but my little problem is that I have the site in spanish_latin, not english. SO I went ahead and did a Gallery.spanish_latin.php by changing the info in Gallery.english.php in order to use it with my default language, but evenafter I've uploaded it it doesn't work? I can't see the links to the gallery or in the admin page. I can see them if I change back to english as the default language, but I NEED my board in spanish and I really want the gallery. What am I missing? What do I need to change too?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2008, 04:17:44 PM
You need to translate the gallery text inside modifications.english.php to your modifications.yourlanguage.php
Title: Re: SMF Gallery
Post by: valechan on January 20, 2008, 04:38:31 PM
Thanks a lot :D I'm doing it right now
Title: Re: SMF Gallery
Post by: ching on January 21, 2008, 08:41:02 PM
Any idea what's causing this error?

8: Use of undefined constant Gallery - assumed 'Gallery'
File: /home/riverrun/public_html/forum/Themes/default/Errors.template.php (eval?)
Line: 381

I have this installed to a customer theme so i'm not sure if i have to remove something from the default or not?
Title: Re: SMF Gallery
Post by: ThePriest on January 22, 2008, 08:23:13 PM
Hi.  I hope I am not repeating a question here but do you have any plans or is there a way to have <previous - Next> buttons on the pics?  It wastes so much time and gets frustrating always having to hit the back button and then choose the next picture. 
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2008, 10:11:31 PM
Not currently in the lite edition but in the pro edition of the mod.
Title: Re: SMF Gallery
Post by: wjhdiz on January 23, 2008, 03:55:39 PM
Hi,

I am using Classic Themes. How do I modified themes related changes to make this work?

Thanks.
Jimmy
Title: Re: SMF Gallery
Post by: TrueSatan on January 23, 2008, 06:57:34 PM
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)

These links will give you the information you require to edit your custom theme.
Title: Re: SMF Gallery
Post by: ThePriest on January 24, 2008, 12:38:00 PM
Quote from: vbgamer45 on January 22, 2008, 10:11:31 PM
Not currently in the lite edition but in the pro edition of the mod.

Thank you for the reply.  Sadly the forum is maintained by donations and we do not have the money to purchase the pro as the moment. 

One further question.  How do I change the display order so that the newest thumbnails appear at the bottom with the oldest at the top?
Title: Re: SMF Gallery
Post by: char39 on January 24, 2008, 07:31:47 PM
I am trying to reinstall the SMF Gallery Pro and it is giving me an error message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am using SMF 1.1.4 and have SMF Gallery Lite installed at the moment.  Do I need to unistall that to install the Pro?
Title: Re: SMF Gallery
Post by: rheo99 on January 25, 2008, 01:11:33 AM
Hi,

I am a web designer, and recently a client of mine asked me to do up a forum.  I installed Yabb first but then i saw simplemachines which looked so much cooler.

My client asked me to put up a gallery and i have done so using SMF gallery lite.

From my understanding after reading all the threads,  SMF gallery lite does not allow the user to have a few photos put on the forum page itself,

only if you buy SMF gallery pro will you get this function.


Am i right to say so??
Title: Re: SMF Gallery
Post by: anakmacan on January 25, 2008, 10:14:14 AM


Quote from: TrueSatan on January 23, 2008, 06:57:34 PM
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)

These links will give you the information you require to edit your custom theme.


When using mod parser, all codes that should be editted dont exist  :-\  , im using classic yabb- 1.1.4.
This is my index.template.php file, i hope you can check this for me and everybody else  ;)
Title: Re: SMF Gallery
Post by: futuro on January 26, 2008, 10:28:15 AM
Can I show the images uploads or the last uploads by a user in his profile? thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 26, 2008, 03:53:40 PM
You can do that if you write a database query that pulls from the picture table.
Title: Re: SMF Gallery
Post by: Inque187 on January 26, 2008, 10:16:32 PM
I am getting the error:

http://www.homepage.com/forum/index.php?action=gallery;sa=edit;id=3 

8: Undefined index: gallery_text_oldpicture
File: /home/xxxxxx/public_html/forums/Themes/default/languages/Gallery.english.php (edit_picture sub template - eval?)
Line: 624


I found on this same thread about how to fix it by adding: $txt['gallery_text_oldpicture'] = 'Old Picture';

but every time I edit the Gallery.english.php file and then upload it - everything else gets broken (no text on any of the gallery templates).

Where/What line do I add this fix. I am using Lite and would love to buy Pro if this gets fixed.
Title: Re: SMF Gallery
Post by: MoreBloodWine on January 27, 2008, 12:17:37 AM
@VB

Are you sure therees no way I can buy pro without PayPal... I mean dont you have a Po Box or something I can just mail the money to. Everytime I try to open a new PayPal account they immediately lock it. Like I said I have outstanding issues with them over something they screwed up a few yrs back. Anyway, I really want and like this mod and would like to buy pro but I cant without some sort of assistance from you. So please lets try to get something worked out here, Thx.
Title: Re: SMF Gallery
Post by: wjhdiz on January 28, 2008, 02:41:56 PM
I have the same problem. Will someone kindly show how to change the index.template.php file?

Thanks.

Quote from: anakmacan on January 25, 2008, 10:14:14 AM


Quote from: TrueSatan on January 23, 2008, 06:57:34 PM
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)

These links will give you the information you require to edit your custom theme.


When using mod parser, all codes that should be editted dont exist  :-\  , im using classic yabb- 1.1.4.
This is my index.template.php file, i hope you can check this for me and everybody else  ;)
Title: Re: SMF Gallery
Post by: anakmacan on January 28, 2008, 10:48:34 PM
mjhdiz: I dont think the problem we got has simple solution  ::)  Let's give the guy some time to figure this out :)
Title: Re: SMF Gallery
Post by: TrueSatan on January 29, 2008, 06:36:20 AM
The simple solution is that if you are unsure of how to use a theme other than the SMF default theme then don't use that theme...themes aren't part of mod support and all a mod is required to do is to install into the SMF default theme...that said this is really quite an easy one...here's the button code you need:

// The 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" border="0" />' : "Gallery"), '</a>', $context['menu_separator'];
Title: Re: SMF Gallery
Post by: anakmacan on January 29, 2008, 08:24:51 AM
Default theme's ugly :p and i dont have any problems with other mods, only with SMF Gallery. I paste the code inside index.template of my theme, but it wont change a thing.. so i guess this mod is just impossible for classic yabb, but thanks anyway  ;D
Title: Re: SMF Gallery
Post by: TrueSatan on January 29, 2008, 04:39:21 PM
You do realise that you have to make a gallery.gif button for it to use I presume...all nav bar items in themes like that one need button images.
Title: Re: SMF Gallery
Post by: wjhdiz on February 01, 2008, 10:48:15 AM
Hi,

I have made the gallery.gif button for it. The problem is that the portion of the code change in index.template.php. Could you make a bit more clear on the changes for classic theme? Really appreciate.

Jimmy
Quote from: TrueSatan on January 29, 2008, 04:39:21 PM
You do realise that you have to make a gallery.gif button for it to use I presume...all nav bar items in themes like that one need button images.
Title: Re: SMF Gallery
Post by: jamesk on February 01, 2008, 11:29:55 AM
QuoteCould you make a bit more clear on the changes for classic theme?



http://docs.simplemachines.org/index.php?topic=1032
Title: Re: SMF Gallery
Post by: rtyug on February 03, 2008, 04:39:08 PM
<prev | next >



Gallery.template.php

................................




<tr class="windowbg2">
<td align="center"><b>
<a href="', $scripturl, '?action=gallery;sa=prev;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_prev'], '</a> |
<a href="', $scripturl, '?action=gallery;sa=next;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_next'], '</a>
</b>
</div>
</td>
</tr>




.............................



the buttons are visible! but does not commute, kicks about on a main page the photo of gallery when want to pass to the following...

how to do that did work, what I had forgotten? where to look?








Gallery.php


...................................



function PreviousDownload()
{
global $db_prefix, $txt, $scripturl;

$id = (int) $_REQUEST['id'];
// if (empty($id))
// fatal_error($txt['downloads_error_no_file_selected']);

// Get the category
$dbresult = db_query("
SELECT
ID_PICTURE, ID_CAT
FROM {$db_prefix}gallery_pic
WHERE ID_PICTURE = $id  LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$ID_CAT = $row['ID_CAT'];

mysql_free_result($dbresult);

// Get previous download
$dbresult = db_query("
SELECT
ID_PICTURE
FROM {$db_prefix}gallery_pic
WHERE ID_CAT = $ID_CAT AND approved = 1 AND ID_PICTURE > $id  LIMIT 1", __FILE__, __LINE__);
if (db_affected_rows() != 0)
{
$row = mysql_fetch_assoc($dbresult);
$ID_PICTURE = $row['ID_PICTURE'];
}
else
$ID_PICTURE = $id;

mysql_free_result($dbresult);

redirectexit('action=gallery;sa=view;id=' . $ID_PICTURE);
}
function NextDownload()
{
global $db_prefix, $txt, $scripturl;

$id = (int) $_REQUEST['id'];
// if (empty($id))
// fatal_error($txt['downloads_error_no_file_selected']);

// Get the category
$dbresult = db_query("
SELECT
ID_PICTURE, ID_CAT
FROM {$db_prefix}gallery_pic
WHERE ID_PICTURE = $id  LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$ID_CAT = $row['ID_CAT'];

mysql_free_result($dbresult);

// Get  download
$dbresult = db_query("
SELECT
ID_PICTURE
FROM {$db_prefix}gallery_pic
WHERE ID_CAT = $ID_CAT AND approved = 1 AND ID_PICTURE < $id
ORDER BY ID_PICTURE DESC LIMIT 1", __FILE__, __LINE__);
if (db_affected_rows() != 0)
{
$row = mysql_fetch_assoc($dbresult);
$ID_PICTURE = $row['ID_PICTURE'];
}
else
$ID_PICTURE = $id;
mysql_free_result($dbresult);

redirectexit('action=gallery;sa=view;id=' . $ID_PICTURE);
}






..................................

Title: Re: SMF Gallery
Post by: perro88 on February 04, 2008, 06:07:25 PM
do the gallery have a max width/height when showing the pics? I mean if someone add a 1600*1000 pic for example. it will be dysplayed at that size or resized?
Title: Re: SMF Gallery
Post by: TrueSatan on February 04, 2008, 07:23:11 PM
It will observe the settings you provide in ACP>Gallery Settings
Title: Re: SMF Gallery
Post by: Inque187 on February 08, 2008, 09:18:33 PM
I am getting the error:

http://www.homepage.com/forum/index.php?action=gallery;sa=edit;id=3 

8: Undefined index: gallery_text_oldpicture
File: /home/xxxxxx/public_html/forums/Themes/default/languages/Gallery.english.php (edit_picture sub template - eval?)
Line: 624


I found on this same thread about how to fix it by adding: $txt['gallery_text_oldpicture'] = 'Old Picture';

but every time I edit the Gallery.english.php file and then upload it - everything else gets broken (no text on any of the gallery templates).

Where/What line do I add this fix. I am using Lite and would love to buy Pro if this gets fixed.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 08, 2008, 10:06:29 PM
I believe this was fixed in the latest version of the lite edition.
Also if you are editing the Gallery.english.php and causing an error please attach the file and I can take a look at it.
Title: Re: SMF Gallery
Post by: Kenny01 on February 12, 2008, 09:52:05 AM
Good mod, work fine for me.
Title: Re: SMF Gallery
Post by: minos on February 13, 2008, 02:22:25 PM
its there a way to use a remote server tyo host the images?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 13, 2008, 08:07:17 PM
Quote from: minos on February 13, 2008, 02:22:25 PM
its there a way to use a remote server tyo host the images?
Not at this time
Title: Re: SMF Gallery
Post by: perro88 on February 13, 2008, 08:37:06 PM
do the gallery have a max width/height when showing the pics? I mean if someone add a 1600*1000 pic for example. it will be dysplayed at that size or resized? if it doesn't have, what about adding it :P. really good mod btw big thanks for making it
Title: Re: SMF Gallery
Post by: vbgamer45 on February 13, 2008, 08:37:48 PM
For the lite edition I believe I only have max height and width that can be upload. The pro edition I have some more options
Title: Re: SMF Gallery
Post by: Kenny01 on February 14, 2008, 01:23:23 AM
Quote from: vbgamer45 on February 13, 2008, 08:07:17 PM
Quote from: minos on February 13, 2008, 02:22:25 PM
its there a way to use a remote server tyo host the images?
Not at this time
I was thinking the same, because a remote server mean been hosted somewhere else.
Title: Re: SMF Gallery
Post by: Slushie on February 14, 2008, 09:47:24 PM
Hey,

I uploaded the zip file through the package manager, and it was success. But then on the next page I got the following error.
http://i49.photobucket.com/albums/f267/ANintendoFan/Computer/smfgallery1.png

And when I scroll down a little more.
http://i49.photobucket.com/albums/f267/ANintendoFan/Computer/smfgallery2.png

The mods I have installed are:
1.  Custom Profile Field Mod 3.16
2. SMF Arcade    2.0.9
3. Spoiler Tag    0.3.2
4. SMF Shoutbox 1.16b
5. Auto Embed Video Clips 2.0

Is it safe to install this mod? Do I need to do something with the modifications.englih.php?

Thanks for any help.  :)
Title: Re: SMF Gallery
Post by: vbgamer45 on February 14, 2008, 09:50:35 PM
That's ok you can install it but you will have to modify the modifications.english to add the text strings for the gallery.
Title: Re: SMF Gallery
Post by: Slushie on February 14, 2008, 10:17:56 PM
Quote from: vbgamer45 on February 14, 2008, 09:50:35 PM
That's ok you can install it but you will have to modify the modifications.english to add the text strings for the gallery.

Thanks. Can you, or someone else please tell me what to edit. Below is my modifications.english file. Also, I'm using the Classic Template, I just changed the colours, will that effect anything? Thanks.

Quote<?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.';?>
Title: Re: SMF Gallery
Post by: vbgamer45 on February 14, 2008, 10:26:46 PM
Find

?>

Add before

//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//END SMF Gallery Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//END SMF Gallery Text Strings
Title: Re: SMF Gallery
Post by: Slushie on February 15, 2008, 12:24:46 AM
Thanks, but I entered that code into the modifications.english.php after I installed SMF Gallery, and I got the following error on my forum.

http://i49.photobucket.com/albums/f267/ANintendoFan/Computer/parseerror.png

Below is my modifications.english.php file now.

Quote<?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_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//END SMF Gallery Text Strings         
]]></add>
   </operation>
</file>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
   <operation>
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//END SMF Gallery Text Strings?>
Title: Re: SMF Gallery
Post by: vbgamer45 on February 15, 2008, 12:34:09 AM
Oops should be
Thanks, but I entered that code into the modifications.english.php after I installed SMF Gallery, and I got the following error on my forum.

http://i49.photobucket.com/albums/f267/ANintendoFan/Computer/parseerror.png

Below is my modifications.english.php file now.

Quote<?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_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//END SMF Gallery Text Strings         
?>
Title: Re: SMF Gallery
Post by: Slushie on February 15, 2008, 01:46:38 AM
Thanks Alot. :D It's working now.

I also have a question. It says in the list of features. "User Image galleries"
But I can't seem to figure out how to let a user create their own gallery.
Can you please tell me how, if it is possible?

Thanks.
Title: Re: SMF Gallery
Post by: Kenny01 on February 15, 2008, 04:30:17 AM
users can't create their own gallery, but can only add there pics to the galery. It's only the admin who can do that.
Title: Re: SMF Gallery
Post by: godzirrraaaaa on February 15, 2008, 12:45:26 PM
Quote from: Tory on January 24, 2008, 07:31:47 PM
I am trying to reinstall the SMF Gallery Pro and it is giving me an error message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am using SMF 1.1.4 and have SMF Gallery Lite installed at the moment.  Do I need to unistall that to install the Pro?


I'm getting the same error but I don't have Lite installed.  The Package manager won't let me install it because it says it's an uncompatible / older version.  I'm user SMF 1.1.4.
Title: Re: SMF Gallery
Post by: Slushie on February 15, 2008, 03:29:40 PM
Quote from: Oga123 on February 15, 2008, 04:30:17 AM
users can't create their own gallery, but can only add there pics to the galery. It's only the admin who can do that.

Oh. Basically the whole reason I installed it was for User Galleries, because on the SMF Gallery Page here, under features it says.
"User Image galleries"
Why does it say that then? I'm just a little confused.
Title: Re: SMF Gallery
Post by: jamesk on February 15, 2008, 05:24:40 PM
User Galleries are part of the Pro version, I believe:

http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: simon36 on February 16, 2008, 05:36:22 PM
Hi, I have the Lite version and really like it.

Can someone tell me how to add forward and back buttons?

Thanks in advance.
Title: Re: SMF Gallery
Post by: ReneNF on February 16, 2008, 06:19:58 PM
Hi to all

I have a big problem. I can´t install the gallery lite. When I will execute the changes of the packages, I become shown this failure:
(see picture)

Who can help?
Title: Re: SMF Gallery
Post by: vdubbia on February 18, 2008, 07:41:34 PM
Quote from: simonb on February 16, 2008, 05:36:22 PM
Hi, I have the Lite version and really like it.

Can someone tell me how to add forward and back buttons?

Thanks in advance.

I believe that's on the pro version.
Title: Re: SMF Gallery
Post by: perplexed on February 18, 2008, 07:53:54 PM
vbgamer:

Two quick questions -

If I uninstall and reinstall gallery lite will all my images still be there (I'm thinking yes but I just want to check)
and
If I decided to go with pro, it is just a simple matter of uninstalling lite and then installing pro, and do I still retain all my images?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2008, 08:25:36 PM
Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.
Title: Re: SMF Gallery
Post by: vdubbia on February 18, 2008, 08:35:57 PM
Quote from: vbgamer45 on February 18, 2008, 08:25:36 PM
Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.

and before/next navigation is included in PRO right?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2008, 08:47:47 PM
Yes it is.
http://www.smfhacks.com/index.php?action=gallery

And check out some of the sites that have purchased the gallery
http://www.smfhacks.com/index.php?action=showcase
Title: Re: SMF Gallery
Post by: vdubbia on February 18, 2008, 08:51:18 PM
How can I change "Picture Not Approved" to "Picture Pending Approval"?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2008, 09:00:43 PM
You would need to change the text string found in Themes/default/languages/Gallery.english.php  do a search and find and replace.
Title: Re: SMF Gallery
Post by: vdubbia on February 18, 2008, 09:13:54 PM
Quote from: vbgamer45 on February 18, 2008, 09:00:43 PM
You would need to change the text string found in Themes/default/languages/Gallery.english.php  do a search and find and replace.

perfect, thanks.  For the official mod package I might suggest changing that to read 'Picture Not Yet Approved' as 'Picture Not Approved' tends to make uploaders think their picture was rejected.  For my purposes, Picture Pending Approval does the trick.

Thanks for the quick answer.
Title: Re: SMF Gallery
Post by: wjhdiz on February 19, 2008, 04:52:35 PM
Hi,

Just wondering if SMF Gallery can use lightbox features.

Thanks,
JImmy
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2008, 08:00:22 PM
I have addon for the pro edition but it does not do to much just shows the picture in a lightbox when they click on the image when viewing the picture.
Title: Re: SMF Gallery
Post by: perplexed on February 20, 2008, 08:05:46 AM
Quote from: vbgamer45 on February 18, 2008, 08:25:36 PM
Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.

cool thank you
Title: Re: SMF Gallery
Post by: wjhdiz on February 20, 2008, 11:20:43 AM
With Integrate Lightbox installed, does this mean that I need to only modify gallery.php file a little bit?

Thanks.
Quote from: vbgamer45 on February 19, 2008, 08:00:22 PM
I have addon for the pro edition but it does not do to much just shows the picture in a lightbox when they click on the image when viewing the picture.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2008, 09:40:44 PM
No idea  haven't used that mod.
Title: Re: SMF Gallery
Post by: Hoochie Coochie Man on February 22, 2008, 12:12:37 PM
Hi,

SMF Seo Gallery home page has 34 XHTML errors! (http://www.smfseo.net/forums/index.php?action=gallery)

and my gallery home page has 11 errors (http://www.istanblues.org/forum/index.php?action=gallery)

Can you fix these errors please?  :-[

QuoteResult: 11 errors / 0 warnings

line 122 column 25 - Error: document type does not allow element "tr" here
line 122 column 560 - Error: document type does not allow element "tr" here
line 124 column 29 - Error: document type does not allow element "tr" here
line 124 column 408 - Error: document type does not allow element "tr" here
line 126 column 29 - Error: document type does not allow element "tr" here
line 126 column 410 - Error: document type does not allow element "tr" here
line 128 column 29 - Error: document type does not allow element "tr" here
line 128 column 451 - Error: document type does not allow element "tr" here
line 130 column 29 - Error: document type does not allow element "tr" here
line 130 column 447 - Error: document type does not allow element "tr" here
line 132 column 15 - Error: end tag for "tr" omitted, but OMITTAG NO was specified
line 118 column 4 - Info: start tag was here

Edit: and these 11 errors are in there...
// No Category is set.
if($g_add && !($context['user']['is_guest']))
echo '<div align="right"><a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=search">' . $txt['gallery_text_search'] . '</a></div>';

echo '<h1 align="center">' . $txt['gallery_text_title'] .'</h1>';

// List all the catagories
$dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);


//Check which BBCode parser exists parse_bbc for 1.1 or doUBBC for 1.0.x
$parse_exist = function_exists('parse_bbc');

echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
<td>' . $txt['gallery_text_gallerydescription'] .'</td>
<td>' . $txt['gallery_text_totalimages'] . '</td>
';
if($g_manage)
echo '
<td>' . $txt['gallery_text_reorder'] . '</td>
<td>' . $txt['gallery_text_options'] . '</td>
</tr>';


while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totalpics = db_affected_rows();
echo '<tr class="windowbg2">';
if($parse_exist)
{
if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
}

}
else
{

if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
}


}
// Show total pictures in the category
echo '<td align="center">' . $totalpics . '</td>';

// Show Edit Delete and Order category
if($g_manage)
{
echo '<td><a href="' . $scripturl . '?action=gallery;sa=catup;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_up'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=catdown;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_down'] . '</a></td>
<td><a href="' . $scripturl . '?action=gallery;sa=editcat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_edit'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=deletecat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_delete'] . '</a></td>';
}


echo '</tr>';
if($g_manage)
{
echo '<tr class="titlebg">
<td colspan="6">&nbsp;</td>
</tr>';
}
else
echo '<tr class="titlebg">
<td colspan="4">&nbsp;</td>
</tr>';

mysql_free_result($dbresult2);

}
mysql_free_result($dbresult);
echo '</table><br /><br /><br />';


When I look at the codes, I couldn't find any errors?  :-\ interesting  ::)

Edit 2: Ok, I found the error!

This is wrong codding:

<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
            <tr class="titlebg">
            <td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
            <td>' . $txt['gallery_text_gallerydescription'] .'</td>
            <td>' . $txt['gallery_text_totalimages'] . '</td>
            ';
      if($g_manage)
      echo '
            <td>' . $txt['gallery_text_reorder'] . '</td>
            <td>' . $txt['gallery_text_options'] . '</td>
            </tr>';

Red area creates the error. I know what the red area means. I't is for admins.

I solved my own problem. But this is my own solution.
You must sacrifice some codes for valid XHTML. Anyway these codes shows up only admins.

// No Category is set.
if($g_add && !($context['user']['is_guest']))
echo '<div align="right"><a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=search">' . $txt['gallery_text_search'] . '</a></div>';

echo '<h1 align="center">' . $txt['gallery_text_title'] .'</h1>';

// List all the catagories
$dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);


//Check which BBCode parser exists parse_bbc for 1.1 or doUBBC for 1.0.x
$parse_exist = function_exists('parse_bbc');

echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
<td>' . $txt['gallery_text_gallerydescription'] .'</td>
<td colspan="3">' . $txt['gallery_text_totalimages'] . '</td></tr>';



while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totalpics = db_affected_rows();
echo '<tr class="windowbg2">';
if($parse_exist)
{
if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
}

}
else
{

if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
}


}
// Show total pictures in the category
echo '<td align="center">' . $totalpics . '</td>';

// Show Edit Delete and Order category
if($g_manage)
{
echo '<td><a href="' . $scripturl . '?action=gallery;sa=catup;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_up'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=catdown;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_down'] . '</a></td>
<td><a href="' . $scripturl . '?action=gallery;sa=editcat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_edit'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=deletecat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_delete'] . '</a></td>';
}


echo '</tr>';
if($g_manage)
{
echo '<tr class="titlebg">
<td colspan="6">&nbsp;</td>
</tr>';
}
else
echo '<tr class="titlebg">
<td colspan="4">&nbsp;</td>
</tr>';

mysql_free_result($dbresult2);

}
mysql_free_result($dbresult);
echo '</table><br /><br /><br />';

// See if they are allowed to add catagories Main Index only
if($g_manage)
{
echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td align="center">' . $txt['gallery_text_adminpanel'] . '</td>
</tr>
<tr class="windowbg2">
<td align="center"><a href="' . $scripturl . '?action=gallery;sa=addcat">' . $txt['gallery_text_addcategory'] . '</a>&nbsp
<a href="' . $scripturl . '?action=gallery;sa=adminset">' . $txt['gallery_text_settings'] . '</a>&nbsp';


if (allowedTo('manage_permissions'))
echo '<a href="' . $scripturl . '?action=permissions">' . $txt['gallery_text_permissions'] . '</a>';

$dbresult3 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE approved = 0", __FILE__, __LINE__);
$totalpics = db_affected_rows();
mysql_free_result($dbresult3);
echo '<br />' . $txt['gallery_text_imgwaitapproval'] . '<b>' . $totalpics . '</b>&nbsp;&nbsp;<a href="' . $scripturl . '?action=gallery;sa=approvelist">' . $txt['gallery_text_imgcheckapproval'] . '</a>';
$dbresult4 = db_query("SELECT ID FROM {$db_prefix}gallery_report", __FILE__, __LINE__);
$totalreport = db_affected_rows();
mysql_free_result($dbresult4);
echo '<br />' . $txt['gallery_text_imgreported'] . '<b>' . $totalreport . '</b>&nbsp;&nbsp;<a href="' . $scripturl . '?action=gallery;sa=reportlist">' . $txt['gallery_text_imgcheckreported'] . '</a>';

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


And the Result (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.istanblues.org%2Fforum%2Findex.php%3Faction%3Dgallery&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0)
Title: Re: SMF Gallery
Post by: ~Unkn0wn~ on February 22, 2008, 02:39:28 PM
A suggestion would be a friend system, and based on that that only friends can see their images, or his protafolio.
Title: Re: SMF Gallery
Post by: Hoochie Coochie Man on February 22, 2008, 02:46:58 PM
Quote from: assasinkilla on February 22, 2008, 02:39:28 PM
A suggestion would be a friend system, and based on that that only friends can see their images, or his protafolio.
I solved! Thanks for your suggestion anyway..
Title: Re: SMF Gallery
Post by: vbgamer45 on February 22, 2008, 10:11:59 PM
Quote from: Hoochie Coochie Man on February 22, 2008, 12:12:37 PM
Hi,

SMF Seo Gallery home page has 34 XHTML errors! (http://www.smfseo.net/forums/index.php?action=gallery)

and my gallery home page has 11 errors (http://www.istanblues.org/forum/index.php?action=gallery)

Can you fix these errors please?  :-[

QuoteResult: 11 errors / 0 warnings

line 122 column 25 - Error: document type does not allow element "tr" here
line 122 column 560 - Error: document type does not allow element "tr" here
line 124 column 29 - Error: document type does not allow element "tr" here
line 124 column 408 - Error: document type does not allow element "tr" here
line 126 column 29 - Error: document type does not allow element "tr" here
line 126 column 410 - Error: document type does not allow element "tr" here
line 128 column 29 - Error: document type does not allow element "tr" here
line 128 column 451 - Error: document type does not allow element "tr" here
line 130 column 29 - Error: document type does not allow element "tr" here
line 130 column 447 - Error: document type does not allow element "tr" here
line 132 column 15 - Error: end tag for "tr" omitted, but OMITTAG NO was specified
line 118 column 4 - Info: start tag was here

Released SMF Gallery 1.8.2 with a fix with the html tag's causing an html validation error.
Title: Re: SMF Gallery
Post by: ~Unkn0wn~ on February 22, 2008, 11:15:02 PM
suggestion for smf gallery sir.
Title: Re: SMF Gallery
Post by: simon36 on February 22, 2008, 11:57:52 PM
Hi, the old version did not remove cleanly and I now have two 'Gallery' links on my board. How do I remove one of them?

Thanks.
Title: Re: SMF Gallery
Post by: Hoochie Coochie Man on February 23, 2008, 03:21:27 AM
Quote from: vbgamer45 on February 22, 2008, 10:11:59 PM
Released SMF Gallery 1.8.2 with a fix with the html tag's causing an html validation error.

When did release? Today?
Cool :)


Edit: Thanks @vbgamer45 it works great now.

But there is only a tiny bug here.
You must add alt=""  tag to the some <img> tags..
Otherwise it creates XHTML errors..

Find:
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';

Replace:
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';




Find:
<td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" /></td>


Replace:
<td align="center"><img alt="" height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" /></td>





Find:
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';


Replace:
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" alt="" /></a><br />';


and that's all! Now Full Valid! ;)
Thanks..
See you..
Title: Re: SMF Gallery
Post by: simon36 on February 23, 2008, 08:01:30 AM
When I try to uninstall 1.8.1.2 I get the below

Uninstall Actions "SMF Gallery Lite":
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/Modifications.english-utf8.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Sources/Subs.php    Test failed
7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
8.    Delete File    ./Sources/Gallery.php    
9.    Delete File    ./Themes/default/Gallery.template.php    
10.    Delete File    ./Themes/default/languages/Gallery.english.php    
11.    Delete File    ./Themes/default/languages/Gallery.english-utf8.php
Title: Re: SMF Gallery
Post by: ReneNF on February 25, 2008, 07:28:05 PM
Hi,

I´ve installed the Gallery1.8.2 ... It works only in the default theme. I mean only in this theme is button Gallery visible. In all other used themes the button ist missing. I´ve reinstalled the used themes, but nothing did change!

Can someome help where the mistake is? Or say where I must something change in php?

Thanks to all
Title: Re: SMF Gallery
Post by: kota069 on February 26, 2008, 10:23:18 AM
Before I UNinstall Gallery1.8.1.2 MANUALLY -
Is 1.8.2 indeed NEWER?
And if so what is the difference?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 26, 2008, 09:10:20 PM
Yes it is minor updates and fixes checking a couple posts back of mine for more info.
Title: Re: SMF Gallery
Post by: kota069 on February 27, 2008, 12:13:18 AM
Quote from: Hoochie Coochie Man on February 23, 2008, 03:21:27 AM

But there is only a tiny bug here.
You must add alt=""  tag to the some <img> tags..
Otherwise it creates XHTML errors..
.............................

Does this still hold true (as of............ yesterday)?
i.e.,  I dwnlded 1.8.2 (my file dated: 02/26/08 10:14 AM) -
Are these edits still necessary?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 27, 2008, 12:31:02 AM
yes if you need xhtml validation.
Title: Re: SMF Gallery
Post by: LadyC on March 01, 2008, 01:18:26 PM
i'm having a strange problem. people can upload their images just fine, and all the thumbnails are showing up.

but when you click on a thumbnail to enlarge it, it goes to a page that says this:

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 01, 2008, 01:35:03 PM
Usally a mod_security issue read over this post
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Gallery
Post by: LadyC on March 01, 2008, 01:57:40 PM
tried the suggestions in that thread, but it didn't change anything. i didn't really expect it to, since i administer two other sites on the same server, and this issue seems exclusive to the one site.

should i try uninstalling it and reinstalling?
Title: Re: SMF Gallery
Post by: perplexed on March 05, 2008, 08:05:59 PM
VBGamer is it possible with the pro version to move pics from one category to another category or do you have to delete them and upload again to the new category?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on March 05, 2008, 08:18:48 PM
Yes I believe with the lite edition you can do that too when editing a picture
Title: Re: SMF Gallery
Post by: perplexed on March 05, 2008, 08:44:50 PM
oops I didnt look hard enough, you're right, it is there.  A bulk move option would be nice though maybe for the pro version some time :)
Title: Re: SMF Gallery
Post by: Dante63s on March 11, 2008, 10:46:48 AM
Will it work on the spanish SMF?

Is it possible?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 11, 2008, 08:07:52 PM
Yes you need to translate Gallery.english.php
Title: Re: SMF Gallery
Post by: LadyC on March 11, 2008, 10:31:31 PM
ok i can't find this problem in this topic. i installed the gallery lite on a message board... and it works fine UNTIL you click the thumbnail to view the larger image... and then you get the following:

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

how do i fix it?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 11, 2008, 10:34:11 PM
Sounds like a mod_security or permissions issue

Check out this topic on mod_security
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Gallery
Post by: LadyC on March 11, 2008, 10:38:50 PM
oh i'm so dumb, i actually had already posted this question a few weeks ago!

i did try the suggestions in that topic at that time, to no avail, but i'll try again. the odd thing is, i've got another site on the same server, and have never had this problem on that site.
Title: Re: SMF Gallery
Post by: LadyC on March 11, 2008, 10:53:16 PM
ok, i tried it again, editing the .htaccess file, and again it didn't resolve the issue i'm having. any other suggestions?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 11, 2008, 11:14:34 PM
Try changing the webserver permission on the gallery folder itself
Title: Re: SMF Gallery
Post by: LadyC on March 12, 2008, 01:44:09 AM
ummmm.... you mean like the chmod setting?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 12, 2008, 09:02:46 PM
Yeah chmod.
Title: Re: SMF Gallery
Post by: LadyC on March 12, 2008, 09:09:37 PM
it's currently set wide open, 777... what settings does that folder need to be?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 12, 2008, 09:10:45 PM
That should be more than enough permission wise.
Title: Re: SMF Gallery
Post by: LadyC on March 12, 2008, 09:19:15 PM
then i'm stumped :(
Title: Re: SMF Gallery
Post by: vbgamer45 on March 12, 2008, 09:23:31 PM
Try this as well
http://stellify.net/406-not-acceptable-and-apache-mod_security/
Title: Re: SMF Gallery
Post by: LadyC on March 12, 2008, 09:38:01 PM
thanks, i'll have a look at that! i'm leaving town tonight for a few days, but i'll let ya know early next week if it works or not...
Title: Re: SMF Gallery
Post by: lurkalot on March 13, 2008, 04:09:08 PM
I'm currently running SMF 1.1.4 and tinyportal 0.9.8, I also have Coppermine gallery bridged with this.   

I would really like to try SMF Gallery, and was just wondering, would this mess up my existing bridge, or alter my existing gallery button if I install it?  Or would it be safe to give it a go.

Sorry for dumb question. ;)  My site is here, http://cameracraniums.com/
Title: Re: SMF Gallery
Post by: vbgamer45 on March 13, 2008, 07:40:29 PM
It shouldn't mess with the bridge nor alter the button on your theme.
Title: Re: SMF Gallery
Post by: lurkalot on March 13, 2008, 08:00:35 PM
Thank you. ;)

I'll give it a try then :)
Title: Re: SMF Gallery
Post by: copsworld on March 14, 2008, 01:46:23 PM
Great mod..Thanks!
Title: Re: SMF Gallery
Post by: lurkalot on March 14, 2008, 02:15:05 PM
Quote from: vbgamer45 on March 13, 2008, 07:40:29 PM
It shouldn't mess with the bridge nor alter the button on your theme.

oops, forgot to ask this question.   When I install this mod, does it create a folder called gallery in the forum root?   Because I already have one in there called gallery for my coppermine gallery.   (Just don't want to overwrite that one).
Title: Re: SMF Gallery
Post by: vbgamer45 on March 14, 2008, 08:32:42 PM
Yes it does.
Title: Re: SMF Gallery
Post by: lurkalot on March 15, 2008, 04:35:07 AM
Quote from: vbgamer45 on March 14, 2008, 08:32:42 PM
Yes it does.

Phew, good job I didn't install it then. ;)  Is there any way around this problem as I would really love to try this package?
Title: Re: SMF Gallery
Post by: seattleda on March 15, 2008, 02:48:59 PM
Hi - trying to install this.  Here is the error I get:
512: parseModification(): The filename '\\NAWINFS02\home\users\web\b912\rh.dfstaff\forum/Sources/ManagePermissions.php' is not a full path!
File: \\NAWINFS02\home\users\web\b912\rh.dfstaff\forum\Sources\Subs-Package.php
Line: 1339

Any ideas?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 15, 2008, 06:51:49 PM
It shouldn't delete the folder by default. Back it up before installing the mod. Once the mod is installed you can change the gallery path and url to different folder such as gallery2
Title: Re: SMF Gallery
Post by: lurkalot on March 15, 2008, 08:02:54 PM
Quote from: vbgamer45 on March 15, 2008, 06:51:49 PM
It shouldn't delete the folder by default. Back it up before installing the mod. Once the mod is installed you can change the gallery path and url to different folder such as gallery2

Thanks again.  ;)
Title: Re: SMF Gallery
Post by: vbgamer45 on March 15, 2008, 09:30:24 PM
Quote from: seattleda on March 15, 2008, 02:48:59 PM
Hi - trying to install this.  Here is the error I get:
512: parseModification(): The filename '\\NAWINFS02\home\users\web\b912\rh.dfstaff\forum/Sources/ManagePermissions.php' is not a full path!
File: \\NAWINFS02\home\users\web\b912\rh.dfstaff\forum\Sources\Subs-Package.php
Line: 1339

Any ideas?
You can ignore it the mod should install fine
Title: Re: SMF Gallery
Post by: johnm1019 on March 16, 2008, 12:58:01 PM
I already have a rather large coppermine gallery, and would like to switch.  Is there any less than painful way to switch it all over?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 16, 2008, 01:55:47 PM
How large gallery and what version of coppermine? A converter would need to be made.
Title: Re: SMF Gallery
Post by: johnm1019 on March 16, 2008, 03:31:34 PM
cpg 1.4.10 and the gallery has 977 files as of today.
no movies just pictures.

FWIW I think it would be a good investment of time to make an intelligent converter because for people like me that see the CPG project just dying, and this moving along (and with way better integration into our SMF forum) its very attractive.  That being said I wouldn't ever do data entry on 1000 files cause my eyes would bleed.

oh more info.... just thought of...
the gallery has only existed as bridged to our SMF install, and we have a lot of users gallery all of which need to be preseved.  the good news is tho as i said its only existed bridged so the user id's should match
Title: Re: SMF Gallery
Post by: LiamTheDuck on March 16, 2008, 04:02:12 PM
Any chance of upgrading it to SMF 2?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 16, 2008, 04:41:09 PM
Not till the final release of SMF 2.0
Title: Re: SMF Gallery
Post by: LyndaRay909 on March 16, 2008, 06:51:00 PM
Know of anyway to have the last 5 uploads to the gallery show up as thumbnails on the main page of the forum? I'm on 1.1.4 version and I just installed everything yesterday.

Also is there a way for members to upload more then 1 photo at a time?

Any help or suggestions would be greatly appreciated.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 16, 2008, 06:53:06 PM
I do have those options but only in the paid version of the gallery.
Title: Re: SMF Gallery
Post by: vinod41 on March 19, 2008, 03:13:43 PM
hi,

i've this error while installing :)

at consoleplayers.com 1.1.4

Quote from: simon36 on February 23, 2008, 08:01:30 AM
When I try to uninstall 1.8.1.2 I get the below

Uninstall Actions "SMF Gallery Lite":
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/Modifications.english-utf8.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Sources/Subs.php    Test failed
7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
8.    Delete File    ./Sources/Gallery.php    
9.    Delete File    ./Themes/default/Gallery.template.php    
10.    Delete File    ./Themes/default/languages/Gallery.english.php    
11.    Delete File    ./Themes/default/languages/Gallery.english-utf8.php
Title: Re: SMF Gallery
Post by: vbgamer45 on March 19, 2008, 08:06:08 PM
You probably need to install the mod manually using
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMF Gallery
Post by: kelvinlnx on March 20, 2008, 02:05:15 PM
Hi,
Why is it that when I upload a file to the gallery it renames it?
Eg if I upload a picture named abc.jpg After I upload it, it will be renamed to a number format in the gallery directory like 1_21_.....jpg. Is there a way for me to have the Gallery keep the name abc.jpg instead of renaming it? Thanks.
Title: Re: SMF Gallery
Post by: retownes on March 20, 2008, 07:42:24 PM
Quote from: vbgamer45 on March 16, 2008, 04:41:09 PM
Not till the final release of SMF 2.0

Oh man,... I didn't see this until I upgraded to 2.0 and lost my SMF Gallery.  Do you take bribes to get a working version to work with 2.0???  Purdy please!!  :)
Title: Re: SMF Gallery
Post by: vbgamer45 on March 20, 2008, 07:58:28 PM
I take bribes for that but It would be a lot of work since the Gallery is a major mod a lot of changes would be need to be made in order for it to work with SMF 2.0.


I would rather wait till a final SMF 2.0 release.
Title: Re: SMF Gallery
Post by: retownes on March 21, 2008, 08:05:09 PM
Quote from: vbgamer45 on March 20, 2008, 07:58:28 PM
I take bribes for that but It would be a lot of work since the Gallery is a major mod a lot of changes would be need to be made in order for it to work with SMF 2.0.


I would rather wait till a final SMF 2.0 release.

How much work, or perhaps man hours, do you think would be involved in getting Gallery to work with the beta version of 2.0?     Also, would you anticipate any "major" changes needed when SMF goes from beta to the release of 2.0?

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on March 21, 2008, 08:14:37 PM
A couple full days of work would be required. I would need to research all the major changes to mod development for SMF 2.0 and figure out how they work.

I believe the main changes from the Beta to the final will mostly be template based but beta2 to beta3 had major database changes so not really 100% sure what changes lie ahead.
Title: Re: SMF Gallery
Post by: retownes on March 23, 2008, 12:47:09 AM
My interest is VERY high in regard to you coming out with a version that works with 2.X.  I am a registered user of SMF Gallery, and I am willing to pay an upgrade fee for a compatible version (even if it has bugs).

I have tried reverting back to the 1.X series of SMF, but I have been unsuccessful. I have also tried Coppermine, but I like the way your product integrates with SMF much better.  In a nutshell, your product rocks!

Let the bribes begin...  :)
Title: Re: SMF Gallery
Post by: vbgamer45 on March 23, 2008, 12:51:34 AM
I have two editions Gallery Lite and Gallery Pro
Gallery lite I can get done faster since it is a lot less code than the pro edition found at
http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: retownes on March 23, 2008, 05:01:03 PM
Quote from: vbgamer45 on March 23, 2008, 12:51:34 AM
I have two editions Gallery Lite and Gallery Pro
Gallery lite I can get done faster since it is a lot less code than the pro edition found at
http://www.smfhacks.com/smf-gallery-pro.php


Well, after spending 2-3 hours today, I was finally able to revert SMF 2 back to SMF 1.X, and your Gallery Pro is back up and running.  Whew! 

I am looking forward to you releasing a version of Gallery Pro that will work with SMF 2.X though.  IMO, no gallery out there integrates better with SMF than your product.  Kudos to ya'! :)
Title: Re: SMF Gallery
Post by: metzbgsu on March 27, 2008, 12:49:07 PM
Do you think you could add a link tree at the top of the gallery like the forums and calendar have?  Or will that only be in the pro version?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 27, 2008, 08:46:08 PM
Might it just adds more processing to the forum which i try to avoid.
Title: Re: SMF Gallery
Post by: shacon on March 27, 2008, 10:50:41 PM
Is there any future plans for a ver 2.X 3 Beta update.?

Thank You

-shacon :)
Title: Re: SMF Gallery
Post by: vbgamer45 on March 27, 2008, 10:58:05 PM
Once SMF 2.0 final is released or an RC release I will update it. Right now too many changes happening for me to update it.
Title: Re: SMF Gallery
Post by: shacon on March 28, 2008, 12:42:05 AM
^  Great !! 

Looking forward to it once again.

-shacon  :)
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:13:55 PM
Hello,

I have the gallery lite mod installed and everything seems be ok except the images do not show up at all (thumbnails or otherwise). The gallery is chmodded to 755 and its not showing any errors in the forum error log at all.

Here are my details,

Version Information:
Forum version: SMF 1.1.4
Current SMF version: SMF 1.1.4
PHP version: 4.4.7
MySQL version: 4.1.22-standard
Server version: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP-CGI/0.1b
GD version: bundled (2.0.28 compatible)

On a test image I uploaded using the gallery mod, heres the link it has to the full sized image (forum address edited because its a private forum and I dont wish to advertise it).

http://www.xxxxxxxxxx.com/public_html/members_forum/gallery/thumb_1_28_03_08_1_14_26.gif

Any ideas?

Title: Re: SMF Gallery
Post by: vbgamer45 on March 29, 2008, 05:19:09 PM
What is your gallery url set at make sure it ends a /
And check if you are able to access the files in a browser.
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:28:40 PM
Thanks for the quick reply!

The / is at the end of the gallery URL, but it gives this error when I try to view a pic in the browser,


Forbidden
You don't have permission to access /public_html/members_forum/gallery/thumb_1_29_03_08_4_19_16.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Title: Re: SMF Gallery
Post by: vbgamer45 on March 29, 2008, 05:38:12 PM
Is that the right path and do files exist in the gallery folder?
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:40:51 PM
I believe its the right path, and the files do exist in the gallery folder.

I can double check with cpanel if you need me too.
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:44:58 PM
Quick update, after checking cpanel I discovered the jpg files are chmodded to 644, is there a way to make the gallery make the files 755 by default?

Hers a copy/paste of the screen in the File Manager of cpanel.

/ public_html / members_forum / gallery / (Current Folder)   
Create New Folder   
Upload file(s)   
Up one level   
Create New File   
1_29_03_08_4_19_16.jpg 32 k 0644
placeholder.txt 0 k 0775
thumb_1_29_03_08_4_19_16.jpg 18 k 0644
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:48:42 PM
I manually changed the permission to 755 in cpanel and tried to view it again in my browser, but IE still gives the forbidden error.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 29, 2008, 05:53:03 PM
Might be a mod_security issue search on the forums and they have fix for that.
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 05:55:37 PM
Will go check, thanks!
Title: Re: SMF Gallery
Post by: astrodaddy on March 29, 2008, 06:04:25 PM
Update - Its working now!

I have the Download mod installed, and since it works I figured the paths must be correct. So I simply copied the URL from the download mod and pasted it into the gallery lite mod URL, changed /downloads/ to /gallery/ and it started working!

Im now going to go check out your Pro edition!

Thanks again!

Title: Re: SMF Gallery
Post by: Marsh on March 30, 2008, 03:10:52 AM
any plans on updating this to beta 3 anytime soon?
Title: Re: SMF Gallery
Post by: nwobhm on March 30, 2008, 05:15:48 AM
Hi,
I have translated SMF gallery lite 1.8.2 ver. to finnish and I have instelled it also. But I just can't get the Gallery tab appear into the menubar.
I have SMF 1.1.4 version with Dilbermc theme with finnish language.

I can see gallery settings and configurations in finnish in the administrator area and I see the permissions also. When I set persmissions to different groups, they cannot see the gallery tab in the men bar, but neither can I. But direct link does work.
Title: Re: SMF Gallery
Post by: perplexed on March 30, 2008, 07:46:48 AM
Quote from: marsh on March 30, 2008, 03:10:52 AM
any plans on updating this to beta 3 anytime soon?

look further up this page for the answer :)


Quote from: vbgamer45 on March 27, 2008, 10:58:05 PM
Once SMF 2.0 final is released or an RC release I will update it. Right now too many changes happening for me to update it.
Title: Re: SMF Gallery
Post by: slackerpunk on March 30, 2008, 09:31:54 AM
Hi,

I only got one issue when trying to install

2.     Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

but the mod was installed.

Now when I try to save the settings I get this error message

Can't find record in 'smf_settings'
File: /var/www/vhosts/pinoypsp.com/httpdocs/Sources/Subs.php
Line: 706
Title: Re: SMF Gallery
Post by: vbgamer45 on March 30, 2008, 10:00:19 AM
I would uninstall and reinstall haven't seen that exact error before but I might be related with the database install for the mod.
Title: Re: SMF Gallery
Post by: nwobhm on March 31, 2008, 05:43:08 AM
Quote from: nwobhm on March 30, 2008, 05:15:48 AM
Hi,
I have translated SMF gallery lite 1.8.2 ver. to finnish and I have instelled it also. But I just can't get the Gallery tab appear into the menubar.
I have SMF 1.1.4 version with Dilbermc theme with finnish language.

I can see gallery settings and configurations in finnish in the administrator area and I see the permissions also. When I set persmissions to different groups, they cannot see the gallery tab in the men bar, but neither can I. But direct link does work.

Where do I set up this Gallery tab into menubar?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 31, 2008, 07:27:47 PM
You would edit the index.template.php of the custom theme.
Title: Re: SMF Gallery
Post by: kota069 on April 01, 2008, 12:07:01 AM
What's the difference between 1.8.1.2 & 1.8.3?

Will 183 install over 1812 or does 1812 need to be UNinstalled?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 01, 2008, 12:12:58 AM
Needs to be uninstalled a minor change forget exactly what it was.
Title: Re: SMF Gallery
Post by: mynewusername on April 03, 2008, 12:27:45 PM
Is there a way a watermark can be put on the images in the gallery?
Title: Re: SMF Gallery
Post by: ccbtimewiz on April 03, 2008, 12:33:07 PM
Only on pro version.
Title: Re: SMF Gallery
Post by: mynewusername on April 03, 2008, 01:01:29 PM
Darn!

Quote from: ccbtimewiz on April 03, 2008, 12:33:07 PM
Only on pro version.
Title: Re: SMF Gallery
Post by: scho on April 03, 2008, 04:22:10 PM
Hi, I wonder if anyone can help with these errors in my error log. I am getting them with every page view i action.
http://www.*****.co.uk/smf/index.php?action=admin
8: Undefined index: smfgallery_admin
File: /var/www/html/smf/Sources/Subs.php
Line: 3316

Thanks in advance
Title: Re: SMF Gallery
Post by: ccbtimewiz on April 03, 2008, 04:36:27 PM
Quote from: scho on April 03, 2008, 04:22:10 PMHi, I wonder if anyone can help with these errors in my error log. I am getting them with every page view i action.
http://www.*****.co.uk/smf/index.php?action=admin
8: Undefined index: smfgallery_admin
File: /var/www/html/smf/Sources/Subs.php
Line: 3316

Thanks in advance

Find:
Code (subs.php) Select
'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">' . $txt['smfgallery_admin'] . '</a>',

Replace with:
Code (subs.php) Select
'gallery_settings' => '<a href="' . $scripturl . '?action=gallery;sa=adminset;sesc=' . $sc . '">Gallery Configuration</a>',
Title: Re: SMF Gallery
Post by: scho on April 03, 2008, 04:58:36 PM
Sorted , thank you for the help  ;D ;D
Title: Re: SMF Gallery
Post by: 4b11l on April 05, 2008, 12:36:21 AM
Quote from: kota069 on April 01, 2008, 12:07:01 AM
What's the difference between 1.8.1.2 & 1.8.3?

Will 183 install over 1812 or does 1812 need to be UNinstalled?

I'd like to know what is the difference also. I have the earlier version but would like to know what would be the difference if any in the newer version as there wasn't a change log on the download page.
Title: Re: SMF Gallery
Post by: perplexed on April 05, 2008, 06:15:21 AM
Quote from: 4b11l on April 05, 2008, 12:36:21 AM
Quote from: kota069 on April 01, 2008, 12:07:01 AM
What's the difference between 1.8.1.2 & 1.8.3?

Will 183 install over 1812 or does 1812 need to be UNinstalled?

I'd like to know what is the difference also. I have the earlier version but would like to know what would be the difference if any in the newer version as there wasn't a change log on the download page.

looks like something minor :

Quote from: vbgamer45 on April 01, 2008, 12:12:58 AM
Needs to be uninstalled a minor change forget exactly what it was.
Title: Re: SMF Gallery
Post by: denzil69 on April 07, 2008, 02:19:47 PM
unable to install this mod.

i receive the message:

Themes\default/languages/Modifications.english-utf8.php Test failed

when i try.

any ideas would be most helpful, thanks
Title: Re: SMF Gallery
Post by: ccbtimewiz on April 07, 2008, 02:26:19 PM
Quote from: denzil69 on April 07, 2008, 02:19:47 PM
unable to install this mod.

i receive the message:

Themes\default/languages/Modifications.english-utf8.php Test failed

when i try.

any ideas would be most helpful, thanks

Continue with installation regardless.
Title: Re: SMF Gallery
Post by: denzil69 on April 08, 2008, 07:10:58 AM
ok, went ahead with the install.

im using 1.1.4 and default theme

i get the error message

Warning Gallery path is not writable! D:/Domains/mydomain.com/mainfolder/forum/gallery/

EDIT: i changed the file folder where smf is kept recently, this is pointing at the old one for some reason?
i redirected it to point at the new one, and the error message has gone.

Ill do some testing before coming back if i need to

thanks for the help
Title: Re: SMF Gallery
Post by: vbgamer45 on April 08, 2008, 08:50:26 AM
If you changed the path you have to update in Gallery Configuration under Settings
Title: Re: SMF Gallery
Post by: gianko82 on April 08, 2008, 11:19:52 AM
Hi to all,
I use smf 1.1.4
I have a problem with this mod... I tried to install it twice(Version 1.7.3), and I uninstalled it twice. (in truth it was another admin, so I don't know exactly what he did.)
Now I found on my php files that parts of the code of this mod is still there(copied in each file twice!), so the log gives me a lot of errors like these:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.webalice.it%2Fgianko82%2Ferrors1.jpg&hash=afc9edf799a247a75b728374785eb56a63ab5fc8)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.webalice.it%2Fgianko82%2Ferrors2.jpg&hash=0779f6846c52772119c360927b3d1417facdd69a)

280 pages of log errors always caused by files concerned with this gallery badly uninstalled!
can you help me? thanks.
Title: Re: SMF Gallery
Post by: jamesk on April 08, 2008, 11:45:26 AM
Use the SMF parser to manually uninstall:

http://modparser.dev.dansoftaustralia.net/
Title: Re: SMF Gallery
Post by: miamizx on April 09, 2008, 04:38:55 PM
I just installed Gallery Lite 1.8.2 on SMF 1.1.4 and everything went well, I can do all the functions but the only issue is that I cannot see the Permissions in "Manage Permissions", so only the main admin can see/add/etc pics to the Gallery.  Anyone have a clue?

quick update: looks like the boxes are there but there is no label data being displayed, is this because of the custom theme? how can I fix it? (I'm pretty new to SMF)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Foliverpacheco.com%2Fmisc%2Fgallery_error.jpg&hash=9e50572700d740caaa85cdfca551ff1cf56b2dd5)
Title: Re: SMF Gallery
Post by: ccbtimewiz on April 09, 2008, 05:03:40 PM
Ok, let's fix you up.

Set your default forum language to English. Make sure it ISN'T English-UTF8.

If that doesn't solve your problem, open your FTP and check the following files:

%root%/%smf_root%/Themes/default/languages/gallery.english.php
%root%/%smf_root%/Themes/default/languages/modifications.english.php

Then, scan these two files for the $txt[] strings (words, really) that should show up. If you don't know what should show up, download a fresh install of the modification then use the Package Manager and check what it does to those two files.
Title: Re: SMF Gallery
Post by: miamizx on April 09, 2008, 05:41:47 PM
I checked the Default Forum Language and is set to English (there is no option for English-UTF8 in the drop-down)

It seems like the $txt[] strings are there (in modifications.english.php)

I'm not sure what you mean by "use the Package Manager and check what it does to those two files", but when I installed the package there were no errors. (I uninstalled  it once to check for corruption, but I get the same issues after the new install as well)

This is the contents of the files:

Modifications.english.php
<?php
// 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

?>


Gallery.english.php
<?php
/*
SMF Gallery Lite Edition
Version 1.7.6
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'] = '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_shop_settings'] = '<b>Shop Points Settings</b><br /><span class="smalltext">Only if SMF Shop is installed</span>';
$txt['gallery_shop_picadd']  = 'Picture Add Points: ';
$txt['gallery_shop_commentadd'] = 'Comment Add Points: ';

// BBC and Image Links code
$txt['gallery_txt_image_linking'] = 'Image Linking Codes';
$txt['gallery_set_showcode_bbc_image'] = 'Show BBC Code';
$txt['gallery_set_showcode_directlink'] = 'Show Direct Link Code';
$txt['gallery_set_showcode_htmllink'] = 'Show Html Link Code';


$txt['gallery_txt_bbcimage'] = 'BB Code';
$txt['gallery_txt_directlink'] = 'Direct Link';
$txt['gallery_txt_htmllink'] = 'Html Link';


$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';

$txt['gallery_save_settings'] = 'Save Settings';
//#############################
//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.';

$txt['gallery_guest'] = 'Guest';
$txt['gallery_text_oldpicture'] = 'Old Picture';
?>


Thanks for helping me out, I really appreciate it.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 09, 2008, 08:11:33 PM
What theme are you using? Are you using default theme?
If not check the themes/yourthemes/languages/modifications.english.php
Title: Re: SMF Gallery
Post by: miamizx on April 10, 2008, 09:42:17 AM
I'm using kelo-lt114_v2

I changed to the default theme and the words showed up, so I just made the selections I wanted and went back to my other theme.  This will have to do until I find out why they are not showing up under this theme.

Thanks again.
Title: Re: SMF Gallery
Post by: miamizx on April 10, 2008, 09:50:52 AM
I went back and checked themes/yourthemes/languages/modifications.english.php, sure enough the definitions were not there, I copied them over form the Default theme. Problem fixed!!

Now that I'm here, I have another question: Is there a way to setup Member Galleries with this package?
Title: Re: SMF Gallery
Post by: rtyug on April 10, 2008, 10:50:40 AM
Quote from: miamizx on April 10, 2008, 09:50:52 AM
Now that I'm here, I have another question: Is there a way to setup Member Galleries with this package?
YES
Title: Re: SMF Gallery
Post by: miamizx on April 10, 2008, 12:04:14 PM
Quote from: rtyug on April 10, 2008, 10:50:40 AM
Quote from: miamizx on April 10, 2008, 09:50:52 AM
Now that I'm here, I have another question: Is there a way to setup Member Galleries with this package?
YES
How do I go about doing this? I've tried searching but can't find anything.
Title: Re: SMF Gallery
Post by: jamesk on April 10, 2008, 01:10:16 PM
You need to use the PRO version:

http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: miamizx on April 10, 2008, 01:53:18 PM
Quote from: jamesk on April 10, 2008, 01:10:16 PM
You need to use the PRO version:

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

Figures... Although this feature alone is worth the $$, I'll be upgrading to the Pro version soon.

I'm guessing the Recent Pictures, Most Viewed, etc boxes are also part of the PRO, right?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 10, 2008, 11:22:53 PM
Pretty much I have a site showcase that lists sites that purchased it.
http://www.smfhacks.com/index.php?action=showcase

Also you can signup for a somewhat of a demo at smfforfree.com most of the features are there I disabled a couple due to security reasons.
Title: Re: SMF Gallery
Post by: Du! on April 12, 2008, 10:03:16 AM
Thanks for this cool mod.  :)

And what about image rating with stars o whatever? Can you add this feature?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 12, 2008, 11:07:35 AM
I have it but not in the lite edition yet.
Title: Re: SMF Gallery
Post by: slavisha on April 14, 2008, 02:13:57 AM
I have problem with my smf gallery. I install everything fine and upload one photo and when i go on gallery button and find the photo i see thunb. version of photo but when i click on photo i get error message:

Internet Explorer cannot read this webpage format


Do someone know something about that?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 14, 2008, 08:10:46 AM
I would need to see a link to the page that the issue occurs on
Title: Re: SMF Gallery
Post by: mynewusername on April 14, 2008, 10:02:02 AM
Does the Pro version let animated images move when say looking in gallery 1? Or is it a case of click on each picture to view the animations?

Id like to GO PRO but want the gallery page to all be able to be animated.
Title: Re: SMF Gallery
Post by: johnm1019 on April 14, 2008, 03:10:40 PM
Quote from: johnm1019 on March 16, 2008, 12:58:01 PM
I already have a rather large coppermine gallery, and would like to switch.  Is there any less than painful way to switch it all over?
bump
Title: Re: SMF Gallery
Post by: slavisha on April 14, 2008, 04:25:00 PM
Ok, here is the link
http://naturaliss.net/forum/index.php?action=gallery;cat=1

just click on the picture and you will see the message
Title: Re: SMF Gallery
Post by: vbgamer45 on April 14, 2008, 09:24:56 PM
Quote from: mynewusername on April 14, 2008, 10:02:02 AM
Does the Pro version let animated images move when say looking in gallery 1? Or is it a case of click on each picture to view the animations?

Id like to GO PRO but want the gallery page to all be able to be animated.
The thumbnails would not be animated since it resizes the image which causes the animation to disappear.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 14, 2008, 09:25:25 PM
Quote from: johnm1019 on April 14, 2008, 03:10:40 PM
Quote from: johnm1019 on March 16, 2008, 12:58:01 PM
I already have a rather large coppermine gallery, and would like to switch.  Is there any less than painful way to switch it all over?
bump
Don't have a convertor yet for Coppermine it is on my todo list.
Title: Re: SMF Gallery button doesnt show
Post by: babylon on April 20, 2008, 10:33:54 AM
Well i didnt get any answer here:
http://www.smfhacks.com/index.php/board,11.0.html

Can anyone tell me where the button should show?
Ive done the edits....all is uploaded,gallery ...everything works ,rights are set...
but i dont see the god damn button..
Title: Re: SMF Gallery
Post by: vbgamer45 on April 20, 2008, 10:42:08 AM
Custom theme's require a button/link to be created in the index.template.php of the theme.
Title: Re: SMF Gallery
Post by: mynewusername on April 20, 2008, 10:58:07 AM
THIS IS FOR VBGAMER

1. With the existing LITE gallery, by getting PRO will the current gallery images/setup be intact.

2. Does the LITE gallery need to be uninstalled and PRO installed?
Title: Re: SMF Gallery
Post by: mynewusername on April 20, 2008, 11:24:55 AM
THIS IS FOR VB GAMER

Quote from: mynewusername on April 20, 2008, 10:58:07 AM
1. With the existing LITE gallery, by getting PRO will the current gallery images/setup be intact.

2. Does the LITE gallery need to be uninstalled and PRO installed?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 20, 2008, 11:32:07 AM
Quote from: mynewusername on April 20, 2008, 11:24:55 AM
THIS IS FOR VB GAMER

Quote from: mynewusername on April 20, 2008, 10:58:07 AM
1. With the existing LITE gallery, by getting PRO will the current gallery images/setup be intact.

2. Does the LITE gallery need to be uninstalled and PRO installed?

1. Yes all data is intact.

2. Yes it does.
Title: Re: SMF Gallery
Post by: mynewusername on April 20, 2008, 11:36:41 AM
Quote from: vbgamer45 on April 20, 2008, 11:32:07 AM
Quote from: mynewusername on April 20, 2008, 11:24:55 AM
THIS IS FOR VB GAMER

Quote from: mynewusername on April 20, 2008, 10:58:07 AM
1. With the existing LITE gallery, by getting PRO will the current gallery images/setup be intact.

2. Does the LITE gallery need to be uninstalled and PRO installed?

1. Yes all data is intact.

Good.
Quote from: vbgamer45 on April 20, 2008, 11:32:07 AM
2. Yes it does.

Are there any particular (known) mods which (I just get this big feeling that IF I uninstall it its not going to go back in again) the PRO gallery is not compatible with?
Title: Re: SMF Gallery
Post by: mynewusername on April 20, 2008, 11:38:48 AM
No one will help you with an attitude like that. You are after FREE HELP so be nice. I know what... (ok i cant be bothered typing here...)

Quote from: babylon on April 20, 2008, 11:30:34 AM
oh ******.....now i understand...
If everybody keeps on posting without any answers to solve things how does anyone gets things solved ?


Title: Re: SMF Gallery
Post by: vbgamer45 on April 20, 2008, 11:54:48 AM
Quote from: mynewusername on April 20, 2008, 11:36:41 AM
Quote from: vbgamer45 on April 20, 2008, 11:32:07 AM
Quote from: mynewusername on April 20, 2008, 11:24:55 AM
THIS IS FOR VB GAMER

Quote from: mynewusername on April 20, 2008, 10:58:07 AM
1. With the existing LITE gallery, by getting PRO will the current gallery images/setup be intact.

2. Does the LITE gallery need to be uninstalled and PRO installed?

1. Yes all data is intact.

Good.
Quote from: vbgamer45 on April 20, 2008, 11:32:07 AM
2. Yes it does.

Are there any particular (known) mods which (I just get this big feeling that IF I uninstall it its not going to go back in again) the PRO gallery is not compatible with?
Not that I know of.  The gallery edits as few files as possible so it should work with nearly any mods. Just adds a button in the default theme, some new permissions, and adds an action in the index.php file.
Title: Re: SMF Gallery
Post by: babylon on April 20, 2008, 11:55:54 AM
nevermind..
found problem.as it was a manual install the part the code that needs to be edited into the index.template.php was interupted.
copy/paste doesnt worked as it should.
Title: Re: SMF Gallery
Post by: Achilles991 on April 21, 2008, 03:29:00 PM
Guys, i have big problem with this... Everything works perfect, but when i click on thumb image, i am getting this error:

Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5 Server at www.petnica.info Port 80

I don't know where is problem, and why it happens.
Take a look at my forum gallery, and you will see what i am talking about.

http://www.petnica.info/index.php?action=gallery

There is one image in category 'Astronomija'. Try to open it, and if you know how can i fix this, please reply here, i need help for this fastly!
Title: Re: SMF Gallery
Post by: babylon on April 21, 2008, 03:32:38 PM
as i recall,thats because of mod_security.
you have to contact your host for that.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2008, 08:18:22 PM
Check out this post on how to disable mod_security
http://www.simplemachines.org/community/index.php?topic=34270.0
Title: Re: SMF Gallery
Post by: denzil69 on April 22, 2008, 12:56:43 PM
not sure if this is "a problem"

running 1.1.4 default theme.
gallery installed and working fine.

however on checking my error log today, find that someone has been trying to pass url redirects via the htmlcode box i have showing on pictures.
they have even logged off and back on again to change their ip address, and tried it again.

ive looked around the concerned pictures and cannot see any changes in the html link code.
imhoping you will inform me that, the process is safe and that redirects or writing direct to the database cannot be done???

thanks in advance for any advice

EDIT: on further inspection on the error log it looks like they have followed the link (as a guest) to view the gallery, and used a website link as their "id" in the browser url.
very strange...
Title: Re: SMF Gallery
Post by: LiamTheDuck on April 22, 2008, 01:08:18 PM
This is a very nice mod, might use it one day ;)
Title: Re: SMF Gallery
Post by: mathmission on April 22, 2008, 02:49:52 PM
This is a great mod, saw it on someone else's site, and wanted to integrate it into my own. Ran the install, and got a test failed:

2.     Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

Anyway to figure out what part of that failed?


Here are the mods I'm working with thus far:

   Mod Name     Version     
1.    SMF Gallery Lite                  1.8.3    
2.    YouTube BBCode                      2.3    
3.    phpBB3_Login_Fix              1.0    
4.    nneonneo's AJAX ShoutBox    1.13    
5.    PM On Registration               1.0.2    

Using SMF 1.1.4

Adsiz, default, and Day of Defeat Templates.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 22, 2008, 07:27:38 PM
It can fail on that file as long as it works on modifications.english.php and your forum's language is set to just english.
Title: Re: SMF Gallery
Post by: mathmission on April 23, 2008, 10:03:47 AM
Installed this mod, works great on Default theme!

Quote from: vbgamer45 on April 20, 2008, 10:42:08 AM
Custom theme's require a button/link to be created in the index.template.php of the theme.

Is there a guide somewhere as to how to do this? I need it on Adsiz and DoD Themes, possibly FerryTema
Title: Re: SMF Gallery
Post by: ToxXxic on April 23, 2008, 06:10:36 PM
I can't install any packages...
Neither can I install this one.
Time after time the step to correctly fill in my FTP-information makes me get stuck.
When I click "Apply mod" this shows up:

Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

I know how to chmod the files, but why doesn't it tell me which files to chmod?
Title: Re: SMF Gallery
Post by: perplexed on April 24, 2008, 12:00:59 PM
it would probably refer to the files in /packages folder as that is where it is trying to install


Quote from: mathmission on April 23, 2008, 10:03:47 AM
Installed this mod, works great on Default theme!

Quote from: vbgamer45 on April 20, 2008, 10:42:08 AM
Custom theme's require a button/link to be created in the index.template.php of the theme.

Is there a guide somewhere as to how to do this? I need it on Adsiz and DoD Themes, possibly FerryTema

why yes there is, http://custom.simplemachines.org/mods/index.php?mod=473 (http://custom.simplemachines.org/mods/index.php?mod=473)

look in the box at the top right where it says Manual Install Instructions for SMF and follow the instructions
Title: Re: SMF Gallery
Post by: mathmission on April 24, 2008, 02:41:20 PM
Successfully installed to the DoD theme, but having trouble with Adsiz theme. Below is the code, and where I inserted it:

// Show the start of the tab section.
   echo '
        <ul class="menu">';
 
   // Show the [home] button.
   echo '<li', $current_action == 'home' ? ' class="chosen"' : '', '><a href="', $scripturl, '"><b>' , $txt[103] , '</b></a></li>';
   // Show the [help] button.
   echo '<li', $current_action == 'help' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=help"><b>' , $txt[119] , '</b></a></li>';
   // How about the [search] button?
   if ($context['allow_search'])
   echo '<li', $current_action == 'search' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=search"><b>' , $txt[182] , '</b></a></li>';
   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
   echo '<li', $current_action == 'admin' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=admin"><b>' , $txt[2] , '</b></a></li>';
   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
   echo '<li', $current_action == 'profile' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=profile"><b>' , $txt[79] , '</b></a></li>';
   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
    echo '<li', $current_action == 'pm' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=pm"><b>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</b></a></li>';
   // The [calendar]!
   if ($context['allow_calendar'])
   echo '<li', $current_action == 'calendar' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><b>' , $txt['calendar24'] , '</b></a></li>';
   // the [member] list button
   if ($context['allow_memberlist'])
   echo '<li', $current_action == 'mlist' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=mlist"><b>' , $txt[331] , '</b></a></li>';








// 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 the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'login' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=login"><b>' , $txt[34] , '</b></a></li>';
   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'register' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=register"><b>' , $txt[97] , '</b></a></li>';
   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
   echo '<li', $current_action == 'logout' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><b>' , $txt[108] , '</b></a></li>';
   echo '
           </ul>';
}



The big open space is where I assume it fits in, but I'm not sure. I tried it there, but no button appeared. This is the resut:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.scribefarm.com%2Fbar.jpg&hash=88e66efb34af2003579fb7316a1e8808e54e3eca)
Title: Re: SMF Gallery
Post by: vbgamer45 on April 24, 2008, 05:28:39 PM
This theme uses different codes


change the gallery button to

// Gallery button
   if ($context['allow_smfgallery_view'])
   echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery"><b>' , $txt['smfgallery_menu'] , '</b></a></li>';

Title: Re: SMF Gallery
Post by: mathmission on April 24, 2008, 11:24:21 PM
Works like a charm, I thank you good sir or madam!
Title: Re: SMF Gallery
Post by: perplexed on April 25, 2008, 04:29:53 AM
you're welcome :)
Title: Re: SMF Gallery
Post by: wjhdiz on April 26, 2008, 01:45:07 PM
Can this mod work with lightbox and how?

Thanks.
Jimmy
Title: Re: SMF Gallery
Post by: vbgamer45 on April 26, 2008, 05:45:01 PM
It could but you would need to modify the code.
Title: Re: SMF Gallery
Post by: naitrox on April 26, 2008, 08:09:25 PM
Hello Guys,

i want to install the SMF Gallery from here.
I tryed some ways to install it, but i always get an error.

Two ways i have taken:

1. Copy all files to the SMF directory (when i want to use the galleryinstall.php , i get a blank page)
2. I wantet to install it over the Package installer via the Forum (Directory can not be changed, was the error here)


How can i install the Gallery in my Forum on a simply way?

Many thx 4 help on this point ;)

-naitroX-
Title: Re: SMF Gallery
Post by: JumpNetwork on April 27, 2008, 09:34:47 AM
Please Help,

I can't get this working.

I am running 1.1.4.

I have followed all the instructions, uploaded and run the mod, and edited the files.

I noticed that some of the files were already edited (by the mod??) and some where not.  The ones that were not modified, i added the changes as per the instructions.

The Gallery is located here? www.aussiefirefighters.org.au/gallery

There seems to be no template at all.  I have added two categories in the Admin, and they are not here either.

One file however, that I was told to modify in the

themes/default/languages/modifications.english-utf8.php   I do not have that file in that folder so was not able to edit it.

Any ideas?

Thanks in Advance

Chris.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 27, 2008, 09:53:58 AM
The gallery is actually located at http://www.yourforum.com/index.php?action=gallery


If you have a custom theme a button/link needs to be added to the theme.

If you are using the default theme make sure your language is set to English
Title: Re: SMF Gallery
Post by: JumpNetwork on April 27, 2008, 10:06:48 AM
Cool, thanks for that.

How come in the settings it says that the Gallery URL is

www.aussiefirefighters.org.au/gallery for?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 27, 2008, 10:16:13 AM
It should be www.aussiefirefighters.org.au/gallery/

That's the path to where the pictures are stored.
Title: Re: SMF Gallery
Post by: JumpNetwork on April 28, 2008, 03:57:00 AM
In the Gallery Settings, I changed the URL for the Gallery to www.aussiefirefighters.org.au/ndex.php?action=gallery

Now when I go to www.aussiefirefighters.org.au/gallery/ it actually directs to the above URL.

But I still have a problem.

I have a member who posted in my Fire Brgiade Station Photos section, and it says the image is there, however there is no image there at all.

The Member contacted me and said that when they uploaded the photo, it said it was sucessful, but it is just not there.

I logged into the site with CuteFTP, and went to /public_html/forums/gallery/  and there is no file there, shouldn't it be there it it was uploaded sucesfully?

Please go to http://www.forums.aussiefirefighters.org.au/index.php?action=gallery;cat=5 and you will see what i mean.

I hope someone can help, as we are a Non for Profit website, creating a communication portal for Volunteer and Career Firefighters in Australia.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 28, 2008, 08:20:26 AM
Can't see the gallery as it is not allowed for guests.

Make sure gallery url under gallery configuration is set to
http://www.aussiefirefighters.org.au/gallery/
Title: Re: SMF Gallery
Post by: JumpNetwork on April 29, 2008, 05:01:19 AM
I have changed that setting back to aussiefirefighters.org.au/gallery  Now i just get a blank page..

Title: Re: SMF Gallery
Post by: Dragooon on April 29, 2008, 05:53:19 AM
You get a blank page where? Make sure the URL of gallery in config is what vBgamer said, and if its not that it won't be able to access Gallery, also, that URL is not for use to access the gallery, it is for showing images and storing images.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 29, 2008, 07:53:29 PM
The url should be
aussiefirefighters.org.au/gallery/

And to access the gallery use
aussiefirefighters.org.au/index.php?action=gallery
Title: Re: SMF Gallery
Post by: Sakacoco on April 30, 2008, 12:48:55 PM
Hi,

Is It possible that each member has his own gallery shown in the home of the plugin and only be update by this member ?
Title: Re: SMF Gallery
Post by: wjhdiz on April 30, 2008, 01:52:21 PM
Thanks.

Do you mind to add some details?

Quote from: vbgamer45 on April 26, 2008, 05:45:01 PM
It could but you would need to modify the code.
Title: Re: SMF Gallery
Post by: ccbtimewiz on April 30, 2008, 02:36:36 PM
Quote from: wjhdiz on April 30, 2008, 01:52:21 PM
Thanks.

Do you mind to add some details?

Quote from: vbgamer45 on April 26, 2008, 05:45:01 PM
It could but you would need to modify the code.

What is Lightbox? If it's a mod, can you provide a link?

What is your SMF version? What version of the gallery are you using? (Pro or basic).
Title: Re: SMF Gallery
Post by: JumpNetwork on May 01, 2008, 05:30:44 AM
I still can't get any images saving.

If someone can help, can you please send me a PM and Ill let you know my test user name and password.

I have tried everything and just can't get it working.

Please Help...
Title: Re: SMF Gallery
Post by: humbleworld on May 01, 2008, 02:10:08 PM
Will this Gallery MOD work in SMF 1.1.5? I am running 1.1.5. The MOD is still in 1.1.4 version compatible?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 01, 2008, 07:27:19 PM
Yes it will it will work in all SMF 1.1.x
Title: Re: SMF Gallery
Post by: erlend_sh on May 02, 2008, 08:58:24 AM
Quote from: vbgamer45 on May 01, 2008, 07:27:19 PM
Yes it will it will work in all SMF 1.1.x
Are you also planning to make this mod work for 2.0 in the near future? This mods incompatibility with 2.0 is the only thing stopping us from moving from 1.1.4 to 2.0 right now :-/
Title: Re: SMF Gallery
Post by: KingTee on May 02, 2008, 12:50:15 PM
Question:

My boards are set to "disable guest view" and I was wondering if I installed the SMF Gallery, will that too be set basically 'private' to guest and spyders?  I tried to install it yesterday through the Package Manager and got nothing but errors but I just noticed there is a different file there now and it shows it was just updated so I will try it but before I do that, I need to know if it will remain private from guest and spyders and/or is there a setting within the admin area that will allow me to set the same?  My boards are not public, they are basically a virtual board room where myself and the people I work with communicate and work together from different parts of the states so I don't want any of it search engine indexed...

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on May 02, 2008, 09:54:37 PM
Ye
Quote from: Sadr on May 02, 2008, 08:58:24 AM
Quote from: vbgamer45 on May 01, 2008, 07:27:19 PM
Yes it will it will work in all SMF 1.1.x
Are you also planning to make this mod work for 2.0 in the near future? This mods incompatibility with 2.0 is the only thing stopping us from moving from 1.1.4 to 2.0 right now :-/
Waiting for SMF 2.0 final to be released.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 02, 2008, 09:55:04 PM
Quote from: KingTee on May 02, 2008, 12:50:15 PM
Question:

My boards are set to "disable guest view" and I was wondering if I installed the SMF Gallery, will that too be set basically 'private' to guest and spyders?  I tried to install it yesterday through the Package Manager and got nothing but errors but I just noticed there is a different file there now and it shows it was just updated so I will try it but before I do that, I need to know if it will remain private from guest and spyders and/or is there a setting within the admin area that will allow me to set the same?  My boards are not public, they are basically a virtual board room where myself and the people I work with communicate and work together from different parts of the states so I don't want any of it search engine indexed...

thanks

The gallery mod is permission based so you can choose what each membergroup can do even guests.
Title: Re: SMF Gallery
Post by: Sakacoco on May 03, 2008, 04:38:13 AM
:/ Does anyone have an idea for my "problem" ?

"Is It possible that each member has his own gallery shown in the home of the plugin and only be updated by this member ? "
Title: Re: SMF Gallery
Post by: humbleworld on May 03, 2008, 05:27:39 AM
Quote from: vbgamer45 on May 01, 2008, 07:27:19 PM
Yes it will it will work in all SMF 1.1.x

I failed to install it in Dilber MC Theme. I can see the gallery configuration in the admin panel but it doesn't appear in the menu bar or in the url.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 03, 2008, 08:50:29 AM
Quote from: Sakacoco on May 03, 2008, 04:38:13 AM
:/ Does anyone have an idea for my "problem" ?

"Is It possible that each member has his own gallery shown in the home of the plugin and only be updated by this member ? "
Not in the lite edition
Title: Re: SMF Gallery
Post by: vbgamer45 on May 03, 2008, 08:51:22 AM
Quote from: humbleworld on May 03, 2008, 05:27:39 AM
Quote from: vbgamer45 on May 01, 2008, 07:27:19 PM
Yes it will it will work in all SMF 1.1.x
Custom themes require a modification in the index.template.php of the theme to include a link to the gallery.

http://www.yoursite.com/index.php?action=gallery

I failed to install it in Dilber MC Theme. I can see the gallery configuration in the admin panel but it doesn't appear in the menu bar or in the url.
Title: Re: SMF Gallery
Post by: Perochak on May 03, 2008, 02:15:16 PM
Hi dear,

How to use It with SMF 2.0 3.1B?

is there any mod for that?

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on May 03, 2008, 02:36:09 PM
Not at the moment I plan to upgrade my mods once SMF 2.0 final is released
Title: Re: SMF Gallery
Post by: KingTee on May 03, 2008, 05:06:49 PM
Quote from: vbgamer45 on May 02, 2008, 09:55:04 PM
Quote from: KingTee on May 02, 2008, 12:50:15 PM
Question:

My boards are set to "disable guest view" and I was wondering if I installed the SMF Gallery, will that too be set basically 'private' to guest and spyders?  I tried to install it yesterday through the Package Manager and got nothing but errors but I just noticed there is a different file there now and it shows it was just updated so I will try it but before I do that, I need to know if it will remain private from guest and spyders and/or is there a setting within the admin area that will allow me to set the same?  My boards are not public, they are basically a virtual board room where myself and the people I work with communicate and work together from different parts of the states so I don't want any of it search engine indexed...

thanks

The gallery mod is permission based so you can choose what each membergroup can do even guests.

Thank you very much for that.  On a side note, I too am using a custom theme and noticed your reply to the person who said it wouldn't show up... You said the index.template.php for the theme had to be modified to include the link to the gallery... Would you mind explaining that further?  What am I supposed to look for or add and where to add it?  I am using Red Darkness.

Thank you again and take care..
Title: Re: SMF Gallery
Post by: vbgamer45 on May 03, 2008, 08:43:21 PM
Look in template_menu function of that index.template.php also do a search on how to modify/add button to a theme.

I normally copy a button for a custom theme then just change it to be a gallery button.
Title: Re: SMF Gallery
Post by: BuNtEr on May 05, 2008, 05:39:53 AM
i wish to install this gallery manuly how would i go about that what files go were and what to i need to edit, im used to installing mods and hacks by hand and i wish to do the same with the gallery for SMF please.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 05, 2008, 08:14:16 AM
Use this link to manually install upload the package to
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMF Gallery
Post by: BuNtEr on May 06, 2008, 03:01:23 AM
Thanks vbgamer45  your a legend
Title: Re: SMF Gallery
Post by: DadL on May 07, 2008, 01:10:22 AM
Hi,

Im using BlackRain theme
SMF 1.1.5 version


I installed SMF Gallery Lite 1.8.2

How can I make my Gallery appear this way:
http://www.smfhacks.com/smfgallery/gallery1.PNG


Pls. see the code attached.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2008, 08:43:38 AM
That is just the inside view of a category with pictures listed.
Title: Re: SMF Gallery
Post by: DadL on May 07, 2008, 11:20:09 AM
I see.

I put my Gallery in frontpage,
the picture is so big.
Is there a way I can make it shown in thumbnails?
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 07, 2008, 12:33:51 PM
Quote from: DadL on May 07, 2008, 11:20:09 AM
I see.

I put my Gallery in frontpage,
the picture is so big.
Is there a way I can make it shown in thumbnails?


What do you mean by gallery? The images should already be thumbnails if it is the main page, unless you mean a certain picture?
Title: Re: SMF Gallery
Post by: DadL on May 07, 2008, 07:02:56 PM
I mean the Gallery lite mod installed.
I created a block to show it in frontpage (TP)
then the picture appeared so big (one picture at a time).

Unlike in any other forums I see,
pictures are in thumbnails or placed on the left block under/below shoutbox.
Either of the two would be fine.

I atteched the codes in my first post.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2008, 07:41:50 PM
Make sure you are using the thumbnail image instead of the full size image from the gallery_pic table
Title: Re: SMF Gallery
Post by: DadL on May 07, 2008, 07:56:41 PM
How do I check that? I cant find any settings to make it appear as thumbnails in forntpage.
Do I need to edit something?


When clicking the Gallery button, everything is normal.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2008, 08:07:33 PM
That would be a custom script then since that is not part of the gallery talk to the script creator.
Title: Re: SMF Gallery
Post by: KingTee on May 07, 2008, 10:33:32 PM
Quote from: DadL on May 07, 2008, 01:10:22 AM
Hi,

Im using BlackRain theme
SMF 1.1.5 version


I installed SMF Gallery Lite 1.8.2

How can I make my Gallery appear this way:
http://www.smfhacks.com/smfgallery/gallery1.PNG


Pls. see the code attached.

I didn't quite understand what the answer to this question was.  I believe I am looking for the same thing that this person. 

I finally got the SMF GALLERY to load and received info from the creator of the theme I am using on how to add the link to the gallery in my menu links.  So, now when I click the link titled 'GALLERY' it takes me to the SMF GALLERY index page.  On this page is a list of the different categories I've created which includes their descriptions and the number of images each category has.

What I would like to know is: is there a way to show thumbnails of the most recent uploaded images so that my SMF GALLERY index page likes like it does in the picture attached by DadL?  It would be great to click the gallery link and immediately be greeted with images rather than just category text.  Is this possible yet?  I would like it to be the same as if I had Coppermine installed and visited it's index page...

Thank you for your help now and from earlier this week...
Title: Re: SMF Gallery
Post by: DadL on May 07, 2008, 11:29:15 PM
This is how I want it to be:

Sample (http://img329.imageshack.us/img329/8382/gallerythumbske5.jpg)
Title: Re: SMF Gallery
Post by: RustyBarnacle on May 08, 2008, 02:16:58 PM
I found this code at TP and it works great on my site:


////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 5/9/2007
// 1.7.1
// - quick fix to parsing the url
//
// Updated 5/9/2007
// 1.7
// - added option to view pics that members on your buddy list posted
//
// For list of all previous updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 3;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 0;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 3;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 1;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 1;
// display filesize?
$gal_dispSize = 1;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
}
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}


Just put it in a PHP box.
Title: Re: SMF Gallery
Post by: KingTee on May 08, 2008, 03:05:16 PM
Quote from: RustyBarnacle on May 08, 2008, 02:16:58 PM
I found this code at TP and it works great on my site:


////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 5/9/2007
// 1.7.1
// - quick fix to parsing the url
//
// Updated 5/9/2007
// 1.7
// - added option to view pics that members on your buddy list posted
//
// For list of all previous updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 3;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 0;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 3;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 1;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 1;
// display filesize?
$gal_dispSize = 1;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
}
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}


Just put it in a PHP box.

I'm sorry but I don't know what you mean by "Just put it in a PHP box."  I also don't know what Tiny Portal is.  I am using SMF 1.1.5 and a custom theme so can I use the above code you've listed?  If so, would you mind being a little more specific with how to use it?  Should I paste the above code into my index.template.php file or should I create a completely new PHP file with this code only?  If 'yes' what title should it have?

Thank you for the information and helping... I appreciate it.

Take care
Title: Re: SMF Gallery
Post by: RustyBarnacle on May 08, 2008, 03:20:41 PM
Sorry about that, I thought you were running Tiny Portal as well.

I dont know how to use this outside of using Tiny Portal but now you have me thinking and I'll try a couple other things.

Tiny Portal gives you a nice front page for your forums amoung other things and things like this are super easy to paste in.
Title: Re: SMF Gallery
Post by: Ken. on May 08, 2008, 04:20:27 PM
Quote from: KingTee on May 08, 2008, 03:05:16 PM

I'm sorry but I don't know what you mean by "Just put it in a PHP box."  I also don't know what Tiny Portal is.  I am using SMF 1.1.5 and a custom theme so can I use the above code you've listed?  If so, would you mind being a little more specific with how to use it?  Should I paste the above code into my index.template.php file or should I create a completely new PHP file with this code only?  If 'yes' what title should it have?

Thank you for the information and helping... I appreciate it.

Take care

TinyPortal (http://www.tinyportal.net/index.php)

What is "TinyPortal"?
- TinyPortal is a mod for SMF that will turn your forum into something more like a website, you will have a frontpage, articles, information boxes and much more.
Read more... (http://www.tinyportal.net/index.php?topic=6174)

Hope that helps.  ;)
Title: Re: SMF Gallery
Post by: DadL on May 08, 2008, 07:09:38 PM
Quote from: RustyBarnacle on May 08, 2008, 02:16:58 PM
I found this code at TP and it works great on my site:


////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 5/9/2007
// 1.7.1
// - quick fix to parsing the url
//
// Updated 5/9/2007
// 1.7
// - added option to view pics that members on your buddy list posted
//
// For list of all previous updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 3;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 0;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 3;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 1;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 1;
// display filesize?
$gal_dispSize = 1;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
}
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}


Just put it in a PHP box.

GREAT!!!!!!!
Thank you very much!  ;D
Title: Re: SMF Gallery
Post by: becv on May 13, 2008, 07:36:33 PM
Hi
I just installed the gallery and im having a problem with putting a gallery button on im trying the put this into the index.template.php
// How about the [gallery] button?
   
      echo '
            <a href="http://www.becscrafts.com.au/forum/index.php?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt[gallery] . '" border="0" />' : $txt[gallery]), '</a>', $context['menu_separator'];

The button shows up, my logo goes the smf logo comes up but the button is there then i refresh the screen again and my logo is back and no gallery button.
Can anyone tell me what ive screwed up?? Thanks! Bec
Title: Re: SMF Gallery
Post by: vbgamer45 on May 13, 2008, 09:44:26 PM
Change
$txt[gallery]
To
'Gallery'
Title: Re: SMF Gallery
Post by: becv on May 13, 2008, 10:48:29 PM
Hi,
I assume you mean to make it a capital G? I'll feel pretty stupid if you didnt! lol
I tried that and it still doesn't work. Anything else i can try?
Thanks Bec
Title: Re: SMF Gallery
Post by: vbgamer45 on May 13, 2008, 11:29:54 PM
Your code should be like this

echo '
            <a href="http://www.becscrafts.com.au/forum/index.php?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery'. '" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];
Title: Re: SMF Gallery
Post by: becv on May 14, 2008, 12:03:06 AM
Id also tried it that way but still didn't work. Any other ideas? Thanks
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 14, 2008, 03:06:46 PM
Quote from: becv on May 14, 2008, 12:03:06 AM
Id also tried it that way but still didn't work. Any other ideas? Thanks

Very strange. What theme are you using? And with that, are you downloading your theme's index.template.php file?
Title: Re: SMF Gallery
Post by: becv on May 14, 2008, 06:46:24 PM
Im using the black and white theme, i am using the themes index.template
Its actually showing up now but not as a button! Anyone have any idea of whats going on?
http://becscrafts.com.au/forum/index.php (http://becscrafts.com.au/forum/index.php)
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 14, 2008, 07:02:49 PM
Quote from: becv on May 14, 2008, 06:46:24 PM
Im using the black and white theme, i am using the themes index.template
Its actually showing up now but not as a button! Anyone have any idea of whats going on?
http://becscrafts.com.au/forum/index.php (http://becscrafts.com.au/forum/index.php)

Attach your index.template.php file.
Title: Re: SMF Gallery
Post by: becv on May 14, 2008, 07:10:50 PM
<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="centre" class="catbg">
<img src="'
$settings['images_url'], '/bwlogo.gif" style="margin: 8px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';
// How about the [gallery] button?
echo '
            <a href="http://www.becscrafts.com.au/forum/index.php?action=gallery">'
, ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/gallery.gif" alt="' 'Gallery''" border="0" />' 'Gallery'), '</a>'$context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// 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>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 14, 2008, 07:39:44 PM
See this?

// How about the [gallery] button?
echo '
            <a href="http://www.becscrafts.com.au/forum/index.php?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery'. '" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Replace it with this:

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

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Glad to help. =)
Title: Re: SMF Gallery
Post by: becv on May 14, 2008, 07:52:09 PM
Thanks so much your a legend!!! It works great now!!

I have another question though, i have a zen cart and would like to add a "Shop" button onto my forum as well. I want it to go to www.becscrafts.com.au is that possible?
Thanks!!
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 14, 2008, 09:24:24 PM
Add this after whatever tab you want it after:

// The [shop] button.
if ($context['user']['is_logged'])
echo '<td valign="top" class="maintab_back">
<a href="http://www.becscrafts.com.au/" target="_blank">Shop</a>
</td>';
Title: Re: SMF Gallery
Post by: becv on May 14, 2008, 10:40:06 PM
Worked like a charm! Thanks so much for your help!
Title: Re: SMF Gallery
Post by: kabu on May 19, 2008, 03:36:42 PM
Can this mod resize images when they are posted?
Title: Re: SMF Gallery
Post by: RustyBarnacle on May 19, 2008, 07:42:15 PM
The paid version does.
Title: Re: SMF Gallery
Post by: mashby on May 21, 2008, 06:55:11 PM
I've got this code:
$dbresultmashby = db_query("SELECT c.endvote

FROM ({$db_prefix}gallery_pic as p,  {$db_prefix}gallery_cat AS c) 

WHERE p.ID_CAT = c.ID_CAT LIMIT 1", __FILE__, __LINE__);

mysql_free_result($dbresultmashby);

$context['gallery_cat_endvote'] = $dbresultmashby;


What I'm attempting to do is get the value in the endvote field from the gallery_cat table where the ID_CAT matches the ID_CAT of the picture. I've added some custom code to the Gallery.php in the Sources directory. What is wrong with the syntax?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 21, 2008, 07:43:10 PM
Your not getting any results

$row = mysql_fetch_assoc($dbresultmashby);
$context['gallery_cat_endvote'] = $row['endvote'];

mysql_free_result($dbresultmashby);
Title: Re: SMF Gallery
Post by: mashby on May 21, 2008, 08:25:02 PM
Thanks!!! 8) I found some other errors in my code, but I finally resolved it! You wrote one hell of a package. I'm loving this thing.
// mashby code

$dbresultmashby = db_query("SELECT c.endvote, p.ID_CAT

FROM ({$db_prefix}gallery_pic as p,  {$db_prefix}gallery_cat AS c)

WHERE p.ID_CAT = c.ID_CAT AND ID_PICTURE = $id LIMIT 1", __FILE__, __LINE__);

$row = mysql_fetch_assoc($dbresultmashby);

$context['gallery_cat_endvote'] = $row['endvote'];

mysql_free_result($dbresultmashby);

// end mashby code
Title: Re: SMF Gallery
Post by: jloupe on May 22, 2008, 10:52:40 PM
I installed the gallery, but it only works on the default theme. I use the Aero_79 theme, and the gallery does not show up at all.

The Aero theme does not have the same folders as the Default theme, so I don't have a clue how to do it manually.

Any help?
Title: Re: SMF Gallery
Post by: mashby on May 22, 2008, 11:06:59 PM
It's possible that you have to edit your index.template.php file to accommodate the new functionality. Does this link work on your site?
DOMAINNAME/index.php?action=gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on May 22, 2008, 11:09:47 PM
Yes for custom themes you will have to modify the index.template.php and modify the menu function to include a link/button to the gallery
Title: Re: SMF Gallery
Post by: Angie on Dialysis on May 23, 2008, 12:01:58 AM
We have version 1.8.2 with pictures already in it by our members. Will upgrading to version 1.8.3 make us lose all the images??

Also does this one have the little image under the avatar in posts that show member has images in the gallery? I saw one board have that .. wish I could have that.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 23, 2008, 08:08:32 AM
Upgrading to the latest version does not loose any images.
Title: Re: SMF Gallery
Post by: Councellor on May 23, 2008, 12:48:51 PM
I'm using the latest SMF version 1.1.5 and SMF Gallery 1.8.3 version and can access the gallery from the gallery button at the top of the SMF page can upload photos etc, however I'm getting a "Not Implemented" statement in the center block of the page whenever I click on the "Gallery Manager" link.  I've got the mod installed properly, got the folder permissions set to 777 and tried everything I can think of but can't seem to get the Gallery Manager to work.  All my other managers are working properly.  Any guidance here would be greatly appreciated.  Thanks!
Title: Re: SMF Gallery
Post by: Angie on Dialysis on May 23, 2008, 02:13:22 PM
Quote from: vbgamer45 on May 23, 2008, 08:08:32 AM
Upgrading to the latest version does not loose any images.
Okay because  the guy who does the work on my boards said he has to uninstall the previous version to install the new one?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 23, 2008, 08:21:15 PM
That is correct uninstalling does not delete the data or images.
Title: Re: SMF Gallery
Post by: _Anthony_ on May 23, 2008, 11:10:49 PM
Very nice I love it.
Any chance it will be updated for smf2?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 23, 2008, 11:13:12 PM
Yes it will be updated to SMF 2.0 once the final version of SMF 2.0 is released.
Title: Re: SMF Gallery
Post by: _Anthony_ on May 24, 2008, 12:31:31 AM
Oh ok.
I can't wait for it to be released for smf2
Title: Re: SMF Gallery
Post by: protonxl on May 24, 2008, 03:51:21 PM
so..
i get this error..

it uploads the image, i see it small..
when i click on it.. to either edit, or to go to it
says this

QuoteNot Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.
and then theres a <hr> line and says this
QuoteApache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 PHP/5.2.5 JRun/4.0 mod_perl/2.0.4 Perl/v5.8.8 Server at www.lfsdrift.net Port 80
Title: Re: SMF Gallery
Post by: vbgamer45 on May 24, 2008, 04:48:31 PM
That's an issue with mod_security try to disable it.  One of there rules doesn't like ;id  in the url
Title: Re: SMF Gallery
Post by: protonxl on May 24, 2008, 05:56:36 PM
i had done it thru htaccess but it didnt work..
had to contact host and ask them to turn it off..
it works now..


hey is there a plugin for this one where it has   << Previous   and Next >> buttons ?
Title: Re: SMF Gallery
Post by: mashby on May 25, 2008, 11:28:02 AM
How could I sort the images in gallery based on a calculation (average rating)? Something like this where p.totalratings is the calculation.
case 'mostrated':

$sortby = 'p.totalratings';

break;


Also, what's the difference between sortby and sortby2?
Thanks,
mashby
Title: Re: SMF Gallery
Post by: 2greedy on May 27, 2008, 01:30:22 AM
ok guy's i have installed but cant see anywhere on the main page (gallery) also i am getting these errors from the error log?

2: fclose(): supplied argument is not a valid stream resource
File: /home/horserid/public_html/forums/Sources/Subs-Package.php
Line: 1908

and this error?
2: fopen(/home/horserid/public_html/forums/Themes/default/languages/Who.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/horserid/public_html/forums/Sources/Subs-Package.php
Line: 1901

whats wrong or am i missing something ? we are using SMF 1.1.5
Title: Re: SMF Gallery
Post by: notting on May 27, 2008, 11:39:03 AM
I have had a lot of success with this mod and think it is great.

However I have just moved my site to a new server and it have broken the mod. The rest of the forum works fine.

There are two errors as far as i can tell:

1)  The message:

Warning Gallery path is not writable!

Appears in this page: http://theafricangreyparrot.com/forum/index.php?action=gallery;cat=1

2) When you click on a thumbnail of a picture, instead of going to the regular size image on the next page it throws up this page:

http://theafricangreyparrot.com/forum/index.php?action=gallery;sa=view;id=519

With the error message:

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Perhaps I have overlooked something or maybe i will have to reinstall the mod. Note: when I go to uninstall the mod it throws up errors and advises against uninstalling the mod.

Thanks
Notting

Title: Re: SMF Gallery
Post by: vbgamer45 on May 27, 2008, 08:12:49 PM
1. You need to change the Gallery path under Gallery configuration

2. Is an issue with mod_security disable mod_security and it will work.
Title: Re: SMF Gallery
Post by: mashby on May 27, 2008, 08:29:11 PM
Moving to a different site with this help request. Sorry.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 27, 2008, 08:43:07 PM
mashby that is code for the pro edition you should post for help on that on smfhacks.com
Title: Re: SMF Gallery
Post by: mashby on May 27, 2008, 08:45:19 PM
Roger wilco. Will do. I'll edit my previous post, too.
Title: Re: SMF Gallery
Post by: Sheila * R on May 28, 2008, 06:04:47 PM
SMF version: 1.1.5

Theme: CS Classic / serv Ramadhan

Default Forum Language: English


All Permissions have been set:

SMF Gallery 
  View SMF Gallery   
  Add Picture   
  Edit own Picture   
  Delete own Picture   
  Leave Comments   
  Report Pictures/Comments   
  Auto Approve Pictures   
  Manage Gallery   

I left settings in "Gallery Configuration" the same

Manage Categories, I added my categories

I am not getting any error message, the gallery is just not showing up anywhere. I have no tab or anything for it. 


I should add that the only theme in which is showing a tab for the gallery is the default.
Title: Re: SMF Gallery
Post by: mashby on May 28, 2008, 06:26:53 PM
You'll have to edit the index.template.php file for the CS Classic theme. Are you familiar with how to do this?
Title: Re: SMF Gallery
Post by: Sheila * R on May 28, 2008, 06:52:47 PM
Quote from: mashby on May 28, 2008, 06:26:53 PM
You'll have to edit the index.template.php file for the CS Classic theme. Are you familiar with how to do this?

lol not at all...sorry
Title: Re: SMF Gallery
Post by: mashby on May 28, 2008, 06:57:02 PM
If you can attach it to a post and provide a link to your site, I'd be happy to help you out. I'm also assuming you can FTP to your site?
Title: Re: SMF Gallery
Post by: Sheila * R on May 28, 2008, 07:10:44 PM
I do everything on my test forum first before applying it to my actual forums, just incase something gets messed up. So here is the link to my test forum. http://group.amothersluv.org/playgroup/index.php

Edit Theme - index.template.php
Beginning on line 1:


<?php
// Version: 1.1; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the maintemplate layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/


Beginning on line 29:

// Initialize the template... mainly little settings.
function template_init()
{
   global $context, $settings, $options, $txt;

   /* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   $settings['use_default_images'] = 'never';

   /* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   $settings['doctype'] = 'xhtml';

   /* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   $settings['theme_version'] = '1.1';

   /* Set a setting that tells the theme that it can render the tabs. */
   $settings['use_tabs'] = true;

   /* Use plain buttons - as oppossed to text buttons? */
   $settings['use_buttons'] = true;

   /* Show sticky and lock status seperate from topic icons? */
   $settings['seperate_sticky_lock'] = true;
}


Beginning on line 59:

// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';

   // the routine for the info center upshrink
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

         function shrinkHeaderIC(mode)
         {';

   if ($context['user']['is_guest'])
      echo '
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
   else
      echo '
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
</head>
<body>';

   echo '<div id="wrapper">
<div id="top">
</div>

<div id="left"><div id="right">
<div id="inwrapper">
   <div id="header">
      <div id="title"><h1>', $context['forum_name'], '</h1>
      </div>
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
      <div id="search">
                  <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input type="text" name="search" value="" size="20" class="layinput" />
                  <input type="submit" name="submit" value="', $txt[182], '" class="laybutton" />
</div>
</form>
   </div>

   <div id="qnavlinks">';
   
   // Show the menu here, according to the menu sub template.
   template_menu();
   
   echo '</div>
<div id="acontent">
<div id="incontent">
<div id="incontentt">';

   echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>';


   // display user name
   echo '
      <table width="100%" cellpadding="0" cellspacing="0" border="0" >
         <tr>';

   if($context['user']['is_logged'])
      echo '
            <td class="titlebg2" height="32">
               <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
            </td>';

   // display the time
   echo '
            <td class="titlebg2" height="32" align="right">
               <span class="smalltext">' , $context['current_time'], '</span>';

   // this is the upshrink button for the user info section
   echo '
               <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
            </td>
         </tr>
         <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
            <td valign="top" colspan="2">
               <table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
                  <tr>';

   if (!empty($context['user']['avatar']))
      echo '
                     <td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

   echo '
                     <td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';

   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
      echo '
                        <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
                        <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

   }
   // Otherwise they're a guest - send them a lovely greeting...
   else
      echo $txt['welcome_guest'];

   // Now, onto our second set of info, are they logged in again?
   if ($context['user']['is_logged'])
   {
      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                        <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                        ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
                        ', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                           <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                           <select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="43200">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select>
                           <input type="submit" value="', $txt[34], '" /><br />
                           <span class="middletext">', $txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }

   echo '
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>';
     
   echo '</div><div id="upshrinkHeader2"></div>';


   // The main content should go here.
   echo '
   <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}


Beginning on line 318:

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   echo '

   <div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         function smfFooterHighlight(element, value)
         {
            element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
         }
      // ]]></script>

      <div class="fclear"></div>
</div>
</div>

</div>
</div>
</div>
   <div id="footer">
   ', theme_copyright(),' | <a href="http://celestial-star.net/smf-themes/1-classic/">CS Classic</a> theme by <a href="http://celestial-star.net">Celestial Star</a>
   </div>
</div>

</div>';

      // Show the load time?
   if ($context['show_load_time'])
      echo '
      <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

   // This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
   if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
   {
      // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
      echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';

      // Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
      if ($context['browser']['is_safari'])
         echo '
         window.addEventListener("load", smf_codeFix, false);

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if ((codeFix.className == "code" || codeFix.className == "post" || codeFix.className == "signature") && codeFix.offsetHeight < 20)
                  codeFix.style.height = (codeFix.offsetHeight + 20) + "px";
            }
         }';
      elseif ($context['browser']['is_firefox'])
         echo '
         window.addEventListener("load", smf_codeFix, false);
         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if (codeFix.className == "code" && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0))
                  codeFix.style.overflow = "scroll";
            }
         }';         
      else
         echo '
         var window_oldOnload = window.onload;
         window.onload = smf_codeFix;

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = codeFix.length - 1; i > 0; i--)
            {
               if (codeFix.currentStyle.overflow == "auto" && (codeFix.currentStyle.height == "" || codeFix.currentStyle.height == "auto") && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0) && (codeFix.offsetHeight != 0 || codeFix.className == "code"))
                  codeFix.style.height = (codeFix.offsetHeight + 36) + "px";
            }

            if (window_oldOnload)
            {
               window_oldOnload();
               window_oldOnload = null;
            }
         }';

      echo '
      // ]]></script>';
   }

   echo '
   </div>';

   // The following will be used to let the user know that some AJAX process is running
   echo '
   <div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}


Beginning on line 426:


// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global $context, $settings, $options;

   echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

   // Each tree item has a URL and name. Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }

   echo '</div>';
}


Beginning on line 455:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.

   // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '">' , $txt[103] , '</a>' , $current_action == 'home' ? ' ' : '';

   // Show the [help] button.
   echo ($current_action == 'help' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>' , $current_action == 'help' ? ' ' : '';

   // How about the [search] button?
   if ($context['allow_search'])
      echo ($current_action == 'search' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>' , $current_action == 'search' ? ' ' : '';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>' , $current_action == 'admin' ? ' ' : '';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>' , $current_action == 'profile' ? ' ' : '';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' : '' , '<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>' , $current_action == 'pm' ? ' ' : '';

   // The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? ' ' : '' , '
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>' , $current_action == 'calendar' ? ' ' : '';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>' , $current_action == 'mlist' ? ' ' : '';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'login' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>' , $current_action == 'login' ? ' ' : '';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'register' || $context['browser']['is_ie4']) ? ' ' : '' , '
            <a href="', $scripturl, '?action=register">' , $txt[97] , '</a>' , $current_action == 'register' ? ' ' : '';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? ' ' : '' , '
            <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>' , $current_action == 'logout' ? ' ' : '';

   // The end of tab section.

}


Beginning on line 537:

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

   // Create the buttons...
   foreach ($button_strip as $key => $value)
   {
      if (isset($value['test']) && empty($context[$value['test']]))
      {
         unset($button_strip[$key]);
         continue;
      }
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

      $button_strip[$key] = $buttons[$key];
   }

   if (empty($button_strip))
      return '<td>&nbsp;</td>';

   echo '
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

?>

Title: Re: SMF Gallery
Post by: mashby on May 28, 2008, 07:17:50 PM
this line
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

should be
   if (in_array($context['current_action'], array('gallery', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Add this in the place you want your gallery button to appear (the button/tab code is just below the code above:
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
         echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=gallery">Gallery</a>' , $current_action == 'gallery' ? ' ' : '';

Title: Re: SMF Gallery
Post by: Sheila * R on May 29, 2008, 04:32:59 PM
Quote from: mashby on May 28, 2008, 07:17:50 PM
this line
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

should be
   if (in_array($context['current_action'], array('gallery', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Add this in the place you want your gallery button to appear (the button/tab code is just below the code above:
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
         echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? ' ' : '' , '<a href="', $scripturl, '?action=gallery">Gallery</a>' , $current_action == 'gallery' ? ' ' : '';



I did this but there is still not tab indicating gallery. The only time I am still getting this tab is when I am in the default theme. There is another theme that I wouldn't mid using however, I too cannot seem to get the tab on ... that and I am trying to find a way to get rid of some of the graphics in it. Anyway, I am not able to get the gallery tab on this theme (cs classic).
Title: Re: SMF Gallery
Post by: mathmission on May 30, 2008, 11:59:30 AM
I'm pretty sure I asked this question before, but I can't seem to find my post. I installed this mod, works great. Got it working on all my themes, but one is a little tricky. I got the button installed, but it's a different color, and is hovering a bit above where it should be.

SMF: 1.1.5
Theme: AVARE MU
Title: Re: SMF Gallery
Post by: ccbtimewiz on May 30, 2008, 12:23:26 PM
Quote from: mathmission on May 30, 2008, 11:59:30 AM
I'm pretty sure I asked this question before, but I can't seem to find my post. I installed this mod, works great. Got it working on all my themes, but one is a little tricky. I got the button installed, but it's a different color, and is hovering a bit above where it should be.

SMF: 1.1.5
Theme: AVARE MU

Constructing the button on the index is different for every theme. This modification was designed to add a button to the default theme. Not custom themes. Sometimes, custom themes use the same makeup as the default theme, so porting between the two themes would be easier.

Look in your index.template.php file, and find each button call (you'll see a "//" with text after it for each button.) Copy the "home" button, and past it after any button you wish. Then replace all instances of "home" with "gallery" in the copied text.

Title: Re: SMF Gallery
Post by: mathmission on May 30, 2008, 12:31:32 PM
Rock on my friend. Thanks for the help!
Title: Re: SMF Gallery
Post by: sosuke on June 01, 2008, 12:16:23 PM
actually....i did create that gallery but it seems that the pics don't show or appear
Title: Re: SMF Gallery
Post by: vbgamer45 on June 01, 2008, 02:43:30 PM
Check that the path and url are correct under Gallery configuration.

And that the files of uploaded pictures exist in the gallery folder.
Title: Re: SMF Gallery
Post by: steph1987 on June 04, 2008, 07:43:51 AM
Just a few questions about the pro version before i buy, wonder if anyone can help

1) can u set a max number of images that people can upload a day (im making a gallery .eg funny pics, where people can upload funny into one gallery and dont want for instance one person to upload 50 pics that are stupid and ruin the whole thing, so want to set it to something like 2 pics a day

and B

if that feature is available, can it be set for certain gallerys (2 posts only) but if they had a private folder, they could still upload as many as they want to that
so posting restrictions on some, but unrestricted in others

thanks for all your help in advance
Title: Re: SMF Gallery
Post by: vbgamer45 on June 04, 2008, 08:20:33 AM
Both of those features currently do not exist in the pro edition.
Title: Re: SMF Gallery
Post by: Coroner on June 07, 2008, 04:20:11 AM
Hello! I really like this mod and would like to install it but I have run into an issue and stopped before any possible damage was done. I uploaded the zip file and ran the installer but got this error:
Quote
!!
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.

At the bottom of the page I saw this which came up during the test install:
Quote1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed[/color]
3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test successful
6.    Execute Modification    ./Sources/Subs.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful

Can someone please advise me as to whats causing this and what coarse of action do I take in order to install this mod successfully.

Thanks!
Title: Re: SMF Gallery
Post by: vbgamer45 on June 07, 2008, 08:58:26 AM
That one is ok to ignore Modifications.english-utf8.php unless you are using english utf8 on your board.
Title: Re: SMF Gallery
Post by: Coroner on June 07, 2008, 04:10:35 PM
Thank you for the reply. Is there a way to check to see if that file you mentioned is being used? It's not in the list from the install.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 07, 2008, 04:19:46 PM
Admin -> Server settings if your language is just english you can ignore it.
Title: Re: SMF Gallery
Post by: Coroner on June 07, 2008, 05:20:19 PM
Thanks for the reply. It installed just fines. Now I just need to set up the links and such.

Thanks!
Title: Re: SMF Gallery
Post by: mark7144 on June 10, 2008, 05:32:31 PM
Sorry if this has been asked before but can the galleries me implemented on to someone's home page using SSI?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 10, 2008, 08:08:09 PM
It is possible you would need to make the queries
Title: file missing
Post by: raaja on June 12, 2008, 01:46:39 PM
hi guys,

im having a prob viewing SMF gallery... im using  version gallery1.8.3 and SMF 1.1.5..

i can uploda pictures bt i cant view the pictures in full image... its giving me HTTP 406 error..cany anyone guide me how i can fix this error..??

here is my gallery link: http://tdresecher.com/forum/index.php?action=gallery;cat=3

thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 12, 2008, 08:06:58 PM
That is an issue with mod_Security
http://urbangiraffe.com/2005/08/20/mysterious-406-error/
Title: Re: SMF Gallery
Post by: raaja on June 12, 2008, 10:11:09 PM
Quote from: vbgamer45 on June 12, 2008, 08:06:58 PM
That is an issue with mod_Security
http://urbangiraffe.com/2005/08/20/mysterious-406-error/

itz not working... im stil having the prob.. :(


error_log |

File does not exist: /home/xxxxx/public_html/forum/mootools.js, referer: http://tdresecher.com/forum/index.php action=gallery;cat=1
File does not exist: /home/xxxxx/public_html/404.shtml, referer: http://tdresecher.com/forum/index.php?action=gallery;cat=1
File does not exist: /home/xxxxx/public_html/forum/imageMenu.js, referer: http://tdresecher.com/forum/index.php?
File does not exist: /home/xxxxx/public_html/404.shtml, referer: http://tdresecher.com/forum/index.php?action=gallery;cat=1

any othr way to fix this?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 12, 2008, 10:55:54 PM
Talk to your host would probably be the best bet.
Title: Re: SMF Gallery Modications Turkish
Post by: blackstar on June 15, 2008, 03:02:49 PM
Themes/languages/Modifications.turkish.php
de bul
?>
üstüne aşagidaki kodlari ekle:

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Resim Galerisi';
$txt['smfgallery_menu'] = 'Galerimiz';
$txt['smfgallery_version'] = '1.0';
$txt['smfgallery_admin'] = 'Galeri ayarları';

//Permissions
$txt['permissiongroup_smfgallery'] = 'Resim Galerimiz';

$txt['permissionname_smfgallery_view'] = 'Resim Galerisini göster';
$txt['permissionhelp_smfgallery_view'] = 'Kullanıcılara Galeriyi görmelerine izin ver';
$txt['cannot_smfgallery_view'] = 'Galeriyi görme yetkin yok';

$txt['permissionname_smfgallery_add'] = 'Resim Ekle';
$txt['permissionhelp_smfgallery_add'] = 'Kullanıcılara resim eklemelerine izin ver
.';
$txt['cannot_smfgallery_add'] = 'Resim eklemeye yetkin yok.';

$txt['permissionname_smfgallery_edit'] = 'Kendi resmini düzenle';
$txt['permissionhelp_smfgallery_edit'] = 'Kullanıcılara resimi değiştirmelerine izin ver.';
$txt['cannot_smfgallery_edit'] = 'Resimleri değiştirmeye yetkin yok.';

$txt['permissionname_smfgallery_delete'] = 'Kendi resmini sil';
$txt['permissionhelp_smfgallery_delete'] = 'Kullanıcılara resmi silmelerine izin ver.';
$txt['cannot_smfgallery_delete'] = 'Resim silmeye yetkin yok .';

$txt['permissionname_smfgallery_comment'] = 'yorum yaz';
$txt['permissionhelp_smfgallery_comment'] = 'Kullanıcılara resimler hakkında yorum yapmalarına izin ver.';
$txt['cannot_smfgallery_comment'] = 'Du hast nicht die Berechtigung Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Resim/Yorum bildir';
$txt['permissionhelp_smfgallery_report'] = 'Kullanıcılara Resim ve Yoru bildirmelerine izin ver.';
$txt['cannot_smfgallery_report'] = 'İçerik bildirmeye yetkin yok.';

$txt['permissionname_smfgallery_autoapprove'] = 'Resim otomatik ekleme';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Resimleri manuel onaylamak gerekmiyor.';

$txt['permissionname_smfgallery_manage'] = 'Galerie yönetim ';
$txt['permissionhelp_smfgallery_manage'] = 'Kullanıcılara Konu eklemeye/silmeye/düzenlemeye. Yorum ve Resim silmeye, Resim eklemeye yetki verir';
$txt['cannot_smfgallery_manage'] = 'Galeriyi yönetmeye yetkin yok.';

//END SMF Gallery Text Strings


Title: Re: SMF Gallery
Post by: Kaze1234567 on June 17, 2008, 02:19:59 PM
I'm using the Mystic Jade theme and I want to show the button between "Profile" and "My Messages"

What code do I have to change to do this?
Title: Re: SMF Gallery
Post by: fords8 on June 17, 2008, 03:35:36 PM
Quote from: Kaze1234567 on June 17, 2008, 02:19:59 PM
I'm using the Mystic Jade theme and I want to show the button between "Profile" and "My Messages"

What code do I have to change to do this?


You maybe better off going to http://www.dzinerstudio.com/ for help on that theme. You can start with this topic http://www.dzinerstudio.com/index.php?topic=278.0 .

Hope it helps!
Title: Re: SMF Gallery
Post by: romeoyankee9 on June 21, 2008, 09:10:50 PM
Anyway we can use SSI to grab say the last 5 pictures that were uploaded and show them on the main page?

Title: Re: SMF Gallery
Post by: vbgamer45 on June 21, 2008, 09:17:48 PM
Not built in but you could code a function to do that.
Title: Re: SMF Gallery
Post by: Crasy on June 21, 2008, 09:57:21 PM
Hey SMF, er, vbgamer. I'll have to get used to calling you this.

Quick question for ya,

Is it possible to have the latest 5 images from a specific user displayed in their own profile?
If so...could you advise me how I might do so?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 21, 2008, 10:00:38 PM
Anything is possible if you got the code.  I do have a mod in the pro version of the gallery in the customer forums that I believe adds some recent pictures to a user's profile.
Title: Re: SMF Gallery
Post by: Crasy on June 21, 2008, 10:02:19 PM
Quote from: vbgamer45 on June 21, 2008, 10:00:38 PM
Anything is possible if you got the code.  I do have a mod in the pro version of the gallery in the customer forums that I believe adds some recent pictures to a user's profile.

Do you have a demo up I could see?
Title: Re: SMF Gallery
Post by: romeoyankee9 on June 21, 2008, 11:57:07 PM
Im more of a follow the directions kinda guy then a coding kinda guy.. lol

Not opposed to learning though.  Id just really like to bring the last 5 photos added to the gallery to the main page of my site outside of the forum. 

Would it be relatively easy to learn to do or am I looking at teaching myself a lot of stuff coming up?

I used to use coppermine photo gallery and was able to do it with that but I like your gallery a lot better then coppermine!
Title: Re: SMF Gallery
Post by: Naveeddil on June 24, 2008, 12:21:02 AM
Quote from: vbgamer45 on May 27, 2008, 08:12:49 PM
2. Is an issue with mod_security disable mod_security and it will work.

I have the Same Error as Mentioned http://www.simplemachines.org/community/index.php?topic=114291.msg1557450#msg1557450 (http://www.simplemachines.org/community/index.php?topic=114291.msg1557450#msg1557450) with notting and you gave the Above Solution.

Can you please Define it a little more for me that what should i Edit to Fix the Problem?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on June 24, 2008, 12:42:49 AM
More info
http://urbangiraffe.com/2005/08/20/mysterious-406-error/
Title: Re: SMF Gallery
Post by: Naveeddil on June 24, 2008, 03:17:15 AM
Quote from: vbgamer45 on June 24, 2008, 12:42:49 AM
More info
http://urbangiraffe.com/2005/08/20/mysterious-406-error/
Dear,
it is the same 406 error and i add the code


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>


to my file .htaccess file located at http://www.naveeddil.webcommand.org/SMF/

BUT still the same problem


Please Help
Title: Re: SMF Gallery
Post by: vbgamer45 on June 24, 2008, 08:29:35 AM
You will need to contact your host then and ask them to disable that filter for your site.
Title: Re: SMF Gallery
Post by: TW1ST3D on July 02, 2008, 10:24:09 PM
How can I change the Font color for the gallery. It uses the font color from the rest of my forum which is gray and it is hard for some members to read in the gallery.
Title: Re: SMF Gallery
Post by: topbuyer on July 03, 2008, 09:46:46 AM
Hi vbgamer45,

SMF: 1.1.5
Theme: Dilber MC
Gallery: SMF Gallery Lite  1.8.3

Problem: MenuBar "Gallery" link is not reflected properly, it is not in sync with other buttons in menu bar.

Attached files
Original File: index.template.php.ORIG.3rdJul08
Modified: index.template.php

Please verify my modification and suggest on gallery link in menu bar problem.

PMed you my test forum url.

Title: Re: SMF Gallery
Post by: ccbtimewiz on July 03, 2008, 11:57:39 AM
Quote from: topbuyer on July 03, 2008, 09:46:46 AM
Hi vbgamer45,

SMF: 1.1.5
Theme: Dilber MC
Gallery: SMF Gallery Lite  1.8.3

Problem: MenuBar "Gallery" link is not reflected properly, it is not in sync with other buttons in menu bar.

Attached files
Original File: index.template.php.ORIG.3rdJul08
Modified: index.template.php

Please verify my modification and suggest on gallery link in menu bar problem.

PMed you my test forum url.

Don't know if you mind, but I did this for you.

Here's your edited file. Just upload it and you'll be fine. ;]
Title: Re: SMF Gallery
Post by: Lady Night Owl on July 03, 2008, 12:39:02 PM
Quote from: TW1ST3D on July 02, 2008, 10:24:09 PM
How can I change the Font color for the gallery. It uses the font color from the rest of my forum which is gray and it is hard for some members to read in the gallery.

Hmm, I changed the background color by going to the style sheet (for a custom theme) and looking for this code:


/* This is used on tables that should just have a border around them. */
.tborder
{
padding: 0px;
border: 1px solid #36c;
background-color: #CCCCFF;
}


That also affects a portion of my forum - see attached (it's the portion that has the tip of the arrow in it).
There's no text in that portion of the gallery though.

This worked well enough for me, but you need to change the font color - maybe for the posts? I think you might find that somewhere in here:


/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg
{
color: #000000;
background-color: #ddf;
}
.windowbg2
{
color: #000000;
background-color: #eef;
}
.windowbg3
{
color: #000000;
background-color: #99CCFF;
}



I think your best bet would be to make a back up copy of your style sheet and experiment with the font or background colors to see which one you need to change (preferably something that goes with your overall theme).

Unfortunately, I don't see anything in the style sheet that specifically controls the gallery - it pulls it all from the style of your forum.

I hope I'm not confusing you .
Title: Re: SMF Gallery
Post by: topbuyer on July 03, 2008, 05:45:08 PM
Thank you soo much ccbtimewiz. It is working fine.

Best Wishes.


[/quote]

Don't know if you mind, but I did this for you.

Here's your edited file. Just upload it and you'll be fine. ;]
[/quote]
Title: Re: SMF Gallery
Post by: TW1ST3D on July 03, 2008, 05:46:38 PM
Exactly............But ,I don't want or need to change the forums colors, Just the text under the pictures in the Gallery. There must be some way to intercept the font.
Title: Re: SMF Gallery
Post by: samames on July 03, 2008, 07:50:20 PM
2.     Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed

above is the problem i get when i try to install the smf gallery 1.8.3
Other themes i have installed are:
1.     SMF Gallery Lite      1.8.3      [ Apply Mod ]  [ List Files ]  [ Delete ]
2.    E-Arcade    2.5.0    [ List Files ] [ Delete ]
3.    Custom Profile Field Mod    3.19    [ Uninstall ] [ List Files ] [ Delete ]
4.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Advanced AJAX Shoutbox    1.20    [ Uninstall ] [ List Files ] [ Delete ]
6.    Auto Embed Video/Audio Clips    3.0    [ Uninstall ] [ List Files ] [ Delete ]

I am wondering how I should go about installing the gallery? should i continue install regardless of error, after making a backup of Modifications.english-utf8.php??

please help, thanks :)
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 03, 2008, 07:53:57 PM
Doesn't matter much, unless you are running utf8.

Continue installing it, and if the text disappears, simply take modifications.english.php, download it, rename it to modifications.english-ut8.php and upload.
Title: Re: SMF Gallery
Post by: samames on July 03, 2008, 07:59:10 PM
coolness, will it work if i just backup Modifications.english-utf8.php and then if text where to disappear just reinstall d backup?
Title: Re: SMF Gallery
Post by: Lady Night Owl on July 03, 2008, 08:21:05 PM
Quote from: TW1ST3D on July 03, 2008, 05:46:38 PM
Exactly............But ,I don't want or need to change the forums colors, Just the text under the pictures in the Gallery. There must be some way to intercept the font.

I understand - you'll have to wait for someone who is better with code to help.
Title: Re: SMF Gallery
Post by: TW1ST3D on July 03, 2008, 08:24:52 PM
Quote from: ladynightowl on July 03, 2008, 08:21:05 PM
Quote from: TW1ST3D on July 03, 2008, 05:46:38 PM
Exactly............But ,I don't want or need to change the forums colors, Just the text under the pictures in the Gallery. There must be some way to intercept the font.

I understand - you'll have to wait for someone who is better with code to help.

But, Thanks for the Tip.
Title: Re: SMF Gallery
Post by: Johno69 on July 04, 2008, 10:59:09 AM
I was reading the boards here the other day and noticed someone was using this gallery and manage to use a htaccess redirect to point domain.com/username to the members gallery..

I can't find the info again, does anyone know this topic, or how to do this?

Thanks.
Title: Re: SMF Gallery
Post by: Akkaneerut on July 06, 2008, 04:06:42 AM
I installed smf gallery already yet! and it work very well, but I would like to know how I can make the previous and next link for photos in same gategories. Please, help me! :)
Title: Re: SMF Gallery
Post by: Johno69 on July 06, 2008, 04:22:00 AM
Quote from: Akkaneerut on July 06, 2008, 04:06:42 AM
I would like to know how I can make the previous and next link for photos in same gategories. Please, help me! :)

This feature is standard in the PRO version.
Title: Re: SMF Gallery
Post by: Akkaneerut on July 06, 2008, 04:50:49 AM
Quote from: Johno69 on July 06, 2008, 04:22:00 AM
Quote from: Akkaneerut on July 06, 2008, 04:06:42 AM
I would like to know how I can make the previous and next link for photos in same gategories. Please, help me! :)

This feature is standard in the PRO version.
impossible in smf gallery lite? :(
Title: Re: SMF Gallery
Post by: Johno69 on July 06, 2008, 04:56:12 AM
You get what you pay for.

I'm sure it could be hacked etc etc, but seriously, easier to pay the $$$.

It's well worth it.
Title: Re: SMF Gallery
Post by: Akkaneerut on July 06, 2008, 05:06:14 AM
 :) Thanks, for your help. I asked for it because i just want previous and next link for it only not at all, my website is non profit web and not trading anything.  :D
Title: Re: SMF Gallery
Post by: Johno69 on July 06, 2008, 09:14:11 AM
My website is non profit too, but realistically.. if you pay the $50 you just feel all warm and fuzzy inside :).

Count it as your good deed for the day.
Title: Re: SMF Gallery
Post by: toups on July 10, 2008, 10:55:27 AM
Wondering if anyone has done this or how to do it.. make a check box in the gallery when uploading images that allow the user to upload a image as private.. for their own private viewing instead of being fully public for everyone to see.. Thanks
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 10, 2008, 04:34:11 PM
Quote from: toups on July 10, 2008, 10:55:27 AM
Wondering if anyone has done this or how to do it.. make a check box in the gallery when uploading images that allow the user to upload a image as private.. for their own private viewing instead of being fully public for everyone to see.. Thanks

The user can password protect their gallery.
Title: Re: SMF Gallery
Post by: toups on July 10, 2008, 05:07:03 PM
Quote from: CTwiz on July 10, 2008, 04:34:11 PM
Quote from: toups on July 10, 2008, 10:55:27 AM
Wondering if anyone has done this or how to do it.. make a check box in the gallery when uploading images that allow the user to upload a image as private.. for their own private viewing instead of being fully public for everyone to see.. Thanks

The user can password protect their gallery.

>.> Mine can't.. is no feature for password protecting ..
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 10, 2008, 05:21:30 PM
..?

Are you using SMF Gallery Pro or Lite?
Title: Re: SMF Gallery
Post by: toups on July 10, 2008, 05:30:41 PM
Quote from: CTwiz on July 10, 2008, 05:21:30 PM
..?

Are you using SMF Gallery Pro or Lite?

Guessing lite if that's the free one, not going to pay $50 for a script on a free forum just to add a few tiny features >.>
Title: Re: SMF Gallery
Post by: vbgamer45 on July 10, 2008, 05:48:28 PM
Current only the pro version has password protected gallery for user galleries.
Title: Re: SMF Gallery
Post by: CG Icon on July 11, 2008, 05:09:00 PM
Quote from: toups on July 10, 2008, 05:30:41 PM
Quote from: CTwiz on July 10, 2008, 05:21:30 PM
..?

Are you using SMF Gallery Pro or Lite?



Guessing lite if that's the free one, not going to pay $50 for a script on a free forum just to add a few tiny features >.>


I will disagree here,, it is not a few tiny features,, it is almost a whole new script.. I used lite for a while,, didnt want to pay for the pro gallery,  but, after some thinking,  I did,, I was glad I did
Title: Re: SMF Gallery
Post by: Gryphoune on July 12, 2008, 01:38:18 AM
I'm having a problem with the Gallery button not showing on the menubar.

SMF version 1.1.5
Theme - Fire
SMF Gallery - 1.8.3

I've tried copying and modifying the calendar button and putting it into the /images/english folder but I still don't get the button. Is there something I need to add to the index.template.php to get it to show?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 12, 2008, 10:47:34 AM
Yes for custom themes you have to modify the index.template.php of that theme and add a link/button to the gallery.
Title: Re: SMF Gallery
Post by: Angelotus on July 12, 2008, 11:28:39 AM
Will this mod be available for smf 2.0 soon??
Title: Re: SMF Gallery
Post by: vbgamer45 on July 12, 2008, 11:48:20 AM
We are waiting for final release of SMF 2.0 once that happens upgraded release will be released.
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 12:45:54 PM
How exactly do you get SMF gallery to work in 1,1,5?
I have a brand new install, default theme, only other mod is Clickable Images Mod.
Clicking the thumbnail image gives the message:

Not Acceptable

An appropriate representation of the requested resource /Mom-Me/index.php could not be found on this server.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mom-me-dearest.com Port 80

Had this same problem with another forum and was told the problem was mod security. But It has been disabled by at my request by my host.
http://mom-me-dearest.com/Mom-Me/index.php?action=gallery;cat=1
Title: Re: SMF Gallery
Post by: Johno69 on July 14, 2008, 06:47:43 PM
You are not allowed to view the Gallery
Please login below or register an account.
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 06:50:48 PM
Quote from: Johno69 on July 14, 2008, 06:47:43 PM
You are not allowed to view the Gallery
Please login below or register an account.


Oh yeah. :-\
Nica     User
liason  PW
Title: Re: SMF Gallery
Post by: Johno69 on July 14, 2008, 06:53:32 PM
1 Members. Latest Member: admin

I'm guessing Nica wont work. Also I suggest makign a temp account to post here.
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 06:53:52 PM
Quote from: Johno69 on July 14, 2008, 06:47:43 PM
You are not allowed to view the Gallery
Please login below or register an account.


Correction wrong gallery

Use

knucklesben
head
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 07:04:45 PM
Quote from: Johno69 on July 14, 2008, 06:53:32 PM
1 Members. Latest Member: admin

I'm guessing Nica wont work. Also I suggest makign a temp account to post here.

Yes I'm sorry
The temp account is
knuckleben
head
Title: Re: SMF Gallery
Post by: Johno69 on July 14, 2008, 07:17:33 PM
try again... as I said.

1 Members. Latest Member: admin
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 07:25:00 PM
Quote from: Johno69 on July 14, 2008, 07:17:33 PM
try again... as I said.

1 Members. Latest Member: admin

I apologize. i have been woring on several ccounts all day today. And have gotten mixed up.

The only account there is
Nica  User
liason PW
It is a test account
Title: Re: SMF Gallery
Post by: Johno69 on July 14, 2008, 08:00:54 PM
How does this sound.

http://mom-me-dearest.com/Mom-Me/index.php

After you manage to login there with a test user account. Post those details. Or is that not the place you need help? It's the only link I can see you posted.
Title: Re: SMF Gallery
Post by: Nica on July 14, 2008, 08:12:51 PM
Quote from: Johno69 on July 14, 2008, 08:00:54 PM
How does this sound.

http://mom-me-dearest.com/Mom-Me/index.php

After you manage to login there with a test user account. Post those details. Or is that not the palce you need help? It's the only link I can see you posted.

Thank you. That is the correct link
I just created this account
trial User
trial PW
Title: Re: SMF Gallery
Post by: Nica on July 15, 2008, 10:55:12 AM
Quote from: Johno69 on July 14, 2008, 08:00:54 PM
How does this sound.

http://mom-me-dearest.com/Mom-Me/index.php

After you manage to login there with a test user account. Post those details. Or is that not the place you need help? It's the only link I can see you posted.

Still hoping to understand why SMF Gallery won't work on a brand new install of 1.1.5.
Really want it working on my regular site but testing here first.
www.mom-me-dearest.com/Mom-Me
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 15, 2008, 05:05:10 PM
What exactly are the problems you are having?
Title: Re: SMF Gallery
Post by: Nica on July 15, 2008, 05:56:05 PM
Quote from: CTwiz on July 15, 2008, 05:05:10 PM
What exactly are the problems you are having?


I installed SMF Gallery. The stall was fine but When clicking on the photo thumbnail or on edit or delete I get this message:

Not Acceptable

An appropriate representation of the requested resource /Mom-Me/index.php could not be found on this server.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mom-me-dearest.com Port 80

www.mom-me-dearest.com/Mom-Me
User trial
PW   trial
Title: Re: SMF Gallery
Post by: vbgamer45 on July 15, 2008, 09:05:22 PM
That caused by mod_security and needs to be turned off or that rule that affects the gallery edite.d
Title: Re: SMF Gallery
Post by: Nica on July 15, 2008, 11:04:20 PM
Quote from: vbgamer45 on July 15, 2008, 09:05:22 PM
That caused by mod_security and needs to be turned off or that rule that affects the gallery edite.d


It took me about two weeks but I finally got Vodapst to turned off Mod-Security.
So There must be something else going on. Unless they are not telling the truth. 
I  could never get SMF Gallery to work on my forum that is running...www.mom-me-dearest.com
because of this. I installed this one...www.mom-me-dearest.com/Mom-Me as a tester and I am having the same problem.
I installed tiny portal on the tester and I get the same problem when trying to edit or delete there. I really need help.

Hello,

I have turned it off for your account and now you should not face this issue again.
Laura Dunkin
VodaHost
Your Website People!

Ticket Details
Ticket ID: CTJ-409935
Department: VodaHost - LD
Priority: High
Status: Closed
Title: Re: SMF Gallery
Post by: Shadis on July 16, 2008, 12:33:11 AM
I am getting the following error when trying to install this on an brand new install of 1.1.5:

Installations actions for "SMF Gallery Lite":
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/Modifications.english-utf8.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Who.english.php                          Test successful
4.    Execute Modification    ./index.php                                                                                  Test successful
5.    Execute Modification    ./Themes/default/index.template.php                                         Test successful
6.    Execute Modification    ./Sources/Subs.php                                                                    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php                                         Test successful
8.    Extract File    ./Sources/Gallery.php    
9.    Extract File    ./Themes/default/Gallery.template.php    
10.    Extract Tree    ./gallery    
11.    Extract File    ./Themes/default/languages/Gallery.english.php    
12.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
13.    Execute Code    galleryinstall.php


and this is a listing of installed mods on the board... just in case that is the issue:

View and Remove Installed Packages
   Mod Name    Version    
1.    Advanced AJAX Shoutbox    1.20    [ Uninstall ]
2.    Advanced Recent-Posts    1.1    [ Uninstall ]
3.    Enhance Recent Post    1.0    [ Uninstall ]
4.    Enhanced Calendar    1.1    [ Uninstall ]
5.    FavIcon    1.1    [ Uninstall ]
6.    Contact Page    1.1    [ Uninstall ]
7.    Blog (for 1.1.5)    1.11    [ Uninstall ]
8.    Admin Notepad    1.0    [ Uninstall ]
9.    SMF Links    1.6.7    [ Uninstall ]
10.    SMF Staff Page    1.6    [ Uninstall ]
11.    Top 10 Posters Today And This Week Stats    1.1    [ Uninstall ]
12.    Welcome Topic Mod    1.1    [ Uninstall ]
Title: Re: SMF Gallery
Post by: Nica on July 16, 2008, 10:23:03 AM
Quote from: vbgamer45 on July 15, 2008, 09:05:22 PM
That caused by mod_security and needs to be turned off or that rule that affects the gallery edite.d


Could you explain what rule that affects gallery edite.d
Is this somw other rule regarding the host?
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 16, 2008, 11:32:11 AM
@ Shadis > Continue with installing.
Title: Re: SMF Gallery
Post by: CG Icon on July 16, 2008, 02:39:36 PM
Shadis,, you are going to continue with install,, then take note of the files that did not update during the install properly.....

then go to the mod download section here at SMF and check into the procedure for manual install with your version of SMF,,

look up the .php file of yours that you are having issue with and just mod the php file yourself..

easy

.......................

Title: Re: SMF Gallery
Post by: ccbtimewiz on July 16, 2008, 03:48:26 PM
The only file that failed was /Modifications.english-utf8.php.

This file doesn't really mean much, and an easy way of fixing it would be to continue with the install, download modifications.english.php, rename it to Modifications.english-utf8.php, and replace the failed version of Modifications.english-utf8.php with the one you just made.
Title: Re: SMF Gallery
Post by: Shadis on July 16, 2008, 11:31:21 PM
I did... it never applied anything to the forum, though it said it installed properly... no Gallery Configuration within the admin center, and it says that it installed properly... sooo... I uninstalled it, and went to reinstall, and it now states that there is a Modification Parse Error... so it looks like I shall have to manually install and see if this corrects the issue, was hoping not to have to do it manually, hitting a button and having it do it for you is easier... but I'll stop being lazy now ;)
Title: Re: SMF Gallery
Post by: CG Icon on July 18, 2008, 02:21:28 PM
Well dont take my word for it,, this is just my opinion,,,,  but for cleaner files,, and sanity,, and not to mention when "things go wrong",, it is better to have done a manual install on mods...

To me it gives me insight into the workings of my site,, and after awhile,, when things go wrong,, I know where to go to fix it,,, as opposed to asking in forums and then  having to wait and wait for a reply..
Title: Re: SMF Gallery
Post by: Babalui on July 25, 2008, 12:50:45 PM
I've installed Gallery, instalaltion was OK, but how do I work with it? There is no "gallery" button anywhere.
Thanks.
Title: Re: SMF Gallery
Post by: Ken. on July 25, 2008, 05:19:58 PM
If you are using a custom theme you will need to manually add your gallery button.
Title: Re: SMF Gallery
Post by: MissyNL on July 29, 2008, 05:50:55 AM
hello.. i want to puchase the pro version with the copyrights removed.. before i will do that..i want to ask.. is a member capible for setting each photo to be displayd to other members? Some of my members want to upload private photo's and they want to disable the option that others can vieuw that photo... can this be done??

Thank you!!
Title: Re: SMF Gallery
Post by: vbgamer45 on July 29, 2008, 08:45:22 AM
Quote from: Lafemme on July 29, 2008, 05:50:55 AM
hello.. i want to puchase the pro version with the copyrights removed.. before i will do that..i want to ask.. is a member capible for setting each photo to be displayd to other members? Some of my members want to upload private photo's and they want to disable the option that others can vieuw that photo... can this be done??

Thank you!!
For User Gallery's member's have the setting to make their own personal gallery private or password protected.
Title: Re: SMF Gallery
Post by: MissyNL on July 29, 2008, 09:12:17 AM
Quote from: vbgamer45 on July 29, 2008, 08:45:22 AM
Quote from: Lafemme on July 29, 2008, 05:50:55 AM
hello.. i want to puchase the pro version with the copyrights removed.. before i will do that..i want to ask.. is a member capible for setting each photo to be displayd to other members? Some of my members want to upload private photo's and they want to disable the option that others can vieuw that photo... can this be done??

Thank you!!
For User Gallery's member's have the setting to make their own personal gallery private or password protected.

wow.. that's great! i will purchase it then as soon as i got rid of my errors :(

and.. i know i'm pushing it :) but is it also possible to protect it per map?

It's a pitty that JovanT did not integrated this mod in his Ultimate Profile mod.. that would be awsome!
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 09:47:38 AM
Hiya. I tried installing on a clean 1.1.5 for my guild site. The install goes fine, but in my Admin Panel, it just shows a blank space on my left nagivation. Again its blank and nothing to click, but goes in after I run the script error free.

Im using a custom theme, so does this have something to do with it, because theres no way I can go back in and edit my settings thru Admin after install. I know I will have to add the link to my header with the rest of the links, but how do I get it to show right in my Admin panel?

Thanks.

edit: Added a screenshot.

Draken Rising - Warhammer Online Destruction Guild (http://www.drakenrising.com)
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 10:44:45 AM
Was digging in my permissions and also see their in there, but blank as well. Again Im sorry if I missed this, I searched and didnt want to dig thru 70+ pages.

When I highlight the missing texted area, nothing is selected showing theres nothing there.

Screenshot attached.
Title: Re: SMF Gallery
Post by: paisleyd on July 29, 2008, 02:15:22 PM
sorry, but i too am having the same problem.

i can understand the part about adding the gallery button to the nav, but i cannot find any permission options or anything in the admin area to indicate that gallery is indeed loaded. i have installed without any errors.

does the pro version also have these issues?

thanks
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 29, 2008, 02:32:37 PM
Open modifications.english.php and make sure all the $txt[] are after the <?php and before the ?>.

The file is found via FTP (How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)) at Themes/default/languages/.
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 04:29:28 PM
Quote from: ccbtimewiz on July 29, 2008, 02:32:37 PM
Open modifications.english.php and make sure all the $txt[] are after the <?php and before the ?>.

The file is found via FTP (How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)) at Themes/default/languages/.

<?php
// Version: 1.1.5; Modifications

//my stuff
$txt['c_copy'] = '<strong>Basic</strong> by: &copy; 2008, <a href="mailto:[email protected]/" title="Basic Design.">Crip</a>';

?>


This is my modifications.english.php in the template im using.


Title: Re: SMF Gallery
Post by: ccbtimewiz on July 29, 2008, 04:31:38 PM
... There should be a LOT more strings in there. Go to this mod's parser and find the edits you need to make.
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 04:33:40 PM
Edit: I checked my actual Default template I have alot more txt objects. Would it work if I copied them into my current?

<?php
// Version: 1.1; Modifications


//Member Color Link
$txt['MemberColorLinkHeadline'] = 'Member Color Link';
$txt['MemberColorLink'] = 'The display of the threadindex';
$txt['MemberColorLinkOldSpanStyle'] = 'Use a span html tag for the color (Old Style of the Mod)';
$txt['MemberColorThreadOwner'] = 'The thread owner at the boardindex';
$txt['MemberColorThreadLastPost'] = 'The last post member at the messageindex';
$txt['MemberColorThreadChild'] = 'The last post member at the childboard';
$txt['MemberColorModeratorLinks'] = 'Color the Moderator Links';
$txt['MemberColorBoardindex'] = 'The last post member at the boardindex';
$txt['MemberColorBirthday'] = 'The Birthday Links of the Members (Calendar and Boardindex)';
$txt['MemberColorRecentOwner'] = 'Recent posts, threadowner';
$txt['MemberColorRecentLastPost'] = 'Recent posts, the last poster';
$txt['MemberColorInbox'] = 'Change colors in the Instant Messages Inbox';
$txt['MemberColorOutbox'] = 'Change colors in the Instant Messages Outbox';
$txt['MemberColorLatestMember'] = 'Color the Latest Member';
$txt['MemberColorStats'] = 'Change color in the Boardstats.';
$txt['MemberColorWhoIsOnline'] = 'Color the Who is Online (Messagesindex and Threadindex)';
$txt['MemberColorGuests'] = 'Color for Guest nicknames<br /><span class="smalltext">Boradindex, Messageindex and Theaddisplay</span>';
$txt['MemberColorBanned'] = 'Color for Banned nicknames';
$txt['MemberColorBirthdayColor'] = 'Color for Brithday nicknames';
$txt['MemberColorModCenter'] = 'Color links for the Moderation Center';
$txt['MemberColorIssuePList'] = 'Color links of the profile issued warning list';
$txt['MemberColorAllSearch'] = 'Extend Color in Search to all Field (Heavy load needed)';
//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

?>


Thats from my default theme. Im using one called Basic, and the language file in there was the one with nothing.
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 29, 2008, 04:34:46 PM
Try using this file in place of the other. That might fix the problem you're having.
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 04:36:24 PM
Quote from: ccbtimewiz on July 29, 2008, 04:34:46 PM
Try using this file in place of the other. That might fix the problem you're having.

It did. Thanks a bunch!  :)
Title: Re: SMF Gallery
Post by: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 29, 2008, 05:27:56 PM
Quote from: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?

Appears to be a misconfiguration of the gallery link.

Open Admin > Gallery Configuration > "fix the URLs".
Title: Re: SMF Gallery
Post by: God Of Mana on July 29, 2008, 05:35:19 PM
Quote from: ccbtimewiz on July 29, 2008, 05:27:56 PM
Quote from: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?

Appears to be a misconfiguration of the gallery link.

Open Admin > Gallery Configuration > "fix the URLs".

Is fix the url a option?  ;D , how do i fix em?
Title: Re: SMF Gallery
Post by: Shepx83 on July 29, 2008, 07:17:24 PM
I tried the examples on the site to try to get my Gallery button to show, but either it dont show up or I get a handful of errors.

Would there be any chance someone would help me out? I think im just messing up actually putting the button in. I added the array for the gallery.

Attached is my index.template.php without any modifications, so If someone would be willing to throw the tags in needed, Id be greatful.  :)
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 29, 2008, 07:34:40 PM
Quote from: Shepx83 on July 29, 2008, 07:17:24 PM
I tried the examples on the site to try to get my Gallery button to show, but either it dont show up or I get a handful of errors.

Would there be any chance someone would help me out? I think im just messing up actually putting the button in. I added the array for the gallery.

Attached is my index.template.php without any modifications, so If someone would be willing to throw the tags in needed, Id be greatful.  :)

Find:
Code (index.template.php) Select
// The [calendar]!

if ($context['allow_calendar'])

echo '

<li', $current_action == 'calendar' ? ' class="active"' : '', '><a href="', $scripturl, '?action=calendar">', $txt['calendar24'], '</a></li>';


Add After:
// Gallery
if( $context['allow_smfgallery_view'] )
echo '<li', $current_action == 'gallery' ? ' class="active"' : '', '><a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a></li>';
Title: Re: SMF Gallery
Post by: God Of Mana on July 30, 2008, 02:58:33 PM
Quote from: ccbtimewiz on July 29, 2008, 05:27:56 PM
Quote from: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?

Appears to be a misconfiguration of the gallery link.

Open Admin > Gallery Configuration > "fix the URLs".

Is fix the url a option?  ;D , how do i fix em?

Erm bump
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 30, 2008, 03:00:45 PM
Quote from: God Of Mana on July 30, 2008, 02:58:33 PM
Quote from: ccbtimewiz on July 29, 2008, 05:27:56 PM
Quote from: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?

Appears to be a misconfiguration of the gallery link.

Open Admin > Gallery Configuration > "fix the URLs".

Is fix the url a option?  ;D , how do i fix em?

Erm bump


It's not an option, you have to follow the instructions written under it. Make the URLs like how they are suggested.
Title: Re: SMF Gallery
Post by: paisleyd on July 30, 2008, 03:11:35 PM
hi there,

so i tried looking into the modifications.english.php fix. looks like my files contain the appropriate strings. yet there are no admin options for the gallery. the admin nav to the far left has gaps where i assume new links are supposed to be.

any other ideas?

thank you!
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 30, 2008, 03:41:42 PM
Quote from: paisleyd on July 30, 2008, 03:11:35 PM
hi there,

so i tried looking into the modifications.english.php fix. looks like my files contain the appropriate strings. yet there are no admin options for the gallery. the admin nav to the far left has gaps where i assume new links are supposed to be.

any other ideas?

thank you!

Server Settings > Default Language

Is that set to "English" or "utf8-english"?
Title: Re: SMF Gallery
Post by: God Of Mana on July 30, 2008, 04:12:40 PM
Quote from: ccbtimewiz on July 30, 2008, 03:00:45 PM
Quote from: God Of Mana on July 30, 2008, 02:58:33 PM
Quote from: ccbtimewiz on July 29, 2008, 05:27:56 PM
Quote from: God Of Mana on July 29, 2008, 05:21:35 PM
When I try to visit the gallery, it turns into this: http://attish.yfma.com/forums/gallery/

Whats up wit dat?

Appears to be a misconfiguration of the gallery link.

Open Admin > Gallery Configuration > "fix the URLs".

Is fix the url a option?  ;D , how do i fix em?

Erm bump


It's not an option, you have to follow the instructions written under it. Make the URLs like how they are suggested.

uhhh.. what instructions?

Title: Re: SMF Gallery
Post by: paisleyd on July 31, 2008, 10:29:28 PM
QuoteServer Settings > Default Language

Is that set to "English" or "utf8-english"?

it is set to english.

Title: Re: SMF Gallery
Post by: vbgamer45 on July 31, 2008, 11:13:19 PM
If you are using a custom theme you will need to copy the text to themes/yourcustomthemes/langauges/modifications.english.php
Title: Re: SMF Gallery
Post by: ccbtimewiz on July 31, 2008, 11:14:24 PM
Quote from: paisleyd on July 31, 2008, 10:29:28 PM
QuoteServer Settings > Default Language

Is that set to "English" or "utf8-english"?

it is set to english.


Does your theme have a /languages directory? To check, go to your theme in $smf_root/Themes/*theme_name*/ via FTP.
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

If it doesn't have it's own /languages directory, make sure all the $txt[] strings that this mod inputs in modifications.english.php in the $smf_root/Themes/default/languages/ directory are in there.
Title: Re: SMF Gallery
Post by: paisleyd on August 04, 2008, 07:37:05 PM
the text was in the default languages folder. not working.

tried creating a languages folder in the custom theme and placing it in there. still not working.
Title: Re: SMF Gallery
Post by: MeepZero on August 04, 2008, 07:59:03 PM
I'm still pretty new to working with all of this here. I'm getting the following error messages in my error log after installing the mod...

Apply Filter: Only show the errors with the same message
512: package_flush_cache(): some files are still not writable
File: D:\web_root\smf1\Sources\Subs-Package.php
Line: 1905

and...

Apply Filter: Only show the errors with the same message
2: fopen(D:\web_root\smf1/index.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: D:\web_root\smf1\Sources\Subs-Package.php
Line: 1901

and

2: file_get_contents(D:\web_root\smf1/Packages/temp/) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory
File: D:\web_root\smf1\Sources\Packages.php
Line: 558


What does this mean? I have added the write permissions to the files mentioned here, but I still get the errors.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 04, 2008, 09:34:11 PM
Not just the files but the folders as well.
Title: Re: SMF Gallery
Post by: MeepZero on August 04, 2008, 10:07:11 PM
Tried that, errors are still occurring. Any other ideas?
Title: Re: SMF Gallery
Post by: Kylezz on August 04, 2008, 11:58:18 PM
Very nice VB I am downloading now. Trying to make my forums as populaur as possible with all theese mods, and I post on theese so I do not be a leecher.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 05, 2008, 10:00:01 PM
Helpful posts are welcome. I support most of these mods in my free time.
Title: Re: SMF Gallery
Post by: REHK on August 10, 2008, 11:23:31 AM
Hi I have a small problem to sort out how ever my php aint to good :( my gallery is here http://finsforum.co.uk/index.php?action=gallery;cat=1 (http://finsforum.co.uk/index.php?action=gallery;cat=1) the background is nasty and makes the text hard to read :'( however if you select an image, it appears with a nice cream coloured background. I would like front page to have the same coloured background. How do i go about doing that ::)

Any help is greatly appriciated
Title: Re: SMF Gallery
Post by: Jimi_Hendrix on August 10, 2008, 12:52:05 PM
hi vbgamer45,

great mod ;-)

I have a problem:

I changed your mod, so that created 3 photos: (small, medium and large). I used to create the medium photo the same code that you used to create the thumb, but I have a photo too big ... where I can set the size of files?

the final result:
http://www.sanpietroinguarano.org/gallery.html

thank  ;)
Title: Re: SMF Gallery
Post by: Eyesman on August 14, 2008, 08:05:46 AM
PLEASE HELP

Hi all, I'm new in smf. I have an smf forum and I installed it through the forum's packages. (not a manual install) I have gave Writen permissions on the Gallery folder through my ftp client.

I have also created the categories but when I go to the link of my gallery I get this page:

Index of /forum/gallery

Name                    Last modified       Size  Description

Parent Directory        14-Aug-2008 07:37      - 
4_14_08_08_6_54_21.jpg  14-Aug-2008 07:54   338k 
placeholder.txt         14-Aug-2008 07:37     1k 
thumb_4_14_08_08_6_5..> 14-Aug-2008 07:54    15k 

Is there anything else I have to do??

Thanking you in adavnce!
Title: Re: SMF Gallery
Post by: Jeremy0001 on August 14, 2008, 10:14:04 AM
Is there a way to change the 4 character limit on searching in SMF Gallery Lite?  We have users searching for 3 characters and they are getting an error that the search needs to be more than 3 characters
Title: Re: SMF Gallery
Post by: vbgamer45 on August 14, 2008, 08:17:18 PM
Quote from: astroforum on August 14, 2008, 08:05:46 AM
PLEASE HELP

Hi all, I'm new in smf. I have an smf forum and I installed it through the forum's packages. (not a manual install) I have gave Writen permissions on the Gallery folder through my ftp client.

I have also created the categories but when I go to the link of my gallery I get this page:

Index of /forum/gallery

Name                    Last modified       Size  Description

Parent Directory        14-Aug-2008 07:37      - 
4_14_08_08_6_54_21.jpg  14-Aug-2008 07:54   338k 
placeholder.txt         14-Aug-2008 07:37     1k 
thumb_4_14_08_08_6_5..> 14-Aug-2008 07:54    15k 

Is there anything else I have to do??

Thanking you in adavnce!
Access via http://www.yourforum.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on August 14, 2008, 08:18:42 PM
Quote from: Jeremy0001 on August 14, 2008, 10:14:04 AM
Is there a way to change the 4 character limit on searching in SMF Gallery Lite?  We have users searching for 3 characters and they are getting an error that the search needs to be more than 3 characters
You would need to change the hardcoded limit in Sources/Gallery.php
Title: Re: SMF Gallery
Post by: Jeremy0001 on August 14, 2008, 09:16:24 PM
Thank you.

Worked like a charm.
Title: Re: SMF Gallery
Post by: Jeremy0001 on August 14, 2008, 09:17:00 PM
Is there a way to restrict the search to just the one gallery category?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 14, 2008, 09:25:23 PM
Not in the lite version. You could customize the query to force it to search to one category only based on ID_CAT
Title: Re: SMF Gallery
Post by: Eyesman on August 15, 2008, 05:07:56 AM
QuoteAccess via http://www.yourforum.com/index.php?action=gallery

When I'm accessing it from there and then go to permissions I see the permissions ONLY for the forum. I don't see the permissions for the gallery.  :(
Title: Re: SMF Gallery
Post by: Jeremy0001 on August 15, 2008, 09:29:44 AM
Quote from: vbgamer45 on August 14, 2008, 09:25:23 PM
Not in the lite version. You could customize the query to force it to search to one category only based on ID_CAT

Thank you.
Title: Re: SMF Gallery
Post by: Muse on August 15, 2008, 11:17:39 PM
This is my favorite mod, glad it's still around for my new forum!
Title: Re: SMF Gallery
Post by: Jeremy0001 on August 16, 2008, 12:03:09 AM

Quote from: vbgamer45 on August 14, 2008, 09:25:23 PM
Not in the lite version. You could customize the query to force it to search to one category only based on ID_CAT


ha ha..  I forgot to mention..  maybe you could.   lol
Title: Re: SMF Gallery
Post by: OldSwede on August 21, 2008, 04:05:01 PM
hi,
can´t find infos about the pro version if it can display "exif" info from uploaded pictures
Title: Re: SMF Gallery
Post by: ccbtimewiz on August 21, 2008, 05:20:58 PM
Quote from: OldSwede on August 21, 2008, 04:05:01 PM
hi,
can´t find infos about the pro version if it can display "exif" info from uploaded pictures

What exactly is "exif"?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 21, 2008, 07:55:42 PM
Quote from: OldSwede on August 21, 2008, 04:05:01 PM
hi,
can´t find infos about the pro version if it can display "exif" info from uploaded pictures
No it does not support exif information
Title: Re: SMF Gallery
Post by: mas-to on August 24, 2008, 11:07:46 AM
Hi,

I had apply this nice mod to my site, everything seems OK, but then I got this eror message when I try to show comment, edit, view, delete and unapprove picture :


"Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server. "


But all work well on my xampp, is there something wrong with my hosting server configuration? where it could be?

thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on August 24, 2008, 02:43:18 PM
Quote from: mas-to on August 24, 2008, 11:07:46 AM
Hi,

I had apply this nice mod to my site, everything seems OK, but then I got this eror message when I try to show comment, edit, view, delete and unapprove picture :


"Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server. "


But all work well on my xampp, is there something wrong with my hosting server configuration? where it could be?

thanks
That is an issue with mod_security
Title: Re: SMF Gallery
Post by: mas-to on August 24, 2008, 08:28:00 PM
Sorry, don't get your point. So you mean I coudn't use this mod for now?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 24, 2008, 08:38:38 PM
Check out this topic
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery
Post by: mas-to on August 25, 2008, 10:33:39 PM
ah... so thats the problem

thanks
Title: Re: SMF Gallery
Post by: annd on August 26, 2008, 03:24:33 AM
Hi
I get this,
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/Modifications.english-utf8.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test successful
6.    Execute Modification    ./Sources/Subs.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
8.    Extract File    ./Sources/Gallery.php    
9.    Extract File    ./Themes/default/Gallery.template.php    
10.    Extract Tree    ./gallery    
11.    Extract File    ./Themes/default/languages/Gallery.english.php    
12.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
13.    Execute Code    galleryinstall.php

I uninstall the mod, downloaded  again, install, same story
any suggestions?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 26, 2008, 08:05:31 AM
That should be ok as long as you are using english utf8 as a language.
Title: Re: SMF Gallery
Post by: istup on August 28, 2008, 06:56:04 AM
I had installed the mod but it is not working in my site...

I am using SMF 1.1.5
Theme: 2008

I editted colde also but it is not coming properly.

Could you pls help in this??
Title: Re: SMF Gallery
Post by: vbgamer45 on August 28, 2008, 10:13:53 PM
What part is not working?
Title: Re: SMF Gallery
Post by: istup on August 29, 2008, 12:49:17 AM
Hi

Gallery option is not working.. when i logged in..

Pls see the screenshot..

Also i attached screenshot of after editing the code..



Title: Re: SMF Gallery
Post by: mashby on August 29, 2008, 07:50:07 AM
You have to edit your index.template.php file because you are using a custom theme. As you can see from this URL, it's installed and working.
http://baronyindia.com/index.php?action=gallery
Title: Re: SMF Gallery
Post by: istup on August 29, 2008, 07:54:08 AM
Ya

After editing only it came but we faced alignment problem in menu bar as you seen in error1.jpg

If we want to correct the same what we have to do? ???

Can you pls quote the PhP code for the same? :D

Title: Re: SMF Gallery
Post by: mashby on August 29, 2008, 02:43:28 PM
Can you attach that index.template.php file here?
Title: Re: SMF Gallery
Post by: Chadrew on August 29, 2008, 03:14:45 PM
Is there a simple way to add alt tag (alternate text) to each image? Perhaps automatically use the picture description for it?

Are there plans to make the gallery use intermediate images of standard size, say, 640x480 800x600 pixels with a link to the image of high quality?

Is it possible to make the name to be displayed above the picture thumbnail?
Title: Re: SMF Gallery
Post by: mashby on August 29, 2008, 04:09:18 PM
Which version are you referring to? Lite or Pro?
Title: Re: SMF Gallery
Post by: Chadrew on August 29, 2008, 07:25:50 PM
Lite.
But if Pro has those 3 things, I'll probably get it.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 29, 2008, 08:10:39 PM
1. Nice idea thought about doing it but the issues occur users were to use quotes inside the title of the image it would break the html formating.

2. Have that in SMF Gallery 1.4 beta

3. Requires a template edit.
Title: Re: SMF Gallery
Post by: Chadrew on August 29, 2008, 09:45:50 PM
Quote from: vbgamer45 on August 29, 2008, 08:10:39 PM
1. Nice idea thought about doing it but the issues occur users were to use quotes inside the title of the image it would break the html formating.
I'm sure it's possible to strip the text of all special characters before using it :)

Thanks for info. I've modified the template in the following way (anything missing?):

echo '<tr>';
echo '<td align="center"><span class="smalltext"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">
<strong>' . $row['title'] . '</strong><br />
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" /></a><br />';
echo $txt['gallery_text_views'] . $row['views'] . '<br />';
echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
echo $txt['gallery_text_date'] . timeformat($row['date']) . '<br />';
echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['commenttotal'] . '</a>)<br />';
Title: Re: SMF Gallery
Post by: vbgamer45 on August 29, 2008, 10:21:26 PM
That looks good might want to put
<strong>' . $row['title'] . '</strong><br />
Before
<span class="smalltext">
Depending on how you want it to work/look
Title: Re: SMF Gallery
Post by: istup on August 30, 2008, 12:18:01 AM
Quote from: mashby on August 29, 2008, 02:43:28 PM
Can you attach that index.template.php file here?

Pls find attached index.template.php file for your easy ref..
Title: Re: SMF Gallery
Post by: Marcus Forsberg on August 30, 2008, 04:39:04 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: SMF Gallery
Post by: mashby on August 30, 2008, 09:42:46 AM
Quote from: istup on August 30, 2008, 12:18:01 AM
Quote from: mashby on August 29, 2008, 02:43:28 PM
Can you attach that index.template.php file here?

Pls find attached index.template.php file for your easy ref..
OK, I've edited your file. The only issue I can foresee is this bit of code:
<em class="gallery"></em>

I'm assuming that the other em classes all reference an image. You may need to edit your CSS for that theme to create a gallery em class. Look for one like this <em class="help"> and mimic what it's doing.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 30, 2008, 10:35:03 AM
Quote from: Nascar on August 30, 2008, 04:39:04 AM
Will this work whit 2.x?

And if not, will it do in the future?
Not currently waiting for SMF 2.0 final to be released.
Title: Re: SMF Gallery
Post by: lordtron on August 30, 2008, 08:46:18 PM
Is there a way to pull galleries from only a certain membergroup? Cause I know how to pull the galleries from all, but I can't do it from 1. I do a database query to pull the information.


Thanks for your help.
Title: Re: SMF Gallery
Post by: istup on August 31, 2008, 12:28:23 AM
Quote from: mashby on August 30, 2008, 09:42:46 AM
Quote from: istup on August 30, 2008, 12:18:01 AM
Quote from: mashby on August 29, 2008, 02:43:28 PM
Can you attach that index.template.php file here?

Pls find attached index.template.php file for your easy ref..
OK, I've edited your file. The only issue I can foresee is this bit of code:
<em class="gallery"></em>

I'm assuming that the other em classes all reference an image. You may need to edit your CSS for that theme to create a gallery em class. Look for one like this <em class="help"> and mimic what it's doing.


Thanks for your help it is working now...

I had edited the CSS style sheet to bring the icon but it is not working..

pls find the below code that i had changed


.pro15 li a em {display:block; float:left; width:25px; height:28px;}
.pro15 li a em.home {background:url(./images/img/home.png) no-repeat center center;}
.pro15 li a em.forum {background:url(./images/img/forum.png) no-repeat center center;}
.pro15 li a em.download {background:url(./images/img/download.png) no-repeat center center;}
.pro15 li a em.calendar {background:url(./images/img/calendar.png) no-repeat center center;}
.pro15 li a em.gallery {background:url(./images/img/gallery.png) no-repeat center center;}
.pro15 li a em.login {background:url(./images/img/login.png) no-repeat center center;}
.pro15 li a em.profile {background:url(./images/img/profile.png) no-repeat center center;}
.pro15 li a em.search {background:url(./images/img/search.png) no-repeat center center;}
.pro15 li a em.register {background:url(./images/img/register.png) no-repeat center center;}
.pro15 li a em.logout {background:url(./images/img/logout.png) no-repeat center center;}
.pro15 li a em.admin {background:url(./images/img/admin.png) no-repeat center center;}
.pro15 li a em.pm {background:url(./images/img/pm.png) no-repeat center center;}
.pro15 li a em.help {background:url(./images/img/help.png) no-repeat center center;}
.pro15 li a em.members {background:url(./images/img/members.png) no-repeat center center;}
Title: Re: SMF Gallery
Post by: istup on August 31, 2008, 05:19:17 AM
I had corrected image also..  Thanks..

I had one query

If we had more than 100 images shall we able to maintain pages like posts in forum..

display per page = 25 or 30 like that?

Tanks in advance
Title: Re: SMF Gallery
Post by: mashby on August 31, 2008, 11:34:18 AM
That type of functionality is available in the Pro version (as well as a bunch more features).
Title: Re: SMF Gallery
Post by: NOBLE on August 31, 2008, 12:10:49 PM
Hello,

I've noticed that quite a few people have had the Modifications.english-utf8.php file fail the test; however, both of my language files are failing the test. I'm currently using English as the default language, not English utf8. I am also using a custom theme that has a language folder, but the only file that's listed is Settings.english.php.

Install Actions
Installations actions for "SMF Gallery Lite":
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/Modifications.english-utf8.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test successful
6.    Execute Modification    ./Sources/Subs.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
8.    Extract File    ./Sources/Gallery.php    
9.    Extract File    ./Themes/default/Gallery.template.php    
10.    Extract Tree    ./gallery    
11.    Extract File    ./Themes/default/languages/Gallery.english.php    
12.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
13.    Execute Code    galleryinstall.php

The other mods that I currently have installed are as follows:

Mod Name     Version     
1.    TinyPortal    1.052    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF Arcade    2.0.13    [ Uninstall ] [ List Files ] [ Delete ]
4.    Custom Profile Field Mod    3.19    [ Uninstall ] [ List Files ] [ Delete ]

Thanks. :)
Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.
Title: Re: SMF Gallery (1.9 Released!)
Post by: 4b11l on September 01, 2008, 10:02:41 PM
Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Are the screenshots up to date on the front page and if upgrading from a previous version; do you recommend an uninstall and install again? Also, how about existing pictures/directories, will they stay in tack?
Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 01, 2008, 10:12:16 PM
Screenshots are not up to date.
I would recommend an uninstall then a reinstall. Uninstalling does not delete any of the pictures or data.
Title: Re: SMF Gallery (1.9 Released!)
Post by: Rafferty on September 01, 2008, 10:55:11 PM
Im confused, I'm running SMF Gallery Pro version 1.3.23, so is this not related to pro version?

Title: Re: SMF Gallery (1.9 Released!)
Post by: Sudhakar Arjunan on September 02, 2008, 01:46:27 AM
Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Excellent Updates.
But i have around 10000 plus images.

in last post you have mentioned that i could uninstall and install the latest, which will not affect the entire images and data.

Is that possible.
Title: Re: SMF Gallery (1.9 Released!)
Post by: Jimi_Hendrix on September 02, 2008, 04:31:47 AM
Quote from: Jimi_Hendrix on August 10, 2008, 12:52:05 PM
hi vbgamer45,

great mod ;-)

I have a problem:

I changed your mod, so that created 3 photos: (small, medium and large). I used to create the medium photo the same code that you used to create the thumb, but I have a photo too big ... where I can set the size of files?

the final result:
http://www.sanpietroinguarano.org/gallery.html

thank  ;)

???
Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 02, 2008, 08:40:11 AM
Quote from: Rafferty on September 01, 2008, 10:55:11 PM
Im confused, I'm running SMF Gallery Pro version 1.3.23, so is this not related to pro version?


Not related to the pro version.
Title: Re: SMF Gallery (1.9 Released!)
Post by: 4fit? on September 02, 2008, 02:58:05 PM
What file would I need to edit to adjust the error message received if an image exceeds the size restrictions?  Right now it just says something like below....
"Image exceeds size requirements. Your height was:  1341 Your width was: 900"

I would like to change if to something like....
"Image exceeds maximum size restrictions of [whatever specified in settings] high and [whatever specified in settings] wide.  Your height was:  1341 Your width was: 900"

I plan to also add a link to a free online image resizer underneath the error message as well.  I guess what I need to know is...
1 - What file contains the error message that I wish to edit?
2 - How do I reference the specified maximum settings to include in my revised error message?

Thanks for any help!
Title: Re: SMF Gallery (1.9 Released!)
Post by: Chadrew on September 02, 2008, 05:17:05 PM
Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Awesome update!
I've got a question about no 'Gallery' header when  a picture category is selected:

<td align="center">&nbsp</td>

Any logical reason in doing this? I thought normally you'd want a title there :)
Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 02, 2008, 08:21:50 PM
Quote from: Chadrew on September 02, 2008, 05:17:05 PM
Quote from: vbgamer45 on September 01, 2008, 05:32:23 PM
SMF Gallery 1.9 Released!
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.


Awesome update!
I've got a question about no 'Gallery' header when  a picture category is selected:

<td align="center">&nbsp</td>

Any logical reason in doing this? I thought normally you'd want a title there :)
The title is shown below the main header in the main picture table. It would be odd for it to be shown twice.
Title: Re: SMF Gallery (1.9 Released!)
Post by: 4fit? on September 03, 2008, 09:10:10 AM
Quote from: 4fit? on September 02, 2008, 02:58:05 PM
What file would I need to edit to adjust the error message received if an image exceeds the size restrictions?  Right now it just says something like below....
"Image exceeds size requirements. Your height was:  1341 Your width was: 900"

I would like to change if to something like....
"Image exceeds maximum size restrictions of [whatever specified in settings] high and [whatever specified in settings] wide.  Your height was:  1341 Your width was: 900"

I plan to also add a link to a free online image resizer underneath the error message as well.  I guess what I need to know is...
1 - What file contains the error message that I wish to edit?
2 - How do I reference the specified maximum settings to include in my revised error message?

Thanks for any help!

Nevermind.  Got it edited to do what I wanted.  Thanks for the great Gallery vbgamer45.
Title: Re: SMF Gallery (1.9 Released!)
Post by: 4fit? on September 03, 2008, 11:19:46 AM
On second thought, I would like to use the createThumbnail function to automatically resize the image is it falls outside of the maximum dimensions.  I figured that I would go about doing this:

Replace

elseif ((!empty($modSettings['gallery_max_width']) && $sizes[0] > $modSettings['gallery_max_width']) || (!empty($modSettings['gallery_max_height']) && $sizes[1] > $modSettings['gallery_max_height']))
{
//Delete the temp file
@unlink($_FILES['picture']['tmp_name']);
fatal_error($txt['gallery_error_img_size_height'] . $sizes[1] . $txt['gallery_error_img_size_width'] . $sizes[0],false);
}


With

elseif ((!empty($modSettings['gallery_max_width']) && $sizes[0] > $modSettings['gallery_max_width']) || (!empty($modSettings['gallery_max_height']) && $sizes[1] > $modSettings['gallery_max_height']))
{
require_once($sourcedir . '/Subs-Graphics.php');

createThumbnail($_FILES['picture']['tmp_name'], $modSettings['gallery_max_width'], $modSettings['gallery_max_height']);
rename($modSettings['gallery_path'] . $filename . '_thumb',  $_FILES['picture']['tmp_name']);
}


I also made a similar adjustment around line 779.  However, this is not working.  I will be the first to admit that I know practically nothing about PHP and it's workings.  Any guidance you could provide would be extremely appreciated!
Title: Re: SMF Gallery (1.9 Released!)
Post by: MaXiForum.cz on September 05, 2008, 10:00:24 AM
A very nice mod!
THX!

CZ translation HERE (http://www.maxiforum.cz/index.php?topic=18536)  ;)
Title: Re: SMF Gallery (1.9 Released!)
Post by: learjet45 on September 05, 2008, 10:35:12 PM
Just a quick question.
What directory would I find the 'Search' and 'MyImages' buttons so I can get them to show with my custom theme, and what folder should I put them in under my directory for my custom theme? I tried extracting it the the ./images/english/ folder but they arent showing up/
Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 05, 2008, 11:59:03 PM
Those are not buttons but actually Tabs built into the SMF core.
Title: Re: SMF Gallery (1.9 Released!)
Post by: learjet45 on September 06, 2008, 12:00:14 AM
Ah. Alright. Anyway to change it so it will show up on my theme? I'm using AA New Damage v2
Title: Re: SMF Gallery (1.9 Released!)
Post by: Nibogo on September 06, 2008, 01:29:56 PM
Nice update but maybe you can add something like lightbox for view big pictures.

I know of this is a feature of smf gallery pro but maybe you can include that feature in smf gallert free ^^
Title: Re: SMF Gallery (1.9 Released!)
Post by: lordtron on September 06, 2008, 03:20:00 PM
Is there a way to pull the last image's time per category?
Title: Re: SMF Gallery (1.9 Released!)
Post by: Nibogo on September 06, 2008, 10:18:55 PM
How i can have sub-categories ??
Title: Re: SMF Gallery (1.9 Released!)
Post by: okc2 on September 06, 2008, 11:07:44 PM
I added this mod in 1.1.5 am getting this error:
Quote8: Undefined index: image
File: /home/loganspr/public_html/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 788

Everything appears to be working OK, but getting a ton of these errors.
Title: Re: SMF Gallery (1.9 Released!)
Post by: lordtron on September 09, 2008, 01:55:48 PM
How would I be able to pull 4 galleries per row?
Title: Re: SMF Gallery (1.9 Released!)
Post by: TroyG on September 11, 2008, 10:46:34 AM
I keep get a errior in my logs, that I do not understand. Please help

The upload folder is full. Please try a smaller file and/or contact an administrator.

Title: Re: SMF Gallery (1.9 Released!)
Post by: vbgamer45 on September 11, 2008, 07:50:59 PM
That is not related to gallery but to attachments on your SMF forum.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 12, 2008, 12:51:21 AM
SMF Gallery 2.0 for SMF 2.0beta 4 Released!
+Updated for SMF 2.0
+New paging functions and settings to set how many items appear on a page!
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: CG Icon on September 12, 2008, 01:21:40 AM
Thank You Sir!.. awesome update !

I just did a quick scan of your site.. I didnt see a pro update that runs on smf2

do you have plans in the near future to update the Pro Version for those of us who have purchased it ? or are going to wait till the official final SMF2 release?

thanks again  :)
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: Bancherd on September 12, 2008, 05:27:19 AM
Quote from: vbgamer45 on September 12, 2008, 12:51:21 AM
SMF Gallery 2.0 for SMF 2.0beta 4 Released!
+Updated for SMF 2.0
+New paging functions and settings to set how many items appear on a page!

Alright!  I will check this out right away! :)

Having some problems with adding comment and setting Permission directly from gallery's own configuration page.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 12, 2008, 08:59:32 AM
Quote from: CG Icon on September 12, 2008, 01:21:40 AM
Thank You Sir!.. awesome update !

I just did a quick scan of your site.. I didnt see a pro update that runs on smf2

do you have plans in the near future to update the Pro Version for those of us who have purchased it ? or are going to wait till the official final SMF2 release?

thanks again  :)
That is going to be a while most likely final. I do have a testing version for Pro but still a while to go.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: learjet45 on September 12, 2008, 05:58:15 PM
Is 2.0 only for SMF 2.0? Just making sure before I go screw something up.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 12, 2008, 07:55:46 PM
Quote from: learjet45 on September 12, 2008, 05:58:15 PM
Is 2.0 only for SMF 2.0? Just making sure before I go screw something up.
Correct 2.0 is only for SMF 2.0
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: mcmoore on September 18, 2008, 01:49:59 AM
Permissions just jumps back to the main page: Running 2.0 Beta 4
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 18, 2008, 09:57:40 PM
Quote from: mcmoore on September 18, 2008, 01:49:59 AM
Permissions just jumps back to the main page: Running 2.0 Beta 4
Fixed that link for the next update.

You can still set the permissions by going to Admin -> Permissions then setting the permissions for each membergroup
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: PRaDiUS on September 20, 2008, 01:42:58 PM
Is there anyway to let members add categories to the gallery without giving them permission to manage the gallery?

Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 20, 2008, 03:19:52 PM
Quote from: pradius on September 20, 2008, 01:42:58 PM
Is there anyway to let members add categories to the gallery without giving them permission to manage the gallery?


Not for SMF Gallery Lite but inside SMF Gallery Pro they can their own personal gallery.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 21, 2008, 06:24:05 PM
Hi could somebody please help me. I am currently using version 1.1.6 using the theme dark4. I have installed the package but i could not see the "Gallery" link. I decided that i would open it on the package parser and did all what was said. After i did it i was able to see the "gallery" link but it was out of line and not the same font colour as everything else. Please can somebody help.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 21, 2008, 06:29:38 PM
Quote from: NEO-BAHAMUT- on September 21, 2008, 06:24:05 PM
Hi could somebody please help me. I am currently using version 1.1.6 using the theme dark4. I have installed the package but i could not see the "Gallery" link. I decided that i would open it on the package parser and did all what was said. After i did it i was able to see the "gallery" link but it was out of line and not the same font colour as everything else. Please can somebody help.
To fix copy a button from your theme that has the same format. Then just change the action = to gallery and text to gallery.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 21, 2008, 06:53:59 PM
sorry i don't really understand what to do could you help me in giving me a bit more detail. Sorry "NOOB HERE" :)

this is my new forum.... maybe you can help me by seeing it.

http://afcowlstalk.ulmb.com/index.php
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: jmil on September 21, 2008, 07:24:05 PM
I recently had my site hacked and I restored it completely with a new theme. Everything seems to be working except one thing. I can view the existing gallery fine, but when posting a new image - the title shows up but no picture. I can create new categories with no issue too.

When I looked at my files via ftp - the pictures are loading into the wrong file (root) and i double checked the link and it does properly show /gallery.

So i am stumped. I was thinking of uninstalling the gallery and reloading it from scratch but wonder what would happen to my current files and Categories - would they restore or would I loose everything.

Please help! I am not sure what file to attach for coding issues.

BTW - Using 1.1.6, Custom Theme, and Gallery 1.9
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 21, 2008, 07:54:26 PM
The gallery path should end in /gallery/
With the slash.

Check also your gallery url.  It should be http://www.yourforum.com/gallery/
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: jmil on September 21, 2008, 07:57:54 PM
YOu got to be kidding me - I missed a SLASH

LOL Works great SOLVED My Friends! TKS VB GAMER
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 21, 2008, 08:08:13 PM
what about me?
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 21, 2008, 09:11:38 PM
Post your index.template.php and I can check it out for that theme.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: Bec on September 22, 2008, 12:38:41 AM
just wondering if there is a way to upload photos quicker and easier rather than one by one? ive got heaps i need to upload and am hoping there is an easier way lol

thanks :)
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: mpforum on September 22, 2008, 12:40:51 AM
Great mod..... but.

The gallery is only visable to guests and admins, not members or moderators.

Any idea's?

Dean.
www.mpforum.com.au
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: Bec on September 22, 2008, 12:45:58 AM
mpforum, you need to change the permissions for each membergroup you have
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: mpforum on September 22, 2008, 01:06:16 AM
Which permissions need to be changed to enable the gallery?
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: mpforum on September 22, 2008, 01:07:43 AM
Sorry, got it.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: Bec on September 22, 2008, 01:10:42 AM
glad you got it was going to say you should at least check it out :)
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 22, 2008, 02:15:57 AM
Hi as requested here is my index.template.php

I hope this works. If not just let me know.

Thanks.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 22, 2008, 03:02:09 PM
vbgamer - Any luck with editing the file mate?
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 22, 2008, 07:39:28 PM
The attached file was zero bytes empty.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: Bec on September 22, 2008, 08:16:34 PM
Quote from: Bec on September 22, 2008, 12:38:41 AM
just wondering if there is a way to upload photos quicker and easier rather than one by one? ive got heaps i need to upload and am hoping there is an easier way lol

thanks :)

Bumping my post, so it doesnt get lost :)
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: NEO-BAHAMUT- on September 22, 2008, 08:25:40 PM
vbgamer... my code for index is below.
<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;
echo 
'
</head>
 <body>
  <div id="wrapper"/>
  <div id="header">
  <div id="head-l">
 <div id="head-r">
 <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$context['current_time'],'<br /><br />';
}
echo '
</div>
  <div id="searcharea">'
;
echo '
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input class="inputbox" type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</div>

<a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
  <div id="navb">
<div id="navb-l">
 <div id="navb-r">
 <div id="navarea">
'
,template_menu(),'
 </div> </div> </div> </div> <br /><br />
  <div id="mainarea">
<div id="sag">
 <div id="sol">
  <div id="alt">
<div id="altsag">
 <div id="altsol">
  <div id="ust">
<div id="ustsag">
 <div id="ustsol">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

  echo '
</div>
  </div>
 </div>
</div>
  </div>
 </div>
</div>
  </div>
 </div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
     <div id="footer">
        <div id="footer-l">
            <div id="footer-r">
<div id="footerarea">
<span class="smalltext">'
theme_copyright(), '<br /><font color="#454545">Theme </font><font color="#6E0101"><b>Dark4 By</b></font> <a href="http://www.fussilet.com" target="_blank">Fussilet</a></span>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p align="center"><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span></p>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
  </div>
 </div>
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
echo 
'
 </body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 0ex; padding-bottom: 0ex; padding-left: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;|&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('forum''search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';

$last 'last';
}

// Show the start of the tab section.
echo '
<div id="menu">
<ul>'
;
// Show the [home] button.
echo '<li><a' $current_action=='home' ' class="current"' '' ' href="'$scripturl'"><span>' $txt[103] , '</span></a></li>';

// Show the [help] button.
echo '<li><a' $current_action=='help' ' class="current"' '' ' href="'$scripturl'?action=help"><span>' $txt[119] , '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="current"' '' ' href="'$scripturl'?action=search"><span>' $txt[182] , '</span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="current"' '' ' href="'$scripturl'?action=calendar"><span>' $txt['calendar24'] , '</span></a></li>'

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' $current_action=='admin' ' class="current"' '' ' href="'$scripturl'?action=admin"><span>' $txt[2] , '</span></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="current"' '' ' href="'$scripturl'?action=profile"><span>' $txt[79] , '</span></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="current"' '' ' href="'$scripturl'?action=pm"><span>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' $current_action=='mlist' ' class="current"' '' ' href="'$scripturl'?action=mlist"><span>' $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='login' ' class="current"' '' ' href="'$scripturl'?action=login"><span>' $txt[34] , '</span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='register' ' class="current"' '' ' href="'$scripturl'?action=register"><span>' $txt[97] , '</span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="current"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><span>' $txt[108] , '</span></a></li>';

echo '
</ul>
</div>'
;

}
// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td> </td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '"> </td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode('  |  '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '"> </td>';
}

?>
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 22, 2008, 08:44:36 PM
Quote from: Bec on September 22, 2008, 08:16:34 PM
Quote from: Bec on September 22, 2008, 12:38:41 AM
just wondering if there is a way to upload photos quicker and easier rather than one by one? ive got heaps i need to upload and am hoping there is an easier way lol

thanks :)

Bumping my post, so it doesnt get lost :)
No easier way with the lite edition of the gallery currently.
Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 22, 2008, 08:54:57 PM
Quote from: NEO-BAHAMUT- on September 22, 2008, 08:25:40 PM
vbgamer... my code for index is below.
Fixed code here

<?php
// Version: 1.1; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
   global 
$context$settings$options$txt;

   
/* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   
$settings['use_default_images'] = 'never';

   
/* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   
$settings['doctype'] = 'xhtml';

   
/* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   
$settings['theme_version'] = '1.1.4';

   
/* Set a setting that tells the theme that it can render the tabs. */
   
$settings['use_tabs'] = true;

   
/* Use plain buttons - as oppossed to text buttons? */
   
$settings['use_buttons'] = true;

   
/* Show sticky and lock status seperate from topic icons? */
   
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
   global 
$context$settings$options$scripturl$txt$modSettings;

   
// Show right to left and the character set for ease of translating.
   
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
   <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
   <meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
   <meta name="robots" content="noindex" />'
'
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "'
$settings['theme_url'], '";
      var smf_images_url = "'
$settings['images_url'], '";
      var smf_scripturl = "'
$scripturl'";
      var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
      var smf_charset = "'
$context['character_set'], '";
   // ]]></script>
   <title>'
$context['page_title'], '</title>';

   
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   
echo '
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

   
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   
if ($context['browser']['needs_size_fix'])
      echo 
'
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

   
// Show all the relative links, such as help, search, contents, and the like.
   
echo '
   <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
   <link rel="search" href="' 
$scripturl '?action=search" />
   <link rel="contents" href="'
$scripturl'" />';

   
// If RSS feeds are enabled, advertise the presence of one.
   
if (!empty($modSettings['xmlnews_enable']))
      echo 
'
   <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

   
// If we're viewing a topic, these should be the previous and next topics, respectively.
   
if (!empty($context['current_topic']))
      echo 
'
   <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

   
// If we're in a board, or a topic for that matter, the index will be the board's index.
   
if (!empty($context['current_board']))
      echo 
'
   <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

   
// We'll have to use the cookie to remember the header...
   
if ($context['user']['is_guest'])
      
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

   
// Output any remaining HTML headers. (from mods, maybe?)
   
echo $context['html_headers'], '
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

      function shrinkHeader(mode)
      {'
;

   
// Guests don't have theme options!!
   
if ($context['user']['is_guest'])
      echo 
'
         document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
   else
      echo 
'
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>'
;

   
// the routine for the info center upshrink
   
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

         function shrinkHeaderIC(mode)
         {'
;

   if (
$context['user']['is_guest'])
      echo 
'
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
   else
      echo 
'
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>'
;
echo 
'
</head>
 <body>
  <div id="wrapper"/>
     <div id="header">
        <div id="head-l">
    <div id="head-r">
          <div id="userarea">'
;
   if (
$context['user']['is_logged'])
   {
      echo 
'<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

      
// Only tell them about their messages if they can read their messages!
      
if ($context['allow_pm'])
         echo 
$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

      echo 
'<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

   }
   
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   
else
   {
      echo 
'            
      '
$txt['welcome_guest'], '
      <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
      <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
         <input type="text" name="user"  size="10" />
         <input type="password" name="passwrd"  size="10" />
         <input type="submit" value="'
$txt[34], '" />
         <input type="hidden" name="hash_passwrd" value="" />
      </form>'
$context['current_time'],'<br /><br />';
   }
   echo 
'
   </div>
     <div id="searcharea">'
;
            echo 
'
               <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
                  <input class="inputbox" type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" />';

            
// Search within current topic?
               
if (!empty($context['current_topic']))
               echo 
'
                  <input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
   
            
// If we're on a certain board, limit it to this board ;).
               
elseif (!empty($context['current_board']))
               echo 
'
                  <input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

               echo 
'
               </form>
         </div>

      <a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
      echo 
'
     </div>       
    </div>
   </div>
     <div id="navb">
   <div id="navb-l">
    <div id="navb-r">
             <div id="navarea">
      '
,template_menu(),'
          </div> </div> </div> </div> <br /><br />
     <div id="mainarea">
      <div id="sag">
       <div id="sol">
        <div id="alt">
      <div id="altsag">
       <div id="altsol">
        <div id="ust">
         <div id="ustsag">
          <div id="ustsol">'
;
}

function 
template_main_below()
{
   global 
$context$settings$options$scripturl$txt;

        echo 
'   
               </div>
           </div>
             </div>
            </div>
              </div>
             </div>
            </div>
              </div>
             </div>'
;

   
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   
echo '
        <div id="footer">
           <div id="footer-l">
               <div id="footer-r">
         <div id="footerarea">
            <span class="smalltext">'
theme_copyright(), '<br /><font color="#454545">Theme </font><font color="#6E0101"><b>Dark4 By</b></font> <a href="http://www.fussilet.com" target="_blank">Fussilet</a></span>';
            
      
// Show the load time?
   
if ($context['show_load_time'])
      echo 
'
      <p align="center"><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span></p>';

   
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
   
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
   {
      
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
      
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

      
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
      
if ($context['browser']['is_safari'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
                  codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
            }
         }'
;
      elseif (
$context['browser']['is_firefox'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);
         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
                  codeFix[i].style.overflow = "scroll";
            }
         }'
;         
      else
         echo 
'
         var window_oldOnload = window.onload;
         window.onload = smf_codeFix;

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = codeFix.length - 1; i > 0; i--)
            {
               if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
                  codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
            }

            if (window_oldOnload)
            {
               window_oldOnload();
               window_oldOnload = null;
            }
         }'
;

      echo 
'
      // ]]></script>'
;
   }

   echo 
'
         </div>
        </div>
       </div>
      </div>'
;

   
// The following will be used to let the user know that some AJAX process is running
   
echo '
   <div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
echo 
'
 </body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global 
$context$settings$options;

   echo 
'<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 0ex; padding-bottom: 0ex; padding-left: 2ex;">';

   
// Each tree item has a URL and name. Some may have extra_before and extra_after.
   
foreach ($context['linktree'] as $link_num => $tree)
   {
      
// Show something before the link?
      
if (isset($tree['extra_before']))
         echo 
$tree['extra_before'];

      
// Show the link, including a URL if it should have one.
      
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

      
// Show something after the link...?
      
if (isset($tree['extra_after']))
         echo 
$tree['extra_after'];

      
// Don't show a separator for the last one.
      
if ($link_num != count($context['linktree']) - 1)
         echo 
'&nbsp;|&nbsp;';
   }

   echo 
'</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global 
$context$settings$options$scripturl$txt;

   
// Work out where we currently are.
   
$current_action 'home';
   if (
in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
      
$current_action 'admin';
   if (
in_array($context['current_action'], array('gallery','forum''search''admin''calendar''profile''mlist''register''login''help''pm')))
      
$current_action $context['current_action'];
   if (
$context['current_action'] == 'search2')
      
$current_action 'search';
   if (
$context['current_action'] == 'theme')
      
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

   
// Are we using right-to-left orientation?
   
if ($context['right_to_left'])
   {
      
$first 'last';
      
$last 'first';
   }
   else
   {
      
$first 'first';

      
$last 'last';
   }

   
// Show the start of the tab section.
   
echo '
      <div id="menu">
         <ul>'
;
            
// Show the [home] button.
               
echo '<li><a' $current_action=='home' ' class="current"' '' ' href="'$scripturl'"><span>' $txt[103] , '</span></a></li>';

            
// Show the [help] button.
               
echo '<li><a' $current_action=='help' ' class="current"' '' ' href="'$scripturl'?action=help"><span>' $txt[119] , '</span></a></li>';

            
// How about the [search] button?
            
if ($context['allow_search'])
               echo 
'<li><a' $current_action=='search' ' class="current"' '' ' href="'$scripturl'?action=search"><span>' $txt[182] , '</span></a></li>';

            
// The [calendar]!
            
if ($context['allow_calendar'])
               echo 
'<li><a' $current_action=='calendar' ' class="current"' '' ' href="'$scripturl'?action=calendar"><span>' $txt['calendar24'] , '</span></a></li>'

            
// Is the user allowed to administrate at all? ([admin])
            
if ($context['allow_admin'])
               echo 
'<li><a' $current_action=='admin' ' class="current"' '' ' href="'$scripturl'?action=admin"><span>' $txt[2] , '</span></a></li>';

            
// Edit Profile... [profile]
            
if ($context['allow_edit_profile'])
               echo 
'<li><a' $current_action=='profile' ' class="current"' '' ' href="'$scripturl'?action=profile"><span>' $txt[79] , '</span></a></li>';

            
// Go to PM center... [pm]
            
if ($context['user']['is_logged'] && $context['allow_pm'])
               echo 
'<li><a' $current_action=='pm' ' class="current"' '' ' href="'$scripturl'?action=pm"><span>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></a></li>';

  
 // the [gallery] button
            
if ($context['allow_smfgallery_view'])
               echo 
'<li><a ' $current_action=='gallery' ' class="current"' '' ' href="'$scripturl'?action=gallery"><span>gallery</span></a></li>';

               
            
// the [member] list button
            
if ($context['allow_memberlist'])
               echo 
'<li><a ' $current_action=='mlist' ' class="current"' '' ' href="'$scripturl'?action=mlist"><span>' $txt[331] , '</span></a></li>';

            
// If the user is a guest, show [login] button.
            
if ($context['user']['is_guest'])
               echo 
'<li><a ' $current_action=='login' ' class="current"' '' ' href="'$scripturl'?action=login"><span>' $txt[34] , '</span></a></li>';

            
// If the user is a guest, also show [register] button.
            
if ($context['user']['is_guest'])
               echo 
'<li><a ' $current_action=='register' ' class="current"' '' ' href="'$scripturl'?action=register"><span>' $txt[97] , '</span></a></li>';

            
// Otherwise, they might want to [logout]...
            
if ($context['user']['is_logged'])
               echo 
'<li><a ' $current_action=='logout' ' class="current"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><span>' $txt[108] , '</span></a></li>';

   echo 
'
         </ul>
      </div>'
;

}
// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
   global 
$settings$buttons$context$txt$scripturl;

   
// Create the buttons...
   
foreach ($button_strip as $key => $value)
   {
      if (isset(
$value['test']) && empty($context[$value['test']]))
      {
         unset(
$button_strip[$key]);
         continue;
      }
      elseif (!isset(
$buttons[$key]) || $force_reset)
         
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

      
$button_strip[$key] = $buttons[$key];
   }

   if (empty(
$button_strip))
      return 
'<td> </td>';

   echo 
'
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '"> </td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode('  |  '$button_strip) , '</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '"> </td>';
}

?>

Title: Re: SMF Gallery (2.0 Released! For SMF 2.0beta4)
Post by: vbgamer45 on September 23, 2008, 11:39:23 PM
Version 2.0.1 and 1.9.1 Now With Pretty Url's modification support!
+Added support for Pretty Url's modification! For categories and pictures.
!Fixed issue with themes that do not have tabs uses text link in that case.
!Fixed a couple broken tags on adding/editing picture.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Jimi_Hendrix on September 25, 2008, 06:27:58 AM
Quote from: Jimi_Hendrix on September 02, 2008, 04:31:47 AM
Quote from: Jimi_Hendrix on August 10, 2008, 12:52:05 PM
hi vbgamer45,

great mod ;-)

I have a problem:

I changed your mod, so that created 3 photos: (small, medium and large). I used to create the medium photo the same code that you used to create the thumb, but I have a photo too big ... where I can set the size of files?

the final result:
http://www.sanpietroinguarano.org/gallery.html

thank  ;)

???
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: zach21uk on September 27, 2008, 09:33:22 AM
Hey there,

Is there any code I can add to the Gallery to enable a NEXT and BACK button when viewing images, so that a user does not have to go back out to the Gallery Index to Move to the Next Photo?

I am using the 2.0 Beta 4 Edition

Many Thanks
Zach
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: maja01 on September 27, 2008, 09:55:55 AM
Hi guys ... I need help.
I am one more who is having problems with aligning and visibility of the gallery "button" on the main page. I somehow managed to make it visible (thnx to you), but now i have no idea how to place it in the same row as other buttons are.
And one more thing ... in wich file i have to translate the "gallery" into the "Galerija" (slovene word for gallery).
I attach the index.template file and a screenshot of the page.

Thanx in advance, Maja
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on September 27, 2008, 10:08:23 AM
Quote from: maja01 on September 27, 2008, 09:55:55 AM
Hi guys ... I need help.
I am one more who is having problems with aligning and visibility of the gallery "button" on the main page. I somehow managed to make it visible (thnx to you), but now i have no idea how to place it in the same row as other buttons are.
And one more thing ... in wich file i have to translate the "gallery" into the "Galerija" (slovene word for gallery).
I attach the index.template file and a screenshot of the page.

Thanx in advance, Maja
Fixed file attached.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: maja01 on September 27, 2008, 10:33:29 AM
Thank you verrrry much!  :-*
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sakae on September 27, 2008, 11:05:28 AM
Quote from: vbgamer45 on September 23, 2008, 11:39:23 PM
Version 2.0.1 and 1.9.1 Now With Pretty Url's modification support!
+Added support for Pretty Url's modification! For categories and pictures.
!Fixed issue with themes that do not have tabs uses text link in that case.
!Fixed a couple broken tags on adding/editing picture.

Hey vbgamer, I think there is a problem with this upgrade. I did all fine, and when I tried to turn it on the SMF Gallery Pretty URL function, got error 500 on my server.

When I saw what could happened, I found the error: My new .htaccess had this line (when I deleted it, site was back online).

Quote#   Rules for: smf-gallery-lite
Array
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on September 27, 2008, 11:47:21 AM
Strange I used on my test forum ok. Did the mod install completely? Also what version of pretty urls are you running?
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sakae on September 27, 2008, 12:17:30 PM
The line is supposed to be like this? "Array"?

I use Pretty URLs - Base v0.8.4
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on September 27, 2008, 12:19:45 PM
That could be it I tested on 0.9 of Pretty Urls.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sakae on September 27, 2008, 12:35:29 PM
Oh, ok. I'm upgrading Pretty URL right away. Where can I download the Pretty URL 0.9? I don't see a BASE download on this mod website (http://code.google.com/p/prettyurls/downloads/list)

If you know Dannii, you could ask him to update the MOD page on SMF website: http://custom.simplemachines.org/mods/index.php?mod=636
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: zach21uk on September 27, 2008, 01:03:29 PM
Quote from: zach21uk on September 27, 2008, 09:33:22 AM
Hey there,

Is there any code I can add to the Gallery to enable a NEXT and BACK button when viewing images, so that a user does not have to go back out to the Gallery Index to Move to the Next Photo?

I am using the 2.0 Beta 4 Edition

Many Thanks
Zach

Bumping
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on September 27, 2008, 01:06:56 PM
No code yet for that in the lite have it the pro edition. Will check it will work for this version.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: nwobhm on September 27, 2008, 04:59:29 PM
Quote from: okc2 on September 06, 2008, 11:07:44 PM
I added this mod in 1.1.5 am getting this error:
Quote8: Undefined index: image
File: /home/loganspr/public_html/Themes/default/languages/Gallery.english.php (main sub template - eval?)
Line: 788

Everything appears to be working OK, but getting a ton of these errors.
I get this kind of error too, but I think it appears on the babylon theme only.
I'm using smf 1.1.6 and gallery version 1.8.2.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on September 27, 2008, 05:43:38 PM
Will get that fixed for next update since that theme does not have tabs

Fixed that issue
In SMF Gallery 1.9.2 and SMF Gallery 2.0.2
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Soms on September 29, 2008, 02:35:07 AM
Cool!
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: emonk on September 29, 2008, 01:45:51 PM
Hey, hi, good mod, but can you make a slide show? or a simples buttons "< previous next >" in the show picture page?
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Muldoon on October 04, 2008, 02:22:37 AM
I was hoping someone could post a link to their website so I could see SMF Gallery in action...  I'm thinking about using it but would like to see how it works.  Also is there difference between SMF Gallery and SMF Gallery Lite?

Thanks guys,
Muldoon
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mathmission on October 06, 2008, 10:43:04 PM
Hi there. Have this mod installed and it works great. Just installed a new theme called Note, and the buttons follow this form:

// Show the [Blogs] button.
    echo '<li', $current_action == 'blog' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=blog">' , $txt['b1a'] , '</a></li>';


I'm running 1.1.6, can you help me out with code that I can use to insert a button into this theme?
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 07, 2008, 12:12:27 AM
Please attach your index.template.php and I can add the code to it.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mathmission on October 07, 2008, 09:21:55 AM
Attached.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 08, 2008, 07:12:02 PM
Quote from: mathmission on October 07, 2008, 09:21:55 AM
Attached.
File attached
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mathmission on October 08, 2008, 11:14:29 PM
This is the code you added, as well as the code before it:

/ Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li', $current_action == 'pm' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<blink> '. $context['user']['unread_messages'] . ' </blink>]' : '' , '</a></li>';

if ($context['allow_smfgallery_view'])
echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery">' , $txt['pm_short'] , '</a></li>';


The button works, and takes me to the gallery, but the button's text reads "My Messages" which is the button right before it.
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mashby on October 08, 2008, 11:24:12 PM
Try this one.
:)
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mathmission on October 09, 2008, 09:56:37 AM
That worked! Very good! Thanks! I will be starting a new site soon with the same theme. Can I just copy the code you entered in the button area and have that work again, or did you add anything else in the index.template.php file?
Title: Re: SMF Gallery (2.0.1 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: mashby on October 09, 2008, 11:37:08 PM
I only edited the button code, specifically the language string. So, if you install this mod, the button code in the index.template.php file attached above should work just fine.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 10, 2008, 10:18:28 PM
Released a new update

For SMF Gallery 1.9.3 and 2.0.3
!Fixed issue on some hosts where it could not use getimagesize in the php temp folder.
!Fixed the category theme link when viewing an image.
!Fixed a Pretty Url filter bug with the add picture link
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: genieuk on October 11, 2008, 06:40:39 AM
Hi,

I have SMF Gallery installed Version 1.9.2,

Do i have to uninstall previous first? ifso how do i backup category names and pictures? as i have pictures and categories i done alot with and dont want to loos. MY site is gone live today so dont want to screw anything up.

When uninstalling will it remove pictures etc, please explain

thank you,
Mathew
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 11, 2008, 10:00:49 AM
You would uninstall the previous version then install the new version.
When you uninstall it does not delete pictures or category information so everything will be the same.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: genieuk on October 11, 2008, 10:33:06 AM
Hi,

Thanks for replying.

I just went to uninstall so i could install new version and it says

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

Why would there be an error for uninstall? as my site is heavly modded but it installed perfectly without problems, does that mean i will have to manually remove code from modifications.english.php?

Thanks you,
Mathew
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 11, 2008, 12:16:37 PM
That is ok to fail. That happens because a lot of modifications install to modifications.english.php and currently there is not a good way in SMF to add and remove to that file.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: genieuk on October 11, 2008, 12:30:17 PM
Yeah,

Thank you,

I went like a breeze :) So happy it did plus the modifications.english.php file is probably the easiest file of all so no problems.

Thank you Very Much,

Mathew
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: dno on October 11, 2008, 03:00:25 PM
I'm trying to get SMF Gallery 1.9.3 working. The install went fine on my local windows server, but I'm having a little trouble on my live windows server. It seems like it could be a permissions issue but I thought I had everything set.

I'm using SMF 1.1.6 on a windows server the mod appeared to have installed through the administration section but I have a couple of problems.

1. The gallery menu does not show up on the live server, it did on the local server.

2. Thumbnails show up as broken links on the live server, clicking through the image uploaded photo is there and shows up fine.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 11, 2008, 03:19:38 PM
1. Check your language settings under admin -> Server Settings should be set to just english.  If you are using a custom theme other than the default requires an edit to the index.template.php of that theme.

2. Check that you have GD installed under Admin -> Support and Credits  GD should be listed there.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 11, 2008, 03:54:35 PM
Am going to upgrade my smf gallery.

could i upload and just install 1.9.3 over my earlier version.

Will this disturb any images which is already loaded. Hope i have more that 4000 + images.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 11, 2008, 03:58:30 PM
You can do but it will will create two buttons on index.template.php of the default theme and is not recommend. I would suggest to uninstall.
Uninstalling and installing does not modify any images or image gallery data.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 11, 2008, 04:05:18 PM
No that was a very tough job.

If its going to be only two button, you give me some code to cut it down. Because, i hope uninstall and install will be a very risky work.

If you have time, will you do it for me . Provided you will have the access to our portal.

Thanks in Advance Vbgamer45.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Minare on October 11, 2008, 04:07:56 PM
I want to show recently uploaded images or random images on main forum page

How can I do this , anyone can help me ?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 11, 2008, 04:30:17 PM
I have tried to uninstall Gallery 1.8.1

And see the status,

Uninstall Actions "SMF Gallery Lite":
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 failed
4.   Execute Modification   ./Themes/default/index.template.php   Test failed
5.   Execute Modification   ./Sources/Subs.php   Test failed
6.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 11, 2008, 04:43:45 PM
Quote from: vbgamer45 on October 11, 2008, 03:58:30 PM
You can do but it will will create two buttons on index.template.php of the default theme and is not recommend. I would suggest to uninstall.
Uninstalling and installing does not modify any images or image gallery data.

Hi i have upgraded it ,
The works were really great and very impressive.

Will manually remove the button on index.template page.

You have to teach me how could i use ssi to show the last 5 and random 5 images inside my gallery page.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: dno on October 11, 2008, 05:14:54 PM
I have verified that english is my default language, I don't see any other languages listed. I'm using a variation of the default theme, a search for "gallery" showed some code differences, so that looks like it helps me understand where that menu is generated from. Once I get the thumbnail issue taken care of, I will make the menu changes.

I did verify that I have GD Listed (GD version: bundled (2.0.34 compatible))

If I had to go by what I see in the gallery folder on my local server it seems to require only a single image so the thumbnail is drawn from the same image as the full size photo. Based on what I see in the gallery_pic table a seperate thumbnail image should have been generated.

On the live server in the gallery folder the temp files show up which does not happen on the local server. If I had to guess those were suppose to be deleted which led me to believe it was a permission issue. The photo does upload, and can be viewed when you click through to it. My guess is it needed delete permissions set to remove the temp files and as far as I can tell delete permissions are set ( I could be wrong )

My guess is I would be better off running this stuff off Linux but due to the rest of the (non-rurm) site being ASP I don't have much interest in rewritting everything else to PHP.

Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: genieuk on October 12, 2008, 07:22:18 PM
Hi,

Noticed something.

I notice if i need to uninstall if for example you done another update i would have to unistall it all manually as the uninstall button is not showing?

Mathew
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 12, 2008, 11:17:42 PM
Quote from: dno on October 11, 2008, 05:14:54 PM
I have verified that english is my default language, I don't see any other languages listed. I'm using a variation of the default theme, a search for "gallery" showed some code differences, so that looks like it helps me understand where that menu is generated from. Once I get the thumbnail issue taken care of, I will make the menu changes.

I did verify that I have GD Listed (GD version: bundled (2.0.34 compatible))

If I had to go by what I see in the gallery folder on my local server it seems to require only a single image so the thumbnail is drawn from the same image as the full size photo. Based on what I see in the gallery_pic table a seperate thumbnail image should have been generated.

On the live server in the gallery folder the temp files show up which does not happen on the local server. If I had to guess those were suppose to be deleted which led me to believe it was a permission issue. The photo does upload, and can be viewed when you click through to it. My guess is it needed delete permissions set to remove the temp files and as far as I can tell delete permissions are set ( I could be wrong )

My guess is I would be better off running this stuff off Linux but due to the rest of the (non-rurm) site being ASP I don't have much interest in rewritting everything else to PHP.


I use windows servers myself to do all the testing. What files are created in gallery folder?

When image is uploaded the original file is uploaded and thumbnail image is created.

Has the same filename for the thumbnail image except with a thumb_ in front.

I would also check under Admin -> Forum errors for any related errors.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: BYUFanatic on October 13, 2008, 01:20:18 AM
Any plans to add the ability to upload/view videos or will this be images only?

Rob
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 13, 2008, 08:42:28 PM
Quote from: BYUFanatic on October 13, 2008, 01:20:18 AM
Any plans to add the ability to upload/view videos or will this be images only?

Rob
Currently SMF Gallery lite is images only I do have an addon for the pro edition that allows videos.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: psynx on October 14, 2008, 05:38:34 AM
hello,

im using this package but i want to make some modifications with it. but i dont know how. i want filename be seen by my members in addition to comments and views in the gallery. i want filesize and date uploaded unseen. maybe the link below will explain further. thanks.

http://d.imagehost.org/0694/REPORT2.jpg (http://d.imagehost.org/0694/REPORT2.jpg)
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Minare on October 14, 2008, 08:37:08 AM
Quote from: Minare on October 11, 2008, 04:07:56 PM
I want to show recently uploaded images or random images on main forum page

How can I do this , anyone can help me ?

Sorry for being a pain, vbgamer, I searched this but had no result so far

Is this possible ?

Thanks.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 14, 2008, 01:51:31 PM
Hi VB Gamer45,

I have a clean smf 2.0.4,

After install once i click the gallery configuration page on admin shows me a small error at the top like this "?>"

And on the forum gallery page, it shows like this "?>" on top left.

Any suggestion to clear it.

And earlier i was using 1.1.6, how could i import all photos and categories from it.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 15, 2008, 12:11:04 PM
Hi VB Gamer45,

Our SMF Tech have helped me to transfer my gallery page from smf 1.1.6 to smf 2.0.4 beta.

Now i got the gallery shows the category and when i click on each category, it shows load error.

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 '' at line 5
File: /home/itacumen/public_html/forumname/Sources/Load.php(1956) : eval()'d code
Line: 243
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 15, 2008, 09:29:33 PM
The uploaded images do not show.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi38.tinypic.com%2F2ewl1j6.png&hash=2222daabf99ae5dda87b3dc055cc2b96ae2f52c5)

Only things I have done is upload the gallery files and then install it and configured in the ACP. Anything else that is needed to be done?

I currently can only use it on the core theme, but am getting it for Grungy theme. Can anyone help me as to why its not showing?

Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 15, 2008, 09:35:18 PM
I would check that that admin cp that the gallery url and gallery path are correct.

Check that pictures are created in the gallery folder.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 15, 2008, 09:37:36 PM
What should the urls exactly be set to? when i installed it, they were already filled in.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 15, 2008, 09:39:02 PM
gallery url http://www.yourforum.com/gallery/

For path should match the path found under Server Settings for Sources
Expect instead of Sources/  it would be gallery/
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 15, 2008, 09:40:21 PM
Ok I have the gallery url right, this is what I have for the path:

/www/vndv.com/d/e/c/decayedads/htdocs/forum/gallery/
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 15, 2008, 11:14:14 PM
Looks ok next I would check the forum's error log.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 15, 2008, 11:18:38 PM
I am getting these errors:

http://decayedads.vndv.com/forum/index.php?action=gallery&amp;sa=add2 
2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: SAFE MODE Restriction in effect. The script whose uid is 59731 is not allowed to access /www/vndv.com/d/e/c/decayedads/htdocs/forum/gallery owned by uid 2001
File: /www/vndv.com/d/e/c/decayedads/htdocs/forum/Sources/Gallery.php
Line: 627

2: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Unable to access /www/vndv.com/d/e/c/decayedads/htdocs/forum/gallery/1_15_10_08_3_00_46.jpg
File: /www/vndv.com/d/e/c/decayedads/htdocs/forum/Sources/Subs-Graphics.php
Line: 242
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 15, 2008, 11:24:22 PM
Yeah that is the issue caused by SAFE Mode in php.

Are you able to upload other files such as attachment smileys normally.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 15, 2008, 11:29:10 PM
Yeah, I actually just added 2 sets of smileys like 30minutes ago.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 16, 2008, 12:44:19 AM
What version of the gallery are you running?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Qayyom Ashraf on October 16, 2008, 01:30:47 AM
I want to add "Add Picture" or "Upload" button with "My Images" and "Search" Buttons on top of Gallery Section

and only logged in users can view this

give the instructions/codes that I've to add in gallery.php
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 16, 2008, 03:59:53 AM
hey Vbgamer45,

Yesterday i have given 3 post and non of the post you have helped me.

I have worked on it and its working.

Thanks for the Gallery mod, and its working perfectly from my 1.1.6 to 2.0.4 beta
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 16, 2008, 04:14:07 AM
I have worked exchanging table from smf 1.1.6 to smf 2.0.4.

1.1.6 - forum.sitename.com

2.0.4 - discuss.sitename.com

Now its working good.

In 2.0.4 gallery settings page -

Gallery Path: /home/itacumen/public_html/discuss/gallery/

Gallery Url: http://forum.itacumens.com/gallery/

Then only it shows up all the message.

If i change the gallery url to discuss.itacumens.com/gallery/  - its not working

I have downloaded all the gallery files in forum folder and uploaded to discuss gallery folder.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: psynx on October 16, 2008, 09:55:09 AM
I am still waiting for support to my post. anyone know how to figure it out?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 16, 2008, 04:15:24 PM
I am using the latest version of the gallery for smf 1.1.6.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 16, 2008, 07:45:50 PM
Quote from: psynx on October 16, 2008, 09:55:09 AM
I am still waiting for support to my post. anyone know how to figure it out?
You would need to modify the Gallery.template.php and change the layout and add some extra items for that to be done.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 16, 2008, 09:01:44 PM
Quote from: asudhakar on October 16, 2008, 04:14:07 AM
I have worked exchanging table from smf 1.1.6 to smf 2.0.4.

1.1.6 - forum.sitename.com

2.0.4 - discuss.sitename.com

Now its working good.

In 2.0.4 gallery settings page -

Gallery Path: /home/itacumen/public_html/discuss/gallery/

Gallery Url: http://forum.itacumens.com/gallery/

Then only it shows up all the message.

If i change the gallery url to discuss.itacumens.com/gallery/  - its not working

I have downloaded all the gallery files in forum folder and uploaded to discuss gallery folder.

Give me a reply Vbgamer45

Additionally I could see a line in top of the forum ?> Even in gallery admin page also.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 16, 2008, 09:16:43 PM
?> Is caused by a modification i would look at the modifications.english.php files

Other than that I would very the gallery url and gallery path are correct.

Those are two different sites? Or did you move one to the other?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 16, 2008, 09:34:08 PM
Thank you for your reply.

I will check the modification in modification.english.php file.

I had 1.1.6 at forum folder.

Now having 2.0.4 at discuss folder.

So i have moded tables as well datas to discuss folder properly.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 17, 2008, 09:22:57 AM
Quote from: asudhakar on October 16, 2008, 09:34:08 PM
Thank you for your reply.

I will check the modification in modification.english.php file.

I had 1.1.6 at forum folder.

Now having 2.0.4 at discuss folder.

So i have moded tables as well datas to discuss folder properly.


Hope the attached image will be useful to figure out what i exactly mean.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: videoman57 on October 17, 2008, 02:41:49 PM
If you leave comments on a photo...is there a notify feature here that sends an email to us or someone that would like to be notified...much like a normal posting does?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 17, 2008, 04:50:07 PM
Any solutions that can solve my problem about the images not loading? I still have the problem..
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 17, 2008, 08:06:34 PM
Quote from: chrisg2010 on October 17, 2008, 04:50:07 PM
Any solutions that can solve my problem about the images not loading? I still have the problem..
I would try to disable safe mode via .htaccess or contact your host.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 18, 2008, 03:26:59 AM
Hi VB Gamer 45, am waiting for your reply with an screenshot.

http://www.simplemachines.org/community/index.php?topic=114291.msg1755907#msg1755907
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 18, 2008, 10:04:41 AM
Quote from: codenut on September 17, 2006, 10:26:18 AM
Quote from: 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.


my apologies I thought I had included that info.

SMF 1.1RC3

Yes it is failing on creating the menu item If you attach your index.template.php I can do it.




chrishoggy attach the index.template.php of your custom themes and I can do a couple of them.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Minare on October 18, 2008, 10:12:34 AM
Quote from: Minare on October 14, 2008, 08:37:08 AM
Quote from: Minare on October 11, 2008, 04:07:56 PM
I want to show recently uploaded images or random images on main forum page

How can I do this , anyone can help me ?

Sorry for being a pain, vbgamer, I searched this but had no result so far

Is this possible ?

Thanks.

Shame on me, maybe this is not sth possible, that s why I didn't get answer so far, This is the last time I am trying my chance to get a reply, I hope I will =)
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 18, 2008, 10:14:20 AM
Is is possible I have some code to do it put I have it as a separate mod package.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 18, 2008, 11:49:57 AM
I am not sure which modification in have to perform to avoid the error happen on modification.english.php file.

Now having 2.0.4 . converted 1.1.6 images are not displaying properly in my new forum.

I have added the pic,

Kindly help me.

Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Minare on October 18, 2008, 01:25:39 PM
Quote from: vbgamer45 on October 18, 2008, 10:14:20 AM
Is is possible I have some code to do it put I have it as a separate mod package.


Can we have this mod for free ? Or is it paid ?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 18, 2008, 01:33:50 PM
Currently I have it for customers only but I can release those for free if needed.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Minare on October 18, 2008, 01:35:51 PM
Thank you vbgamer45
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 18, 2008, 02:34:55 PM
Hey VBGamer45, you have to note this miracle.

I have updated 5000 images inside my new smf 2.0.4 forum.

But i i not showing all the pics, and when i searched my ftp it shows only 1900 photos which i already have inside the folder.

Even though i have tried adding 3000 photos seperately. I could see the photos get vanished.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 18, 2008, 02:36:47 PM
Double check your gallery path and gallery url settings?

Are new uploads working???

All picture files should be located inside the gallery folder.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 18, 2008, 02:51:31 PM
Yes i have checked and could see all the uploaded pictures inside the gallery folder.

I have checked attaching a new pic, and its working .

Have a look at the pic i have attached.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 18, 2008, 02:58:58 PM
Did you delete any files? I saw u posted with the media converter not sure if that deletes files or not.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 18, 2008, 03:03:04 PM
Tried using mgallery, its not done, so I have reuploaded all the files now.All 5535 files i have reuploaded in side the gallery.

Could even see all the files inside my gallery folder on my cpanel.

I have reported the miracle without knowing that ftp will display only 2000 files to avoid server load as teached me by Oldiesmann.

so could you fix it, i could delete the other mod too.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: chrisg2010 on October 18, 2008, 04:43:32 PM
Quote from: vbgamer45 on October 17, 2008, 08:06:34 PM
Quote from: chrisg2010 on October 17, 2008, 04:50:07 PM
Any solutions that can solve my problem about the images not loading? I still have the problem..
I would try to disable safe mode via .htaccess or contact your host.
How do I diable safe mode? I don't even see that file, where is it?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 22, 2008, 01:09:50 PM
Quote from: vbgamer45 on October 18, 2008, 02:58:58 PM
Did you delete any files? I saw u posted with the media converter not sure if that deletes files or not.

Kindly help me vbgamer, i could see all the uploaded images were working. And not the old images.

Kindly help me, i like gallery mod very much.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 22, 2008, 07:48:21 PM
Quote from: chrisg2010 on October 18, 2008, 04:43:32 PM
Quote from: vbgamer45 on October 17, 2008, 08:06:34 PM
Quote from: chrisg2010 on October 17, 2008, 04:50:07 PM
Any solutions that can solve my problem about the images not loading? I still have the problem..
I would try to disable safe mode via .htaccess or contact your host.
How do I diable safe mode? I don't even see that file, where is it?
Safe mode is something your host would need to disable or search on google for more information
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: TroyG on October 23, 2008, 01:01:11 AM
vbgamer45
Can you give me the code to ad the button to my custom theme please sir.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 23, 2008, 01:06:56 AM
Attach your index.template.php and I can add it. It is different for each theme.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: TroyG on October 23, 2008, 01:11:39 AM
Here you go. Thanks MAN
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: TroyG on October 23, 2008, 01:44:51 AM
BTW the Pro Gallery and Classifieds work GREAT on my other forum. GREAT job, and thanks for all your hard work.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: thegcalgary on October 23, 2008, 02:10:40 PM
I installed the gallery and gave permissions. Users can upload photos. But when they click on them:

Not Acceptable

An appropriate representation of the requested resource /Forums/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

no idea why it does that...


Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 23, 2008, 09:29:22 PM
Quote from: TroyG on October 23, 2008, 01:44:51 AM
BTW the Pro Gallery and Classifieds work GREAT on my other forum. GREAT job, and thanks for all your hard work.
Troy file attached

Quote from: thegcalgary on October 23, 2008, 02:10:40 PM
I installed the gallery and gave permissions. Users can upload photos. But when they click on them:

Not Acceptable

An appropriate representation of the requested resource /Forums/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

no idea why it does that...



That is an issue with mod_security
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: TroyG on October 23, 2008, 11:05:16 PM
Works like a champ. Thanks vbgamer45
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: ReptiGuy on October 24, 2008, 01:29:09 PM
I am wanting to upload this and I don't know how to make the gallery directory writable.

QuoteThen afterwords make the gallery directory writable.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 24, 2008, 10:04:53 PM
Do you see any warning message inside the gallery saying it can not write? If not then you are good to go.

Otherwise you need ot change the file permissions via ftp or a control panel's file manager.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 25, 2008, 12:47:24 AM
Kindly help me vbgamer, i could see all the uploaded images were working. And not the old images.

Kindly help me, i like gallery mod very much.

http://www.simplemachines.org/community/index.php?topic=114291.msg1757687#msg1757687

And i still have the Tag error in the top page like this "?>"

Dont mistake that i was keep on asking the same issue. I know the use of gallery mod as an admin.

so i want that to be fixed Vbgamer45.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: ReptiGuy on October 25, 2008, 11:18:39 AM
Quote from: vbgamer45 on October 24, 2008, 10:04:53 PM
Do you see any warning message inside the gallery saying it can not write? If not then you are good to go.

Otherwise you need ot change the file permissions via ftp or a control panel's file manager.

Whenever I try and go to the gallery it says "You're seeing this page because account contains no index file. (EG: index.htm)"

http://beginnerherps.110mb.com/forum/gallery/ (http://beginnerherps.110mb.com/forum/gallery/)
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 25, 2008, 11:48:47 AM
You actually access the gallery using
http://www.yourforum.com/index.php?action=gallery

For custom themes they require a link to the gallery on the index.template.php of that theme.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 25, 2008, 03:54:31 PM
Could you please help me, am sure i could purchase a pro version if you help me to edit the errors.

Or let me know, first i will purchase pro version and then you could help me know.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 25, 2008, 05:39:53 PM
I don't think that can be fixed unless you have a backup of the images. You would need to copy them to your gallery folder. I would contact your host for any backups.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 25, 2008, 09:13:42 PM
I love the gallery mod, just installed it into a SMF 2.0 Beta 4.
However, I now have 2 issues that need help on.

1. The linktree when in a gallery category, is showing 2 times at the top:
BK-GTA > Gallery > GTA - III - ScreenShots

BK-GTA > Gallery > GTA - III - ScreenShots


2. I get this at the top of the page when in anywhere in the gallery:
?>


SIte URL: http://www.bkgta.co.cc
Any ideas on how to fix these issues?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 25, 2008, 09:55:14 PM
Have you modified the gallery in any way?
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 25, 2008, 09:56:00 PM
No.
Just changed colors and images on the site's theme.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 25, 2008, 10:44:59 PM
Quote from: vbgamer45 on October 25, 2008, 05:39:53 PM
I don't think that can be fixed unless you have a backup of the images. You would need to copy them to your gallery folder. I would contact your host for any backups.

I have all my images uploaded yesterday only.
I had a complete backup of my gallery folder, so i uploaded all 5000 images yesterday only.

I found something, if i go to my images. I could see all the images perfectly.
But images were not showing inside category only.

I have tried to install a mod named mgallery. And i tried to convert the pics earlier. From then i got this problem.
The converter program in mgallery mod, got all the categories only, then while trying to take the pictures. It said,

Warning: filesize() [function.filesize]: stat failed for /home/itacumen/public_html/discuss/gallery//thumb_1164_17_01_08_6_17_34.png in /home/itacumen/public_html/discuss/Sources/Subs-MGallery.php on line 1768
An Error Has Occurred!

So from that moment i could not see any images in side my categories only. But if i upload a new one it shows perfectly and even all images were perfectly shown inside my images link.

I feel very bad that, i have collapsed a excellent mod myself. Kindly help me VBGamer45.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 25, 2008, 11:27:30 PM
I would first try to install SMF Gallery if not.
Create me an admin account on the forum and I can take a look.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 25, 2008, 11:58:09 PM
Quote from: vbgamer45 on October 25, 2008, 11:27:30 PM
I would first try to install SMF Gallery if not.
Create me an admin account on the forum and I can take a look.

Thank you Vbgamer45, PM sent with details.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 26, 2008, 09:21:16 AM
vbgamer45,

I have replaced these files with the ones in the package, and still coming up with those issues:

sources/Gallery.php
default/Gallery.template.php
default/languages/Gallery.english.php
default/languages/Gallery.template.php
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 26, 2008, 10:15:57 AM
You currently do not have SMF Gallery installed I do see the two links though when you view the gallery in the link tree.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 26, 2008, 10:25:02 AM
Yes, I decided to uninstall it, to test the Media Gallery...
I use yours on all my other sites, and have to say that I like yours best. :)

Yet, I have no idea why it showed the ?>
Oh well, that site is test SMF 2.0 Beat and new things, so, no big deal.
Just figured you'd like to know what I came across.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 26, 2008, 04:01:48 PM
Quote from: asudhakar on October 25, 2008, 11:58:09 PM
Quote from: vbgamer45 on October 25, 2008, 11:27:30 PM
I would first try to install SMF Gallery if not.
Create me an admin account on the forum and I can take a look.

Thank you Vbgamer45, PM sent with details.
Didn't see anything wrong.
Other than all the thumbnails have disappeared. I would contact your host. To restore the the thumbnails.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 26, 2008, 11:53:21 PM
vbgamer45,

I reinstalled the mod, and still have the same issues.

However, I think I know the answer to one.
The Linktree issue may be caused by the mod calling for it when it does not need to.
I've had to remove the call for it in a few mods for SMF 2.0 Beta 4.
Whether that means that SMF 2.0 has it pre-set to include it, or it was the Linktree fix mod that did so, I am not sure.

However, still getting the ?> at the top while in any part of the gallery.
This is even after deleting the package, and uploading a new copy I just got from the downloads page here tonight.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 27, 2008, 12:04:10 AM
I would check your themes/default/languages/modifications.english.php to see if there is an extra ?>
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 27, 2008, 12:12:14 AM
Nope, just the one at the bottom of the page.
Will check few other pages, too...

EDIT:

Even shows in the Admin panel, when on the Gallery settings...
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 27, 2008, 02:22:45 AM
Quote from: vbgamer45 on October 26, 2008, 04:01:48 PM
Didn't see anything wrong.
Other than all the thumbnails have disappeared. I would contact your host. To restore the the thumbnails.

Ok i will upload all my thumbnails back tomorow.

Quote from: BurkeKnight on October 27, 2008, 12:12:14 AM
Nope, just the one at the bottom of the page.
Will check few other pages, too...

EDIT:

Even shows in the Admin panel, when on the Gallery settings...

Same error i also have both on gallery page and gallery settings page.
I have checked on modifications.english page and i could see one opening and one closing php tags only.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 27, 2008, 07:31:38 AM
Well, good to see I'm not the only one with the mysterious ?> showing up.
I searched every file for that, and not found any extra ones.

Only happens with SMF 2.0 Beta 4, by looks of it.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 27, 2008, 08:21:20 PM
Quote from: BurkeKnight on October 27, 2008, 07:31:38 AM
Well, good to see I'm not the only one with the mysterious ?> showing up.
I searched every file for that, and not found any extra ones.

Only happens with SMF 2.0 Beta 4, by looks of it.
Figured it out there was extra ?> in Sources/Gallery.php
Fixed it and reuploaded the modification.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Burke ♞ Knight on October 27, 2008, 08:56:30 PM
That did it!!!

I searched that file, yet missed it, only cause it did not scroll all the way down in my editor, so I could see the second when doing the search. Since at the bottom, I never thought to see if could scroll one more line...LOL
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: Sudhakar Arjunan on October 28, 2008, 01:23:11 PM
Quote from: vbgamer45 on October 27, 2008, 08:21:20 PM
Figured it out there was extra ?> in Sources/Gallery.php
Fixed it and reuploaded the modification.

Yes i have found and removed the extra quotes.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: RustyBarnacle on October 28, 2008, 02:53:47 PM
Hey there,

I just upgraded to 1.4 for SMF 1.1.6 and I get this error when ever I click on any of the RSS links in the gallery, followed by some code.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 28, 2008, 07:44:21 PM
Do you have a link to the error? Also if it is SMF Gallery Pro support is located on smfhacks.com
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: ernest on October 29, 2008, 04:53:03 AM
need some help with this mod possible security issue
Title: Re: SMF Gallery (2.0.3 Released! SMF 2.0beta4 Now has Pretty Urls Support!)
Post by: vbgamer45 on October 29, 2008, 08:29:05 AM
Ok I think i get will have a fix soon
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on October 29, 2008, 09:57:12 PM
Quote from: ernest on October 29, 2008, 04:53:03 AM
need some help with this mod possible security issue

Critical Update Released

SMF Gallery Lite 2.0.4 and 1.9.4 Released

We have noticed that there is a security issue caused by a specially crafted image file.
We urge to upgrade as soon as possible.

!Fixed an issue with handling of uploaded images. An image could be crafted leading to a security issue.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: genieuk on October 29, 2008, 10:33:32 PM
Quote from: vbgamer45 on October 29, 2008, 09:57:12 PM
Quote from: ernest on October 29, 2008, 04:53:03 AM
need some help with this mod possible security issue

Critical Update Released

SMF Gallery Lite 2.0.4 and 1.9.4 Released

We have noticed that there is a security issue caused by a specially crafted image file.
We urge to upgrade as soon as possible.

!Fixed an issue with handling of uploaded images. An image could be crafted leading to a security issue.

Hi,

do i just uninstall previous version and install new? if so pics etc will not be removed?

Mathew
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on October 29, 2008, 10:50:08 PM
Correct just do that. Uninstalling is safe does not remove pictures or data.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Bancherd on October 29, 2008, 10:54:24 PM
Thanks for the update.  Downloaded and installed 1.9.4 2.0.4 on my live site.  Things went smoothly.  :D
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: ernest on October 30, 2008, 12:09:09 AM
great job vbgamer45, you did a very fast update   ;D
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: genieuk on October 30, 2008, 06:39:09 AM
Quote from: vbgamer45 on October 29, 2008, 10:50:08 PM
Correct just do that. Uninstalling is safe does not remove pictures or data.

Doh!, thing not very smooth for me strangely.

It failed on nearly every file to uninstall, i dont understand how come, last time i did what you said use package manager to uninstall and install latest version (that went without problems), now this is the latest version i went to uninstall old and like i said it failed on nearly all apart from one file, so now i have to manually uninstall it,

Very Strange considering a previous uninstall and install of an updated version went through like a dream. But what even more strange that just as a test i went to install latest version without removing old and it passes on all of them.

Mathew

i have maual uninstall.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on October 30, 2008, 09:00:10 AM
You could also just Copy the Gallery.php from the new zip to Sources/ directory to overwrite the old Gallery.php file.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: genieuk on October 30, 2008, 09:27:48 AM
Quote from: vbgamer45 on October 30, 2008, 09:00:10 AM
You could also just Copy the Gallery.php from the new zip to Sources/ directory to overwrite the old Gallery.php file.

oh, so only that file 'Gallery.php' has been changed in the update?

Mathew

Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sakae on October 30, 2008, 01:26:42 PM
Quote from: vbgamer45 on October 30, 2008, 09:00:10 AM
You could also just Copy the Gallery.php from the new zip to Sources/ directory to overwrite the old Gallery.php file.

I did that and worked just fine.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on October 30, 2008, 04:12:25 PM
Is there a way to set it so Guests can upload photos and leave comments?
I tried in the permissions, and it wants the guest to log in or register.
Yet, this one site I'm doing, is not a register site...

Edit:

They can upload, they just cant comment.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on October 30, 2008, 07:48:17 PM
Quote from: BurkeKnight on October 30, 2008, 04:12:25 PM
Is there a way to set it so Guests can upload photos and leave comments?
I tried in the permissions, and it wants the guest to log in or register.
Yet, this one site I'm doing, is not a register site...

Edit:

They can upload, they just cant comment.
Going to test that out.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sudhakar Arjunan on November 01, 2008, 11:37:19 AM
Quote from: vbgamer45 on October 26, 2008, 04:01:48 PM
Didn't see anything wrong.
Other than all the thumbnails have disappeared. I would contact your host. To restore the the thumbnails.

What i did, since i have our own dedicated server.
Went to my last month backup, extracted and found 6000 files inside my gallery.

I have reuploaded and still its not showing up, any suggestions Vbgamer45.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 01, 2008, 11:38:52 AM
The thumbnails need to be generated for those images.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sudhakar Arjunan on November 01, 2008, 04:05:40 PM
Quote from: vbgamer45 on November 01, 2008, 11:38:52 AM
The thumbnails need to be generated for those images.

So for each image, we have to generate a thumbnail.

Ok is there any software or what i have to ask to my hosting company.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Technoman on November 02, 2008, 12:40:25 PM
hey i have this thing on top of my gallery page on the far left upper corner
?> abouve my logo on default template

the board is 2.0 beta4

the cause of this is only when Gallery Mod cause once i unistall it the <? is gone 

It only appears in Gallery when browsing
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 02, 2008, 12:42:28 PM
The most recent fix should fix that issue I believe. If not open Sources/Gallery.php and remove the extra ?> from the bottom of the code
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Technoman on November 02, 2008, 01:00:23 PM
 ;D thank you and yes it did

1 more question is there away to change the gallery to another name cause now i got 2 galleries in the menu section
1 is media galery and other is gallery lite and they both show as same name gallery but in different parts of the menu so i was just curiuous to know if we can chage it to another name then gallery
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 02, 2008, 01:13:54 PM
You can modify themes/default/languages/modifications.english.php

And update the Gallery text for the menu and change it to something else.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Technoman on November 02, 2008, 01:17:27 PM
vbgamer45  ;D

thanks bro
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Technoman on November 02, 2008, 01:41:03 PM
actually ok i seee tons of Gallery in Txt but i dont know which 1 exactly to change

all i want to do is change it to blogs cause it works really nice and since i alreay have a gallery i dont need 2 so i want the mgallery to be Blogs

hopefully im not asking to much and thank you again
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 02, 2008, 01:59:23 PM
For SMF Gallery the entry is called

$txt['smfgallery_menu'] = 'Gallery';
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Technoman on November 02, 2008, 02:17:07 PM
$txt['smfgallery_menu'] = 'Blogs';

nothing changed after i changed it from gallery to Blogs  :-\

but again thanks, is there something i missed ?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 02, 2008, 08:06:01 PM
There could be two entries.

Also check your modifications.english-utf8.php file since it could install there as well.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sudhakar Arjunan on November 03, 2008, 01:02:46 AM
Quote from: vbgamer45 on November 01, 2008, 11:38:52 AM
The thumbnails need to be generated for those images.

So for each image, we have to generate a thumbnail.

Ok is there any software or what i have to ask to my hosting company.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: cmcschools on November 03, 2008, 11:42:07 AM
Hi.
I installed the latest gallery release and although it is working correctly, I'm getting errors like this for every user:

8: Undefined index: gallery
File: /home/cmcsc2/public_html/cmc-tech/Themes/default/Login.template.php (eval?)
Line: 447
?action=stats;expand=200709


Note: I had to remove the permissions checking line in order for the gallery button to show up in the linkTree -
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: KimmoE on November 04, 2008, 07:01:11 AM
Hi,

We have some problems using the gallery mod:
=====

After restoring MySQL-backups, this error message occured to the SMF Gallery section:

Fatal error: Call to undefined function DoToolBarStrip() in /home/xxxx/public_html/smf/Sources/Load.php(1726) : eval()'d code on line 47

In error.log I can also see a similar message but with ending "code on line 727".

What could be causing this? There should be no damage on the SMF files and DB was fully recovered.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 04, 2008, 07:44:44 AM
What version of SMF are you running? And what version of the gallery
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: KimmoE on November 04, 2008, 11:27:14 AM
Hi,

Thanks for the reply.

SMF is 1.1.6 and gallery is 1.8.3.

Could running an update to the gallery module help? Will the settings/images stay as they are?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 04, 2008, 08:11:11 PM
I would first try to upgrade since there is very new version.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on November 04, 2008, 11:17:39 PM
vbgamer45,

Is there a way to do a Mass Upload of images into the gallery?
I have 3 categories, and lots of images to put into each one.
Mass upload for each category would be so useful.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: RustyBarnacle on November 05, 2008, 11:41:37 AM
That is one of the features in the Pro version BK.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 05, 2008, 08:30:02 PM
Quote from: A.SK on November 03, 2008, 01:02:46 AM
Quote from: vbgamer45 on November 01, 2008, 11:38:52 AM
The thumbnails need to be generated for those images.

So for each image, we have to generate a thumbnail.

Ok is there any software or what i have to ask to my hosting company.
If you remind I will try to get added to SMF Gallery a way to regenerate thumbnails.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Pluemaster on November 05, 2008, 10:34:44 PM
I'm a bit of a noob at this, but I've been able to apply the mod so far.
There is, however, a problem with accessing the gallery. I'm not sure how you would make the files writable, as said to do in the installment instructions.
Is there supposed to be a link or button to click to take me to mysite.com/forums/gallery where I located the gallery to? Thanks.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 05, 2008, 10:41:58 PM
The link for the gallery in your case would be
mysite.com/forums/index.php?action=gallery

The button/link is only added to the default theme for custom themes you will need to edit the index.template.php of that theme.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Pluemaster on November 05, 2008, 11:27:36 PM
Quote from: vbgamer45 on November 05, 2008, 10:41:58 PM
The link for the gallery in your case would be
mysite.com/forums/index.php?action=gallery

The button/link is only added to the default theme for custom themes you will need to edit the index.template.php of that theme.

Thanks for the help.
One more thing though, I'm not sure how I would edit the index.template.php and with what and where to put it. Sorry if it's too much to ask of you.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 05, 2008, 11:44:07 PM
Attach your index.template.php of your theme and I can do it.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Pluemaster on November 05, 2008, 11:55:49 PM
Thanks dude, I really appreciate it. I was making some custom buttons of my own, and when I tried to look for where the main navigation buttons would be located I couldn't find them.

Hopefully you know what to do =)
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: tokinjoker on November 06, 2008, 07:02:09 PM
Hi,
Got the gallery installed and it's working great, but it's missing the MyImages and Search tabs in our main theme.  I cant seem to find where to add them.  Anyone happen to know where I need to look?

Thanks
Joker
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on November 06, 2008, 07:04:30 PM
Quote from: tokinjoker on November 06, 2008, 07:02:09 PM
Hi,
Got the gallery installed and it's working great, but it's missing the MyImages and Search tabs in our main theme.  I cant seem to find where to add them.  Anyone happen to know where I need to look?

Thanks
Joker

What theme are you using for your main theme?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: tokinjoker on November 06, 2008, 07:10:39 PM
It's a modified Black Rain 2

Thanks for the quick reply =)

Joker
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: KillerZ on November 06, 2008, 08:55:11 PM
Hi just a quick one. I scanned through the thread real fast and tried to search but didn't see this one. Big thread. This is what I get when I go to install. Is it ok to go ahead with the install? Downloaded 1.9.4

1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed  
3. Execute Modification ./Themes/default/languages/Who.english.php Test successful
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Themes/default/index.template.php Test successful
6. Execute Modification ./Sources/Subs.php Test successful
7. Execute Modification ./Sources/ManagePermissions.php Test successful
8. Execute Modification ./Sources/PrettyUrls-Filters.php Skipping file
9. Extract File ./Sources/Gallery.php 
10. Extract File ./Themes/default/Gallery.template.php 
11. Extract Tree ./gallery 
12. Extract File ./Themes/default/languages/Gallery.english.php 
13. Extract File ./Themes/default/languages/Gallery.english-utf8.php 
14. Execute Code galleryinstall.php

Here is what I have installed with smf 1.1.6

TinyPortal 1.063   
Contact Page 1.1   
Auto Embed Video/Audio Clips 3.1.2   
Custom Action Mod 2.04   
User Email System 1.3   
Welcome Topic Mod 1.1   
E-Arcade 2.5.4   
XFire Field 1.4   


Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 06, 2008, 09:03:44 PM
That is fine you can proceed with the install.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: tokinjoker on November 06, 2008, 10:21:22 PM
Any ideas?

Joker
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 06, 2008, 10:29:51 PM
Quote from: tokinjoker on November 06, 2008, 10:21:22 PM
Any ideas?

Joker
Most likely an issue with your theme since it uses tabs it maybe expecting images for search and myimages.

If you have a link to your gallery that I can see I can check it out and let you know what is up.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: tokinjoker on November 06, 2008, 10:38:10 PM
PM sent.

Thanks again for taking a look.

Joker
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 06, 2008, 10:45:29 PM
Quote from: Pluemaster on November 05, 2008, 11:55:49 PM
Thanks dude, I really appreciate it. I was making some custom buttons of my own, and when I tried to look for where the main navigation buttons would be located I couldn't find them.

Hopefully you know what to do =)
Fixed file attached

Themes/yourtheme/images/english

Create a Gallery.gif file and upload it there
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Regashi on November 07, 2008, 08:51:46 AM
can you have a look at this ple\se somehow it doesn't work for me

thanks

http://rctankwarfare.com/Forums/gallery/ (http://rctankwarfare.com/Forums/gallery/)
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on November 07, 2008, 08:56:59 AM
Quote from: rickster090 on November 07, 2008, 08:51:46 AM
can you have a look at this ple\se somehow it doesn't work for me

thanks

http://rctankwarfare.com/Forums/gallery/ (http://rctankwarfare.com/Forums/gallery/)

That is because the link to your gallery would be:

http://rctankwarfare.com/Forums/index.php?action=gallery
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Pluemaster on November 07, 2008, 08:19:34 PM
Quote from: vbgamer45 on November 06, 2008, 10:45:29 PM
Quote from: Pluemaster on November 05, 2008, 11:55:49 PM
Thanks dude, I really appreciate it. I was making some custom buttons of my own, and when I tried to look for where the main navigation buttons would be located I couldn't find them.

Hopefully you know what to do =)
Fixed file attached

Themes/yourtheme/images/english

Create a Gallery.gif file and upload it there

Damn dude, thanks again.

Now a new question has popped up...

When I upload a picture to the gallery, the picture is resized to a noticeably small scale. Is there any way I can change this from happening? I've tried to even update the Gallery Configuration settings to have the image width & height up to 25000.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Savvra on November 07, 2008, 09:31:23 PM
I have SMF Gallery Lite 1.9.3 and I would like to switch to 1.9.4.  When I upload the new version I get a warning that I should uninstall the old one first.  Should I do so or just continue with installing the new version?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 08, 2008, 12:29:54 AM
I would uninstall the old one version if possible
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Lady Night Owl on November 09, 2008, 01:41:32 PM
I'm getting this error in my log:

/index.php?action=gallery;sa=catperm;cat=2

8: Undefined index: groupName

/cache/lang_Admin_english_default.php (catperm sub template - eval?)

Line: 3968


And when I set up permissions via the Gallery, I can't see any of the member group names except for Regular Members and Guests.

Everything else seems to be working fine.

I'm running SMF 2 Beta 4

I've tried clearing the file cache and my browser cache, but I'm still getting the error.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 09, 2008, 03:40:08 PM
What version of the gallery are you running? Please make sure you are on the newest version of the gallery SMF Gallery lite 2.0.4
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Lady Night Owl on November 09, 2008, 03:57:42 PM
It's the current version (sorry), but it's Pro, not Lite.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 09, 2008, 04:26:12 PM
For pro support please use smfhacks.com for posting issues and make sure your gallery version is up to date.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: edi67 on November 12, 2008, 01:56:01 PM
nice
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 13, 2008, 07:48:49 PM
Fresh install issue:

New install SMF 1.1.7 (default theme)
New install Gallery Lite 1.9.4

I uploaded the folder (as it came unzipped) to the Packages dir, it shows up in Package Manager as a Modification Package.

I click Apply Mod and nothing happens except for the page refreshing.  No errors recorded in the log.

No links to the gallery appear anywhere.

Help please?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 13, 2008, 08:05:23 PM
I would check that all the files and folders of SMF are writable. Are you able to installl other packages?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 13, 2008, 08:42:27 PM
I haven't tried to install other packages.

I did see a choice (somewhere, I can't remember now) to make "all files writeable."  I checked that, and tried again, to no avail.

Better to chmod everything manually then set it back?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 13, 2008, 09:37:49 PM
I would try that. Also check if you can see it on the default theme.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 13, 2008, 09:52:05 PM
Ok, I chmod everything to 777, no dice.  Got a 500 error, so back to 755 with everything.

Re-uploaded the gallery folder as unzipped (just in case).

Went to Packages Manager>Browse Packages and saw that it was there.

Went to Options and selected "All files are writable."

Went back and clicked Apply mod.  Same thing happened, the page just refreshed.

Went to Installed Packages, "No mods currently installed"

Argh.

This is ticking me off because I know it's something stupid simple that I'm missing!
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on November 13, 2008, 10:43:13 PM
Are you sure the page refreshed to the Package Manager, and not the Install Mod page, where it tells all the files it will modify/add?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 13, 2008, 11:39:42 PM
Yep, I'm sure.  There was no listing of anything, just the Latest Packages section and the Browse Packages section, which only shows SMF Gallery Lite. 

Clicking the Apply Mod and List Files buttons does nothing but refresh the page.  Clicking Delete actually deletes it.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 14, 2008, 04:59:14 AM
Ok, so I've got some kind of problem with my install somewhere, I can't apply ANY mod packages.  Grr.

I'll likely be back with more questions after reinstalling...

Thanks for your time so far...
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: fivegrand on November 14, 2008, 07:09:06 AM
Wow.  I'm a freakin' idiot.

I found the answer here:  http://www.simplemachines.org/community/index.php?topic=273836.0

Rather than actually using the provided tools within SMF (D'OH!), I was FTPing the folders up to the Packages dir and trying to install.

I did it as shown in the above thread, and everything works lickety split.

Thanks again for your time...Sorry it was wasted on me.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Acans on November 16, 2008, 01:40:38 AM
what do i have to edit so comments count as posts?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 16, 2008, 09:30:30 AM
You would have to edit the Gallery.php in the Sources folder and add some counting.

Warning that count may not last if you do forum mantaince when it rebuilds the totals.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: pikkabbu on November 16, 2008, 03:05:58 PM
Gallery Manager doesn't appear in DMF manager.
A space has been made between Server config and Actual Theme, but nothing writes here, nor I hace any clickable link.

So I can't configure gallery.

SMF 1.1.5
gallery 1.9.4

I can access the user page thru index.php?action=gallery


thank you !!!

Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 16, 2008, 03:16:22 PM
Check your language settings. Under Admin -> Server Settings

The language should be set to English and not english utf8
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: pikkabbu on November 16, 2008, 05:13:26 PM
Thank you so much for this fast answer.

Unfortunately, my forum is... in spanish.

I've tried in english, and yes, the gallery manager option shows up.
But no in spanish.

I've copied files starting with gallery* to my theme folder, but still doen't show.

thank u

Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 16, 2008, 07:17:15 PM
You also have to copy the text from modifications.english.php to modifications.spanish.php in order for the  correct text to appear.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: pikkabbu on November 17, 2008, 04:03:47 AM
Fantastic !
That works now, and thanks for tour sunday's answers !!

pik
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 18, 2008, 12:44:09 AM
hi there I am using

forum version 1.1.6 and gallery version 1.9.4

but I am getting this error when adding a picture ( the file i was adding is a jpg )

Not a valid picture file.

please guide me on what to do .. thanks
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 18, 2008, 12:53:58 AM
Was it a complete picture? Check your forum's error log for any relevant errors
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 18, 2008, 01:03:31 AM
yes it is a complete picture , I checked my forum error log
and see this

http://our-crib.com/index.php?action=gallery&amp;sa=add2

8: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Read error!
File: /home/sheree17/public_html/Sources/Gallery.php
Line: 597
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: videoman57 on November 18, 2008, 05:58:49 PM
Hi,
Does smf gallery have email notification built in when someone adds a comment to any of my photos in the gallery?
Thanks!
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 18, 2008, 07:53:13 PM
Quote from: Sheree on November 18, 2008, 01:03:31 AM
yes it is a complete picture , I checked my forum error log
and see this

http://our-crib.com/index.php?action=gallery&amp;sa=add2

8: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Read error!
File: /home/sheree17/public_html/Sources/Gallery.php
Line: 597

That sounds like a permission check that uploaded files have the correct permissions.
Quote from: videoman57 on November 18, 2008, 05:58:49 PM
Hi,
Does smf gallery have email notification built in when someone adds a comment to any of my photos in the gallery?
Thanks!
Not in the lite edition of the gallery.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 18, 2008, 10:05:14 PM
hi there what permission should i check?

Thanks
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 19, 2008, 03:15:43 PM
bump

Update: I have checked all possible permission but I am still getting the same error please Guide me thanks
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 19, 2008, 07:56:05 PM
Are you able to upload images in a post and have them resized?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 19, 2008, 09:58:43 PM
yes i was able to upload an image on the forum (as attachment) without any problems


forum error log shows:

http://our-crib.com/index.php?action=gallery&amp;sa=add2
8: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Read error!
File: /home/sheree17/public_html/Sources/Gallery.php
Line: 597


http://our-crib.com/index.php?action=gallery&amp;sa=add2
8: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Read error!
File: /home/sheree17/public_html/Sources/Gallery.php
Line: 589


pls. help me fix the error Thanks
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Acans on November 21, 2008, 02:23:33 AM
Quote from: vbgamer45 on November 16, 2008, 09:30:30 AM
You would have to edit the Gallery.php in the Sources folder and add some counting.

Warning that count may not last if you do forum mantaince when it rebuilds the totals.

if i attaches my gallery.php file can you please do it?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 21, 2008, 08:24:22 AM
No
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sheree on November 21, 2008, 05:17:33 PM
hi vbgamer45

any updates about the errors i am getting?


Thanks in advance
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 21, 2008, 06:11:08 PM
Not sure what causes that yet maybe try to do a google search
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Baloch on November 22, 2008, 05:58:10 AM
This is not compatible with SMF 1.1.7 pls upgrade it.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Burke ♞ Knight on November 22, 2008, 08:10:53 AM
Quote from: Baloch on November 22, 2008, 05:58:10 AM
This is not compatible with SMF 1.1.7 pls upgrade it.


I'm running it on 1.1.7
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 22, 2008, 10:15:04 AM
Quote from: Baloch on November 22, 2008, 05:58:10 AM
This is not compatible with SMF 1.1.7 pls upgrade it.

It works with SMF 1.1.x any version
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Baloch on November 22, 2008, 12:00:15 PM
Quote from: vbgamer45 on November 22, 2008, 10:15:04 AM
Quote from: Baloch on November 22, 2008, 05:58:10 AM
This is not compatible with SMF 1.1.7 pls upgrade it.

It works with SMF 1.1.x any version

There was a server side issue now gallery is working okay with my forum too :) thanks
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Final60 on November 24, 2008, 12:40:03 PM
Hmm I have images that are alot wider then the width of my forum, when viewing the full image half the image dissapears behind the right hand side? Is it possible to implement some kind of scroll bar for width? or how about some flash program that can bring the fullsize picture ontop of forum to be viewed in its entirety?

Thanks for any suggestions
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: alex30 on November 27, 2008, 12:28:29 PM
Hi all, quick question!

I'm using ad mod for desplaying some stuff on the right hand side of my forum.

How do I hide that stuff when I'm viewing gallery because it takes a lot of space there?

Take a look http://aquatropicalfish.com/forum/index.php?action=mgallery

Thanks.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on November 27, 2008, 01:51:30 PM
That is for the Media Gallery mod and not SMF Gallery
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: DirtRider on November 28, 2008, 11:28:30 AM
I have uninstalled my gallery pro and it has left a gap in the menu bar where it used to be and this is on all my themes. You are also able to click on the gap but it takes you to the main forum page

Powered by SMF 2.0 Beta 4
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: MaXiForum.cz on November 29, 2008, 03:25:52 PM
Look for an error in index.template.php your template ;)
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: videoman57 on December 01, 2008, 03:02:53 PM
HI,
Is there a way to add a notify button on the comments on photos in the gallery so that when someone does comment, that their comments will email me, and vice versa, if I comment on their photos, that they will receive an email notification?   I realize that the pro version does this, but I cannot afford that at this time, I am out of work.
thanks!!

I found a media type gallery called gravy media that has this feature now.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sudhakar Arjunan on December 01, 2008, 06:39:54 PM
Why this process is holded on mysql server and made my server to use 90% of cpu resources for long time.



poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0
write(3, "e\1\0\0\3\r\n\t\t\tSELECT p.id_picture, p"..., 361) = 361
read(3, "\1\0\0\1\16M\0\0\2\3def\23itacumen_smf20beta"..., 16384) = 1101
poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0
write(3, "e\1\0\0\3\r\n\t\t\tSELECT p.id_picture, p"..., 361) = 361
read(3, "\1\0\0\1\16M\0\0\2\3def\23itacumen_smf20beta"..., 16384) = 1101
poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0
write(3, "e\1\0\0\3\r\n\t\t\tSELECT p.id_picture, p"..., 361) = 361
read(3, "\1\0\0\1\16M\0\0\2\3def\23itacumen_smf20beta"..., 16384) = 1101
poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0
write(3, "e\1\0\0\3\r\n\t\t\tSELECT p.id_picture, p"..., 361) = 361
read(3, "\1\0\0\1\16M\0\0\2\3def\23itacumen_smf20beta"..., 16384) = 1101
poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0
write(3, "e\1\0\0\3\r\n\t\t\tSELECT p.id_picture, p"..., 361) = 361
read(3, "\1\0\0\1\16M\0\0\2\3def\23itacumen_smf20beta"..., 16384) = 1101



How to clear this error, without loggin in to forum.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 01, 2008, 08:01:12 PM
Not sure unless your host's mysql server is overloaded. SELECT's are normally pretty fast.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: alex30 on December 08, 2008, 02:04:28 PM
Can anyone explain why can't I see a picture in gallery even if I didn't enter any passwords before?

Thanks.



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hugginsnet.com%2Ffishy%2Faqgall2.jpg&hash=77db58dd7b1f4eca5bde7ec856a58b27fbf3a0f6)
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: alex30 on December 08, 2008, 05:34:11 PM
Sorry for double post, members want to see albums and somehow it brings them to a password field.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 08, 2008, 07:55:46 PM
That is not SMF Gallery Lite but the SMF Media modification.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: LinK187 on December 12, 2008, 11:45:30 AM
I'm having installation problems. Using SMF 1.1.7 and whenever i click gallery it does nothing, whenever I click configure gallery it also does nothing. I did a manual install because the package install wouldn't work, it just hung and timed out. I also have no clue where I'm supposed to put galleryinstall.php or if it's only required for the package install.

No, there are no errors in the error log.

Any help is much appreciated.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 12, 2008, 08:27:08 PM
You most likely missed the edit to the index.php in the root of your forum.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: LinK187 on December 13, 2008, 05:15:35 AM
Quote from: vbgamer45 on December 12, 2008, 08:27:08 PM
You most likely missed the edit to the index.php in the root of your forum.

No, no I didnt. However I've decided to go with smf media gallery instead due to it actually working and having more functionality. Cheers.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 13, 2008, 10:46:23 AM
Good luck with that.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: alex30 on December 20, 2008, 12:54:23 AM
Guys, got this error when was installing

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F24fn4ih.jpg&hash=d532bf3604cd7f47f54c3c79994ba044944413eb)

Will that effect somehow once it's installed?

Thanks.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 20, 2008, 11:23:10 AM
Should not affect it as long as you are not using english utf8
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: alex30 on December 20, 2008, 11:41:26 AM
Thanks. If not a secret, what's that?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 20, 2008, 05:43:01 PM
Just another language you can use utf8 is pointless for english only forums.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: brandonroy on December 22, 2008, 12:52:32 AM
I installed it and it all looks fine, but I'm curious... It doesn't put a link in the menu bar so members can get to it? Or Do I manually have to add the gallery link to my menu bar?

Thanks

EDIT: Nevermind I'm a dumbarse
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: MoreBloodWine on December 26, 2008, 03:11:26 PM
Hey VB, pro customer here ;-)

Wondering if you might chec kthis out when you get a chance, Thx ;-)

http://www.smfhacks.com/index.php/topic,145.msg15131.html#msg15131
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 29, 2008, 09:20:39 PM
I don't know if anyone has asked already but are you planning on integrating highslide image mod with this !?

eZ.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 29, 2008, 09:32:41 PM
I have it built into SMF Gallery Pro.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 06:00:49 AM
Lmao, Figured as much :D
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 09:31:53 PM
Has anyone else had this problem.

An Error Has Occurred!
You did not enter a comment!

I'd check back but there are 96 pages to go through :D
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 30, 2008, 09:35:41 PM
Haven't seen that problem before. What are you entering in for a comment?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 09:42:09 PM
just text.

I'm using smf 2.04 beta btw.

I just tried to comment someone's photo and that's what it says each time I try on any photo.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 30, 2008, 09:44:29 PM
Ah I bet you are using wysiwyg editor. I will have to look into thtat.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 10:27:44 PM
Actually, yes I am.

HaHa.

We had problems with that on smf media too and quite a few other mods that allowed comments and descriptions. Hmmm.

Thanks though mate ! :D
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 30, 2008, 10:31:35 PM
Yeah might be a bug with SMF them hmm. What browser were you using btw?
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 10:38:55 PM
Firefox.

Not tried in IE.

Prefer firefox anyway as a lot of smf bugs and template issues tend to show up in IE more often than not,
although we've ironed out quite a few of them already.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: vbgamer45 on December 30, 2008, 10:40:37 PM
Ok thanks will see what is different. If posting works with the editor I can pick the comment box work too xD.
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: Sentinel [AF] on December 30, 2008, 10:46:42 PM
Nice one guv'na ! :bigup:
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on December 31, 2008, 08:20:14 PM
2.0.5 Released
!Fixed bugs with SMF 2.0 using the WYSIWYG editor
+Added the editor component to the category and picture description area for SMF 2.0
+Added index.php to the gallery folder redirects to action=gallery
Title: Re: SMF Gallery 1.8.3!
Post by: wickedstangs on January 01, 2009, 11:10:58 AM
Just installed SMF Gallery 1.8.3 and get this error Can someone give me a hand.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmodularfoxmustangs.com%2Fimages%2FGallery%2520Link.png&hash=005ca7fb5f023caa35a1d992bd23e33198327b3a)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmodularfoxmustangs.com%2Fimages%2FGallery%2520Link2.png&hash=cfa1cc8fc4ef05a3d7edd6580227560ce292183d)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 12:29:04 PM
Are you still on SMF 1.0.x?  If not you should be using the latest release 2.0.5
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 12:31:39 PM
Yes, I am on SMF 1.1.7 and using 1.8.3! I fixed my issue on the second image now I only have issues with the first image links...
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 12:39:01 PM
If you are using SMF 1.1.x or SMF 2.0.x you need to use SMFGallery2.0.5.zip as that has the latest updates.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 12:41:31 PM
I tried that, but got more errors with the 2.0.5 than the 1.8.3 the above two images are from the 2.0.5 install.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 12:56:42 PM
Probably since the theme uses tabs it expects that there are image files for the buttons
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 01:00:32 PM
Is there a fix for this?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 01:05:38 PM
To fix that you would need to create an image for each of the broken images. Or I can give some code to disable the tabs.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 01:07:47 PM
I can create an image if you can show me where to place it..
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 01:19:31 PM
If you post your index.template.php of your theme I can fix the main gallery button easily.

For the broken images. Right click on them and get the image url and is the image you would need to create. Or I can give code for the Gallery.php to disable image links and use text based instead.

Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 01:23:59 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.modularfoxmustangs.com%2FThemes%2FBlackRainv%2Fimages%2Fbuttons%2Fgallery.gif&hash=445d591942ccc1d5b295962890e5bad626925bea)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 01:26:46 PM
Fixed file attached
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 01:29:33 PM
wow very nice and fast than you vbgamer45 your my new hero:)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 01:31:12 PM
I checked out your main site using vbbulletin.

You might want to add a portal to your new smf site such as EzPortal which I made.
And also look into smfgarage.com addon as well.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on January 01, 2009, 01:37:21 PM
sweet, looking for them now:) Oh ya vb awhile back I purchased the pro version of SMF gallery for my original site can that be transferred to this site? 

My main site is www.wickedstangs.com
I just started this new site www.modularfoxmustangs.com
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 01, 2009, 01:44:56 PM
Yeah I can transfer it send me a pm at smfhacks.com so I know the account that has it.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Sentinel [AF] on January 01, 2009, 04:28:30 PM
It's working now mate, Taaa esé :bigup:
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mrmiyagi on January 02, 2009, 11:36:46 PM
I am trying to make this mod show up in the top of a skin,


"Unzip or un-archive the Mod package, and look for a file ending with .mod or .xml. If you do not see a ".mod" file, then chances are the mod author is using the newer XML format - look for something like "modification.xml" or "modname.xml". "

I am finding it hard to see where the .mod file is to edit
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 03, 2009, 12:43:36 AM
There is no .mod file only .xml

You can use the install instructions on the modsite to make manually install instructions
Title: Re: SMF Gallery 2.0.5 Released!
Post by: somebadguy711 on January 06, 2009, 03:10:33 PM
This was most probably posted already, but I'll post it anyways, too lazy to surf 97 pages  :P

So anyways, I'm using smf 1.1.7, and whenever I upload a large image (as in width and height) while in the image view page, it comes in the way of the overall design structure and ruins the theme itself. (for example if your wrapper is set to 950px, and the image itself is 1000px+)

So here's a quick fix I came up with.

Open Gallery.template.php
Find:

<td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></td>


Replace with:

<td align="center"><a href="'. $modSettings['gallery_url'] . $context['gallery_pic']['filename'] .'" target="_blank"><img '; if($context['gallery_pic']['width'] >= "500") echo 'width="500"'; else echo ''; echo 'src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></a></td>


You can alter the '500px' restriction by editing the following:

if($context['gallery_pic']['width'] >= "500") echo 'width="500"';

Once again, I'm new to this stuff so sry if the code is a bit mixed up or if this has already been posted somewhere  :)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 06, 2009, 08:41:53 PM
Nice work
What you could do to make simpler is

<td align="center"><a href="'. $modSettings['gallery_url'] . $context['gallery_pic']['filename'] .'" target="_blank"><img ', ($context['gallery_pic']['width'] >= 500)  ? 'width="500' : ''), 'src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></a></td>


The ? operator basicly replaces the if else condition system.

expression ? true : false

Title: Re: SMF Gallery 2.0.5 Released!
Post by: jayc7176 on January 06, 2009, 11:50:29 PM
If it is possible! Please Please add -- Mass Upload.

Thnx for the Awesome mod.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on January 19, 2009, 09:07:55 AM
hello again vbgamer...

Been trying out this mod on 2.0 b4 and everything great except WYSIWYG editor appears when posting  comments for each image but none of the functions work?  Is this correct as comments shouldn't really be formatted anyway? If so, how can I rid that template of the editor without affecting the main forum using it?

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: LinK187 on January 19, 2009, 04:09:49 PM
Quote from: jayc7176 on January 06, 2009, 11:50:29 PM
If it is possible! Please Please add -- Mass Upload.

Thnx for the Awesome mod.

This feature exists.

Nvm, I was thinking of SMG :P
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 19, 2009, 08:23:02 PM
Quote from: willerby on January 19, 2009, 09:07:55 AM
hello again vbgamer...

Been trying out this mod on 2.0 b4 and everything great except WYSIWYG editor appears when posting  comments for each image but none of the functions work?  Is this correct as comments shouldn't really be formatted anyway? If so, how can I rid that template of the editor without affecting the main forum using it?

Thanks
The template editor should work. Will check it out.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on January 20, 2009, 06:07:21 AM
Editor works elsewhere on my site but for this mod 'java script void(0)'... ???
Title: Re: SMF Gallery 2.0.5 Released!
Post by: LeddaBlue on January 21, 2009, 09:45:55 AM
can you please tell me how to uninstall this mod?  It installed two times on my site and now there are two gallery tabs, I need to uninstall it but my package manager is not working properly, is there any way to manually uninstall? (I want to uninstall because you cannot resize pictures and they are huge when you view them.)  Please help!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: KrisBG on January 21, 2009, 11:07:31 AM
To me the problem is that when change in Cyrillic, and everything disappears from the menu. How can I correct that there is no problem with the Cyrillic alphabet
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 21, 2009, 08:05:31 PM
Quote from: KrisBG on January 21, 2009, 11:07:31 AM
To me the problem is that when change in Cyrillic, and everything disappears from the menu. How can I correct that there is no problem with the Cyrillic alphabet
You have to create a modificaions.yourlanguage.php in themes/default/languages/

And copy the gallery text from modifications.english.php to that file.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: KrisBG on January 22, 2009, 04:41:39 AM
Quote from: vbgamer45 on January 21, 2009, 08:05:31 PM
Quote from: KrisBG on January 21, 2009, 11:07:31 AM
To me the problem is that when change in Cyrillic, and everything disappears from the menu. How can I correct that there is no problem with the Cyrillic alphabet
You have to create a modificaions.yourlanguage.php in themes/default/languages/

And copy the gallery text from modifications.english.php to that file.

Thanks
Works without problems.
Have a beer on me, I will treat.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: flamechica on January 27, 2009, 04:04:51 AM
I love this app! Would it be possible to make it so the Admin is notified either by email or a pop up on the screen or something when a picture has been submitted for approval? I forget to check for awhile sometimes and miss them.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: fatesjoke03 on January 28, 2009, 01:00:47 AM
Sorry if this has been asked already but I searched and could not find an answer.

Does this allow for Coppermine migration? I am using Coppermine now but I am thinking this might be a way better option for my site.

Thanks in advance.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 28, 2009, 01:25:30 AM
Quote from: fatesjoke03 on January 28, 2009, 01:00:47 AM
Sorry if this has been asked already but I searched and could not find an answer.

Does this allow for Coppermine migration? I am using Coppermine now but I am thinking this might be a way better option for my site.

Thanks in advance.
Not yet. I have a basic coppermine script but haven't really tested it yet.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on January 31, 2009, 05:51:22 PM
vbgamer...

I need some help and I think you're the man.

On my classic car site we'd like to upload two photos per gallery item in one section - before and after shots of restorations. I know this is very specific and unlikely to be of use to others but how simple would this be to hard code into a section of the gallery?

I'm looking at upgrading to SMF Gallery Pro as users really like this section of my forum and it would be great to give them more functionality. If I could fix this one too it would make all the difference.

Any ideas? Effectively I'd like two thumbnails in each table cell, individually clickable to expand to full size as now...

Help and you can take the order for Pro as read

W

Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on January 31, 2009, 06:09:54 PM
It would require two entries in the gallery_pic table  to store the second thumbnail, and image
Then another upload field added to add_picture and edit_picture page.
Then some edits to addpicutre2 and editpicture2 function and delete picture function
Title: Missing link
Post by: Eir Loe.307 on February 03, 2009, 05:06:55 AM
No not a caveman post. Haha. Ok so I installed this mod (great mod btw) and it has been working fine. Now all the sudden my tab is gone. The gallery itself is still in tact. If I go to the mod panel and go to "Gallery Config." I can get to it and can still get to the URL, just no tab on the main page.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 03, 2009, 08:19:27 PM
Attach your index.template.php and I can fix this issue.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Eir Loe.307 on February 03, 2009, 08:21:50 PM
Quote from: vbgamer45 on February 03, 2009, 08:19:27 PM
Attach your index.template.php and I can fix this issue.

Thanks, apparently it worked itself out. I think my admin did something and fixed it back. Thanks again.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: brainfreez on February 03, 2009, 08:34:05 PM
Hi,

I tried to delete all the gallery photos on my server (rather than through the gallery itself) to make room.  But even though the photos are gone, the space used on my site hasnt lowered.  Can somebody tell me how to fix this?

Cheers
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 03, 2009, 11:43:52 PM
Quote from: brainfreez on February 03, 2009, 08:34:05 PM
Hi,

I tried to delete all the gallery photos on my server (rather than through the gallery itself) to make room.  But even though the photos are gone, the space used on my site hasnt lowered.  Can somebody tell me how to fix this?

Cheers
Could be that you have a trash can on your site's control panel that you need to empty to delete the files.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Leemy on February 06, 2009, 01:15:37 AM
When my users click on the full-sized image, they get server error 406 not acceptable.  first i updated my htaccess with apache security_mod.  now my host says that it's cuz of the semicolons in the URL which is not secure and can be misused maliciously.  they said use ampersands &.  how can this be done?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 06, 2009, 01:18:36 AM
You would need to update the links in the gallery.template.php and gallery.php

; are fine in url's they are actually the better seperate than the & and smf uses ; by default as well.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Leemy on February 06, 2009, 02:02:34 AM
I'm not competent with PHP or programming much at all but this seems to be one line that needs to be modified

   WHERE INSTR(lo.url, 's:7:\"gallery\";s:2:\"sa\";s:4:\"view\";s:2:\"id\";s:1:\"$id\";') OR lo.session = '" . ($user_info['is_guest'] ? 'ip' . $user_info['ip'] : session_id()) . "'", __FILE__, __LINE__);

Is there any sort of "find" and "replace" i can follow here??? thanks!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 06, 2009, 09:04:21 PM
You can probably do the following in gallery.template.php and gallery.php


;id=

Replace with

&id=

Title: Re: SMF Gallery 2.0.5 Released!
Post by: Leemy on February 09, 2009, 11:21:50 AM
Thanks vbgamer will try this tonight and let you know
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on February 09, 2009, 02:22:43 PM
VBgamer, could you pleeeeeaaaaasssse make a latest-item-ssi-function for smf 2.0 that I can use for my frontpage??? That would be awesome!!!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 09, 2009, 08:09:37 PM
Sure just keep bugging me so I do not forget.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on February 10, 2009, 01:19:27 AM
;D will do that! No seriously, please don't haste for me! I ment it would be great for a next release!
Title: Support question: http 406 blank page error with Gallery Lite
Post by: movingmagic on February 12, 2009, 03:33:05 PM
Hi,

I am using smf 2.0 rc1 with the Lite version of Gallery.
When I push the - Add Comment  - button I a http 406 error with the following text in the browsers address bar.

http://89.105.192.22/~id90522/katzenforum/index.php?action=gallery;sa=comment;id=4

I am using a custum theme.

Any thoughts?

Would be great. The gallery is functioning fine, the only thing, that users cannot add comments like it is now.

my website:
http://www.bettyswinkel.nl/kattenforum

Thanks a lot!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Leemy on February 12, 2009, 05:54:23 PM
movingmagic, see the code that vbgamer posted for me. Replaces your semicolons with ampersans; I tried it on your URL and it works.
Title: error with msf gallery - add comments -
Post by: movingmagic on February 13, 2009, 03:02:37 AM
Hi Saleem,

Thanks a million for your answer. I will try that now. Today, strange enough, when I try to add a comment, the error message is different from yesterday:

Not Acceptable

An appropriate representation of the requested resource /~id90522/kattenforum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So I don't know what the f*ck is happening here, but I will first try out your solution.

Thanks again

Pieter
Title: YIHAAAAAAHHHHHH!!!!!!! replacing the ;id= with &id= was the SOLUTION!!!
Post by: movingmagic on February 13, 2009, 03:28:38 AM
Thanks Saleem, and VBgamer,

This was the solution for my problems with adding comments in the Gallery Lite version of the Gallery.

Thanks a zillion!!!!

I am happy now!!!

Nice day to all

Pieter

Title: Re: SMF Gallery 2.0.5 Released!
Post by: Ashdaw on February 13, 2009, 11:12:03 AM
VB Gamer, thanks first for making this mod available. I have just installed SMF2.0 RC1 for a friend on his site as a tester and I loaded your Gallery mod but the button it comes up with is small and has no writing on it. I am using BlackRain V2 theme for RC1 and the buttons are white writing until you mouse over and they go yellow. I did look everywhere to see if I could find where the little buttons are in the theme folder but had no luck.

I hope you can give me and idea as to how I can fix this please? :)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: PES Hero on February 13, 2009, 11:32:46 AM
Ok, I've translated this mod to Spanish, here are the modifications you have to do in order to translate your gallery to Spanish.




./Themes/default/languages/Modifications.spanish.php

Find:

?>

Add before:

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Galer&iacute;a para SMF';
$txt['smfgallery_menu'] = 'Galer&iacute;a';
$txt['smfgallery_version'] = '1.0 Lite';
$txt['smfgallery_admin'] = 'Configuraci&oacute;n de la galer&iacute;a';

//Permissions
$txt['permissiongroup_smfgallery'] = 'Galer&iacute;a para SMF';

$txt['permissionname_smfgallery_view'] = 'Ver la galer&iacute;a';
$txt['permissionhelp_smfgallery_view'] = 'Permite a los usuarios acceder a la galer&iacute;a.';
$txt['cannot_smfgallery_view'] = 'No tienes permisos para ver la galer&iacute;a.';

$txt['permissionname_smfgallery_add'] = 'Subir im&aacute;genes';
$txt['permissionhelp_smfgallery_add'] = 'Permite a los usuarios subir im&aacute;genes a la galer&iacute;a.';
$txt['cannot_smfgallery_add'] = 'No tienes permisos para subir im&aacute;genes a la galer&iacute;a.';

$txt['permissionname_smfgallery_edit'] = 'Editar sus propias im&aacute;genes';
$txt['permissionhelp_smfgallery_edit'] = 'Permite a los usuarios editar las im&aacute;genes que ellos mismos han subido.';
$txt['cannot_smfgallery_edit'] = 'No tienes permisos para editar im&aacute;genes.';

$txt['permissionname_smfgallery_delete'] = 'Borrar sus propias im&aacute;genes';
$txt['permissionhelp_smfgallery_delete'] = 'Permite a los usuarios borrar las im&aacute;genes que ellos mismos han subido.';
$txt['cannot_smfgallery_delete'] = 'No tienes permisos para borrar im&aacute;genes.';

$txt['permissionname_smfgallery_comment'] = 'Dejar comentarios';
$txt['permissionhelp_smfgallery_comment'] = 'Permite a los usuarios escribir comentarios en las im&aacute;genes.';
$txt['cannot_smfgallery_comment'] = 'No tienes permisos para dejar comentarios.';

$txt['permissionname_smfgallery_report'] = 'Reportar im&aacute;genes y comentarios';
$txt['permissionhelp_smfgallery_report'] = 'Permite a los usuarios reportar las im&aacute;genes y comentarios inapropiados.';
$txt['cannot_smfgallery_report'] = 'No tienes permisos para reportar contenidos.';

$txt['permissionname_smfgallery_autoapprove'] = 'Aprobar autom&aacute;ticamente las im&aacute;genes';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Las im&aacute;genes que suban los usuarios se mostrar&aacute;n autom&aacute;ticamente sin necesidad de ser aprobadas por parte de los administradores.';

$txt['permissionname_smfgallery_manage'] = 'Administrar la galer&iacute;a';
$txt['permissionhelp_smfgallery_manage'] = 'Permite a los usuarios adminstrar la galer&iacute;a y todo su contenido.';
$txt['cannot_smfgallery_manage'] = 'No tienes permisos para administrar la galer&iacute;a.';

//END SMF Gallery Text Strings





./Themes/default/languages/Who.spanish.php

Find:

?>

Add before:

//Begin SMF Gallery
$txt['whoall_gallery'] = 'Viendo la <a href="' . $scripturl . '?action=gallery">Galer&iacute;a</a>.';
//END SMF Gallery Strings





./Themes/default/Gallery.template.php

Find (there are four of them):

<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="[email protected]">
<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>


And replace with:

<tr class="windowbg"><td><b>&iquest;Te ha ayudado SMF Gallery?</b> Entonces ayuda a los desarrolladores:<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="[email protected]">
<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 />Puedes mejorar la galer&iacute;a instalando <a href="http://www.smfhacks.com/smf-gallery-pro.php" target="blank">SMF Gallery Pro</a>.





Find:

// Copyright link must remain. To remove you need to purchase link removal at smfhacks.com
echo '<div align="center"><span class="smalltext">Powered by: <a href="http://www.smfhacks.com/smf-gallery.php" target="blank">SMF Gallery</a></span></div>';


And replace with:

// Copyright link must remain. To remove you need to purchase link removal at smfhacks.com
echo '<div align="center"><span class="smalltext">Proporcionado por <a href="http://www.smfhacks.com/smf-gallery.php" target="blank">SMF Gallery</a></span></div>';





This is a bug that I've found and fixed. Find:

if ($modSettings['gallery_set_showcode_htmllink'])
{
echo '<tr><td width="30%">', $txt['gallery_set_showcode_htmllink'], '</td><td> <input type="text" value="<img src=&#34;' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '&#34; />" size="50" /></td></tr>';
}


And replace with:

if ($modSettings['gallery_set_showcode_htmllink'])
{
echo '<tr><td width="30%">', $txt['gallery_txt_htmllink'], '</td><td> <input type="text" value="<img src=&#34;' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '&#34; />" size="50" /></td></tr>';
}





Create the PHP file ./Themes/default/languages/Gallery.spanish.php and add inside...

<?php
/*
SMF Gallery Lite Edition
Version 2.0
by:vbgamer45
http://www.smfhacks.com
Copyright 2008 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 Spanish Text Strings
Translated by PES Hero
*/

//Gallery.template.php Strings

//Title string
$txt['gallery_text_title'] = 'Galer&iacute;a';

//Main gallery table strings
$txt['gallery_text_galleryname'] = 'Nombre del &aacute;lbum';
$txt['gallery_text_gallerydescription'] = 'Descripci&oacute;n';
$txt['gallery_text_totalimages'] = 'Im&aacute;genes';
$txt['gallery_text_reorder'] = 'Reordenar';
$txt['gallery_text_options'] = 'Opciones';

$txt['gallery_text_adminpanel'] = 'Panel de administraci&oacute;n de la galer&iacute;a';
$txt['gallery_text_addcategory'] = 'A&ntilde;adir una categor&iacute;a';
$txt['gallery_text_editcategory'] = 'Editar categor&iacute;a';
$txt['gallery_text_delcategory'] = 'Borrar categor&iacute;a';
$txt['gallery_text_settings'] = 'Configuraci&oacute;n';
$txt['gallery_text_permissions'] = 'Permisos';
$txt['gallery_text_imgwaitapproval'] = 'Im&aacute;genes esperando aprobaci&oacute;n: ';
$txt['gallery_text_imgcheckapproval'] = 'Revisar las im&aacute;genes aprobadas';

$txt['gallery_text_imgreported'] = 'Im&aacute;genes reportadas: ';
$txt['gallery_text_imgcheckreported'] = 'Revisar los reportes';
$txt['gallery_at'] = ' el ';

$txt['gallery_write_error'] = '&iexcl;No se puede escribir en esta parte de la galer&iacute;a! ';
$txt['gallery_text_myimages'] = '[Mis im&aacute;genes]';
$txt['gallery_text_search'] = '[Buscar]';
$txt['gallery_text_edit'] = '[Editar]';
$txt['gallery_text_delete'] = '[Borrar]';
$txt['gallery_text_unapprove'] = '[Desaprobar]';
$txt['gallery_text_approve'] = '[Aprobar]';
$txt['gallery_text_up'] = '[Subir]';
$txt['gallery_text_down'] = '[Bajar]';
$txt['gallery_text_reportpicture'] = '[Reportar imagen]';
$txt['gallery_text_delcomment'] = '[Borrar comentario]';


$txt['gallery_text_filesize'] = 'Tama&ntilde;o: ';
$txt['gallery_text_by'] = 'Por:';
$txt['gallery_text_date'] = 'Fecha: ';
$txt['gallery_text_comments'] = 'Comentarios';
$txt['gallery_text_views'] = 'Vistas: ';

$txt['gallery_text_addpicture'] = 'Subir una imagen';
$txt['gallery_text_returngallery'] = 'Volver a la galer&iacute;a';

//Online strings
$txt['gallery_who_viewgallery'] = ' est&aacute;n viendo este &aacute;lbum.';
$txt['gallery_who_viewpicture'] = ' est&aacute;n viendo esta imagen.';
$txt['gallery_who_members'] = 'Miembros';
$txt['gallery_who_hidden'] = 'Ocultos';

//Form Strings
$txt['gallery_form_title'] = 'T&iacute;tulo:';
$txt['gallery_form_description'] = 'Descripci&oacute;n:';
$txt['gallery_form_icon'] = 'URL del icono para el &aacute;lbum:';

$txt['gallery_warn_category'] = 'Cuidado, esto borrar&aacute; esta categor&iacute;a y todas las im&aacute;genes, comentarios y puntuaciones que contenga.';

$txt['gallery_form_addpicture'] = 'Subir una imagen';
$txt['gallery_form_category'] = '&Aacute;lbum:';
$txt['gallery_form_keywords'] = 'Palabras clave:';
$txt['gallery_form_uploadpic'] = 'Imagen a subir:';
$txt['gallery_form_maxwidth'] = 'Anchura m&aacute;xima de ';
$txt['gallery_form_maxheight'] = 'Altura m&aacute;xima de ';
$txt['gallery_form_pixels'] = ' p&iacute;xeles';
$txt['gallery_form_additionaloptions'] = 'Opciones adicionales:';
$txt['gallery_form_allowcomments'] = 'Permitir comentarios en esta imagen.';
$txt['gallery_form_notapproved'] = 'Tu imagen no aparecer&aacute; en la galer&iacute;a para otros usuarios hasta que sea aprobada.';
$txt['gallery_form_editpicture'] = 'Editar imagen';
//View picture
$txt['gallery_text_picstats'] = 'Estad&iacute;sticas de la imagen:';
$txt['gallery_text_height'] = 'Altura:';
$txt['gallery_text_width'] = 'Anchura:';
$txt['gallery_text_postedby'] = 'Subida por ';
$txt['gallery_text_addcomment'] = 'Escribir un comentario';
//Delete picture
$txt['gallery_warn_deletepicture'] = 'Cuidado, esto borrar&aacute; tu imagen, y no podr&aacute;s recuperarla.';
$txt['gallery_form_delpicture'] = 'Borrar imagen';


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

$txt['gallery_form_reportpicture'] = 'Reportar imagen';

//Gallery admin pics
$txt['gallery_form_managecats'] = 'Administrar categor&iacute;as';
$txt['gallery_form_approveimages'] = 'Aprobar im&aacute;genes';
$txt['gallery_form_reportimages'] = 'Im&aacute;genes reportadas';

//Settings page
$txt['gallery_set_description'] = 'Te permite cambiar diversos par&aacute;metros de la galer&iacute;a.';
$txt['gallery_set_maxheight'] = 'Altura m&aacute;xima permitida: ';
$txt['gallery_set_maxwidth'] = 'Anchura m&aacute;xima permitida: ';
$txt['gallery_set_filesize'] = 'Tama&ntilde;o m&aacute;ximo de archivo: ';
$txt['gallery_set_path'] = 'Ubicaci&oacute;n de la galer&iacute;a: ';
$txt['gallery_set_url'] = 'URL de la galer&iacute;a: ';
$txt['gallery_set_whoonline'] = 'Mostrar qui&eacute;n est&aacute; viendo las im&aacute;genes.';
$txt['gallery_set_images_per_page'] = 'Im&aacute;genes por p&aacute;gina:';

$txt['gallery_shop_settings'] = '<b>Configuraci&oacute;n de los Shop Points</b><br /><span class="smalltext">S&oacute;lo si el m&oacute;dulo SMF Shop est&aacute; instalado.</span>';
$txt['gallery_shop_picadd']  = 'Cada imagen a&ntilde;ade estos puntos: ';
$txt['gallery_shop_commentadd'] = 'Cada comentario a&ntilde;ade estos puntos: ';

// BBC and Image Links code
$txt['gallery_txt_image_linking'] = 'Enlaces de las im&aacute;genes';
$txt['gallery_set_showcode_bbc_image'] = 'Mostrar el BBCode';
$txt['gallery_set_showcode_directlink'] = 'Mostrar el enlace directo';
$txt['gallery_set_showcode_htmllink'] = 'Mostrar el  c&oacute;digo HTML';


$txt['gallery_txt_bbcimage'] = 'BBCode';
$txt['gallery_txt_directlink'] = 'Enlace directo';
$txt['gallery_txt_htmllink'] = 'C&oacute;digo HTML';


$txt['gallery_set_commentschoice'] = 'Permitir a los usuarios decidir si se pueden dejar comentarios en sus im&aacute;genes o no.';
$txt['gallery_set_permissionnotice'] = 'No olvides configurar los permisos referidos a la galer&iacute;a para cada grupo de usuarios.';
$txt['gallery_set_editpermissions'] = 'Editar los permisos';

//Approve list
$txt['gallery_app_image'] = 'Imagen';
$txt['gallery_app_title'] = 'T&iacute;tulo';
$txt['gallery_app_description'] = 'Descripci&oacute;n';
$txt['gallery_app_date'] = 'Fecha';
$txt['gallery_app_membername'] = 'Usuario';

//Report list
$txt['gallery_rep_piclink'] = 'Enlace la imagen';
$txt['gallery_rep_reportby'] = 'Reportada por';
$txt['gallery_rep_comment'] = 'Comentario';
$txt['gallery_rep_viewpic'] = 'Ver imagen';
$txt['gallery_rep_deletepic'] = '[Borrar imagen]';
$txt['gallery_rep_delete'] = '[Borrar reporte]';

//Search Page
$txt['gallery_search_pic'] = 'Buscar una imagen';
$txt['gallery_search_for'] = 'Buscar por:';
$txt['gallery_search_title'] = 'Buscar en los t&iacute;tulos';
$txt['gallery_search_description'] = 'Buscar en las descripciones';
$txt['gallery_search_keyword'] = 'Buscar por palabras clave';
$txt['gallery_search'] = 'Buscar';

$txt['gallery_searchresults'] = 'Resultados de la b&uacute;squeda';

//My Images
$txt['gallery_myimages'] = 'Mis im&aacute;genes';
$txt['gallery_myimages_app'] = 'Im&aacute;genes aprobadas';
$txt['gallery_myimages_notapp'] = 'Im&aacute;genes no aprobadas';

$txt['gallery_save_settings'] = 'Guardar la configuraci&oacute;n';
//#############################
//Gallery.php Strings
//#############################
$txt['gallery_error_cat_title'] = 'Tienes que poner un nombre para el &aacute;lbum.';
$txt['gallery_error_no_pic_selected'] = 'No has seleccionado ninguna imagen.';
$txt['gallery_error_pic_notapproved'] = 'Esta imagen no est&aacute; aprobada a&uacute;n y no tienes permisos para verla.';
$txt['gallery_error_no_title'] = 'Tienes que poner un t&iacute;tulo a la imagen.';
$txt['gallery_error_no_cat'] = 'Tienes que seleccionar un &aacute;lbum.';
$txt['gallery_error_invalid_picture'] = 'No es un archivo de imagen v&aacute;lido.';
$txt['gallery_error_img_size_height'] = 'La imagen excede las dimensiones m&aacute;ximas. La altura era:  ';
$txt['gallery_error_img_size_width'] = ' La anchura era: ';
$txt['gallery_error_img_filesize'] = 'La imagen excede el tama&ntilde;o m&aacute;ximo de archivo. El m&aacute;ximo permitido es ';
$txt['gallery_error_no_picture'] = 'No se encontr&oacute; ninguna imagen subida.';
$txt['gallery_error_noedit_permission'] = 'No tienes permisos para editar esta imagen.';
$txt['gallery_error_nodelete_permission'] = 'No tienes permisos para borrar esta imagen.';
$txt['gallery_error_no_comment'] = '&iexcl;Tienes que escribir alg&uacute;n comentario!';
$txt['gallery_error_not_allowcomment'] = '&iexcl;Esta imagen no permite comentarios!';
$txt['gallery_error_no_com_selected'] = 'No has seleccionado ning&uacute;n comentario.';
$txt['gallery_error_no_user_selected'] = 'No has seleccionado ning&uacute;n usuario.';
$txt['gallery_error_no_report_selected'] = 'No has seleccionado ning&uacute;n reporte.';
$txt['gallery_error_no_search'] = 'Debes introducir alg&uacute;n t&eacute;rmino de b&uacute;squeda...';
$txt['gallery_error_search_small'] = 'El t&eacute;rmino de b&uacute;squeda debe tener m&aacute;s de tres caracteres.';

$txt['gallery_guest'] = 'Visitante';
$txt['gallery_text_oldpicture'] = 'Imagen antigua';

$txt['gallery_nocatabove'] = 'No hay ninguna categor&iacute;a sobre &eacute;sta.';
$txt['gallery_nocatbelow'] = 'No hay ninguna categor&iacute;a bajo &eacute;sta.';

$txt['gallery_nopicsincategory'] = '&iexcl;No hay im&aacute;genes en este &aacute;lbum!';

$txt['gallery_text_posts'] = 'Mensajes:';
$txt['gallery_text_pages'] = 'P&aacute;ginas: ';

// Latest Version: 
$txt['gallery_txt_latestversion'] = '&Uacute;ltima versi&oacute;n: ';
$txt['gallery_txt_yourversion'] = 'Tu versi&oacute;n: ';
$txt['gallery_txt_version_outofdate'] = '&iexcl;La versi&oacute;n de tu galer&iacute;a no est&aacute; actualizada!'

?>





I think that's all, I hope that vbgamer45 adds it to the official package. ;D
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on February 14, 2009, 12:02:16 AM
stupid question time...sorry

but is this the same as smf hacks gallery or is it a different animal all together?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 14, 2009, 12:28:08 AM
This is the lite edition of SMF Gallery.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Father Luke on February 14, 2009, 02:23:56 AM
Was curious if this creates folders that are owned by the server.
Nothing bugs me more than a folder I cannot delete on my own website.

If so? I won't be using this.


Thanks!

- -
Okay,
Father Luke
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 14, 2009, 12:17:55 PM
It does not create folders.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: rii on February 14, 2009, 12:51:39 PM
I have no errors with installing or uninstalling this mod but after the uninstallation this morning, the main menu tab (Gallery) and the admin link (Gallery Configuration) are still in place. Do they need to be removed from the database or somewhere manually? I made sure to remove it from the permission section, and also emptied the cache.


Thank you.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 14, 2009, 01:03:48 PM
What version of SMF are you running?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Father Luke on February 14, 2009, 05:55:43 PM
Thanks vbgamer45!

- -
Okay,
Father Luke
Title: Re: SMF Gallery 2.0.5 Released!
Post by: rii on February 14, 2009, 06:59:30 PM
I have SMF2beta4


Thank you.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 14, 2009, 09:02:00 PM
Yeah if you are using SMF2beta4 probably a cache issue. Try emptying on the forum.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: rii on February 14, 2009, 10:12:26 PM
I have emptied the cache and so on for a few times now. I am trying on two different computers with two different browser. I will keep on trying to remove it. It there a location where those links info installed?

Thanks.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 15, 2009, 10:26:12 PM
Quote from: rii on February 14, 2009, 10:12:26 PM
I have emptied the cache and so on for a few times now. I am trying on two different computers with two different browser. I will keep on trying to remove it. It there a location where those links info installed?

Thanks.
Those two links are stored in Sources/Admin.php and Sources/Subs.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on February 16, 2009, 05:24:32 AM
VBGAMER: I have made this SSI function to fetch the latest items in the gallery. It works for me, although I have no clue if the code is clean, however it works.
Maybe U can use it for a next release?


function ssi_galitems($limit = null, $output_method = 'echo')
{
global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
       
// Check if GD is installed if not we will not show the thumbnails
$GD_Installed = function_exists('imagecreate');
         
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




$context['start'] = (int) $_REQUEST['start'];

$dbresult = $smcFunc['db_query']('', "
SELECT COUNT(*) AS total
FROM {db_prefix}gallery_pic as p
WHERE p.approved = 1");
$row = $smcFunc['db_fetch_assoc']($dbresult);
$totalPics = $row['total'];
                  $smcFunc['db_free_result']($dbresult);



// Show the pictures
$dbresult = $smcFunc['db_query']('', "
SELECT p.id_picture, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width,
p.title, p.id_member, m.member_name, m.real_name, p.date, p.description
FROM {db_prefix}gallery_pic as p
LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
WHERE p.approved = 1 ORDER BY id_picture DESC LIMIT $context[start]," . $limit);
$rowlevel = 0;

                 



while($row = $smcFunc['db_fetch_assoc']($dbresult))
{
if ($rowlevel == 0)

echo '<div class="panel">
<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '">
<img ' . ($GD_Installed == true ?  'src="http://www.weeklyfun.nl/forum/gallery/' . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '"')  . ' alt="Bekijk dit plaatje in het groot!" /></a></div>';


if($rowlevel < ($maxrowlevel-1))
$rowlevel++;
else
{
echo '';
$rowlevel = 0;
}



}


if ($rowlevel !=0)
{
echo '';
}




$smcFunc['db_free_result']($dbresult);
}
Title: Re: SMF Gallery 2.0.5 Released!
Post by: gemigene on February 16, 2009, 06:12:30 PM
Nice Mod, congrats.

One question though, would a pagination function be easy to implement? I can't imagine hundreds of thumbnails on one very long page.

Cheers,
Gene
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 16, 2009, 08:02:42 PM
I believe I added it to the SMF 2.x version of the modification
Title: Re: SMF Gallery 2.0.5 Released!
Post by: gemigene on February 16, 2009, 08:12:57 PM
Quote from: vbgamer45 on February 16, 2009, 08:02:42 PM
I believe I added it to the SMF 2.x version of the modification

I have Gallery 2.0.5 running on SMF 1.1.8, will it do pagination on it's own or is that for SMF 2* only?

Thanks,
Gene
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on February 16, 2009, 08:25:00 PM
is there any way to do pagination in the 1.8.3 version? We would love to not have a boat load of images on one page only
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 16, 2009, 08:32:42 PM
It is only for the SMF 2.0 version at this time.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: gemigene on February 16, 2009, 08:36:22 PM
Quote from: vbgamer45 on February 16, 2009, 08:32:42 PM
It is only for the SMF 2.0 version at this time.

Are you planning on implementing it? I'm sure a lot of users don't plan on upgrading to ver. 2 for a while yet.

Thanks,
Gene
Title: Re: SMF Gallery 2.0.5 Released!
Post by: time31415 on February 16, 2009, 09:23:43 PM
When I installed this it didn't work so I tried to uninstall it. It didn't uninstall properly so left the Gallery link in the nav bar broken, and it left many different things in the Admins section still there.

What file didn't get deleted?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on February 16, 2009, 09:24:29 PM
true many of us are not planning to upgrade higher for quite awhile and yet would like to have pages and not just one long page to scroll thru. I had the paid version of this one but have since left the site that we had it for and was told that although we paid for it we are not allowed to use it for any other location..not right since it is paid for but since then we went to the free one.

I also have it implemented in other forums I have set up--the lite version--and they would like to have pages too.

Having to have it for only one certain website is what is deterring us from purchasing again to be honest...otherwise the gallery is great
Title: Re: SMF Gallery 2.0.5 Released!
Post by: time31415 on February 17, 2009, 06:02:32 PM
What files didn't uninstall?
What files do I need to delete?

It also shows up the SMF gallery in the permissions section.

Title: Re: SMF Gallery 2.0.5 Released!
Post by: 4b11l on February 26, 2009, 03:40:09 AM
Hello,

I am currently using Gallery 1.1.8.1.2, can I update to this or will I have to uninstall and reinstall the newer version.
Will there be any problems of losing images or categories if that's the case?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 26, 2009, 09:13:25 PM
Quote from: 4b11l on February 26, 2009, 03:40:09 AM
Hello,

I am currently using Gallery 1.1.8.1.2, can I update to this or will I have to uninstall and reinstall the newer version.
Will there be any problems of losing images or categories if that's the case?
You can upgrade or uninstall and resinstall. Uninstalling does not delete pictures or data
Title: Re: SMF Gallery 2.0.5 Released!
Post by: 4b11l on February 27, 2009, 12:07:59 AM
Quote from: vbgamer45 on February 26, 2009, 09:13:25 PM
Quote from: 4b11l on February 26, 2009, 03:40:09 AM
Hello,

I am currently using Gallery 1.1.8.1.2, can I update to this or will I have to uninstall and reinstall the newer version.
Will there be any problems of losing images or categories if that's the case?
You can upgrade or uninstall and resinstall. Uninstalling does not delete pictures or data

So I can just upload this package and install normally? Or is there a seperate upgrade package.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 27, 2009, 12:42:23 AM
Yes. I would suggest to uninstall and reinstall though.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: 4b11l on February 27, 2009, 12:45:14 AM
Ok.

I just tried it and this was what I got.

QuoteThis package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

I will uninstall and reinstall. I will let you know if I should encounter any problems.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 27, 2009, 12:47:17 AM
You should be good. If it fails on like modifications.english.php when uninstalling that is ok and is normal.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on February 27, 2009, 02:49:40 AM
vb just installed it on 2.0RC1 and missing the link again.
http://modularfoxmustangs.com
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 27, 2009, 08:12:13 AM
Missing the link to the gallery?

It looks like it added to the template. Check the text gallery text from modifications.english.php is in your themes languages modifications.english.php file
Title: Re: SMF Gallery 2.0.5 Released!
Post by: videoman57 on February 27, 2009, 02:03:12 PM
are you planning any comment email notification for the gallery 2.0.5?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 27, 2009, 08:35:34 PM
Might for picture owner?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: wickedstangs on February 28, 2009, 01:53:09 AM
Quote from: vbgamer45 on February 27, 2009, 08:12:13 AM
Missing the link to the gallery?

It looks like it added to the template. Check the text gallery text from modifications.english.php is in your themes languages modifications.english.php file

VB still can't figure it out can you give me a hand.. thanks and just installed your EZportal might need some guidance... Oh ya do you have a copy of the SMFGarage been trying to email that guy not replying...
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on February 28, 2009, 10:10:10 AM
What part are you stuck at? Did you add the gallery text to the modifications.language.php files?
For default and custom theme?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Anthems on March 01, 2009, 12:52:00 PM
Hey!
I guess the forum search is not working right, so I can't find an answer to my problem. Well it's not really a problem, just a commodity.

Is it possible to change the user interface language? I added a portuguese text string translation based on the modifications.english.php to modifications.portuguese.php, but it just changes the language at the permissions menu.

I wanted to change everything to portuguese, if it's possible. Just point me to the file thats needs translation if it exists.

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 01, 2009, 01:29:29 PM
For the gallery you would also need to translate Gallery.english.php then the interface will also be in portuguese
Title: Re: SMF Gallery 2.0.5 Released!
Post by: techbot on March 04, 2009, 10:00:58 PM
I'm getting the following when trying to add this to my site:

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed

Those are the only errors I get. I'm running SMF 1.1.8
with Tiny Portal
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 04, 2009, 10:05:40 PM
Open up /Themes/default/languages/Modifications.english.php
Find ?>
Make sure it is on its own line.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: SantaClaws on March 08, 2009, 07:51:35 AM
Just a suggestion; can you add something like where you can ban a certain user from viewing the Gallery? I can't see a feature like that, and I think it would be useful.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 08, 2009, 12:07:22 PM
Currently you would have to add them to a different membergroup then restrict access to the gallery
Title: Re: SMF Gallery 2.0.5 Released!
Post by: chris345 on March 13, 2009, 07:41:55 PM
I currently have SMFGallery2.0.5 installed on my forum for quite some time. However I am having a bit of trouble with one user. They are a regular user who has uploaded many pictures and been able to comment on them. However one evening them uploaded a picture, but not image appear, so I deleted the image and ask them to re upload it. They can upload pictures still BUT they can not comment on any image. Every time they post a comment on a picture, an error arises saying "they have not posted any comment?" They have become very frustrated with the matter and I have done as much as I can with my limited knowledge of php to attempt to aid them. I have tried setting them to any admin, but still no solution, it doesn't seem to be a permission issue; every other user can comment.........any help?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 13, 2009, 08:19:38 PM
On SMF 2.0? If so it might be the wywyg editor.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: chris345 on March 14, 2009, 07:41:13 AM
Quote from: vbgamer45 on March 13, 2009, 08:19:38 PM
On SMF 2.0? If so it might be the wywyg editor.

Yes on SMF 2.0 Beta 4, it started to occur for this one specific user. Even when I log into their account and test it, it doesn't work; how would I fix this wywyg editor problem?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 14, 2009, 01:23:13 PM
Try resetting the themes -> Current Theme -> Reset Options and disable the editor
Title: Re: SMF Gallery 2.0.5 Released!
Post by: chris345 on March 14, 2009, 02:47:37 PM
Quote from: vbgamer45 on March 14, 2009, 01:23:13 PM
Try resetting the themes -> Current Theme -> Reset Options and disable the editor

Yea, that is what it was. Thxs  :D
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on March 17, 2009, 07:16:34 AM
I'm sorry but there's just too many pages to read through in this thread to see whether my problem has already been addressed. If it has, apologies!

Ok, so I've successfully installed SMF gallery lite 1.8.3. (Im running SMF 1.1.8) The gallery configuration tab is present in the admin panel, and is working fine. I created a gallery and uploaded a pic with no problems.
My only issue is that there is no gallery tab at the top of the main page for myself or members to click on. Any ideas how I can fix this? When I change my theme over to the default core theme, I can see the tab there, but in my custom theme, its missing. Please help!

Jez
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 17, 2009, 08:02:41 PM
For SMF 1.1.8 you need to add a custom tab/link to the index.template.php of your custom theme
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on March 18, 2009, 02:32:25 AM
Mmm, im quite the noob, so this sounds a bit beyond my skills at the moment.  Are you referring to what was dicussed on page 3 of this thread? I just need to copy and past that stuff in the right section of my index template?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 18, 2009, 04:42:16 PM
depending on the theme it is not hard to add that button....although I will admit some themes are not nice and have the button coding different...lol

what you do is open the index.template.php file in a text editor....a duplicate of it that is.

then 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>' : '';


Then after it add:

// 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>' : '';


save it then upload it back to your server replacing the one there.

Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on March 18, 2009, 11:28:53 PM
Thanks a heap DarkAngel612, I'll give this a try!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 19, 2009, 01:21:57 AM
keep us posted
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on March 19, 2009, 06:23:58 AM
Hi again

So I duplicated my index.template.php, added the gallery script as instructed, and replaced my old index templates in my default and custom theme with that one. (attached for reference). It worked! The gallery tab is now there up the top. Thanks for your help!

Some other things have happened though which I'm hoping I can get rid of. What has happened now is that the simple machines logo now appears on the right hand side of the header, a white 2mm thick line runs across the top just underneath the header, where there's some text saying 'Welcome, Guest. Please login or register' it is now in white rather than black like it was previously, and underneath that text it used to be brown, but is now cream coloured. Is there something in the code you provided that I can edit to get rid of these four changes/additions? Weird!


:-[

Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 19, 2009, 10:22:42 PM
I'm taking a look but the code I provied you is just a plain copy/paste from the default index.template.php file...nothing added nothing left out.

Now that said, I have noticed that some themes when adding something that seems to make the height a different size will do that but this one just added the button.

hang on
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 19, 2009, 10:44:35 PM
a;right since it won't let me edit I will just reply...lol


1. to remove the logo for smf I removed this code:

<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>


it was located on line approx. 191, where it lists the code for your header (name of site in the theme.

Now my question to you also is ...you duplicated the file---that is great---but did you duplicate the one from the server or one from your computer, say perhaps before you or someone else edited it?

I have attached the fixed file to get rid of the logo but the color of the font is probably able to be changed in the style.css file as well as maybe the  line...since I did not see anything about the line near the same area as the code was found.

I can do minor things like this so maybe someone else can tell us why the theme seems to have reverted...did you edit it prior to  wanting the button for the gallery?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mike s on March 19, 2009, 11:43:10 PM
I'll ask here in case anyone else has run into the same situation..

I am trying to install SMF Gallery Pro onto my SMF20RC1 site. It installed fine, configured no issue, and I Was able to create categories and batch upload files.  I see the thumbnails and it all looks good. But thats as far as it works. But I cant view the actual picture, or use any of the commands at the thumbnail (unapprove/edit/delete).. it just gives me a 501/505 This Page can not be displayed.

I have asked on the SMFHacks site but havent got to the issue yet, so I'd thought I'd post here for a wider audience. Any help is greatly appreciated.

regards, Mike.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 19, 2009, 11:54:37 PM
is this with the default smf theme or another one
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mike s on March 20, 2009, 12:39:08 AM
I'm using Anecdota theme for 20RC1 and I have switched back to default theme and get the same issue.

If I turn off friendly error messages in my IE, I get the following comment:

"Method Not Implemented
GET to /smf/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on March 20, 2009, 12:49:32 AM
Hi DarkAnglel

Thanks for investigating, you help is appreciated. I removed the code, and that has worked. The smf logo is now gone. I took a duplicated from my server. I haven't made any changes to it in the past. (from what I can remember). I'll look into the CSS side off things like you said. Time to learn more!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mike s on March 20, 2009, 01:25:38 AM
Quote from: gofishont on March 20, 2009, 12:39:08 AM
I'm using Anecdota theme for 20RC1 and I have switched back to default theme and get the same issue.

If I turn off friendly error messages in my IE, I get the following comment:

"Method Not Implemented
GET to /smf/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


Problem solved.. thanks all!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 20, 2009, 01:30:49 AM
@Jez
great and good luck in getting rid of the line and color changes in the .css file

@gofishont:

It is always great when the problem is resolved but it would be even better if you post what you did to fix it so any one else with the problem can find the answer too.

Title: Re: SMF Gallery 2.0.5 Released!
Post by: mike s on March 20, 2009, 11:18:58 AM
Quote from: DarkAngel612 on March 20, 2009, 01:30:49 AM

@gofishont:

It is always great when the problem is resolved but it would be even better if you post what you did to fix it so any one else with the problem can find the answer too.

Yes, you're right DarkAngel612, you're right but it was quite late and I didnt want anyone spending more time on it.. here's the answer:

It is an issue with mod_security they do not like ;id= in the url for some reason

You can open Sources/Gallery2.php

Code:
;id=
And replace all with

Code:
&id=

And themes/default/Gallery2.template.php

Find

Code:
;id=
And replace all with

Code:
&id=




Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 20, 2009, 07:04:04 PM
Thank you for that...people helping each other with this coding stuff makes it less work for the programmers so they can devote that extra time in developing more goodies for us...lol
Title: Re: SMF Gallery
Post by: XtremeBG on March 21, 2009, 06:36:44 AM
Hello.
A great modification but there seems to be a problem.
When there are no even numbers, e.g. 4, 8, 12, etc. pictures in a row, I get black parts.

Example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Faedlion.net%2Fbitbucket%2Fgallery%2520error.jpg&hash=93fc9759b33433ddbdae39aa914f8eebd2e5f3ba)

Any suggestions or advice? :(
Thanks in advance.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 21, 2009, 02:07:55 PM
Image isn't loading for me at the moment.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 21, 2009, 05:45:18 PM
I see the image but the only black I see is the end row...the image is kind of small so if it is in the wording under the pics then I can't see the black squares

maybe put the image as an attachment to be able to see it bigger---if it is bigger
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 21, 2009, 07:10:14 PM
Quote from: DarkAngel612 on March 18, 2009, 04:42:16 PM
depending on the theme it is not hard to add that button....although I will admit some themes are not nice and have the button coding different...lol

what you do is open the index.template.php file in a text editor....a duplicate of it that is.

then find:


angel, could u hlp me add button of gallery on my theme, its the gothic theme, and i think i should add something around line 768, but am not into php , even i tryed, without success :(
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 21, 2009, 07:57:14 PM
hmm, i have not seen an index.template file like that one...it lists where to create the buttons but not showing the coding for it.

is it the original or did you edit it somehow...is it from the server ?

a link so I can see the forum would be helpful and which theme is it please
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 21, 2009, 08:11:07 PM
am not yet useing it on my web, have to modify it and edit for mods wich i use, but here is the link for theme, its in dl section:
http://custom.simplemachines.org/themes/index.php?lemma=1328

i didnt edit nothing so far, exept removed search bar, but am sure i didnt remove any part of other coding.
if u  still need access to site or something, just yell ;)

-thx for ur time :)


Quote from: DarkAngel612 on March 21, 2009, 07:57:14 PM
hmm, i have not seen an index.template file like that one...it lists where to create the buttons but not showing the coding for it.

is it the original or did you edit it somehow...is it from the server ?

a link so I can see the forum would be helpful and which theme is it please
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 21, 2009, 08:26:49 PM
I am downloading the theme now so I can see the original file --- give me a few and I will see if I am blind or not...lol
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 21, 2009, 09:27:28 PM
Well sugar if I had a brain I would be real dangerous. It occured to me while trolling the file that you are using smf2 in order to have the smf2 theme...lol

that said, in the smf 1.18 I can get the button but I don't use that version 2 of either the forum software nor the tiny portal so I am afraid I can't help...sorry.

when opening up the two files I immediatlely saw the difference in them, that is when it hit me but...

what you can do is open the smf2 deault index.template.php and see where the code got put into it, then copy/paste it to the same place on your themes file...I would be real curious to see the defaults smf2 theme file too so I may go download it just to take a peek.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 21, 2009, 09:33:22 PM
Quote from: DarkAngel612 on March 21, 2009, 09:27:28 PM

what you can do is open the smf2 deault index.template.php and see where the code got put into it, then copy/paste it to the same place on your themes file...I would be real curious to see the defaults smf2 theme file too so I may go download it just to take a peek.


i just wanted to go sleep, and throw an eye on ur post, and now i have to try it. will give u result in short.
btw, now i understand why u have tht nick  ;D    but i would call u Night Lady
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 21, 2009, 09:59:02 PM
nop, no luck....

default theme:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="main_menu">
<ul class="clearfix">';

foreach ($context['menu_buttons'] as $act => $button)
{
$classes = array();
if (!empty($button['active_button']))
$classes[] = 'active';
if (!empty($button['is_last']))
$classes[] = 'last';
$classes = implode(' ', $classes);

echo '
<li id="button_', $act, '"', !empty($classes) ? ' class="' . $classes . '"' : '', '>
<a title="', $act, '" href="', $button['href'], '">
<span>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
</a>
</li>';
}

echo '
</ul>
</div>';
}



tricky theme:

// Show the menu up top. Something like [home] [help] [profile] [logout]...

function template_menu()

{

global $context, $settings, $options, $scripturl, $txt;



echo '

<div id="topmenu">

<ul>';



foreach ($context['menu_buttons'] as $act => $button)

echo '<li><a ', $button['active_button'] ? ' class="current"' : '' , ' href="', $button['href'], '"><span>', $button['title'], '</span></a></li>';



echo '

</ul>

</div>';

}



i think thats the place for it, but i ll atach u all file, however, default theme had 6-7 mods, just to give a note :)
i tryed to copy from default to this one, but i get from default skin and buttons, but again one empty space for gallery ^^ 

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg23.imageshack.us%2Fimg23%2F6517%2Fclipboard012i.th.jpg&hash=9de14446931b4cafccac6b81ffc78c1d21f3d15c) (http://img23.imageshack.us/my.php?image=clipboard012i.jpg)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 21, 2009, 10:49:58 PM
yikes, that many just to give a note...glad I have not tried this beta yet and hope yours is not on a working forum just in case it is a bug.

I downloaded the beta to see the file and notice there are a bunch of others that have never appeared so maybe in upgrading the software they may start to get as difficult to manage as regular phpbb3 did...went from I knew what I was doing to nope I'm very lost...too many places to change things and not simple anymore.

hopefully someone that comes in has this version and can take care of it.

oh, another thing to try is this...

first: go to the server and see if it deposited into the default theme/images/gallery.gif

2nd: DO NOT DELETE the index.template.php file from the server, just move it out of the gothic theme --- refresh your page to  see if the default smf theme will take over like it is supposed to...

see if the button shows up then instead of an empty space and post back...if it does then leave it alone, if you like the way it looks (it will not use the default info like when you copy/paste, it will just use the style.css info from the gothic theme...confusing I know.

if no change then put back the gothic index file, let us know
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Yağız... on March 22, 2009, 10:20:59 AM
I think that's because he didn't translated this mod for his language. You should translate strings added in Modifications.english.php with this mod and Gallery.english.php then rename it to Gallery.your_language.php.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 22, 2009, 10:32:10 AM
ok, we r slowly gettin somewhere. i did what Yağız told me, and now i get something like "hidden" link, here, like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg6.imageshack.us%2Fimg6%2F3839%2Fclipboard02vdi.jpg&hash=cce91f1d4f2d92245de2fee241ef43f988abf223)

upper pic is like lil bit more space between 2 links (left of chat), so i clicked it and i enter gallery, however, link in menu is not titled, i guess there is some calling code missing, somewhere
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Yağız... on March 22, 2009, 10:37:43 AM
Did you translate this strings:
Code (Modifications.your_language(-utf8).php) Select

$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '2.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use 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.';


$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_text_settings'] = 'Settings';
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 22, 2009, 10:45:57 AM
I didnt translate anything in file, since i thought its only translation to actually not be on English language, should i do it?
i only copy modifications.english-utf8.php in copy modifications.croatian-utf8.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Yağız... on March 22, 2009, 10:48:31 AM
It should be done... Try to change the language of your forum and look if the Gallery button appears.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Rex Zac on March 22, 2009, 11:56:19 AM
Quote from: Rex Zac on March 22, 2009, 10:45:57 AM
i only copy modifications.english-utf8.php in copy modifications.croatian-utf8.php

after doing this, i was one big "?" what now...   so meanwhile while i was thinking i went to admin panel to see installed packages, and i decide to disable addon which dont work correctly (merge posts, has one bug), as soon as i do that i saw my gallery button disapear (on default theme, which before worked fine until now). plus, my ajax chat stoped to connect and showed error 0. damn...  what now, lucky i had local on comp previous files wich deinstaler modified/replaced, so i upload them manually trying to figure it what part of code was erased.
but so strange.. nothing was erased except merge mod code. hmm... am i crazy?
ok, i disable gallery (deinstall) and whata... chat started to work + started to halfly work on gothic theme which never did - by now :D
(shoutbox dont apear, but chat icon work ok).
hmm..  i was thinking should i look for another gallery, but i was surprised block in simpleportal showed all the time pics from gallery correctly, so i tryed to reinstall smf gallery, and as soon as i enable it - it started to work normaly, all links apear, including on gothic theme.

now, am rly confused, chat, gallery, all work fine (ok, shoutbox on gothic dont,m but thats another thing), what could couse all this?  maybe lvl1 cache in smf?


i thank all ppl who hlp me, specialy Night Lady ;)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on March 22, 2009, 08:22:30 PM
you are very welcome even if I wasn't too much help...

I suspect that the mod you disabled mybe was for a different version of smf??

if it stopped and the others started working then it could be the meanie...some mods will not play nicely with another

I run about 6 differnet sites and I tell you it is aggravating when they are all set up exactly the same and you find one mod that works over here will not work over there...lol

about the shoutbox...check the index.template.pho for gothis theme to see that the code for the shoutbox is added to it and just in case, if there are other files in the default theme for shoutbox then add them to the gothic theme folder too.

it should not be necessary but I have ahd to do that wiht several themes before too.

open the shoutbox zip to ssee the files and to check the coding to ensure the code is in the gothic index file and other files also.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Baloch on March 31, 2009, 07:06:37 AM
Hi there,

I want to display random images on home page plz advice how to do that?

Images should look like this.

http://baask.com/diwwan/index.php?action=forum

thanks in advance for your support.

with regards,

Raji
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on March 31, 2009, 03:55:40 PM
You can do it with mysql query to the gallery_pic table and do an ORDER BY RAND()
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Baloch on April 01, 2009, 01:23:46 AM
Quote from: vbgamer45 on March 31, 2009, 03:55:40 PM
You can do it with mysql query to the gallery_pic table and do an ORDER BY RAND()
What is the path of media gallery?
to display random images from gallery lite I am using following script:

Quoteglobal $scripturl,$db_prefix,$modSettings,$boardurl;

echo'<table cellspacing="0" cellpadding="0" border="0"  width="90%"><tr>';
if(empty($modSettings['gallery_url']))
{
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}
$request = db_query("SELECT thumbfilename, ID_CAT, ID_PICTURE FROM {$db_prefix}gallery_pic WHERE ID_CAT = '1' GROUP BY thumbfilename ORDER BY RAND() LIMIT 8", __FILE__, __LINE__);
   
$row = mysql_fetch_assoc($request);
while ($row = mysql_fetch_assoc($request))
echo' <td align="center" colspan="3"><a href="', $scripturl, '?action=gallery;sa=view;id=',
$row['ID_PICTURE'], '"><img src="', $modSettings['gallery_url'] .

$row['thumbfilename'] ,'" /></a>';
echo'</td></tr>';
echo'</table></br>';
mysql_free_result($request);
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 01, 2009, 09:28:05 AM
Hey VBGamert,

I would like to add the function 'previous / next' to the view_pic function, can you help me with it?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: thebroke on April 04, 2009, 07:53:15 PM
I've searched through most of the posts and can't seem to find if there is anything specific that I need to do to get the mod to have a link on a different theme.  Normally I would go in and update the index.template.php,  but not really sure what coding to add to add the button. 

I can edit the images on the theme I use to make the physical button.

Other than that, I have no issues with the mod, thank you!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 04, 2009, 08:58:29 PM
Please attach your index.template.php and we can do it for you
Title: Re: SMF Gallery 2.0.5 Released!
Post by: thebroke on April 04, 2009, 11:55:08 PM
Here it is:

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';


/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
<script language="javascript" type="text/javascript" src="'
$settings['images_url'], '/preloader.js"></script>
</head>
<body>'
;
// header goes below here
echo '
<!-- Added Header -->
<a name="top"></a>
<div align="center">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_01.jpg" width="45" height="192" alt="" /></td>
<td width="910" height="192" align="left" valign="top">
<table width="910" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="910" height="139" background="'
$settings['images_url'], '/forum_body_02.jpg" align="center" valign="bottom">
<div class="title-text" style="padding:0 0 18px 0;">'
$context['forum_name'], '</div>
</td>
</tr>
<tr>
<td width="910" height="18" align="left" valign="middle" background="'
$settings['images_url'], '/forum_body_04.jpg">
'
template_menu();
echo 
'
</td>
</tr>
<tr>
<td width="910" height="35"><img src="'
$settings['images_url'], '/forum_body_05.jpg" width="910" height="35" alt="0" /></td>
</tr>
</table>
</td>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_03.jpg" width="45" height="192" alt="" /></td>
</tr>
</table>
<!-- END header -->
<!-- BEGIN content sections -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" align="center" valign="top" class="content-bg">
<!-- End added header -->
<table width="860" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860" align="left" valign="top">
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';
}

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
<span class="smalltext"><a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.</span><br />';
}

// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" class="input1" value="Username" onBlur="if(this.value==\'\') this.value=\'Username\';" onFocus="if(this.value==\'Username\') this.value=\'\';" /> <input type="password" name="passwrd" class="input1" value="password" onBlur="if(this.value==\'\') this.value=\'password\';" onFocus="if(this.value==\'password\') this.value=\'\';" />
<select name="cookielength" class="input1">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input class="button" type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input class="input1" type="text" name="search" onBlur="if(this.value==\'\') this.value=\'Search...\';" onFocus="if(this.value==\'Search...\') this.value=\'\';" value="Search..." style="width: 190px;" />&nbsp;
<input class="button" type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left">
Theme by <a href="http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;

window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
<!-- Added footer -->
</td>
</tr>
</table>
<table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="855" height="25" align="left" valign="middle" id="copyright-text">
</td>
<td rowspan="2" width="45" height="50" align="right" valign="top">
<a href="#top"><img src="'
$settings['images_url'], '/header_09.jpg" width="45" height="47" alt="Back To Top" title="Back To Top" /></a></td>
</tr>
<tr>
<td width="855" height="20" align="left" valign="middle" id="legal-text">
</td>
</tr>
</table>
<!-- END Legal -->
</td>
</tr>
</table>
<!-- END content sections -->
<!-- BEGIN footer -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_11.jpg" width="500" height="81" alt="" /></td>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_12.jpg" width="500" height="81" alt="" /></td>
</tr>
</table>
<!-- END footer -->
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Footer goes above here
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex; padding-left:8px; padding-right:8px;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// 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'] > '[<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' '' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-login"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></li>' $current_action == 'login' '' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-register"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></li>' $current_action == 'register' '' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-logout"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>' $current_action == 'logout' '' '';

// The end of tab section.
echo '</ul>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



Thank you!

Also, is there any way to mass upload images.  We normally load between 80 and 100 images at a time, doing thrm 1 by 1 takes quite a while
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 05, 2009, 09:18:17 AM
Quote from: Angelotus on April 01, 2009, 09:28:05 AM
Hey VBGamert,

I would like to add the function 'previous / next' to the view_pic function, can you help me with it?

VbGamer, have you got a solution for this as well please?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 06, 2009, 10:46:28 PM
Quote from: Angelotus on April 05, 2009, 09:18:17 AM
Quote from: Angelotus on April 01, 2009, 09:28:05 AM
Hey VBGamert,

I would like to add the function 'previous / next' to the view_pic function, can you help me with it?

VbGamer, have you got a solution for this as well please?
It is built in feature for SMF Gallery Pro but not for SMF Gallery Lite
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 07, 2009, 03:15:05 AM
Ah, that explains! I'll go check it out on smfforfree! Thanks VB
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jez on April 07, 2009, 06:01:31 PM
Hi guys

I thought one of you guys might know what's causing the issue I'm having. Since recently switched my smf 1.1.8 over to a new host,  my mods appear to be working fine accept for the gallery block function in simpleportal. When I switch it on, and then click on home, it takes a long time for the home page to load, and then where the gallery block should appear, there is this message:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sydneyin/public_html/Sources/Subs.php on line 297

So I keep the gallery block off for now. I've tried uninstalling and deleting smf gallery lite, and then reinstalling it, but I get the same result when trying to add that simple portal gallery block again.

I've asked about it in smf 1x support section, but haven't had a response for a few days. I figured maybe the issue concerns the gallery mod to a degree and perhaps you guys might understand the it. I've attached my subs.php for reference. I hope I can get some help here!

Jez
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 07, 2009, 09:23:47 PM
I just got this mod downloaded and installed and have a quick question.  I'm actually going to use it as a photo directory for a group and would like to be able to put the person's name above or below their pictures.  Currently, it has the number of views, file size, date it was added, etc.  Is there a way to have the person's name either above or below the picture when I look at the gallery?  I can have the names and contact information in the description, but it doesn't show unless I click on the picture.

Thanks!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Yaashaar on April 12, 2009, 08:56:27 AM
Hi,
At first TanX

Then I have A Question: How I able to Show Sth Like recent Post From This Galley On Home Page...or Sth Tell Our Visitor on First Forum Page..That Galley has just Updated...

any idea..?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on April 12, 2009, 10:03:40 AM
Quote from: arreferee on April 07, 2009, 09:23:47 PM
I just got this mod downloaded and installed and have a quick question.  I'm actually going to use it as a photo directory for a group and would like to be able to put the person's name above or below their pictures.  Currently, it has the number of views, file size, date it was added, etc.  Is there a way to have the person's name either above or below the picture when I look at the gallery?  I can have the names and contact information in the description, but it doesn't show unless I click on the picture.

Thanks!

Put their name in the title...
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 13, 2009, 09:34:12 AM
Quote from: willerby on April 12, 2009, 10:03:40 AM
Quote from: arreferee on April 07, 2009, 09:23:47 PM
I just got this mod downloaded and installed and have a quick question.  I'm actually going to use it as a photo directory for a group and would like to be able to put the person's name above or below their pictures.  Currently, it has the number of views, file size, date it was added, etc.  Is there a way to have the person's name either above or below the picture when I look at the gallery?  I can have the names and contact information in the description, but it doesn't show unless I click on the picture.

Thanks!

Put their name in the title...

The names are in the title, but they still don't show up on the main Gallery page.  When I click on the picture, the name shows up at the top, but I need the names to show up when I can see all the pictures at the same time.  Does that make sense?

Thanks!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on April 13, 2009, 01:53:33 PM
ADMIN > GALLERY CONFIGURATION > LAYOUT > SHOW TITLE

;)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 13, 2009, 02:29:53 PM
Quote from: willerby on April 13, 2009, 01:53:33 PM
ADMIN > GALLERY CONFIGURATION > LAYOUT > SHOW TITLE

;)

Thanks, but I don't see this option.  I don't see a "Layout" category under "Gallery Configuration."  The only options I see are Settings, Manage Categories, Approve Images, and Reported Images.

I have Gallery Lite.  Could this be the issue?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on April 13, 2009, 05:23:00 PM
Ah. I guess vbgamer and the SMFHacks boys have saved some of the basic functions for the 'paid for' Pro version. Sorry arreferee, didn't realise...

Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 13, 2009, 05:24:22 PM
Quote from: willerby on April 13, 2009, 05:23:00 PM
Ah. I guess vbgamer and the SMFHacks boys have saved some of the basic functions for the 'paid for' Pro version. Sorry arreferee, didn't realise...

No problem.  Thanks for the help!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Yaashaar on April 14, 2009, 11:23:34 PM
Quote from: Yaashaar on April 12, 2009, 08:56:27 AM
Hi,
At first TanX

Then I have A Question: How I able to Show Sth Like recent Post From This Galley On Home Page...or Sth Tell Our Visitor on First Forum Page..That Galley has just Updated...

any idea..?

Is there any One here?
I Asked A question  :'( ?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 14, 2009, 11:31:05 PM
Not built in
Title: Gallery installed OK but where is it?
Post by: JBHolden on April 16, 2009, 11:23:27 PM
How do I or my members get to the gallery? I see no button or tab to click on to get to the gallery.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 16, 2009, 11:30:16 PM
Check on the default theme for the gallery tab/link

If you use a custom theme on SMF 1.1.8 requires an edit to the index.template.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: JBHolden on April 16, 2009, 11:31:29 PM
I use 1.1.8, how do I do that? Or can someone do it for me?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: JBHolden on April 16, 2009, 11:48:08 PM
One more question, would I have to make this edit every time I changed themes?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 17, 2009, 12:07:38 AM
Quote from: JBHolden on April 16, 2009, 11:48:08 PM
One more question, would I have to make this edit every time I changed themes?
Yes you would for SMF 1.1.x
Title: Re: SMF Gallery 2.0.5 Released!
Post by: JBHolden on April 17, 2009, 12:12:31 AM
I have the link if I switch back to the default theme. Ok, so how do I do it? Is it hard? Can I copy and past  the line from the default theme? I want to save the instructions so I can do it again if I change themes. Thanks by the Way!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 17, 2009, 12:32:16 AM
You can try doing that but it depends on each theme. For SMF 1.1.x the theme designer can code the template_menu function in many different ways.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 17, 2009, 08:10:58 AM
What code to use to get a list of the latest comments on pics?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: JBHolden on April 17, 2009, 12:19:12 PM
Ok, so could you give me instructions on how to do the edit to add the gallery link button that include where to find the correct file? Or would it be better for me to have someone do it?

I do have another question as well. I hope I'm not asking these questions in the wrong forum. I'm using the REDSIS theme and I want to remove the REDSIS logo form the top of the forum page. How do I do that? If I should be asking these questions in a different forum please direct me to the correct one. Thanks again!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Shades. on April 21, 2009, 12:26:22 AM
For some reason I can upload images one at a time, but when I click on mass upload then select images I wan to upload, then click on "upload" nothingt happens! It was working when I first installed the mod but now it isn't. Can anyone help me fix this?

Thanks,
Bozilla
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 21, 2009, 12:32:38 AM
SMF Gallery Lite does not support mass upload.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 21, 2009, 03:15:52 AM
vbgamer45, is there a way to get a list of the latest picture comments?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Soms on April 21, 2009, 06:50:35 AM
Quote from: BoZilla on April 21, 2009, 12:26:22 AM
For some reason I can upload images one at a time, but when I click on mass upload then select images I wan to upload, then click on "upload" nothingt happens! It was working when I first installed the mod but now it isn't. Can anyone help me fix this?

Thanks,
Bozilla

I think you need to be here http://www.simplemachines.org/community/index.php?topic=260821.0
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 21, 2009, 08:45:46 AM
Quote from: Angelotus on April 21, 2009, 03:15:52 AM
vbgamer45, is there a way to get a list of the latest picture comments?
Yes you can do a mysql call to the gallery_comment table
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TomW on April 21, 2009, 09:53:53 AM
I manually installed SMF Gallery Lite, latest version, on my forum (1.1.8 version), and am getting this error from the nav bar when selecting 'GALLERY' and the admin panel when selecting 'Gallery Configuration':

Fatal error: require_once() [function.require]: Failed opening required '/Users/Tom/Sites/thegarage/Sources/Gallery.php' (include_path='.:') in /Users/Tom/Sites/thegarage/index.php on line 376

I have triple-checked the changes and do not see any mistakes.  Maybe I am still missing something, but do not know what it could be.  Any help would be appreciated.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 21, 2009, 07:45:34 PM
You have to copy the Gallery.php from the zip file to the Sources folder
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TomW on April 21, 2009, 09:05:53 PM
Quote from: vbgamer45 on April 21, 2009, 07:45:34 PM
You have to copy the Gallery.php from the zip file to the Sources folder

Yes, I have done that.  Also I performed the other file copies mentioned, plus performed the db scripts.  Note that I am not using the default theme, but have modified the index.template.php and it appears to be working correctly.

Found the problem - the file security was incorrect - no access to anyone except the admin.  Thanks !
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 22, 2009, 11:18:09 PM
Is there a way to change the wording of the information under the pictures?  For instance, currently it has View, File Size, Date, Comments, and By.  Is there a way to add another line to that where I could put the name of the file?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 23, 2009, 12:06:21 AM
Quote from: arreferee on April 22, 2009, 11:18:09 PM
Is there a way to change the wording of the information under the pictures?  For instance, currently it has View, File Size, Date, Comments, and By.  Is there a way to add another line to that where I could put the name of the file?
You could would require some editing of the template files in order to do it.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on April 23, 2009, 12:16:01 AM
Also, I'm trying to get the permissions right on this.  I only want it to be available to a certain group.  I have modified the permissions to 'A' (Allow) for everything under SMF Gallery but something isn't right.  I've created a fake user and put it in that group.  When I go to his permissions, it says he is "Denied By" on all of the gallery listings.  How do I give only the proper members access to the gallery?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 23, 2009, 12:17:35 AM
Do a test when you login as that user and see if it is working correctly if his primary membergroup is setup with the permissions it should work.
Title: I got ERROR Illegal mix of collations
Post by: shaka_boy on April 24, 2009, 03:57:01 PM
I have just installed SMF Gallery and i am using SMF 1.1.8 also using CARGO theme

When i am clicking on VIEW ITEM link in profile i am getting this error.

Database Error
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: /shfs/home/mkashif/www/weyouth/Sources/Subs-MGallery.php
Line: 3370

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

Pls let me know if u can help me.. thanks.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 24, 2009, 11:03:27 PM
That code is not from SMF Gallery Lite
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Christasimmer on April 28, 2009, 09:36:12 AM
I'm sorry how do I make my gallery writable?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 28, 2009, 09:56:30 AM
VBgamer, I really need some help with this.
I use the lite version and have heavely modified it to my needs. The only thing I still need is a previous / next button that calls the previous or next picture within a category. I know it is part of the paid version, though I don't want to go all over the modification I have made again. Could you please help me with this?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on April 28, 2009, 07:16:59 PM
I believe someone did a lite mod to get previous/next somewhere in this topic.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 29, 2009, 04:12:00 AM
VBgamer, thanks for your reply. I have searched every page, but there is no answer for this. If it's to big a problem to just show the modification here, maybe you could just pm me for more help with this. Many many thanks in advance!!!!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mattchewone on April 29, 2009, 04:49:15 AM
Is there a way to have next to or below the image links which can be used to copy and paste in to the forum. Like with photobucket you can copy the link to display the picture in a forum.

Matt
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on April 29, 2009, 10:29:26 AM
Quote from: vbgamer45 on April 21, 2009, 08:45:46 AM
Quote from: Angelotus on April 21, 2009, 03:15:52 AM
vbgamer45, is there a way to get a list of the latest picture comments?
Yes you can do a mysql call to the gallery_comment table

Ok, got this, but no results. What's wrong with my coding?


function template_galcomments($limit = null, $output_method = 'echo')
{
   global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
       
   // Check if GD is installed if not we will not show the thumbnails
   $GD_Installed = function_exists('imagecreate');
         
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




   $context['start'] = (int) $_REQUEST['start'];

      $dbresult = $smcFunc['db_query']('', "
      SELECT COUNT(*) AS total
      FROM {db_prefix}gallery_comment as p
      WHERE p.approved = 1");
      $row = $smcFunc['db_fetch_assoc']($dbresult);
      $totalPics = $row['total'];
                     $smcFunc['db_free_result']($dbresult);

     
     
      // Show the comments
      $dbresult = $smcFunc['db_query']('', "
      SELECT p.id_comment, p.id_picture, p.id_member, p.comment, p.date, p.approved
       FROM {db_prefix}gallery_comment as p
      LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
      WHERE p.approved = 1 ORDER BY id_comment DESC LIMIT $context[start]," . $limit);
     
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
         
           
         echo '' . $row['date'] . ' <a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '">' . $row['comment'] . '</a><br />';
         
         
           
                 
         
      }
     
     
         

      $smcFunc['db_free_result']($dbresult);
}
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on April 29, 2009, 11:56:40 AM
Quote from: mattchewone on April 29, 2009, 04:49:15 AM
Is there a way to have next to or below the image links which can be used to copy and paste in to the forum. Like with photobucket you can copy the link to display the picture in a forum.

Matt

Again - feature in Gallery Pro...
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mattchewone on April 29, 2009, 02:12:03 PM
Quote from: willerby on April 29, 2009, 11:56:40 AM
Quote from: mattchewone on April 29, 2009, 04:49:15 AM
Is there a way to have next to or below the image links which can be used to copy and paste in to the forum. Like with photobucket you can copy the link to display the picture in a forum.

Matt

Again - feature in Gallery Pro...

Where's gallery pro?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: willerby on April 29, 2009, 04:40:28 PM
Full version of this lite mod - pay to download...

http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on May 01, 2009, 01:41:28 PM
Quote from: Angelotus on April 29, 2009, 10:29:26 AM
Quote from: vbgamer45 on April 21, 2009, 08:45:46 AM
Quote from: Angelotus on April 21, 2009, 03:15:52 AM
vbgamer45, is there a way to get a list of the latest picture comments?
Yes you can do a mysql call to the gallery_comment table

Ok, got this, but no results. What's wrong with my coding?


function template_galcomments($limit = null, $output_method = 'echo')
{
   global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
      
   // Check if GD is installed if not we will not show the thumbnails
   $GD_Installed = function_exists('imagecreate');
        
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




   $context['start'] = (int) $_REQUEST['start'];

      $dbresult = $smcFunc['db_query']('', "
      SELECT COUNT(*) AS total
      FROM {db_prefix}gallery_comment as p
      WHERE p.approved = 1");
      $row = $smcFunc['db_fetch_assoc']($dbresult);
      $totalPics = $row['total'];
                     $smcFunc['db_free_result']($dbresult);

     
     
      // Show the comments
      $dbresult = $smcFunc['db_query']('', "
      SELECT p.id_comment, p.id_picture, p.id_member, p.comment, p.date, p.approved
       FROM {db_prefix}gallery_comment as p
      LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
      WHERE p.approved = 1 ORDER BY id_comment DESC LIMIT $context[start]," . $limit);
     
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
        
           
         echo '' . $row['date'] . ' <a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '">' . $row['comment'] . '</a><br />';
        
        
           
                 
        
      }
     
     
         

      $smcFunc['db_free_result']($dbresult);
}


Anyone, please?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: chefjohnnie on May 01, 2009, 06:17:49 PM
Error : You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

i did give the files permission dont know what to do next
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 01, 2009, 07:37:42 PM
Also make sure the folders are writable as well since SMF creates ~ backup files.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mattchewone on May 03, 2009, 01:54:46 PM
I get this when i try to uninstall

   6.   Execute Modification   ./Sources/Subs.php   Test failed
   1.   Replace   ./Sources/Subs.php   

Whats the problem?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 03, 2009, 05:15:20 PM
Issue with Subs.php check the mod site for code that is changed. Most likely another mod altered that code.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mattchewone on May 04, 2009, 10:37:55 AM
Quote from: vbgamer45 on May 03, 2009, 05:15:20 PM
Issue with Subs.php check the mod site for code that is changed. Most likely another mod altered that code.

Sorry to sound thick, what do you mean by check the mod site? What do i need to do in order to uninstall?

I had a look at the file Subs.php and compared it to the manual installation instructions and it looks fine. What do i need to do, uninstall it and then delete the lines in Subs.php that it says to add in the installation??
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 04, 2009, 08:23:55 PM
Just reverse all the steps in the manual install instructions and that should do the trick
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mattchewone on May 05, 2009, 03:56:05 AM
Do i still need to uninstall it from the package manager? Sorry im still learning.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 05, 2009, 07:38:17 PM
If you do it manually no. But I would always use the package manager first.
Title: Recently added pictures to show at the footer area of the forum page??
Post by: Raul Malik on May 08, 2009, 10:38:11 AM
how to display recently added images on the home page of your forum .
i have seen this in a site ..that is : http://www.funonthenet.in/forums/
Kindly help me..
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on May 08, 2009, 12:28:50 PM
VBGamer, why can't you give any proper answers to questions made here about your mods? It is pretty annoying to ask the same question over and over again, without getting any answer to work with. Let me see what I mean:

@indiazone:

In your boardindex.template.php add before:
?>

This:

function template_galitems($limit = null, $output_method = 'echo')
{
   global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
       
   // Check if GD is installed if not we will not show the thumbnails
   $GD_Installed = function_exists('imagecreate');
         
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




   $context['start'] = (int) $_REQUEST['start'];

      $dbresult = $smcFunc['db_query']('', "
      SELECT COUNT(*) AS total
      FROM {db_prefix}gallery_pic as p
      WHERE p.approved = 1");
      $row = $smcFunc['db_fetch_assoc']($dbresult);
      $totalPics = $row['total'];
                     $smcFunc['db_free_result']($dbresult);

     
     
      // Show the pictures
      $dbresult = $smcFunc['db_query']('', "
      SELECT p.id_picture, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width,
       p.title, p.id_member, m.member_name, m.real_name, p.date, p.description
       FROM {db_prefix}gallery_pic as p
      LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
      WHERE p.approved = 1 ORDER BY id_picture DESC LIMIT $context[start]," . $limit);
      $rowlevel = 0;

                 
     
     
     
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
         if ($rowlevel == 0)
           
         echo '<div class="panel"><center>
<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '" title="' . $row['title'] . ', already ' . $row['views'] . 'x viewed, click for large image!">
         <img ' . ($GD_Installed == true ?  'src="http://www.yourboard.nl/forum/gallery/' . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '"')  . '/></a><br />' . $row['views'] . ' views</center></div>';
         
         
         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '';
            $rowlevel = 0;
         }
         
                 
         
      }
     
     
      if ($rowlevel !=0)
      {
         echo '';
      }


     

      $smcFunc['db_free_result']($dbresult);
}


And then add somewhere you want to appear the latest items:
template_galitems(5);

@vbgamer, sorry if I am being a bit rude, but I am not getting any answers on all my questions in various of topics of your mods.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Raul Malik on May 08, 2009, 01:31:48 PM
Quote from: Angelotus on May 08, 2009, 12:28:50 PM


@indiazone:

In your boardindex.template.php add before:
?>

This:

function template_galitems($limit = null, $output_method = 'echo')
{
   global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
       
   // Check if GD is installed if not we will not show the thumbnails
   $GD_Installed = function_exists('imagecreate');
         
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




   $context['start'] = (int) $_REQUEST['start'];

      $dbresult = $smcFunc['db_query']('', "
      SELECT COUNT(*) AS total
      FROM {db_prefix}gallery_pic as p
      WHERE p.approved = 1");
      $row = $smcFunc['db_fetch_assoc']($dbresult);
      $totalPics = $row['total'];
                     $smcFunc['db_free_result']($dbresult);

     
     
      // Show the pictures
      $dbresult = $smcFunc['db_query']('', "
      SELECT p.id_picture, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width,
       p.title, p.id_member, m.member_name, m.real_name, p.date, p.description
       FROM {db_prefix}gallery_pic as p
      LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
      WHERE p.approved = 1 ORDER BY id_picture DESC LIMIT $context[start]," . $limit);
      $rowlevel = 0;

                 
     
     
     
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
         if ($rowlevel == 0)
           
         echo '<div class="panel"><center>
<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '" title="' . $row['title'] . ', already ' . $row['views'] . 'x viewed, click for large image!">
         <img ' . ($GD_Installed == true ?  'src="http://www.yourboard.nl/forum/gallery/' . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '"')  . '/></a><br />' . $row['views'] . ' views</center></div>';
         
         
         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '';
            $rowlevel = 0;
         }
         
                 
         
      }
     
     
      if ($rowlevel !=0)
      {
         echo '';
      }


     

      $smcFunc['db_free_result']($dbresult);
}


And then add somewhere you want to appear the latest items:
template_galitems(5);



where to put this ...?? d last one...suppose if i want to show the recent images on the footer
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 08, 2009, 07:46:46 PM
Quote from: Angelotus on May 08, 2009, 12:28:50 PM
VBGamer, why can't you give any proper answers to questions made here about your mods? It is pretty annoying to ask the same question over and over again, without getting any answer to work with. Let me see what I mean:

@indiazone:

In your boardindex.template.php add before:
?>

This:

function template_galitems($limit = null, $output_method = 'echo')
{
   global $scripturl, $smcFunc, $txt, $context, $modSettings, $id_member;
       
   // Check if GD is installed if not we will not show the thumbnails
   $GD_Installed = function_exists('imagecreate');
         
        if ($limit === null)
                  $limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 20;
                  else
                  $limit = (int) $limit;
                 




   $context['start'] = (int) $_REQUEST['start'];

      $dbresult = $smcFunc['db_query']('', "
      SELECT COUNT(*) AS total
      FROM {db_prefix}gallery_pic as p
      WHERE p.approved = 1");
      $row = $smcFunc['db_fetch_assoc']($dbresult);
      $totalPics = $row['total'];
                     $smcFunc['db_free_result']($dbresult);

     
     
      // Show the pictures
      $dbresult = $smcFunc['db_query']('', "
      SELECT p.id_picture, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width,
       p.title, p.id_member, m.member_name, m.real_name, p.date, p.description
       FROM {db_prefix}gallery_pic as p
      LEFT JOIN {db_prefix}members AS m on ( p.id_member = m.id_member)
      WHERE p.approved = 1 ORDER BY id_picture DESC LIMIT $context[start]," . $limit);
      $rowlevel = 0;

                 
     
     
     
      while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {
         if ($rowlevel == 0)
           
         echo '<div class="panel"><center>
<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '" title="' . $row['title'] . ', already ' . $row['views'] . 'x viewed, click for large image!">
         <img ' . ($GD_Installed == true ?  'src="http://www.yourboard.nl/forum/gallery/' . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '"')  . '/></a><br />' . $row['views'] . ' views</center></div>';
         
         
         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '';
            $rowlevel = 0;
         }
         
                 
         
      }
     
     
      if ($rowlevel !=0)
      {
         echo '';
      }


     

      $smcFunc['db_free_result']($dbresult);
}


And then add somewhere you want to appear the latest items:
template_galitems(5);

@vbgamer, sorry if I am being a bit rude, but I am not getting any answers on all my questions in various of topics of your mods.
Like I said it is in the pro edition. My time is very very limited. So support is limited as well.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 11, 2009, 08:46:34 PM
Just installed this mod ... constantly getting these errors...

Quote8: Undefined index: gallery
File: /home/xxxxx/public_html/forum/Themes/igoh112/languages/Gallery.english-utf8.php (eval?)
Line: 592

Any ideas ... line 592 dont even exist ...  :-\
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 11, 2009, 08:56:11 PM
What version of SMF. issue is probably in the index.template.php of your theme.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 11, 2009, 09:03:19 PM
Quote from: vbgamer45 on May 11, 2009, 08:56:11 PM
What version of SMF. issue is probably in the index.template.php of your theme.

using smf 1.1.8

here is my themes index.template .. can you take a looks see  :)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on May 12, 2009, 01:01:23 AM
another thing about the file in the error message...at the end of the file make sure there are no empty lines after the <? or >? whichever one is at the bottom.

I was told one time that this file can get pretty picky if there is extra lines after or directly before it.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 12, 2009, 07:54:02 AM
Quote from: DarkAngel612 on May 12, 2009, 01:01:23 AM
another thing about the file in the error message...at the end of the file make sure there are no empty lines after the <? or >? whichever one is at the bottom.

I was told one time that this file can get pretty picky if there is extra lines after or directly before it.

removed extra lines .. still getting error

Also, ... can a feature be added to ad external pics ?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 13, 2009, 08:08:07 PM
Quote from: aw06 on May 11, 2009, 09:03:19 PM
Quote from: vbgamer45 on May 11, 2009, 08:56:11 PM
What version of SMF. issue is probably in the index.template.php of your theme.

using smf 1.1.8

here is my themes index.template .. can you take a looks see  :)
Fixed file attached
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 13, 2009, 10:44:21 PM
kool thanks .... i see i needed to use 'smfgallery_menue' in stead of just 'gallery'

:D
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on May 14, 2009, 04:35:50 AM
Sorry, I did not see it is fixed. will leave this if it is alright so others may do this if they have problems too

have you access to the database to turn off eval?

you can do that to see what file is really causing the problem then turn it on once you get it to behave:

Run this query in phpMyAdmin .


INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);

Clear your error log, do what you did to get the error to begin with  and then copy and paste the errors here.



To turn the template eval back on run this query:


DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';


This will help the guys with your problem easier
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 14, 2009, 10:02:29 AM
I wish that was enabled by default because it gets really confusing for people to think the error is in one place but in reality it is somewhere else.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DarkAngel612 on May 14, 2009, 08:48:13 PM
it sure is so now when i ge an error message that has that eval at the end I use those instructions to prowl around...lol

it helps both the person having the error and the ones trying to help us.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 16, 2009, 07:01:01 PM
Is thier someway for people t quickly know that pics are added to the gallery ?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: aw06 on May 17, 2009, 02:56:02 AM
and also now prev and next button :-[
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Chas Large on May 17, 2009, 05:57:19 PM
Hi Vbgamer,

Thanks for a great mod, I have it installed on 1.1.8 and it's working fine.

Because we used the default settings of allowing photos 2500 x 2500 many members have uploaded huge photos. Some members however are complaining that they cannot see these images without a lot of scrolling cos they're too big for the screen.

I have looked at the code of gallery.php to see if I could add some kind of auto resize to window size function but cannot work it out.

At the same time I noticed the following checks

   //Check if Image Magik is installed
   $IM_Installed = false;//function_exists('NewMagickWand');

   //Check if GD is installed
   $GD_Installed = function_exists('imagecreate');

and am presuming that these are other mods that can resize the images, am I right? and if so can I install them from somewhere?

I know time is limited for you and appreciate it but If you could just point me to where I can mod the appropriate page to auto resize the images to a window then that would be great.

Cheers and thanks again for a great mod.

PS if this facility is in the Pro version then I must have missed it in the features list.

Chas.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 17, 2009, 06:32:05 PM
The code above is for thumbnail generation but does not autoresize the image that is uploaded I was thinking about adding image magick support along with gd.

The pro version does have auto resize settings and options to generate a medium sized image in addition to the thumbnail image.

Demo can be found at
http://www.smfhacks.com/storedemo/index.php?action=gallery
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Chas Large on May 18, 2009, 02:37:53 AM
Thank you for your quick response.

Chas
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jarowit on May 19, 2009, 10:53:42 AM
Hi,

I am attempting to covert to SMf and SMF Gallery from Joomla & PhpBB.  I will not be converting any databases , i will just re-upload everything.  My new site is HERE (http://gunbad.com/index.php).

I installed everything without a problem but later I could not figure out how to access the gallery.  After reading this ( and few other ) forums I found that you need to hand-code the new button in the theme itself if you are not using the default theme -  a little surprising but ok.

I tried all the instructions about where to paste what code ( there is few different instructions on a couple of different forums around the net ) but none of them worked.  I always get a template error afterward and have to FTP the original file back onto the server.

I'am using :
SMF Version : SMF 2.0 RC1
MOD : SimplePortal 2.2.1
Gallery : SMF Gallery Lite 2.0.5
Theme : DeviantSMF

Can anyone help me with getting the menu button for the gallery to show ?

PS : The instructions from SMF download page do not seem to help.

PS2 : I switched back to the core theme and it is all showing, so it was the problem with template.  I will search around for a template that will work ( unless someone can help me make this one work ).


Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jarowit on May 19, 2009, 12:36:08 PM

Looks like the only theme I likes is not a 2.0+ theme, I am guessing that is the problem. 
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 19, 2009, 07:58:09 PM
Attach your index.template.php and I can fix it.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TomW on May 19, 2009, 08:05:35 PM
This is a great mod; I like the way that it uploads images and creates thumbnails automatically.  A problem that I'm seeing on my forum is that there is a different image upload for the posts than what is used with your mod.  Do you have a similar mod for uploading pics to posts ?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: mathmission on May 20, 2009, 11:38:51 AM
Love the mod, used it before, but I have a tendency to pick themes that don't usually match up. Need to add the button:

// Show the top navigation buttons. Do not put code breaks in between list items or you will have whitespace between each image.
   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', '<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>' ;if ($context['allow_search'])echo '<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" border="0" />' : $txt[182]), '</a>' ;if ($context['allow_admin'])echo '<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" border="0" />' : $txt[2]), '</a>' ;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] . '" border="0" />' : $txt[467]), '</a>' ;if ($context['allow_calendar'])echo '<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>' ;if ($context['user']['is_guest']){echo '<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" border="0" />' : $txt[34]), '</a>',  '<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" border="0" />' : $txt[97]), '</a>';}else echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" border="0" />' : $txt[108]), '</a>';



somewhere in there....

*added

Sorry, 1.1.8, using the Classic Red theme
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 20, 2009, 09:43:23 PM
Jeez that is awful menu code above
Change to

   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', '<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>' ;if ($context['allow_search'])echo '<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" border="0" />' : $txt[182]), '</a>' ;if ($context['allow_admin'])echo '<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" border="0" />' : $txt[2]), '</a>' ;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] . '" border="0" />' : $txt[467]), '</a>' ;if ($context['allow_calendar'])echo '<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>' ;


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' . '" border="0" />' : 'Gallery'), '</a>' ;

if ($context['user']['is_guest']){echo '<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" border="0" />' : $txt[34]), '</a>',  '<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" border="0" />' : $txt[97]), '</a>';}else echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" border="0" />' : $txt[108]), '</a>';
Title: Re: SMF Gallery 2.0.5 Released!
Post by: njdevils28 on May 22, 2009, 07:57:29 PM
Hi,

Can anyone help please.

Getting this error when trying to upload a picture......

Parse error: syntax error, unexpected T_ELSE in /home/content/c/i/t/cityofgamers/html/smf/Sources/Subs-Graphics.php on line 227

Thanks in advance.


Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 22, 2009, 08:14:02 PM
Please attach your subs-graphics.php file. so we can take a look.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: njdevils28 on May 22, 2009, 11:40:47 PM
Quote from: vbgamer45 on May 22, 2009, 08:14:02 PM
Please attach your subs-graphics.php file. so we can take a look.

Hiya vbgamer45,

Here it is.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 23, 2009, 12:31:56 AM
Fixed file attached.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: njdevils28 on May 23, 2009, 09:32:23 PM
Quote from: vbgamer45 on May 23, 2009, 12:31:56 AM
Fixed file attached.

Dude.  You Rock!!!!

Thanks!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 23, 2009, 09:39:48 PM
NP that was actually a bug with SMF which being fixed now.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on May 25, 2009, 02:48:08 PM
In the viewpicture template, how can I get the picture ID (for using social bookmarking)?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: IACS_CM on May 26, 2009, 07:07:58 PM
vbgamer45

I had the same issue as njdevils28 re:-

Parse error: syntax error, unexpected T_ELSE in /home/content/c/i/t/cityofgamers/html/smf/Sources/Subs-Graphics.php on line 227

Fortunately I was able to look at your modified code in the relevent reply, and make the necessary change. I posted it here as a retrospective thank you, but also in case anyone had the same issue after upgrading to RC1-1

Original Post (http://www.simplemachines.org/community/index.php?topic=114291.msg2073261#msg2073261)

Regards

Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 26, 2009, 07:30:10 PM
Its a bug with SMF read
http://www.simplemachines.org/community/index.php?topic=312458.0
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on May 27, 2009, 02:51:01 AM
Quote from: Angelotus on May 25, 2009, 02:48:08 PM
In the viewpicture template, how can I get the picture ID (for using social bookmarking)?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Spinx Haplo on May 28, 2009, 11:47:17 PM
Alright, feel like I am beating hy head against the wall at the moment.  Installed just fine on SMF 2.0 RC1-1, set my permissions, fixed the line 227 error.  I can upload pics, on main gallery page, says total images 1, but when I click the gallery, I get  "There are no pictures inside this category".  If I ftp into the site, file is in the /forum/gallery folder, which is where it should be.  In Support credits I have:  GD version: bundled (2.0.28 compatible)

I have no Idea why.....

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on May 29, 2009, 12:49:41 AM
Is the picture approved? Check under Admin -> Gallery -> Approvals
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on June 02, 2009, 08:48:23 AM
Quote from: Angelotus on May 27, 2009, 02:51:01 AM
Quote from: Angelotus on May 25, 2009, 02:48:08 PM
In the viewpicture template, how can I get the picture ID (for using social bookmarking)?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 02, 2009, 10:03:13 PM
Quote from: Angelotus on June 02, 2009, 08:48:23 AM
Quote from: Angelotus on May 27, 2009, 02:51:01 AM
Quote from: Angelotus on May 25, 2009, 02:48:08 PM
In the viewpicture template, how can I get the picture ID (for using social bookmarking)?


$context['gallery_pic']['ID_PICTURE']
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on June 04, 2009, 02:39:16 AM
Quote from: vbgamer45 on June 02, 2009, 10:03:13 PM
Quote from: Angelotus on June 02, 2009, 08:48:23 AM
Quote from: Angelotus on May 27, 2009, 02:51:01 AM
Quote from: Angelotus on May 25, 2009, 02:48:08 PM
In the viewpicture template, how can I get the picture ID (for using social bookmarking)?


$context['gallery_pic']['ID_PICTURE']


Thanks. Tried that out, but didn't worked.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 04, 2009, 01:28:22 PM
There should be some code in the view_picture template area that references the ID_PICTURE just copy that line and as long as your adding to code to the view_picture template area it should work fine.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Angelotus on June 05, 2009, 10:48:34 AM
Yes, it is ' . $context['gallery_pic']['id_picture'] . '
Thanks for helping!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 05, 2009, 11:27:27 AM
No problem forgot for SMF 2.0 I had to lowercase all the variable.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: German_AC on June 16, 2009, 12:50:51 PM
Hi, is there any option to just take the first picture of a post and create a gallerie with the name of the post. The idea is to make a car gallerie. Every user creates its own post, with pictures of his car. Then I wish the gallerie to pick the pictures from the post automatically.
Is that possible?

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 16, 2009, 12:59:04 PM
No way currently to pick up images from a post.
But the gallery I think can create create pictures on a category to a post.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: German_AC on June 16, 2009, 01:10:58 PM
Ok, thanks for the reply ;)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TheListener on June 23, 2009, 09:07:03 PM
Since we upgraded to 2.0 RC1-1 from 1.1.9 we have been unable to add or view images.

I get this error in the log:

File: /home/visionar/public_html/Themes/default/Gallery2.template.php
Line: 333
Title: Re: SMF Gallery 2.0.5 Released!
Post by: AM Woody3 on June 24, 2009, 04:07:02 PM
Here is my issue.  The gallery works fine on my test site.  No problems at all.  I move the files and such over to the live site and I get this error.

Warning Gallery path is not writable!

Fatal error: Call to undefined function DoToolBarStrip() in /home4/lousyatg/public_html/Sources/Load.php(1736) : eval()'d code on line 47
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 24, 2009, 09:04:58 PM
Quote from: TheListener on June 23, 2009, 09:07:03 PM
Since we upgraded to 2.0 RC1-1 from 1.1.9 we have been unable to add or view images.

I get this error in the log:

File: /home/visionar/public_html/Themes/default/Gallery2.template.php
Line: 333
Is that it in the error log? Do you have link to your gallery?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 24, 2009, 09:05:50 PM
Quote from: AM Woody3 on June 24, 2009, 04:07:02 PM
Here is my issue.  The gallery works fine on my test site.  No problems at all.  I move the files and such over to the live site and I get this error.

Warning Gallery path is not writable!

Fatal error: Call to undefined function DoToolBarStrip() in /home4/lousyatg/public_html/Sources/Load.php(1736) : eval()'d code on line 47

Check that your Gallery path is correct under Admin -> Gallery Configuration should be
/home4/lousyatg/public_html/gallery/
And that folder needs to be writable
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TheListener on June 24, 2009, 09:23:13 PM
Quote from: vbgamer45 on June 24, 2009, 09:04:58 PM
Quote from: TheListener on June 23, 2009, 09:07:03 PM
Since we upgraded to 2.0 RC1-1 from 1.1.9 we have been unable to add or view images.

I get this error in the log:

File: /home/visionar/public_html/Themes/default/Gallery2.template.php
Line: 333
Is that it in the error log? Do you have link to your gallery?

the forum is at www.paranormalhaunt.co.uk I have temporarily given guests access to the gallery so you can have a look.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 24, 2009, 09:24:19 PM
Quote from: TheListener on June 24, 2009, 09:23:13 PM
Quote from: vbgamer45 on June 24, 2009, 09:04:58 PM
Quote from: TheListener on June 23, 2009, 09:07:03 PM
Since we upgraded to 2.0 RC1-1 from 1.1.9 we have been unable to add or view images.

I get this error in the log:

File: /home/visionar/public_html/Themes/default/Gallery2.template.php
Line: 333
Is that it in the error log? Do you have link to your gallery?

the forum is at www.paranormalhaunt.co.uk I have temporarily given guests access to the gallery so you can have a look.
Thank link isn't working for me.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ElectricSquid on June 25, 2009, 10:41:07 PM
Does anyone know how to edit the code to allow users to create categories.

I know that it can be done through permissions, but that would allow them to Add/Edit/Delete.
I just want every user group (except guests) to be able to Add categories, without having the ability to Edit or Delete other peoples categories. To do that to thier own is fine, but not everyone else's.

I figured the easy way to do this would be simply rewriting the add categories code to be a simple if/else statement.

    if  (!empty [user_is_guest])
           "no add category code here"

    else
           "add category code here"

How do I do that?
Where is that found?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 25, 2009, 11:35:15 PM
This mod is not currently suited for user created categories would require a lot of rework and permissions.

I do have user gallery's built into SMF Gallery Pro found at http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Morfus on June 26, 2009, 05:01:19 AM
Hi,
I try to add a Prev - Next button...

I have edit Gallery_Template.php whit:
<tr class="windowbg2">
<td align="center"><b>
<a href="', $scripturl, '?action=gallery;sa=prev;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_prev'], '</a> |
<a href="', $scripturl, '?action=gallery;sa=next;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_next'], '</a>
</b>
</div>
</td>
</tr>


But it doesn´t work, buttons goes to main gallery page. Whats missing?


Regards
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 26, 2009, 09:11:06 PM
You would need to edit Gallery.php too to add the code that does it.
I have this built into SMF Gallery Pro though
Title: Re: SMF Gallery 2.0.5 Released!
Post by: gbsothere on June 28, 2009, 09:49:25 AM
Hi,

I'm gleaning through this thread and maybe it's just because I'm old and can't see... :) .....  but I can't find an answer to these questions (below).   I have SMF Gallery 2.0.5 on SMF 1.1.9 and, although my posters love the gallery, their only complaint is that they have to close a pic and return to the category link to view the next one, rather than being able to navigate through all the photos in that category, whether by navigation arrows or a slideshow function.  Has there been any subsequent coding offered since 2.0.5 was released that might allow this?  If it appears somewhere in this thread, I apologize for missing it and hope that you might offer it again.

Thanks so much.


EDITING:   As I checked my post after submitting it, I see something on this current page that seems to suggest that I should upgrade to Pro in order for this to be available.  Is this correct? 



Quote from: zach21uk on September 27, 2008, 09:33:22 AM
Hey there,

Is there any code I can add to the Gallery to enable a NEXT and BACK button when viewing images, so that a user does not have to go back out to the Gallery Index to Move to the Next Photo?

I am using the 2.0 Beta 4 Edition

Many Thanks
Zach


Quote from: emonk on September 29, 2008, 01:45:51 PM
Hey, hi, good mod, but can you make a slide show? or a simples buttons "< previous next >" in the show picture page?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 28, 2009, 09:50:30 AM
Currently do not have next/previous in the lite edition of the gallery but do have it the pro edition.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: gbsothere on June 28, 2009, 09:53:01 AM
Quote from: vbgamer45 on June 28, 2009, 09:50:30 AM
Currently do not have next/previous in the lite edition of the gallery but do have it the pro edition.


Thank you, vbgamer and I'll check out the Pro Edition.  I appreciate it.


Title: Re: SMF Gallery 2.0.5 Released!
Post by: llyon on June 29, 2009, 12:19:04 AM
I have this installed on two forums - one runs 1.1.9 & the other 2.0 RC 1-1.

Both forums are front ended with Simple Portal.

The 1.1.9 portal happily shows thumbnails for images from the gallery, but 2.0 does not - any ideas on this one ?

Lance
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Morfus on June 29, 2009, 02:55:13 AM
Quote from: vbgamer45 on June 26, 2009, 09:11:06 PM
You would need to edit Gallery.php too to add the code that does it.
I have this built into SMF Gallery Pro though

What is the code that does it? ;)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 29, 2009, 08:25:51 PM
Quote from: llyon on June 29, 2009, 12:19:04 AM
I have this installed on two forums - one runs 1.1.9 & the other 2.0 RC 1-1.

Both forums are front ended with Simple Portal.

The 1.1.9 portal happily shows thumbnails for images from the gallery, but 2.0 does not - any ideas on this one ?

Lance
Would need to see a link to a page that this occurs on to get a better idea.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: llyon on June 29, 2009, 08:37:24 PM
Non working SMF 2 - http://landover.no-ip.com/sydneyferries/forum
Working 1.1.9 - http://landover.no-ip.com/transport
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 29, 2009, 09:19:43 PM
You are using the wrong portal block type. Make sure you are using SMF Gallery portal simple portal block.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: llyon on June 29, 2009, 11:05:13 PM
> You are using the wrong portal block type. Make sure you are using SMF Gallery portal simple portal block.

These are identical setups except for the version of SMF being used. SMF Gallery is also identical on both forums. Both of them use the "Gallery" block - there is no other tpe of block listed.

cheers,

Lance
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on June 29, 2009, 11:22:19 PM
I can tell by the block type it is using the media gallery block cause the url has mgallery. While the SMF Gallery block just uses gallery in the url
Title: Re: SMF Gallery 2.0.5 Released!
Post by: llyon on July 05, 2009, 07:52:44 PM
vbgamer45,

Again - there is only the one gallery block in the config - can you point out where the other one is ?

cheers,

Lance
Title: Re: SMF Gallery 2.0.5 Released!
Post by: MATTEK on July 05, 2009, 08:05:55 PM
Is this the same as the media gallery?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 05, 2009, 08:11:31 PM
Quote from: llyon on July 05, 2009, 07:52:44 PM
vbgamer45,

Again - there is only the one gallery block in the config - can you point out where the other one is ?

cheers,

Lance
I would try to contact Simple Portal and see what they have to say. I don't have much experience with Simple Portal and I can only support EzPortal since I made that portal
Title: Re: SMF Gallery 2.0.5 Released!
Post by: septa/njt rider on July 05, 2009, 08:48:32 PM
I like the lite version, the only thing i would suggest is back and foward buttons. Since i can't buy the pro version. I'd suggest those for the lite. But, is it possible for when i use the SMF Gallery Block on EzPortal that i could have them lined up vertically instead of horizontally. I change the number of images per row to 1, but it would still show 4 in a row...

thanks in advanced,
-DJ
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 05, 2009, 09:00:21 PM
Hmm I can add that to EzPortal. like a format option to decide if you want it vertical or horitzonal.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: MATTEK on July 05, 2009, 10:47:58 PM
IS THIS THE SAME AS THE MEDIA GALERY? DOES IT HOLD VIDEOS OR JUST PICTUERS?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 05, 2009, 11:03:04 PM
Different it is for images.  I have SMF Gallery Pro which has an addon for videos for SMF Gallery
Title: Re: SMF Gallery 2.0.5 Released!
Post by: deganu on July 14, 2009, 03:31:04 PM
Okay, this may have been addressed already (110 pages is a lot to sift through) but the method to get to the gallery from the regular forum area is unclear. (i dont see a button or anything)

check for yourself at www.zea-web.com/smf
username: test
pass: test

where is it supposed to be? If it isnt where it needs to be, how can i get it there? I like the concept of this mod, and am excited to have it functional on my site...
Title: Re: SMF Gallery 2.0.5 Released!
Post by: TheListener on July 14, 2009, 03:52:56 PM
You are missing a gallery tab.

Which smf are you using and theme?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: deganu on July 14, 2009, 05:41:11 PM
1.1.9
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 14, 2009, 07:22:40 PM
Post your index.template.php and we can try to add one
Title: Re: SMF Gallery 2.0.5 Released!
Post by: deganu on July 14, 2009, 08:18:35 PM
Ok, here it is.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: sepulchre on July 16, 2009, 05:35:34 PM
I'm getting this error during install

Fatal error: Call to undefined function db_query() in /home/xxxxxxxxx/public_html/forum/Sources/Subs-PrettyUrls.php on line 265

I have recently upgraded from 1.1.9 ro 2.0RC1.2, i've had the above error both before and after uninstalling pretty URL's. Any advice on how to fix this?

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: MrMorph on July 18, 2009, 09:42:07 AM
Version : 1.9.4

When I try to delete a comment I am getting :

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Any fix for this please ?

I was wondering about upgrading to 2.0.5 - is that simple enough to do ?

Thanks for a great mod.

Cheers.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 18, 2009, 10:38:13 AM
Quote from: MrMorph on July 18, 2009, 09:42:07 AM
Version : 1.9.4

When I try to delete a comment I am getting :

Not Acceptable

An appropriate representation of the requested resource /forum/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Any fix for this please ?

I was wondering about upgrading to 2.0.5 - is that simple enough to do ?

Thanks for a great mod.

Cheers.
Check out this topic to fix this issue
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery 2.0.5 Released!
Post by: MrMorph on July 18, 2009, 10:54:59 AM
Thanks, but I tried it and it doesn't work.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 18, 2009, 11:06:02 AM
Another option is to open

Open Themes/default/index.template.php
Find

;id=

And replace all with

&id=



Sources/Gallery.php
Find

;id=

And replace all with

&id=
Title: Re: SMF Gallery 2.0.5 Released!
Post by: MrMorph on July 18, 2009, 11:39:03 AM
Okay thanks, I will try that out.  :)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 18, 2009, 12:40:58 PM
Quote from: sepulchre on July 16, 2009, 05:35:34 PM
I'm getting this error during install

Fatal error: Call to undefined function db_query() in /home/xxxxxxxxx/public_html/forum/Sources/Subs-PrettyUrls.php on line 265

I have recently upgraded from 1.1.9 ro 2.0RC1.2, i've had the above error both before and after uninstalling pretty URL's. Any advice on how to fix this?

Thanks
Are you using the latest SMF Gallery package from the modification site when you move to SMF 2.0
Title: Re: SMF Gallery 2.0.5 Released!
Post by: deganu on July 18, 2009, 07:15:13 PM
Could I please get a reply to my post, that would help me out a lot. (it is like four or five posts up, and I fear it has been overlooked.) Thank you so much.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 18, 2009, 07:57:41 PM
Quote from: deganu on July 18, 2009, 07:15:13 PM
Could I please get a reply to my post, that would help me out a lot. (it is like four or five posts up, and I fear it has been overlooked.) Thank you so much.
Fixed file attached
Title: Re: SMF Gallery 2.0.5 Released!
Post by: DonnaMarie on July 18, 2009, 10:40:09 PM
I am missing a gallery button as well. I am using 1.1.10  Pastel Flowers theme
I hope I saved the index properly.. if not please lmk what I need to do.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: deganu on July 19, 2009, 12:38:34 AM
Oh, thank you so much!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jyohan on July 19, 2009, 01:08:58 AM
When I uninstalled the mod the gallery button stayed where it was and now i have no clue how to remove it anyone have this problem? ( FYI I'm running 1.1.8 and using the default theme)
Title: Re: SMF Gallery 2.0.5 Released!
Post by: sepulchre on July 19, 2009, 06:28:41 AM
Quote from: vbgamer45 on July 18, 2009, 12:40:58 PM
Are you using the latest SMF Gallery package from the modification site when you move to SMF 2.0

yep, I collected all new mods for v2 before sorting the upgrade. Anyway the issue was down to prettyurls, all sorted now thanks!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 19, 2009, 09:33:17 AM
Quote from: Jyohan on July 19, 2009, 01:08:58 AM
When I uninstalled the mod the gallery button stayed where it was and now i have no clue how to remove it anyone have this problem? ( FYI I'm running 1.1.8 and using the default theme)
Check out the index.template.php file for the button
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Jyohan on July 19, 2009, 02:25:15 PM
Quote from: vbgamer45 on July 19, 2009, 09:33:17 AM
Quote from: Jyohan on July 19, 2009, 01:08:58 AM
When I uninstalled the mod the gallery button stayed where it was and now i have no clue how to remove it anyone have this problem? ( FYI I'm running 1.1.8 and using the default theme)
Check out the index.template.php file for the button

Ah cool found it thanks.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 19, 2009, 02:33:29 PM
Quote from: DonnaMarie on July 18, 2009, 10:40:09 PM
I am missing a gallery button as well. I am using 1.1.10  Pastel Flowers theme
I hope I saved the index properly.. if not please lmk what I need to do.
Sorry that is the wrong file index.php

Please attach the themes/yourthemesname/index.template.php

And then we can add the button/link to that theme!
Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on July 21, 2009, 08:30:18 PM
Great mod!  I'm using it (Gallery Lite) as a photo directory of the members on my site, but I have a question?  How can I force the thumbnail images on the main gallery page to display in alphabetical order?  Currently, they are displaying in the order they were uploaded.

Any help is greatly appreciated.

Thanks,
arreferee
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 21, 2009, 11:07:15 PM
For the lite edition you would need to edit the gallery.template.php and change the sort order for the category view
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on July 22, 2009, 09:20:33 AM
Quote from: vbgamer45 on July 21, 2009, 11:07:15 PM
For the lite edition you would need to edit the gallery.template.php and change the sort order for the category view

Thanks for the info.  Can you point me to the line where I would need to change that?  I looked through the Gallery.template.php this morning and couldn't find that section.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 22, 2009, 01:57:40 PM
It would be located in the template_main function in the Gallery.template.php
That function contains the main frontpage of the gallery and image listing inside the category
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ttuu on July 23, 2009, 06:07:32 PM
You can add buttons "Next" "Previous" any image to view the other pictures the same category?
now if i see one picture and i want to see other pictures i have back to category again and again.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 23, 2009, 07:41:47 PM
Yeah that is true I added previous and next in Gallery Pro though.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ttuu on July 23, 2009, 08:08:16 PM
Quote from: vbgamer45 on July 23, 2009, 07:41:47 PM
Yeah that is true I added previous and next in Gallery Pro though.

50$ is too mache Just for this added.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 23, 2009, 08:13:42 PM
Adds a lot more that just previous/next links
http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ttuu on July 24, 2009, 08:47:45 AM
Not long ago I paid you 25$ on a project of the articles.
Fire option to receive a discount on the gallery?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 24, 2009, 08:49:49 AM
At this time we only do discounts for purchases of more than one gallery license at a time.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ttuu on July 24, 2009, 09:00:31 AM
There are two payment option?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 24, 2009, 09:04:11 AM
Not at this time since it would require me to track payments and really don't have a lot time to do that.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: robone on July 25, 2009, 04:50:20 AM
I have installed SMF Gallery and everything seems to be working and can upload pics, however, when I try and look at the pics, I get the following error:

"An appropriate representation of the requested resource /saudi/index.php could not be found on this server."

After getting the error, I made the following addition to the htaccess file on the server"

"<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>"

It still generates the same problem. I checked that I have GD and yes it is there "GD version: bundled (2.0.34 compatible)"

Any help will be welcome.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: Eyesman on July 25, 2009, 10:30:54 AM
 Hi all,

I have the smf v.1.1.10 and also I have installed the SMF Gallery Pro 2.0.5

Is there a mod or something that can display the latest uploaded photo in the Gallery on the home page of the forum?

thanx for any help.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 11:43:17 AM
Quote from: robone on July 25, 2009, 04:50:20 AM
I have installed SMF Gallery and everything seems to be working and can upload pics, however, when I try and look at the pics, I get the following error:

"An appropriate representation of the requested resource /saudi/index.php could not be found on this server."

After getting the error, I made the following addition to the htaccess file on the server"

"<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>"

It still generates the same problem. I checked that I have GD and yes it is there "GD version: bundled (2.0.34 compatible)"

Any help will be welcome.
You can also make the following edits
Open Sources/Gallery.php
find

;id=

Replace ALL with

&id=


Open Gallery.template.php
find

;id=

Replace ALL with

&id=

Title: Re: SMF Gallery 2.0.5 Released!
Post by: robone on July 25, 2009, 01:32:14 PM
Thanks. The changes work well.

But, now another problem, the block on Simple Portal doesn't. It now shows no pictures have been loaded.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 03:44:19 PM
Quote from: robone on July 25, 2009, 01:32:14 PM
Thanks. The changes work well.

But, now another problem, the block on Simple Portal doesn't. It now shows no pictures have been loaded.
Make sure you are choosing the "SMF Gallery" block
Title: Re: SMF Gallery 2.0.5 Released!
Post by: robone on July 25, 2009, 04:06:00 PM
The SMF Gallery block was working, but no more.

However, I have found some other code at Simple Portal that chooses random pictures and that seems to work quite well, but it only chooses one pic at a time.
global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $txt, $func;

$GD_Installed = function_exists('imagecreate');

$dbresult = db_query("
SELECT p.ID_PICTURE
FROM {$db_prefix}gallery_pic as p
ORDER BY ID_PICTURE DESC
LIMIT 1", __FILE__, __LINE__);

$max = mysql_fetch_assoc($dbresult);
$check = 0;

while($check == 0) {

$idpic = rand(1, $max['ID_PICTURE']);

$dbresult = db_query("
SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width, p.title, p.ID_MEMBER,
m.memberName, m.realName, p.date, p.description
FROM {$db_prefix}gallery_pic as p
LEFT JOIN {$db_prefix}members AS m on ( p.ID_MEMBER = m.ID_MEMBER)
WHERE p.approved = 1 AND p.ID_PICTURE = $idpic
ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
$gallery_picture = array();
while($row = mysql_fetch_assoc($dbresult))
{

$row['description'] = strip_tags(strtr(parse_bbc($row['description'], 1), array('<br />' => '')));
if ($func['strlen']($row['description']) > 60)
$row['description'] = $func['substr']($row['description'], 0, 60) . '<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">...</a>';

$gallery_picture = array (
'id' => $row['ID_PICTURE'],
'title' => $row['title'],
'desc' => $row['description'],
'views' => $row['views'],
'senderid' => $row['ID_MEMBER'],
'sendername' => $row['realName'],
'thumbfilename' => $row['thumbfilename'],
'filename' => $row['filename']
);
}

mysql_free_result($dbresult);

if(!empty($gallery_picture) || empty($max))
$check = 1;
}

if (!empty($gallery_picture)) {
echo '<div align="center">';
echo '
<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $gallery_picture['id'] . '"><img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $gallery_picture['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="78" width="120" ')  . ' border="0" /></a>
<br />' . $gallery_picture['title'] . '<span class="smalltext"><br />
' . $gallery_picture['desc'] . '<br />
<b>' . $txt['sp-grpictureviews'] . '</b> ' . $gallery_picture['views'] . '<br />';
if ($gallery_picture['sendername'] != '')
echo '<b>' . $txt['sp-grpicturesender'] . '</b> <a href="' . $scripturl . '?action=profile;u=' . $gallery_picture['senderid'] . '">'  . $gallery_picture['sendername'] . '</a><br />';
else
echo '<b>' . $txt['sp-grpicturesender'] . '</b> ' . $txt['sp-grpictureguest'] . '<br />';
echo '</span>';
echo '</div>';
}
else
echo 'There is no picture in the gallery.';

Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 25, 2009, 10:56:00 PM
I am totaly new to smf and have had no problems so far setting up my forum. Now that it is done I need a gallery to go with it.. I've been trying to read and understand how to get the smf gallery installed and working and I'm confused.

Can someone please walk me thru the steps of installing the gallery.. My needs for it is that we are a scrapbooking and cardmaking community and will need a picture gallery with seperate albums for each person and also would need to set up our images to be linked to special challenges. is this all possible with your gallery?

if so please walk me through the steps of installing it.

Thanks so much

Sassy
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 11:00:05 PM
Download the zip from called "SMFGallery2.0.5.zip"
http://mods.simplemachines.org/index.php?mod=473
Save it to your computer.

Inside your forum go to the admin section then to the Package Manager
Next go to the download packages tab.

Select a file to upload should be SMFGallery2.0.5.zip   located on your computer.
After clicking upload just follow the install step and the gallery should then be installed.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 25, 2009, 11:04:04 PM
I don't have to unzip it at all?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 11:10:56 PM
Nope don't have to unzip it. SMF installs the zip package by itself.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 25, 2009, 11:16:55 PM
I have it installed and I listed a sample catagory... but where is it located.. where is the gallery at? sounds like a dumb question but I'm looking all over for the gallery and do not see it.. it said it all installed okay..
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 11:28:20 PM
If you are on SMF 1.1.x for custom themes you need to add a link in the index.template.php for the gallery to show.

To access the gallery visit
http://www.yourforum.com/index.php?action=gallery
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 25, 2009, 11:37:17 PM
i see how to get there by going to the url but I need my members to just click from within the forum to the gallery... how is that done, how do I make a link.. you mentioned it but it went over my head a bit..

thanks so much
Sassy
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 25, 2009, 11:46:04 PM
im using the impulse theme and I have that file you said to change... I havent a clueu where to change this at to add a link to the gallery..

here is the file copied

   <div id="topsection">';

   if (empty($settings['header_logo_url']))
      echo '
      <h1 id="mainheader"><a href="' , $scripturl , '">', $context['forum_name'], '</a></h1>';
   else
      echo '
      <a href="' , $scripturl , '"><img id="mainheader" src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" /></a>';
   
   echo '
      <div id="muser">
         <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['theme_url'], '/theme/', empty($options['collapse_header']) ? 'user.png' : 'user2.png', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
         <div id="userbox" class="content"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>';
   if($context['user']['is_logged'])
   {
      echo '<b>', $txt['hello_member_ndt'], ' ', $context['user']['name'] , '</b>
            <br />';
      if ($context['allow_pm'])
         echo $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
      echo '.<br />';
      
      echo '
            <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
            <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
            <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
            ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

   }
   else
      echo '   
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
            <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="text-align: center;margin: 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
               <select name="cookielength">
                  <option value="60">', $txt['smf53'], '</option>
                  <option value="1440">', $txt['smf47'], '</option>
                  <option value="10080">', $txt['smf48'], '</option>
                  <option value="43200">', $txt['smf49'], '</option>
                  <option value="-1" selected="selected">', $txt['smf50'], '</option>
               </select><br />
               <input type="submit" value="', $txt[34], '" /><br />
               <span class="middletext">', $txt['smf52'], '</span>
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';

   if (!empty($context['user']['avatar']))
      echo '
            <div id="myavatar">', $context['user']['avatar']['image'], '</div>';

   echo '
         </div>
         <span class="footer"></span>
      </div>
   </div>
   <div id="topsection2">
      <span class="left"></span>
      <span class="right"></span>
      <div class="content">
      </div>
   </div>
   <div id="topsection3">
      <span class="left"></span>
      <span class="right"></span>
      <div class="content"></div>
   </div>
   <div id="topmiddle">
      <div class="left">
         <div class="right">
            <div class="content">
               <h3 id="news">' , $txt['impulse_newsline'] , '</h3>
               ' , $context['random_news_line'] , '
            </div>
         </div>
      </div>
   </div>
   <div id="middlesection">
      <span class="left"></span>
      <span class="right"></span>
      <div class="content">', template_menu(), '</div>
   </div>
   <div id="content">
      <div class="inner">
         <div class="mid">';

   // for TP 0.9.8
   if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
      tpcode();

   echo '<div style="overflow: auto;">';
}

function template_main_below()
{
   global $context;

   // decide...
   if($context['browser']['is_ie6'])
      template_ie6_below();
   else
      template_default_below();

}

function template_default_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '</div>';   
   
      // for TP 0.9.8
   if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
      tpcode2();

   echo '
         </div>
      </div>
   </div>
   <div id="footersection">
      <span class="left"></span>
      <span class="right"></span>
      <div class="content"><div id="copywrite">' , theme_copyright() , function_exists('tportal_version') ? '<div>' . tportal_version() . '</div>' : '' , '<br /><strong>imPulse</strong> theme by <a href="http://www.tinyportal.net">Bloc</a></div></div>
   </div>';
   
   // Show the load time?
   if ($context['show_load_time'])
      echo '
   <div id="rendertime">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</div>';

   // The following will be used to let the user know that some AJAX process is running
   echo '
   <div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</div>
</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global $context, $settings, $options;

   echo '
   <div id="linktree">';

   // Each tree item has a URL and name. Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '">' . $tree['name'] . '</a>' : $tree['name'];

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;»&nbsp;';
   }

   echo '
   </div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin','tpadmin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('forum','staff','gallery','contact','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // add buttons here
   $context['menubox'] = array();

   /*
      'title' - the string the link will have
      'link' - the actual link
      'chosen' - which "current_action" this button belongs to.
   */

   // home button
   $context['menubox'][]=array(
            'title' => $txt[103],
            'link' => $scripturl,
            'chosen' => '',
            );

   // TP onboard?
   if (function_exists('tportal_version'))
      $context['menubox'][]=array(
            'title' => $txt['tp-forum'],
            'link' => $scripturl . '?action=forum',
            'chosen' => '',
            );
   
   // help button
   $context['menubox'][]=array(
            'title' => $txt[119],
            'link' => $scripturl.'?action=help',
            'chosen' => 'help',
            );


   // search button
   $context['menubox'][]=array(
            'title' => $txt[182],
            'link' => $scripturl.'?action=search',
            'chosen' => 'search',
            );

   // admin button.This one have permission check for admin as well
   if($context['allow_admin'])
      $context['menubox'][]=array(
            'title' => $txt[2],
            'link' => $scripturl.'?action=admin',
            'chosen' => 'admin',
            );

   // profile button
   if($context['allow_edit_profile'])
      $context['menubox'][]=array(
            'title' => $txt[79],
            'link' => $scripturl.'?action=profile',
            'chosen' => 'profile',
            );

   // PM button
   if($context['allow_pm'])
      $context['menubox'][]=array(
            'title' => $txt['pm_short'] . ' '. ($context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : ''),
            'link' => $scripturl.'?action=pm',
            'chosen' => 'pm',
            );

   // calendar button
   if($context['allow_calendar'])
      $context['menubox'][]=array(
            'title' => $txt['calendar24'],
            'link' => $scripturl.'?action=calendar',
            'chosen' => 'calendar',
            );

   // members
   if($context['allow_memberlist'])
      $context['menubox'][]=array(
            'title' => $txt[331],
            'link' => $scripturl.'?action=mlist',
            'chosen' => 'mlist',
            );

   // login button - just for guests
   if(!$context['user']['is_logged'])
      $context['menubox'][]=array(
            'title' => $txt[34],
            'link' => $scripturl.'?action=login',
            'chosen' => 'login',
            );

   // register button - just for guests
   if(!$context['user']['is_logged'])
      $context['menubox'][]=array(
            'title' => $txt[97],
            'link' => $scripturl.'?action=register',
            'chosen' => 'register',
            );

   // logout button - just for members
   if($context['user']['is_logged'])
      $context['menubox'][]=array(
            'title' => $txt[108],
            'link' => $scripturl.'?action=logout;sesc='. $context['session_id'],
            'chosen' => 'logout',
            );
   
   template_menu2();
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu2()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Show the start of the tab section.
   echo '
   <div id="mainmenu">
      <ul>';

   foreach ($context['menubox'] as $act => $button)
      echo '
         <li' , $button['chosen']==$current_action ? ' class="chosen"' : '' , '><a href="', $button['link'], '">' , $button['title'] , '</a>   </li>';
   echo '
      </ul>
   </div>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

   // Create the buttons...
   foreach ($button_strip as $key => $value)
   {
      if (isset($value['test']) && empty($context[$value['test']]))
      {
         unset($button_strip[$key]);
         continue;
      }
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

      $button_strip[$key] = $buttons[$key];
   }

   if (empty($button_strip))
      return '<td>&nbsp;</td>';

   echo '
      <td class="oldmenu">', implode('', $button_strip) , '</td>';
}

function tpcode()
{
   global $settings, $context, $options, $txt;

   echo '
   <div id="innerframe2">      
      <table width="100%" cellspacing="0" cellpadding="2">
         <tr>';


// TinyPortal integrated bars
   if(!empty($settings['use_tp']) && $context['TPortal']['leftbar'])
   {
      echo '<td  class="padtop" width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex; " valign="top">
               <div id="leftbarHeader" style="', empty($options['collapse_leftbar']) ? '' : 'display: none;', 'padding-top: 15px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
        TPortal_sidebar('left');
        echo '   </div>
            </td>';
   }


   echo '
            <td width="100%" align="left" valign="top" style="padding-top: 15px; padding-bottom: 10px;" >';
        if(!empty($settings['use_tp']) && $context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';

}

function tpcode2()
{
   global $settings,$context, $txt, $options;

   echo '
            </td>';
   // TinyPortal integrated bars
   if(!empty($settings['use_tp']) && $context['TPortal']['rightbar'])
   {
      echo '<td  class="padtop" width="' ,$context['TPortal']['rightbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="rightbarHeader" style="', empty($options['collapse_rightbar']) ? '' : 'display: none;', 'padding-top: 15px; width: ' ,$context['TPortal']['rightbar_width'], 'px;">';
        TPortal_sidebar('right');
        echo '</div></td>';
   }

   echo '   
         </tr>
      </table>
   </div>';
}
?>
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 25, 2009, 11:59:33 PM
If you can attach the file as attachment to your post I can fix. The part above is the complete file.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 26, 2009, 12:21:56 AM
attaching file
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 12:28:27 AM
Fixed file attached
Title: Re: SMF Gallery 2.0.5 Released!
Post by: simplysassy on July 26, 2009, 12:33:32 AM
Thank you so very much. It's up and working just fine!!

Hugs
Sassy
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 12:34:38 AM
No problem. Glad you got it working!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: robone on July 26, 2009, 02:42:34 AM
Hi vbgamer45.

I posted some code above, which I used in a SP block for displaying random images. It works well, but it it only shows one image. Not being familiar with php code, do you know, or anyone else, know what changes can be made so that the number of images can be increased.

Thanks in advance.

Hi vbgamer45

There is another thing. while I was setting up SMF Gallery, I also installed SMF Media Gallery and then un-installed it as it did not suit my use. But that was the cause of the problem with the Gallery SP block not showing the images as it 1st looked for data from SMF Media Gallery, found nothing and then said no images.

I have removed all the SMF media files and now the SP Gallery block shows the images, but, it still has the same problem where you cannot view the file on a large scale that was fixed by replacing ;id= with &id=.

You will see from the two images attached that the one from the block that I made with the code above shows the link with the &id= and the standard block from SP shows it with ;ID= and I am assuming thats why it does not work.

Any suggestions

Dont worry....problem resolved...its amazing what you can do when you put your mind to it.

Had to go into sportal1-1.php and also make the changes there.

Note: I removed the images that I said I would upload as there was no need for them now.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: ultide on July 26, 2009, 06:04:34 AM
i want to show recent images added in gallerd on board index. Is there any way of doing that. And where i will find gallery stats.

using smf 1.1.9 as_theme.


thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 09:37:09 AM
Quote from: robone on July 26, 2009, 02:42:34 AM
Hi vbgamer45.

I posted some code above, which I used in a SP block for displaying random images. It works well, but it it only shows one image. Not being familiar with php code, do you know, or anyone else, know what changes can be made so that the number of images can be increased.

Thanks in advance.

Hi vbgamer45

There is another thing. while I was setting up SMF Gallery, I also installed SMF Media Gallery and then un-installed it as it did not suit my use. But that was the cause of the problem with the Gallery SP block not showing the images as it 1st looked for data from SMF Media Gallery, found nothing and then said no images.

I have removed all the SMF media files and now the SP Gallery block shows the images, but, it still has the same problem where you cannot view the file on a large scale that was fixed by replacing ;id= with &id=.

You will see from the two images attached that the one from the block that I made with the code above shows the link with the &id= and the standard block from SP shows it with ;ID= and I am assuming thats why it does not work.

Any suggestions

Dont worry....problem resolved...its amazing what you can do when you put your mind to it.

Had to go into sportal1-1.php and also make the changes there.

Note: I removed the images that I said I would upload as there was no need for them now.
That code above has to be heavy modified to support more than one image. Do you have a link how do you want it displayed. Do you want it vertical or horizontal.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: robone on July 26, 2009, 11:29:27 AM
Its okay, I do not now need the code as I am now using the Gallery  block that comes with SP. Works after I made the changes to sportal1-1.php.

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 26, 2009, 03:51:25 PM
Does anyone have a problem where only the main administrator can access the gallery?  I have changed permissions for other user types but for everyone else except myself, they see "Sorry, but you are not allowed to access the gallery"

Any help would be appreciated!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 03:57:29 PM
Are you changing the permissions under. Admin -> Permissions -> Then modifying each group. They need at least the View Gallery permission
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 26, 2009, 04:46:40 PM
yes, they have all gallery permissions allowed except manage gallery.  Even the other administrators cannot see it.  I'm the only one.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: S.Nieves on July 26, 2009, 04:52:47 PM
Hello,
I just did an upgrade to the new SMG Gallery and I have some problems. First off, I have around 56 pages of errors in my Error Forum Log.

Second, I have two Gallery buttons up in my navigation.

http://www.doggeekz.com

8: Undefined index:
File: /home/dogge2/public_html/Themes/default/languages/MGallery.english.php (eval?)
Line: 82

How could I fix this?

Thanks
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 06:17:02 PM
Quote from: S.Nieves on July 26, 2009, 04:52:47 PM
Hello,
I just did an upgrade to the new SMG Gallery and I have some problems. First off, I have around 56 pages of errors in my Error Forum Log.

Second, I have two Gallery buttons up in my navigation.

http://www.doggeekz.com

8: Undefined index:
File: /home/dogge2/public_html/Themes/default/languages/MGallery.english.php (eval?)
Line: 82

How could I fix this?

Thanks
That is not SMF Gallery that is a different gallery.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 26, 2009, 06:24:06 PM
Do you know of anything else I can check for my issue? 
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 06:48:34 PM
What version of SMF? Is it all membergroups having this issue or just regular members?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 26, 2009, 07:17:18 PM
SMF Gallery Lite 2.0.5 and it affects everyone.  The only one who can see the gallery is me.  Every other member group gets that message.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 26, 2009, 07:20:55 PM
Is it SMF version. 2.0 or 1.1.x?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 26, 2009, 11:13:54 PM
1.1.9
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 27, 2009, 01:02:42 AM
Do you have any caching installed? Are the members part of additional groups?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: herosix on July 27, 2009, 01:45:12 AM
ah, nevermind!  I had moved the site to a new FTP location previously and the gallery was still linking to the old one.  Not even sure how it still worked even, but it seems like I have access working now :-)  Thanks though!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 27, 2009, 09:05:13 AM
Glad you got it working. I was really confused for a moment
Title: Re: SMF Gallery 2.0.5 Released!
Post by: w0lfman on July 29, 2009, 09:47:21 PM
Installed the gallery an was able to upload pictures without any problems.  However when I click on a thumbnail I get the following error message...

Method Not Implemented
GET to /forum/index.php not supported.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 29, 2009, 10:14:16 PM
Quote from: w0lfman on July 29, 2009, 09:47:21 PM
Installed the gallery an was able to upload pictures without any problems.  However when I click on a thumbnail I get the following error message...

Method Not Implemented
GET to /forum/index.php not supported.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Check out this topic to fix this issue
http://www.simplemachines.org/community/index.php?topic=34270
Another option is to open

Open Themes/default/index.template.php
Find

;id=

And replace all with

&id=



Sources/Gallery.php
Find

;id=

And replace all with

&id=
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on July 29, 2009, 11:22:46 PM
Quote from: vbgamer45 on July 22, 2009, 01:57:40 PM
It would be located in the template_main function in the Gallery.template.php
That function contains the main frontpage of the gallery and image listing inside the category

I found the following line of code and changed the ORDER BY to "title" from "roworder", but it didn't change the order the pictures are being displayed.  Am I changing the wrong line?

SELECT
         ID_CAT, title, roworder, description, image
      FROM {$db_prefix}gallery_cat ORDER BY title ASC", __FILE__, __LINE__);
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 29, 2009, 11:34:59 PM
Changed the wrong line. That is for category display order since it is the gallery_cat table.

Should be the second select in that template_main function

look for gallery_pic table
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on July 30, 2009, 04:36:42 PM
Quote from: vbgamer45 on July 29, 2009, 11:34:59 PM
Changed the wrong line. That is for category display order since it is the gallery_cat table.

Should be the second select in that template_main function

look for gallery_pic table

I've tried everything I can think of on this line and nothing has worked so far.  It looks to me like the second SELECT line is only giving a count of the total number of pictures in the gallery.  I don't see anywhere that it is showing what order the pictures show up in.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: w0lfman on July 31, 2009, 04:17:53 PM
vbgamer45, I have tried the "htaccess.txt" method.  I've uploaded the file and when I change the name it disappears.  I've also tried to find the ;id=
in my index file, but it isnt there.  I've added my index.template.php for you to review...

Quote<?php
// Version: 1.1.5; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
   global $context, $settings, $options, $txt;

   /* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   $settings['use_default_images'] = 'never';

   /* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   $settings['doctype'] = 'xhtml';

   /* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   $settings['theme_version'] = '1.1';

   /* Set a setting that tells the theme that it can render the tabs. */
   $settings['use_tabs'] = true;

   /* Use plain buttons - as oppossed to text buttons? */
   $settings['use_buttons'] = true;

   /* Show sticky and lock status seperate from topic icons? */
   $settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
   {
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
   }

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';

   // the routine for the info center upshrink
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

         function shrinkHeaderIC(mode)
         {';

   if ($context['user']['is_guest'])
      echo '
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
   else
      echo '
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
</head>
<body>';

   echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
            <td class="catbg" height="32">';

   if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

   echo '
            </td>
         </tr>
      </table>';


   // display user name
   echo '
      <table width="100%" cellpadding="0" cellspacing="0" border="0" >
         <tr>';

   if($context['user']['is_logged'])
      echo '
            <td class="titlebg2" height="32">
               <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
            </td>';

   // display the time
   echo '
            <td class="titlebg2" height="32" align="right">
               <span class="smalltext">' , $context['current_time'], '</span>';

   // this is the upshrink button for the user info section
   echo '
               <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
            </td>
         </tr>
         <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
            <td valign="top" colspan="2">
               <table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
                  <tr>';

   if (!empty($context['user']['avatar']))
      echo '
                     <td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

   echo '
                     <td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';

   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
      echo '
                        <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
                        <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

   }
   // Otherwise they're a guest - send them a lovely greeting...
   else
      echo $txt['welcome_guest'];

   // Now, onto our second set of info, are they logged in again?
   if ($context['user']['is_logged'])
   {
      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                        <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                        ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
                        ', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                           <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                           <select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="43200">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select>
                           <input type="submit" value="', $txt[34], '" /><br />
                           <span class="middletext">', $txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }

   echo '
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>';

   echo '
      <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
         <tr>';

   // Show a random news item? (or you could pick one from news_lines...)
   if (!empty($settings['enable_news']))
      echo '
            <td width="90%" class="titlebg2">
               <span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
            </td>';
   echo '
            <td class="titlebg2" align="right" nowrap="nowrap" valign="top">
               <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
                  <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
                  <input type="hidden" name="advanced" value="0" />';

   // Search within current topic?
   if (!empty($context['current_topic']))
      echo '
                  <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

      // If we're on a certain board, limit it to this board ;).
   elseif (!empty($context['current_board']))
      echo '
                  <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

   echo '
               </form>
            </td>
         </tr>
      </table>
   </div>';


   // Show the menu here, according to the menu sub template.
   template_menu();


   // The main content should go here.
   echo '
   <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
   </div>';

   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   echo '

   <div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         function smfFooterHighlight(element, value)
         {
            element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
         }
      // ]]></script>
      <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
         <tr>
            <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
               <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
               <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
            </td>
            <td valign="middle" align="center" style="white-space: nowrap;">
               ', theme_copyright(), '
            </td>
            <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
               <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
               <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
            </td>
         </tr>
      </table>';

      // Show the load time?
   if ($context['show_load_time'])
      echo '
      <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

   // This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
   if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
   {
      // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
      echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';

      // Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
      if ($context['browser']['is_safari'])
         echo '
         window.addEventListener("load", smf_codeFix, false);

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if ((codeFix.className == "code" || codeFix.className == "post" || codeFix.className == "signature") && codeFix.offsetHeight < 20)
                  codeFix.style.height = (codeFix.offsetHeight + 20) + "px";
            }
         }';
      elseif ($context['browser']['is_firefox'])
         echo '
         window.addEventListener("load", smf_codeFix, false);
         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if (codeFix.className == "code" && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0))
                  codeFix.style.overflow = "scroll";
            }
         }';
      else
         echo '
         var window_oldOnload = window.onload;
         window.onload = smf_codeFix;

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = codeFix.length - 1; i > 0; i--)
            {
               if (codeFix.currentStyle.overflow == "auto" && (codeFix.currentStyle.height == "" || codeFix.currentStyle.height == "auto") && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0) && (codeFix.offsetHeight != 0 || codeFix.className == "code"))
                  codeFix.style.height = (codeFix.offsetHeight + 36) + "px";
            }

            if (window_oldOnload)
            {
               window_oldOnload();
               window_oldOnload = null;
            }
         }';

      echo '
      // ]]></script>';
   }

   echo '
   </div>';

   // The following will be used to let the user know that some AJAX process is running
   echo '
   <div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global $context, $settings, $options;

   echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

   // Each tree item has a URL and name. Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }

   echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('gallery','gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.
   echo '
         <table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
            <tr>
               <td class="maintab_' , $first , '">&nbsp;</td>';

    // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="http://www.buffalowaynehighschool.com">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [help] button.
   echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
            </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // How about the [search] button?
   if ($context['allow_search'])
      echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
            </td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
            </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
            </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
            </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // 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>' : '';

   // 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>' : '';

      
   // 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 the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
            </td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
            </td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
            </td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // The end of tab section.
   echo '
            <td class="maintab_' , $last , '">&nbsp;</td>
         </tr>
      </table>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

   // Create the buttons...
   foreach ($button_strip as $key => $value)
   {
      if (isset($value['test']) && empty($context[$value['test']]))
      {
         unset($button_strip[$key]);
         continue;
      }
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

      $button_strip[$key] = $buttons[$key];
   }

   if (empty($button_strip))
      return '<td>&nbsp;</td>';

   echo '
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

?>
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 31, 2009, 05:29:48 PM
Wrong files should
be
Sources/Gallery.php
and
Themes/default/Gallery.template.php
Title: Re: SMF Gallery 2.0.5 Released!
Post by: arreferee on July 31, 2009, 05:47:08 PM
Quote from: arreferee on July 30, 2009, 04:36:42 PM
Quote from: vbgamer45 on July 29, 2009, 11:34:59 PM
Changed the wrong line. That is for category display order since it is the gallery_cat table.

Should be the second select in that template_main function

look for gallery_pic table

I've tried everything I can think of on this line and nothing has worked so far.  It looks to me like the second SELECT line is only giving a count of the total number of pictures in the gallery.  I don't see anywhere that it is showing what order the pictures show up in.

I finally figured this out and it was not in the template_main function.  It is in the template_image_listing function...beginning on line 166.  For others that would like to make this modification, search for "//Show the pictures".  The ORDER BY is about 7 lines below this.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 31, 2009, 05:52:41 PM
Ah yes forgot updating that code in there as well.
Title: Re: SMF Gallery 2.0.5 Released!
Post by: w0lfman on July 31, 2009, 09:18:55 PM
Thanks vbgamer4!  Worked wonderful!
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on July 31, 2009, 11:06:39 PM
Glad you were able to get it working
Title: Re: SMF Gallery 2.0.5 Released!
Post by: kripz on August 03, 2009, 06:10:52 AM
One thing i noticed is that if the image is too big it stretches the whole forum, can this be helped?
Title: Re: SMF Gallery 2.0.5 Released!
Post by: vbgamer45 on August 03, 2009, 07:42:23 PM
Not with the lite edition. The most you can do is set limits on image width height.
Title: Re: SMF Gallery 2.0.6 Released!
Post by: vbgamer45 on August 16, 2009, 03:09:37 PM
2.0.6
!Fixed bug with who is viewing category/picture not displaying all members viewing that page
!Moved all queries out of templates
Title: Re: SMF Gallery 2.0.6 Released!
Post by: Enquirer on August 18, 2009, 08:31:45 AM
Hi VBGAMER45

By mistake, I deleted the Gallery package instead of using the uninstall link for SMF Gallery 2.0.5.  I wanted to install 2.0.6.  But the "Gallery" tab on the toolbar remained in place so that after installing 2.0.6, I got two Gallery Tabs!

Image Attached.

How do I remove any extraneous files/codes from the previously deleted Gallery 2.0.5 so that I only have ONE "Gallery" tab on the Menu Bar and fully function Gallery package?

Any help given would be much appreciated.

Thanks

Enquirer
Title: Re: SMF Gallery 2.0.6 Released!
Post by: vbgamer45 on August 18, 2009, 09:00:50 AM
Attach your index.template.php of your theme and I can fix this issue.
Title: Re: SMF Gallery 2.0.6 Released - Menu Tab Problems
Post by: Enquirer on August 18, 2009, 09:34:21 AM
Hi

Thank you so much for your prompt response.

I would prefer to make any alterations myself, if you'd be kind enough to let me know how and which code - I'm using the SMF default theme.

I've downloaded the relevant .php file - is the following code to be deleted and then the amended .php file uploaded to server again?

// 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>' : '';


Thanks
Title: Re: SMF Gallery 2.0.6 Released!
Post by: Enquirer on August 18, 2009, 05:15:35 PM
Hi

Please ignore previous post.  I have, with the help of another SMF Customizer, resolved this issue satisfactorily.

Thanks for your earlier interest.
Title: Re: SMF Gallery 2.0.6 Released!
Post by: vbgamer45 on August 18, 2009, 07:39:12 PM
Thanks glad you got it working!
Title: Re: SMF Gallery 2.0.6 Released!
Post by: ltdeta on August 20, 2009, 06:32:22 AM
I have installed  SMF Galerie Lite 2.0.5 a few months ago
after that other mods are updated

What shoud i do know updating to 2.0.6?
Title: Re: SMF Gallery 2.0.6 Released!
Post by: vbgamer45 on August 20, 2009, 08:53:37 AM
Just install the latest version it should autoupgrade
Title: Re: SMF Gallery 2.0.6 Released!
Post by: tfalbb on August 21, 2009, 09:20:45 AM
When you go into gallery then click the category to get the thumbnail pics displayed, is there any way of displaying the picture title above the thumbnail?
Title: Re: SMF Gallery 2.0.6 Released!
Post by: vbgamer45 on August 21, 2009, 07:50:31 PM
Would require an edit to the Gallery.template.php to include the title I believe.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 22, 2009, 11:45:50 PM
Quick update/bug fix
2.0.7
!Fixed bbc editor in SMF 2.0 not working in IE6/IE7
!Better error handling if accessing invalid image id
Title: Re: SMF Gallery 2.0.7 Released!
Post by: B.SkiLLs on August 23, 2009, 04:56:39 PM
I am trying to hook something custom up here in my drop down nav's for a certain gallery tab with dropdowns.

I have the main gallery link, the add picture link drop down,

but here is the question. I am trying to add a view my images link tab. I am using all different ways of:

action=gallery;sa=myimages

without the

;u=1

for the user. What can i use so it works for everybody and doesnt have to have a user id ??

It works on the other parts so what url or what action would i use for it to cover everybody basically so when they click it it takes them to there own images.??? Know what i mean ??

Just like when you use ?action=pm

or whatever, it doesnt have to have a set ID

I even tried ?action=gallery;sa=myimages=
or
?action=gallery;sa=myimages=u=
or
?action=gallery;sa=myimages=u



with no luck

any and all help is much appreciated . Im getting to frustrated at it right now to even think straight on it now...lol

Its bugging the crap out of me cause i know what it is but cant think of it and i know its easy one...

Thxs

Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 23, 2009, 08:46:20 PM
Needs the user id.
What I would suggest is to hide the tab from guests.
But everyone else gets to view the tab and you can grab the member id from
$ID_MEMBER for SMF 1.1.x or $user_info['id'] SMF 2.0.x
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Gavin Chatt on August 23, 2009, 10:59:34 PM
Hello all, I was trying to complete an install of Gallery however am struggling a tad, can someone assist me please?

I was hoping to have a random block showing one pic at a time and if clicked would open the full gallery. Can this be done even if using a different theme?

Thanks all
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 23, 2009, 11:00:41 PM
Random block inside a portal like ezportal tinyportal etc? Or just on the theme itself
Title: Re: SMF Gallery 2.0.7 Released!
Post by: tfalbb on August 24, 2009, 12:18:05 PM
Quote from: vbgamer45 on August 21, 2009, 07:50:31 PM
Would require an edit to the Gallery.template.php to include the title I believe.

Any clues as to what edit might be needed?

Re: Picture title on thumbnail screen
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 24, 2009, 07:47:41 PM
Check out the template_main or template_image_listing functions
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LOVELORD on August 25, 2009, 06:49:45 PM
I have problem with this mod.

I can only upload image... And nothing else.

When I try to modify ,edit, delete, approve, or comment it show me this problem.

Not Acceptable

An appropriate representation of the requested resource /gallery/ could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Gallery folder exist, but htere is only images, folder .svn  and placeholder.txt .

What to do to fix this problem. I try to change permision to that folder to 777 but it not work.

I use dilbe MC theme and 1.1.10 forum...

Also how to watermark image???
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 25, 2009, 07:26:21 PM
What version of the mod?

Also check this topic
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LOVELORD on August 27, 2009, 02:17:30 PM
Version is..

SMF Gallery Lite      1.9.4

Topic witch you gave to me, not help. Still a same problem...
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 27, 2009, 02:56:59 PM
Try upgrading to the latest version of SMF Gallery Lite and see if that fixes it. We are on 2.0.7 you are on 1.9.4
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LOVELORD on August 27, 2009, 05:30:04 PM
Is any way to upgrade mod without reinstaling mod? How to do it onat the easyest way???
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 27, 2009, 05:48:25 PM
Just grab the latest package from the modsite then install it there should be an upgrade link.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 27, 2009, 06:45:46 PM
Can someone please help me understand SMG? I have the 1.5.6 version installed. My problem is that I don't see where members can use the SMG. Where is the option to create a gallery? When I go into my profile, I can look at "Summary, View Items and View Comments" under the Gallery options, but none of these let me create a gallery. So what am I not understanding? Do I need to install a button or something like that?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 27, 2009, 07:27:06 PM
Are you using SMF Gallery Lite?
http://mods.simplemachines.org/index.php?mod=473
Those features do not sound like SMF Gallery
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 02:13:29 AM
The package I was using was SMF Media Gallery Version 1.5.6. I just switched to SMF Gallery Lite. Can you explain to me how to start a gallery? Is it like posting a new topic, or is it something members set up in their profile?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 28, 2009, 08:58:17 AM
Visit the main gallery page.  http://www.yourforum.com/index.php?action=gallery

Then click on the add category link. Which will create categories for the gallery and will allow users to upload pictures to those categories.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LOVELORD on August 28, 2009, 01:54:19 PM
You say that I must to deinstall this mode, and install new mode again?
Title: Re: SMF Gallery 2.0.6 Released!
Post by: ltdeta on August 28, 2009, 02:05:03 PM
Quote from: tfalbb on August 21, 2009, 09:20:45 AM
When you go into gallery then click the category to get the thumbnail pics displayed, is there any way of displaying the picture title above the thumbnail?

i modified it for my forum (SMF 1.1.10) without any warranty  ;)
- galery search, my pictures and category view

view: my galery (http://portal.kos-gilde.de/kosforum/index.php?action=gallery)
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 04:19:24 PM
vbgamer45, I just made a category in the gallery. So where do I go to upload pics into it?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 28, 2009, 09:44:45 PM
Quote from: roaldgold on August 28, 2009, 04:19:24 PM
vbgamer45, I just made a category in the gallery. So where do I go to upload pics into it?
Go inside the category. Then click on the add picture link inside it.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 11:00:54 PM
Thank you so much. I kept thinking that individual members could create their own galleries. Is there a way to let members make their own galleries? And also, where do the galleries appear to the members? I can't seem to find it unless I'm logged in as the Admin and looking at the Administrator options.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 28, 2009, 11:10:46 PM
For SMF Gallery Lite does not have an option to allow members to create their own galleries with categories I do have that in Gallery pro though.

Permissions need to be set under Admin -> Permissions then modify each group and give them the SMF Gallery permissions needed.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 11:18:36 PM
Ok, so in the Gallery Lite that I'm using I just set permission for members to access the gallery. When I log in as a member though I can't find it. Where do I look when I sign in as a member? Is there supposed to be a new tab or something?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 28, 2009, 11:20:29 PM
Same as admin there should be a tab called Gallery in menu. This appears in the default theme. If you are using a custom them for SMF 1.1.x will require an edit to the index.template.php of the theme.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 11:23:29 PM
Aw crap. I have no idea how to do that. I'm using the Bright Forest theme. Could you tell me what to do?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 11:29:27 PM
That explains so much as to why I didn't understand what the deal was with the galleries. I didn't have the tab lol.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 28, 2009, 11:44:23 PM
Please attach your index.template.php from your theme and I can add a gallery link/button
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 28, 2009, 11:47:52 PM
Umm.. how do I do that?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 12:02:47 AM
Download a copy of the index.template.php from your site. Then use the attachment option on this forum to attach the file to a post
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 12:09:49 AM
where do I go to download a copy from my site? I'm sorry to ask so many questions I just have never done stuff like this before. I really appreciate your help and patience.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 12:17:56 AM
You can download it either via ftp or via a file manager on a control panel for your website.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 12:41:36 AM
OK I'm at the control center. There is a index.php file and an index.php script. They are both 14.7 kb. I can't seem to find anything else that would be the index.template.php. Is it one of those?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 12:55:57 AM
It would be located in the themes/themename/index.template.php
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 01:36:14 AM
OK, here it is. That only took me forever.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 09:22:39 AM
Quote from: roaldgold on August 29, 2009, 01:36:14 AM
OK, here it is. That only took me forever.
File attached use this file for your custom theme.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 01:45:30 PM
Dude, thank you so much. I just have 1 more question. Or hopefully only 1 more. If I use the Smart FTP program that I used to download that file, should I just locate the index.template.php for that theme and then just upload this new altered one to that location?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 02:01:26 PM
Yes just ftp back to where you got it from should be themes/yourthemename/
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 02:05:53 PM
Ok I just did that. So now I have the original index.template.php and the new modified one. Should I just delete the original? I just logged into my forum and the new tab wasn't there.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 02:27:12 PM
Do you have a link to the board. As long as that file is uploaded as index.template.php in that themes directory it should pick it up.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 04:35:54 PM
When you say board do you mean my site address? If so then it's forumfairbanks.com/index.php
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 04:53:49 PM
Checked out the site make sure you upload the attached index.template.php file to /Themes/bright_forest_110

Then if you want guests to see the button make sure that they have the view gallery permission.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 05:08:20 PM
I got the permissions set and I have the index.template.php uploaded into the bright forest theme. It's still not coming up though.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 07:54:57 PM
Really strange those that theme have a modifications.english.php in its languages folder?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 08:30:15 PM
No. It only has setting.english.php in the languages folder.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 29, 2009, 08:47:34 PM
Then the tab should appear as long as that file is uploaded and there were no failures noted in the mod install.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 08:53:06 PM
There weren't any errors with the mod install. What should I do?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on August 29, 2009, 09:47:21 PM
Should I delete the original index.template.php rom the bright forest theme??
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on August 30, 2009, 10:23:48 PM
Try this file.
Hardcoded the gallery text
And removed the permission check for the button
Title: Re: SMF Gallery 2.0.7 Released!
Post by: roaldgold on September 01, 2009, 03:06:28 AM
SUCCESS!!! Thanks so much for all your help. That gallery is essential for the forum I am trying to make. Thank you again.  :D
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 01, 2009, 08:55:52 AM
Glad it is finally working that was a tricky one!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: B.SkiLLs on September 05, 2009, 11:39:39 PM
Quote from: vbgamer45 on August 23, 2009, 08:46:20 PM
Needs the user id.
What I would suggest is to hide the tab from guests.
But everyone else gets to view the tab and you can grab the member id from
$ID_MEMBER for SMF 1.1.x or $user_info['id'] SMF 2.0.x
Hi Thxs VB..


What do you mean exactly ?? and do you understand what i am actually trying to do ?? Sorry i just re-read that what i wrote and must of been tried writing it that night..lol. Cause was a little hard for me to understand re-reading it .. haha

Basically just like i can set the profile settings with no member id.. like so

?action=profile;sa=forumProfile

instead of

?action=profile;u=1;sa=forumProfile

That way it works for everybody and with no member ID set in the URL but so it brings them right to there own images only page.
oohh and yes, the tab dropdown links is visible but i have the gallery set private for guest so when they do try if they even do click on on of the links it takes them to the login page.




Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 06, 2009, 12:10:51 PM
There is no way to currently do that it looks it up by by the member id that is passed to it.

You could probably hardcode in there just to look for the current member's id but may not be best
Title: Re: SMF Gallery
Post by: GadgetNutt on September 06, 2009, 05:54:36 PM
Quote from: 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.

I hope I am doing this right and in the correct place.

I am getting errors like this on version 2.0.7 of this mod using SMF version 1.1.10:

8: Undefined index: gallery_text_views
File: /usr/shared/web/MYSITE/mj/Sources/Subs-EzPortalMain.php
Line: 1514

Thanks, Mark
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 07, 2009, 01:12:40 AM
Are you using a custom theme?
Is that the only error are you getting or others?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: GadgetNutt on September 07, 2009, 04:39:24 AM
I am using the Extreme6 theme.

That is the only unexplained error I am getting, and the only one that has to do with the gallery.

p.s. There we about 37 of these errors in a row.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: B.SkiLLs on September 07, 2009, 09:22:46 AM
Quote from: vbgamer45 on September 06, 2009, 12:10:51 PM
There is no way to currently do that it looks it up by by the member id that is passed to it.

You could probably hardcode in there just to look for the current member's id but may not be best

whats did you mean by the way you said above tho ?? By adding that to the end of the URL or by hand coding when you mentioned the <i>$ID_MEMBER for SMF 1.1.x or $user_info['id'] SMF 2.0.x </i>

I already have all the rest set, including the add picture. They can click add picture right from there private top navlink for each member.Just cant get that "one' freakin one to work.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 07, 2009, 01:59:45 PM
You can alter the myimages function in the template to grab $ID_MEMBER then you do not have to pass anything and could drop the u from the url
Title: Re: SMF Gallery 2.0.7 Released!
Post by: B.SkiLLs on September 07, 2009, 04:28:51 PM
Quote from: vbgamer45 on September 07, 2009, 01:59:45 PM
You can alter the myimages function in the template to grab $ID_MEMBER then you do not have to pass anything and could drop the u from the url
Ok i think i get what your saying but.. How would i go about doing that ?? Where is it located also ??

Sorry been a long day / weekend. Brain isnt thinkin right..right now.

Thxs for the help and replies so far tho ;)
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 07, 2009, 09:00:02 PM
Would be found in gallery.template.php in the themes/default folder
then in the template_myimages function.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: johnduffy on September 10, 2009, 10:25:21 AM
Hi I have just installed v 2.0.7  All is fine uploading an image but when the thumbnail is clicked I get "You don't have permission to access /94board/index.php on this server."
Can any one give me a pointer?
url of the test image:
http://duffy-eu.com/94board/index.php?action=gallery;cat=3
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 10, 2009, 04:09:42 PM
Quote from: johnduffy on September 10, 2009, 10:25:21 AM
Hi I have just installed v 2.0.7  All is fine uploading an image but when the thumbnail is clicked I get "You don't have permission to access /94board/index.php on this server."
Can any one give me a pointer?
url of the test image:
http://duffy-eu.com/94board/index.php?action=gallery;cat=3
Check out this post on mod_security for a fix
http://www.simplemachines.org/community/index.php?topic=3427
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Uncle Don on September 11, 2009, 02:39:39 PM
Hey VB, 117 pages for not reading thru everyone 1st.  How do I upgrade to Gallery Pro.  Already got the 2.0 Beta 3 but not sure how to do the upgrade.  Found the instructions but don't even know where to find ./index.php.  I have Cpanel and Filezilla if either will help.  Please be specific.

Thanks.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 11, 2009, 08:52:36 PM
You would just need to uninstall the lite edition. The install the pro edition using the package manager.
Title: Help to update
Post by: Uncle Don on September 13, 2009, 10:05:30 AM
Currently my Gallery version is 1.4.5 and it is says the latest version is 2.5.3.  So I should go into packages and uninstall the current and then install the new one which should show up on the list?  Or is there another way to update the version I have now?

OK When I try to Uninstall the lite version it says Error, cannot be found.  I looked in the list and the Pro version is there as ver. 1.4.5  Hmmmmmm.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 13, 2009, 10:11:10 AM
For pro support please open a topic on http://www.smfhacks.com I have an idea on what is causing that issue.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: dgandy on September 13, 2009, 10:29:00 AM
Thank you for sharing this mod. It is really nice. I've been trying to figure out how to add a feature and can't.
What I was trying was..
when you go to the gallery and select a category it shows thumbnails of all the pictures in the category.
When I select the first thumbnail and go to the display of that photo, it would be nice to have next and previous links so I don't have to go back to all the thumbnail previews to select the next picture.
Is there a way to do this?

And also, while I'm bugging you...
if I add a picture while in the album, it takes me back to the main display instead of the album (category) I'm in. So, if I add another picture, I have to select the correct category or it goes into the first one.
Is there a way I can change it to return to the category listing after adding a photo to that particular category?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 13, 2009, 02:40:06 PM
Next/Previous links at this time are only found in the pro edition and not the lite edition

Second part for the redirection it could be possible to redirect them back to the category they were in if they were in one.
Would require an edit to the Gallery.php and the Addpicture2 function
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 17, 2009, 09:42:10 PM
Hello, wonderful mod here but i just have one problem. I was using smf gallery on smf 1.1.10 then after upgrading to 2.0 rc1.2 the approval system stopped working. When a member submits an image to the gallery i am not able to approve it or even view it. Any Ideas? Thanks in advance.   
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 17, 2009, 09:49:04 PM
What happens when you try to approve or view the image?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: IdanC on September 18, 2009, 05:28:50 AM
hi,

as an old fan of this mod, i'm trying to upgrade to 2b5, but even when i install it on a fresh copy of smf 1.1.10, whenever i try to add an item (embedded or upload), i get the error -

Quote
Your session timed out while posting. Please go back and try again.

what can i do?

thanks for help,
and a happy Rosh Hashana
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 18, 2009, 07:42:55 PM
Check your forums error log for any issues.
Check that your gallery path and gallery url are correct.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 18, 2009, 08:51:15 PM
quote author=vbgamer45 link=topic=114291.msg2264330#msg2264330 date=1253238544]
What happens when you try to approve or view the image?
[/quote]
When i try to approve or view the page just reloads.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 18, 2009, 09:51:54 PM
Do you have a link to a page on where this occurs?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 18, 2009, 10:32:22 PM
Yeah, but I think it is only for admins.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 18, 2009, 11:47:26 PM
For just viewing the image? Like the fullsize link to the image?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 20, 2009, 01:53:12 PM
The error occurs only in the image approval page, therefore only admins experience the error. Any action taken there just reloads the page.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 20, 2009, 09:51:45 PM
Quote from: Kingus on September 20, 2009, 01:53:12 PM
The error occurs only in the image approval page, therefore only admins experience the error. Any action taken there just reloads the page.
Released an update to fix this issue.

2.0.8
!Fixed image approval listing in SMF 2.0
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 21, 2009, 03:46:53 AM
Thanks a lot for all your time, about to download the update. Thanks again.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 21, 2009, 08:45:17 AM
No problem glad to help
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Kingus on September 21, 2009, 06:13:53 PM
Thanks a lot. I have tried It and it works wonderfully
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 21, 2009, 07:43:00 PM
Great I am glad that fixed it!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: brion on September 22, 2009, 07:48:11 PM
Hi, can you add a new posts feature to this mod? I would like it to show a new icon for new pictures in the gallery.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 22, 2009, 08:26:09 PM
Where would this icon show and what is the criteria for new pictures?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: brion on September 22, 2009, 09:14:55 PM
Hmm I'd say next to the total images in that category. Just a little circle with New in it.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 22, 2009, 09:38:24 PM
Is the new based on images uploaded that day or something else?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: brion on September 22, 2009, 10:35:36 PM
Just on the category if they haven't viewed the category since a new photo was uploaded. Not on each photo, just on the category. Goes away once they click on it.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: johnduffy on September 24, 2009, 02:29:45 PM
Quote from: vbgamer45 on September 10, 2009, 04:09:42 PM
Quote from: johnduffy on September 10, 2009, 10:25:21 AM
Hi I have just installed v 2.0.7  All is fine uploading an image but when the thumbnail is clicked I get "You don't have permission to access /94board/index.php on this server."
Can any one give me a pointer?
url of the test image:
http://duffy-eu.com/94board/index.php?action=gallery;cat=3
Check out this post on mod_security for a fix
http://www.simplemachines.org/community/index.php?topic=3427
Thanks to vbgamer45  your tip has done the trick. After adding the recommended file I decided to removed the gallery and make a clean start (there was only a couple of test images on the gallery).
   Removing the gallery for obvious reasons does not clean the gallery database data. I removed these also, as after loading/unloading the gallery umpteen times I was sure there would be more trouble ahead.
A clean upload and the extra file works brilliantly. Thanks again for all at SMF for all your efforts, I'm a v happy man!!!!!!!!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 24, 2009, 07:42:42 PM
No problem glad the gallery can be of use for you!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Pinball Nation on September 25, 2009, 08:30:22 AM
If i upgrade to 2.0.7 will i lose my pictures in the gallery i have installed now?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 25, 2009, 09:29:43 AM
You will not loose your pictures. No information is lost when you uninstall.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Pinball Nation on September 25, 2009, 10:17:45 AM
Thanks for the info :)
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Pinball Nation on September 25, 2009, 04:33:21 PM
Not able to uninstall 2.0.5 of gallery.I get these errors 1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed
3. Execute Modification ./Themes/default/languages/Who.english.php Test successful
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Themes/default/index.template.php Test successful
6. Execute Modification ./Sources/Subs.php Test failed[code]
I only included the ones that failed.Everything looks ok in the ones that failed so im not sure.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 25, 2009, 09:18:31 PM
Those errors are ok to fail they occur if you have other mods that are installed
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Pinball Nation on September 26, 2009, 09:14:23 AM
Thanks,so its ok to remove it.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: DaBrute on September 26, 2009, 09:57:02 AM
I installed the current version and enabled persmissions. But where is the Gallery on my site?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 26, 2009, 09:58:07 AM
Quote from: DaBrute on September 26, 2009, 09:57:02 AM
I installed the current version and enabled persmissions. But where is the Gallery on my site?
If you are using a custom theme you will need to add a link/button to the index.template.php of your theme.

To access the gallery visit http://www.yourforum.com/index.php?action=gallery
Title: Re: SMF Gallery 2.0.7 Released!
Post by: DaBrute on September 26, 2009, 10:02:32 AM
i see..only the default  works. Thanks
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 26, 2009, 10:04:15 AM
If you need help you can attach your index.template.php of your theme and we can a button/link for it.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: DaBrute on September 26, 2009, 10:05:58 AM
Quote from: vbgamer45 on September 26, 2009, 10:04:15 AM
If you need help you can attach your index.template.php of your theme and we can a button/link for it.
i swear this is harder than I thought.lol  I will try it first. Thanks man and GREAT MOD!!!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 26, 2009, 10:29:26 AM
Yeah for SMF 1.1.x with custom themes require an edit to add a button/link with SMF 2.0 it is better in most cases will work automaticlly unless the theme is really unique.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: DaBrute on September 26, 2009, 10:51:33 AM
Quote from: vbgamer45 on September 26, 2009, 10:29:26 AM
Yeah for SMF 1.1.x with custom themes require an edit to add a button/link with SMF 2.0 it is better in most cases will work automaticlly unless the theme is really unique.
thanks!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: DaBrute on September 26, 2009, 12:09:10 PM
Quote from: vbgamer45 on September 26, 2009, 10:29:26 AM
Yeah for SMF 1.1.x with custom themes require an edit to add a button/link with SMF 2.0 it is better in most cases will work automaticlly unless the theme is really unique.
could you help me?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 26, 2009, 12:38:51 PM
Please attach your index.template.php of your custom theme.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Pinball Nation on September 27, 2009, 02:22:31 PM
The mod is installed an works good.Thanks :)
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 27, 2009, 02:22:46 PM
Glad you got it working!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: TomW on September 29, 2009, 11:58:35 PM
I have SMF Gallery Lite on my SMF ver 1.1.10 forum and it works great !  Question:  Is there a way to upload the images to the gallery from the 'New Post window', similar to Simple Image Upload ?  OR can the user embed the pic from the Gallery into a post ? We often discuss pics, and this would integrate the two much better.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on September 30, 2009, 12:06:09 AM
Not yet but that would make a great feature request.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: MrDby on October 05, 2009, 05:03:50 PM
this will not allow me to uninstall.

   Type   Action   Description
1.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed<-----------------
2.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
3.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
4.   Execute Modification   ./index.php   Test successful
5.   Execute Modification   ./Themes/default/index.template.php   Test successful
6.   Execute Modification   ./Sources/Subs.php   Test failed<------------------------------------
7.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
8.   Execute Modification   ./Sources/PrettyUrls-Filters.php   Skipping file
9.   Delete File   ./Sources/Gallery.php   
10.   Delete File   ./Themes/default/Gallery.template.php   
11.   Delete File   ./Themes/default/languages/Gallery.english.php   
12.   Delete File   ./Themes/default/languages/Gallery.english-utf8.php   
13.   Execute Code   GalleryUnInstall.php   
Title: Re: SMF Gallery 2.0.7 Released!
Post by: TomW on October 05, 2009, 05:30:34 PM
Another question - I have a gallery dedicated to art, and would like to add a new gallery (with a different button on the nav bar) for photography.  Is this possible ?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 05, 2009, 08:04:17 PM
What you could do is create two categories one for art and one for photography in the gallery.

Then in the navbar just add a link to each category.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: TomW on October 05, 2009, 09:39:48 PM
Quote from: vbgamer45 on October 05, 2009, 08:04:17 PM
What you could do is create two categories one for art and one for photography in the gallery.

Then in the navbar just add a link to each category.

Thanks, but I have a category for each artist.  If I do what you say, then all of the artists would need to be combined into a single gallery correct ?  I basically need a parent-child relationship, or in other words, the capability to have sub-categories so that I can have a gallery for each artist.  I am using SMF Gallery Lite, is this capability in SMF Gallery Pro ?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 05, 2009, 09:44:26 PM
Subcategories and personal galleries is an option in SMF Gallery Pro
Demo can be found at http://www.smfhacks.com/storedemo/index.php?action=gallery
Title: Re: SMF Gallery 2.0.7 Released!
Post by: llawnroc on October 12, 2009, 11:46:37 AM
Hi!

Just installed this MOD as I was looking for a clean gallery mod, however I have no link on my menu bar.

Could someone modify my default template please, I'm using the Beyaz inci (1.1.5)
theme! :-)

Thanks

Llawnroc
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 12, 2009, 10:38:59 PM
That theme looks good that you attached the code should work fine.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: llawnroc on October 13, 2009, 03:49:02 AM
Thanks for the reply.

Unfortunately I don't have any button showing, whether I log in as the board administrator or as a normal user!

Any thoughts??

Thanks
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 13, 2009, 07:35:40 PM
Umm make sure you have your forum's language set to English

And be sure to copy the text from
themes/default/languages/modifications.english.php to themes/yourthme/languages/modifications.english.php
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LC on October 19, 2009, 11:24:01 PM
Hi there, I was hoping I could get some help with this mod.

The issue I am having is I would like to uninstall then reinstall the mod since my forum had a crash yesterday and I had to reinstall my mods. The reason why I want to uninstall is because the gallery url is not showing up properly (sends back to index) and I am not sure where to find it/fix it. I was using version 2.0.5 and was thinking about upgrading to the 2.0.8 version.

The problem is when I try to uninstall I am getting a few errors.

Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed
2.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
3.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
4.   Execute Modification   ./index.php   Test failed
5.   Execute Modification   ./Themes/default/index.template.php   Test failed
6.   Execute Modification   ./Sources/Subs.php   Test failed
7.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
8.   Execute Modification   ./Sources/PrettyUrls-Filters.php   Skipping file
9.   Delete File   ./Sources/Gallery.php   
10.   Delete File   ./Themes/default/Gallery.template.php   
11.   Delete File   ./Themes/default/languages/Gallery.english.php   
12.   Delete File   ./Themes/default/languages/Gallery.english-utf8.php   
13.   Execute Code   GalleryUnInstall.php

Will someone please point me in the right direction to fix this issue? :D I didn't want to proceed if it would cause my forum to crash.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 19, 2009, 11:28:18 PM
Did you just reupload all the smf files?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LC on October 19, 2009, 11:29:31 PM
Quote from: vbgamer45 on October 19, 2009, 11:28:18 PM
Did you just reupload all the smf files?
Yes. I had to re-upload some of the core files.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 19, 2009, 11:30:30 PM
In that case I would proceed with the uninstall then do an install of the latest gallery version
Title: Re: SMF Gallery 2.0.7 Released!
Post by: LC on October 19, 2009, 11:32:26 PM
Quote from: vbgamer45 on October 19, 2009, 11:30:30 PM
In that case I would proceed with the uninstall then do an install of the latest gallery version
Ok, thank you, I just wanted to make sure I was safe to do so. :)
Title: Re: SMF Gallery 2.0.7 Released!
Post by: mALEFACTOr on October 22, 2009, 02:12:52 PM
I have installed manually the SMFGallery2.0.8 gallery ..
There are no errors but I can't find the link into Modifications.
I can access the gallery only if I type www.myforum.com/gallery in address bar.

I'll attach my admin.php file,  gallery code is on 213 line
Title: Re: SMF Gallery 2.0.7 Released!
Post by: AM Woody3 on October 22, 2009, 02:36:41 PM
I wanted to be able to get a notification when an image is awaiting approval.  Is this possible?  I'm using SMF Gallery Lite 1.8.3
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 22, 2009, 04:04:45 PM
Quote from: mALEFACTOr on October 22, 2009, 02:12:52 PM
I have installed manually the SMFGallery2.0.8 gallery ..
There are no errors but I can't find the link into Modifications.
I can access the gallery only if I type www.myforum.com/gallery in address bar.

I'll attach my admin.php file,  gallery code is on 213 line
Are you using SMF 1.1.x? If so a custom theme requires an edit to include a link/button to the gallery
http://www.yourforum.com/index.php?action=gallery
Title: Re: SMF Gallery 2.0.7 Released!
Post by: mALEFACTOr on October 23, 2009, 06:52:14 AM
I am using 2.0 RC1.2
I can put the link button but still I can't access the admin settings.. When I am trying to approve some picture it redirect me to home admin center. I think I need only to fix the admin.php file i've posted above.
Because I installed this mod manually maybe I didn't put in right place the galleryinstall2.php file... Should it be in the root folder?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: TomW on October 23, 2009, 10:52:09 AM
Quote from: TomW on September 29, 2009, 11:58:35 PM
I have SMF Gallery Lite on my SMF ver 1.1.10 forum and it works great !  Question:  Is there a way to upload the images to the gallery from the 'New Post window', similar to Simple Image Upload ?  OR can the user embed the pic from the Gallery into a post ? We often discuss pics, and this would integrate the two much better.

How do I make this a feature request ?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 23, 2009, 07:25:22 PM
Quote from: TomW on October 23, 2009, 10:52:09 AM
Quote from: TomW on September 29, 2009, 11:58:35 PM
I have SMF Gallery Lite on my SMF ver 1.1.10 forum and it works great !  Question:  Is there a way to upload the images to the gallery from the 'New Post window', similar to Simple Image Upload ?  OR can the user embed the pic from the Gallery into a post ? We often discuss pics, and this would integrate the two much better.

How do I make this a feature request ?
For feature requests place them at
http://www.smfhacks.com/index.php?action=modtracker
I see that you have that one placed already though
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 24, 2009, 11:21:35 AM
Quote from: mALEFACTOr on October 23, 2009, 06:52:14 AM
I am using 2.0 RC1.2
I can put the link button but still I can't access the admin settings.. When I am trying to approve some picture it redirect me to home admin center. I think I need only to fix the admin.php file i've posted above.
Because I installed this mod manually maybe I didn't put in right place the galleryinstall2.php file... Should it be in the root folder?
Fixed file attached
Title: Menu link not showing up on custom theme
Post by: OrdinaryGirl on October 28, 2009, 12:16:42 PM
Using Gallery Lite 2.0.8 on SMF 1.1.10

I'm trying to add SMF Gallery link to a custom themed page and edited the index.template.php as follows:



// Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
            </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Show the [gallery] button.
        if ($context['user']['is_logged'] && $context['allow_gallery'])
   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="address of gallery">Photo Gallery</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


The intent is to only allow registered members to view the gallery/link.  Although I don't encounter any error messages, the link itself isn't showing up.

Thank you in advance.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 28, 2009, 07:45:36 PM
Change

$context['allow_gallery']

To

$context['allow_smfgallery_view']
Title: re: link not showing up in menu
Post by: OrdinaryGirl on October 29, 2009, 12:34:04 AM
Thank you, vbgamer, for the prompt response and awesome mod!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on October 29, 2009, 12:37:19 AM
No problem glad that worked!
Title: Re: SMF Gallery 2.0.7 Released!
Post by: tridirk on November 01, 2009, 10:45:47 PM
I just reinstalled v 1.1.10 after my website provider moved my site.  When I tried to install the newest version of Gallery Lite 2.08.  I did it through the package manager, uploaded, and hit install, when I do I get this
Quote8: Undefined index: pretty
File: /services/..........my site info...../smf/Sources/Subs-PrettyUrls.php
Line: 245
What do I need to do to fix this?  Thanks
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 02, 2009, 07:24:47 PM
Just get that error? Does the mod?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: tridirk on November 02, 2009, 09:25:50 PM
Yes, I just got the error last night, when I tried to install the mod.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 02, 2009, 09:32:53 PM
What version of Pretty Urls do you have installed? I guesing that caused the conflict
Title: Re: SMF Gallery 2.0.7 Released!
Post by: tridirk on November 04, 2009, 12:14:37 AM
My server provider moved the website and forum database, and when they did they didn't handle the database correctly.

I uploaded a backup to the database that was a couple of weeks old, and then ran the mod through the package manager and it installed properly and all is well.

Thanks for your help, and considerations.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Lt Storm on November 04, 2009, 01:43:37 PM
To make a long story short, I took over a site, had to transfer files the hard way.  The old gallery file is in the FTP server, I had to reinstall the SMF Gallery.  I can't figure out how to reload the gallery images without doing it one by one.  Doing this though creates a duplicate file in the gallery file.

Help!

Thanks.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 04, 2009, 07:54:38 PM
Did you backup the gallery database to the new site?
If so just copy over the gallery folder from the old site to the new site and the images will be there as well.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: martensite on November 04, 2009, 11:13:45 PM
Please help me for fix this error

8: Undefined index: allow_smfgallery_view
ไฟล์: /home/naayedn/public_html/picpost/Themes/kani_119/Display.template.php (main_above sub template - eval?)
บรรทัด: 443
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 04, 2009, 11:18:37 PM
Please attach your Sources/Subs.php file
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Lt Storm on November 04, 2009, 11:30:28 PM
Quote from: vbgamer45 on November 04, 2009, 07:54:38 PM
Did you backup the gallery database to the new site?
If so just copy over the gallery folder from the old site to the new site and the images will be there as well.

Yep, the folder was copied over to the new FTP and are there. 
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 04, 2009, 11:55:12 PM
Did you have a backup of database from the other site? Do you have the gallery categories with images?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Lt Storm on November 05, 2009, 08:21:11 AM
Yes, the previous owner backed up everything.  After redownloading the Gallery Package I added the galleries that we originally had.

Now, on the FTP the gallery folder does not have any sub folders, all the images are in the root gallery folder. 

I know it's writing to the gallery folder because I have a duplicate that was added the day I uploaded it directly through the site, and its in the FTP server gallery folder.  It's like it's just not reading only writing. 

I'm probably missing something really simple.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 05, 2009, 08:41:19 AM
If the previous owner backed up everything then the gallery tables should have been there. Which means you would not have to resetup the galleries.

More than likely if you can see the galleries with pictures in then you probably just need to udpate the gallery configuration -> settings -> gallery path and url variables to the new host.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Lt Storm on November 05, 2009, 01:56:41 PM
You'll have to bare with me, I'm new to this. 

I can't see the gallery images at all on the site, the files are just in the server folder.  They were there before I installed the gallery package.  I'm pretty sure the path is correct since the test image I uploaded is there. 
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 05, 2009, 08:07:23 PM
What do you see when you go to http://www.yourforum.com/index.php?action=gallery

Do you see any categories? Are any images in those categories?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Lt Storm on November 05, 2009, 08:53:54 PM
There's only the categories and 1 image I uploaded.
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 05, 2009, 09:09:48 PM
That means the database from the old gallery didn't get transfered. If you still have access to the old host backup and transfer over all the smf_gallery_* tables
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Dustieann on November 08, 2009, 09:58:30 AM
Okay, there are alot of pages to read here, so I will simply ask and hope someone can help.

I would love to install this Gallery mod in my Forum, but I have one in 3 languages, so can anyone tell me, has this been translated yet in Dutch and German??

Are there any Forums that we can visit to see how this Gallery actually looks?

I am using the 1.1.10 version

Thank you for your replies
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 08, 2009, 06:49:17 PM
Someone might have in the past the gallery itself is pretty easy to translate you just have to do Gallery.english.php and the entries that are added to modifications.english.php
Title: Re: SMF Gallery 2.0.7 Released!
Post by: Dustieann on November 09, 2009, 05:51:02 AM
great...thanks for your reply.  Now I know where to translate the bits :)

Anywhere where I can see exactly how this Gallery works?
Title: Re: SMF Gallery 2.0.7 Released!
Post by: vbgamer45 on November 09, 2009, 09:07:49 AM
Quote from: Dustieann on November 09, 2009, 05:51:02 AM
great...thanks for your reply.  Now I know where to translate the bits :)

Anywhere where I can see exactly how this Gallery works?
Test board http://www.smfhacks.com/storedemo/index.php?action=gallery but that is the pro version
Title: Re: SMF Gallery 2.0.8 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 09, 2009, 09:09:09 AM
Updated added support for SMF 2.0 RC2
Title: Re: SMF Gallery 2.0.8 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 10, 2009, 09:39:22 PM
Quick update had a bug yesterday that made the bbc box disappear for older versions of SMF not SMF 2.0 RC2 so if you downloaded it yesterday and were not SMF 2.0 RC2 please redownload the latest version today.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: fmofmpls on November 15, 2009, 10:33:08 AM
I'm running SMF Gallery Pro  V 1.4.5 on smf 1.10. Does anyone know if my gallery will still show itself on SMF 2.0 if and when I decide to upgrade?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 10:54:22 AM
You will probably need a new version of SMF Gallery Pro currently it is at 2.5.6 which supports SMF 2.0 RC2
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 10:58:51 AM
Thats what I was thinking, but when you upgrade it should still have the previous data (galleries, albums, items, etc.) in there, so no worries doing that.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 03:26:56 PM
SMF Gallery has built in system that will upgrade the gallery when ever a new release is made so you can upgrade a very old version of SMF Gallery to the newest without any issues.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 03:27:53 PM
Really? Thats amazing, so that works even if you upgrade from SMF 1.1.X to 2.0, it'd get rid of the gallery?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 15, 2009, 03:46:58 PM
Yes just install the SMF Gallery version for your version of SMF and it will import the data from your upgraded SMF install.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Liam. on November 15, 2009, 04:02:22 PM
Thats what I meant in the first place ^_^ Oh well, it's still good nonetheless!
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: thesikaleon on November 16, 2009, 04:01:28 PM
Is there any script to show a random image from the gallery to the portal?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Liam. on November 16, 2009, 04:09:05 PM
Yes Sikaleon, there are plenty dotted around. Look at some portals websites and you'll see them in the forums generally.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 16, 2009, 07:34:12 PM
Quote from: thesikaleon on November 16, 2009, 04:01:28 PM
Is there any script to show a random image from the gallery to the portal?
I have one built into ezPortal http://www.ezportal.com
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Dustieann on November 17, 2009, 06:44:09 PM
Hi

I have just installed the Gallery Pro , and everything seems to be working great, except for a couple of things.

1.  Is it normal that the *description* doesnt show anywhere when viewing the card in the Gallery? 

2.
2. Also the picture status (see sample below)  are not visible. They only show if I go over them with the cursor.  Is this normal?

Views: 2
Filesize: 19.99KB
Date: 18. November 2009, 00:31:55
Comments (0)
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 17, 2009, 07:39:47 PM
For SMF Gallery Pro support please post at http://www.smfhacks.com
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Dustieann on November 18, 2009, 04:02:28 AM
okay......no problem.  Have posted it there.

Feel free to delete my post here if you like :)
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on November 18, 2009, 10:06:31 AM
Vb, my subscription for Pro ended sometime.  Do I have to purchase another to dload pro for RC2?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 18, 2009, 02:24:42 PM
You would just purchase a license renewal.
Which can be found at
http://www.smfhacks.com/index.php?action=license

Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: adbrad on November 27, 2009, 03:28:06 PM
Sorry if this has already been asked i am running rc1.2 and gallerylite 2.0.7 is there any way to get a ctergory so it is only accesable to say admins, and possibly moderators to. Just a single category not the whole gallery.

Thanks
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: MATTEK on November 27, 2009, 03:50:04 PM
What's the difference between this mod and the SMG Gallery?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 27, 2009, 03:51:28 PM
Quote from: adbrad on November 27, 2009, 03:28:06 PM
Sorry if this has already been asked i am running rc1.2 and gallerylite 2.0.7 is there any way to get a ctergory so it is only accesable to say admins, and possibly moderators to. Just a single category not the whole gallery.

Thanks
I don't think I have that in the lite edition but I do have that in the pro edition.

Global moderators would be possible. Local board moderators no.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: adbrad on November 27, 2009, 04:07:13 PM
Quote from: vbgamer45 on November 27, 2009, 03:51:28 PM
Quote from: adbrad on November 27, 2009, 03:28:06 PM
Sorry if this has already been asked i am running rc1.2 and gallerylite 2.0.7 is there any way to get a ctergory so it is only accesable to say admins, and possibly moderators to. Just a single category not the whole gallery.

Thanks
I don't think I have that in the lite edition but I do have that in the pro edition.

Global moderators would be possible. Local board moderators no.

Thanks for the info i'll just wait until i have the need for gallery pro, as at the mo no need for it
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Maserati on December 08, 2009, 08:32:55 AM
I want ules this: http://www.mydomain.com/gallery  link be like this:
http://www.mydomain.com/imagehost

how to do this? I use preety urls.

Just to change in every file where write gallery image host or what to do?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 08, 2009, 08:48:58 AM
I think i added pretty urls support to make urls a little nicer. Imagehost would be tricky maybe  a mod_rewrite rule?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Maserati on December 08, 2009, 09:00:19 AM
Quote from: vbgamer45 on December 08, 2009, 08:48:58 AM
I think i added pretty urls support to make urls a little nicer. Imagehost would be tricky maybe  a mod_rewrite rule?

You tell me to change only this file?

./Sources/PrettyUrls-Filters.php

// Filter SMF Gallery Lite
function pretty_smf_gallery_lite_filter($urls)
{
global $boardurl, $scripturl;


// Do Gallery Index replacement
/*
$pattern = '~' . $scripturl . '(.*)page=([^;]+)~S';
$replacement = $boardurl . '/index.php?action=gallery';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
*/

// Do Gallery Category Replacement
$pattern = '~' . $scripturl . '(.*)action=gallery;cat=([^;]+)~S';
$replacement = $boardurl . '/gallery/category/$2';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);


// Do Gallery Picture Replacement
$pattern = '~' . $scripturl . '(.*)sa=view;id=([^;]+)~S';
$replacement = $boardurl . '/gallery/picture/$2/';
foreach ($urls as $url_id => $url)
if (!isset($url['replacement']))
if (preg_match($pattern, $url['url']))
$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);




return $urls;
}


And here unless gallery to write imagehost?
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 08, 2009, 07:24:37 PM
Yeah that might work try changing

/gallery/


/imagehost/
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: bburg5 on December 15, 2009, 09:53:03 PM
Am I able to have large pictures uploaded to the gallery and have it resized to fit screen? Then if you want to see the enlarged image- just click it and it will make original size?

I have no problems with the gallery, but I had to make the size limits higher to get most people to be able to upload without error. Some of the images are way to big for the screen though.

Here is my gallery Here (http://www.ffwaterfowl.com/Waterfowl/index.php?action=gallery) and you can see what I mean in the field pics.

Running 1.1.11 and gallery 2.0.5

Thanks.

Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 16, 2009, 09:36:25 PM
Not in the lite edition currently I only have that in the pro edition of the gallery may back port it at some point in the future.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: MikeCuper on December 17, 2009, 06:11:01 PM
Will this work with v1.1.11? I couldn't quite tell from the thread. Thanks!
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 17, 2009, 07:49:58 PM
Yes it works with 1.1.11
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: Arantor on December 29, 2009, 09:03:47 AM
Hmm, interesting point.
Title: Re: SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 29, 2009, 08:13:17 PM
Quick mini update

2.0.10
!Fixed bug where a user could upload a picture to a category that does not exist if the request was altered thanks to atokar
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: amcb10 on January 11, 2010, 07:10:55 AM
I have this mod installed on version 1.1.11 but when I go to approve a picture I get this error...

Method Not Implemented

GET to /My Forum URL/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Anyone know what this error is and how to resolve it.

Thanks
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 11, 2010, 08:18:53 PM
This is an issue with mod_security. I thought I had it fixed for SMF 1.1.x
Check out this topic for a fix if it does not work let me know
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: NoFeaR / NFSMW on January 12, 2010, 01:30:31 AM
Hi there ppl. Hope you can help me, I want to remove the selected info in the file atacched, is it possible to do so, and if so, how can i increase the size of the thumbnail? I want to place 2 photos side by side. Hope the atacched file is of any help.

I see the file atacched doesnt show the block.
I want to remove the photo stats, there must jyst be photos on the page and bigger photos. Please assist me.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 08:46:07 AM
Quote from: clothahump on January 12, 2010, 05:30:04 AM
Is there an easy way to convert from Aeva Media to SMF Gallery?
Not at the moment we do not have any converters yet.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 08:53:18 AM
I am planning to make a converter at some point probably will be early/middle Feb 2010.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 09:00:53 AM
At the moment I don't have a converter for any version and they are two different mods so there is different file/db structure as well.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 09:11:44 AM
That would be an option of the pro edition with either batch ftp upload option or import from a directory on the server.

Basically you select what category to import the photos from and it will then import all the picture files from a folder into that directory.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 08:03:05 PM
Yeah I do plan to the converter at some point shouldn't be hard just have to develop a conversion system to do it.
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 13, 2010, 11:54:54 AM
Quote from: clothahump on January 12, 2010, 05:30:04 AM
Is there an easy way to convert from Aeva Media to SMF Gallery?
*After* I spent days working on fixing YOUR problems? (And actually fixed them? For free, as usual?)
Very thoughtful of you...

(Sorry vbgamer45, I always keep quiet when passing through this topic, but this one is so gross, so crude, it has me stumped! Plus, it could serve as a warning that this guy is going to expect you to do all his work for him.)
Title: Re: SMF Gallery 2.0.10 Released Now with SMF 2.0 RC2 Support!
Post by: LC on January 13, 2010, 07:26:00 PM
Quote from: Nao on January 13, 2010, 11:54:54 AM
Quote from: clothahump on January 12, 2010, 05:30:04 AM
Is there an easy way to convert from Aeva Media to SMF Gallery?
*After* I spent days working on fixing YOUR problems? (And actually fixed them? For free, as usual?)
Very thoughtful of you...

(Sorry vbgamer45, I always keep quiet when passing through this topic, but this one is so gross, so crude, it has me stumped! Plus, it could serve as a warning that this guy is going to expect you to do all his work for him.)

Nao, you should start charging people to fix their issues if it annoys you so much.

Many people on here always want the easy fix or someone to hold their hand for them, instead of trying to fix it with some guidance or to learn from their mistakes.

Breathe in... breathe out.  ;)
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 13, 2010, 08:42:01 PM
Update minor fixes and additions mostly for SMF 1.1.x


2.0.11
!Fixed mod_security issues with id in url for 1.1.x
!Updated some function names to be  more unique
+Added BBC boxes to SMF 1.1.x for categories/pictures
+Using themebox for SMF 1.1.x for BBC boxes
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 14, 2010, 04:32:06 AM
@clothahump> I PM'ed you for a reason -- to avoid clutter on this topic.
And as I said by PM: yes, my system does what you asked of me. I did it for *you*, because I don't like leaving people in the dust. And Foxy does one of the features you asked for. That's why I suggested you install it. I didn't try to 'sell' it to you, I'm not a poor little boy (although nobody loves me.) What's the problem with that? vbgamer45 has exactly the same concept.

@LC> I guess so... But I don't really need the money, I only consider it as a mark of consideration. Also, I am what I am. The more I do, the more I feel like I SHOULD do. It's a never-ending spiral. Someone will have to unplug me one day. Because I won't pull the plug myself. I speak from experience. I guess I'll only stop when Aeva Media is better than Coppermine, Gallery2, DeviantArt, Flickr and Picasa together. Lol.

@vbgamer45> I have no problem with you making an Aeva Media to SMF Gallery converter (it only seems logical, since I've been doing the same the other way around for a long time), and I'm even prepared to help you in case you have questions about feature implementations, but would it be for Pro only?
There are many features in Aeva Media that could only be imported into your Pro version: sub-albums ("sub-categories"), user albums, ratings, stats, Exif support, album permissions, thumbnails, previews, linked topics, membergroup quotas, unseen area, notifications, lightbox, several specific perms (rate, edit comment), auto approve, user albums, mass upload), images per page, thumbnail size limits... And that's just from the feature list of the Pro version, and only those features that are stored in the database.
How do you plan to do this? Do a crippled converter for the Lite version? This would mean that all of these settings and features are lost if the user goes from AM to SGL to SGP (later). Needs to be considered ahead of the work.

(Sorry everyone for the intrusion.)
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 14, 2010, 08:50:21 AM
Please keep it between PM's that would be the best so people know this thread is about SMF Gallery Lite support.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 14, 2010, 09:12:44 AM
Do you want to continue the converter conversation by PM?
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 14, 2010, 09:17:22 AM
Maybe in the future at the moment wasn't something I was going to do in the near future have a couple other projects that I am busy with.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Akyhne on January 14, 2010, 09:38:19 AM
We can split yours and Nao's comments out to a seperate topic if you want us to.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 14, 2010, 09:57:00 AM
Sure.
I create. I listen. I implement. You disregard.
Never forget who pooped on whom, okay?

@vbgamer45> no problem.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: clothahump on January 14, 2010, 10:17:51 AM
I did not disregard, it simply does not work correctly, do not try and lay the blame on me any longer.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: kat on January 14, 2010, 10:39:48 AM
If it doesn't do what you require, don't install it and make one of your own.


Simple, really.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 14, 2010, 11:16:39 AM
The problem isn't even that it doesn't do what he requested... It does! He just won't admit it because I'm sure he didn't test doing the action from the admin area. (It's possible to do the same action in the regular area but then it's restricted.)

I just tested again, just to be sure. (And guess what, it works.)
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: clothahump on January 14, 2010, 11:20:52 AM
I TESTED IT FROM THE ADMIN PANEL AND THE FRONT END, IT DOES NOT WORK PROPERLY, HOW MANY MORE TIMES DO I HAVE TO TELL YOU???????????????????????????????????????????????????????????
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Arantor on January 14, 2010, 11:23:03 AM
Saying it doesn't work doesn't help. What is it doing and what do you expect it to do when you tell it to do something, exactly?
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 14, 2010, 11:32:37 AM
Please keep this in the relevant boards/pms if you are having an issue with another mod.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 14, 2010, 11:57:15 AM
(To moderators: you can move these posts to the Aeva Media topic/board if you find them more appropriate. This is my final post here on this matter, since I have no further point to prove.)

Quote from: clothahump on January 14, 2010, 11:20:52 AM
I TESTED IT FROM THE ADMIN PANEL AND THE FRONT END, IT DOES NOT WORK PROPERLY, HOW MANY MORE TIMES DO I HAVE TO TELL YOU???????????????????????????????????????????????????????????
Never dare yell at me again when you're saying blatant lies. I worked for hours with you to discuss this, I made the changes in the end, I released them in Beta 3, you didn't even install it, and now you're yelling at me. Have some decency! I was waiting for you to give me feedback on this. Instead you're calling me names. I should never have helped you.

Your last test (http://www.simplemachines.org/community/index.php?topic=358330.msg2450590#msg2450590) dates back to January 12, morning. I released Beta 1 on the same day, afternoon. Not convinced?

Well, let's just go see your gallery. You posted the link in public a few weeks ago (http://www.simplemachines.org/community/index.php?topic=266750.msg2352634#msg2352634).

http://www.tropicalfishforums.co.uk/index.php?action=media
"Powered by Aeva Media 1.0 Alpha 3"

I rest my case.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: LC on January 14, 2010, 08:21:20 PM
Quote from: vbgamer45 on January 14, 2010, 11:32:37 AM
Please keep this in the relevant boards/pms if you are having an issue with another mod.
I think a moderator should split off the topic so your mod's support thread isn't hijacked anymore.

I understand what is going on here, but I felt like I had to make a "suggestion"

/me hides




So about that Gallery, what's the difference between Pro and Basic vbgamer?

Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 14, 2010, 08:24:14 PM
A ton more features and is actively developed
Partial List
http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 15, 2010, 03:56:23 AM
Quote from: LC on January 14, 2010, 08:21:20 PM
I think a moderator should split off the topic so your mod's support thread isn't hijacked anymore.
No problem with that... Here's the suggested target topic:
http://www.simplemachines.org/community/index.php?topic=358330.0
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: LC on January 15, 2010, 10:31:18 PM
Quote from: Nao on January 15, 2010, 03:56:23 AM
Quote from: LC on January 14, 2010, 08:21:20 PM
I think a moderator should split off the topic so your mod's support thread isn't hijacked anymore.
No problem with that... Here's the suggested target topic:
http://www.simplemachines.org/community/index.php?topic=358330.0

/me hugs Nao

Breath in... breath out. Some people aren't worth your attention.  ;)


Quote from: vbgamer45 on January 14, 2010, 08:24:14 PM
A ton more features and is actively developed
Partial List
http://www.smfhacks.com/smf-gallery-pro.php

So it's similar to your downloads mod as far as features and has a slideshow? That's cool.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 15, 2010, 10:48:49 PM
Similar I use part of the Gallery base in the downloads system.

Demo for SMF Gallery Pro
http://www.smfhacks.com/storedemo/index.php?action=gallery
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 12:44:39 PM
Vb,.....


I have a small error...


8: Undefined index: pic
File: /home/********/public_html/Sources/Gallery2.php


Any ideas?
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 22, 2010, 12:57:02 PM
Using that latest version from the modsite?
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 01:00:10 PM
Quote from: vbgamer45 on January 22, 2010, 12:57:02 PM
Using that latest version from the modsite?

Im using 2.0.10
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 22, 2010, 01:17:06 PM
Hmm does it say the line number that the error is coming on?
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 01:20:37 PM
Quote from: vbgamer45 on January 22, 2010, 01:17:06 PM
Hmm does it say the line number that the error is coming on?

Ill get back to you on that since i deleted the error log.   Im pretty sure it showed what line in the php file.
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Nao 尚 on January 22, 2010, 01:44:35 PM
(Why are my posts still above? I thought we had all agreed that they should be moved to another topic?)
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 22, 2010, 02:00:11 PM
I don't know how to move them to another topic or how that work affect the topic they are fine here they are not bothering me
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 03:53:08 PM
Quote from: vbgamer45 on January 22, 2010, 01:17:06 PM
Hmm does it say the line number that the error is coming on?

Line 500 in Gallery2.php

...btw, your Store mod rocks!
Title: Re: SMF Gallery 2.0.11 (Jan 13) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 22, 2010, 05:10:08 PM
Quote from: BlueDevil on January 22, 2010, 03:53:08 PM
Quote from: vbgamer45 on January 22, 2010, 01:17:06 PM
Hmm does it say the line number that the error is coming on?

Line 500 in Gallery2.php

...btw, your Store mod rocks!
Fixed thanks

Released gallery update
2.0.12
!Fixed undefined error in SMF 2.0.x version on view picture
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 05:35:56 PM
Quote from: vbgamer45 on January 22, 2010, 05:10:08 PM
Quote from: BlueDevil on January 22, 2010, 03:53:08 PM
Quote from: vbgamer45 on January 22, 2010, 01:17:06 PM
Hmm does it say the line number that the error is coming on?

Line 500 in Gallery2.php

...btw, your Store mod rocks!
Fixed thanks

Released gallery update
2.0.12
!Fixed undefined error in SMF 2.0.x version on view picture




Is this the only part you changed in Gallery2.php ?

from:

// Get the picture ID
$id = (int) $_REQUEST['pic'];

if (isset($_REQUEST['id']))
$id = (int) $_REQUEST['id'];

if (empty($id))
fatal_error($txt['gallery_error_no_pic_selected']);


GalleryUserTabs();



To:

// Get the picture ID
if (isset($_REQUEST['pic']))
$id = (int) $_REQUEST['pic'];

if (isset($_REQUEST['id']))
$id = (int) $_REQUEST['id'];

if (empty($id))
fatal_error($txt['gallery_error_no_pic_selected']);


GalleryUserTabs();


Reason i ask is, i would have to remove the gallery mod in its entirely when i can only edit the Gallery2.php
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 22, 2010, 05:37:16 PM
That is correct that is all that was added to fix the undefined error.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Mick. on January 22, 2010, 05:41:57 PM
Quote from: vbgamer45 on January 22, 2010, 05:37:16 PM
That is correct that is all that was added to fix the undefined error.

Very well.   Thank you.
Title: Still see gallery configuration tab in admin area after uninstallation
Post by: maihannijat on February 14, 2010, 08:40:36 AM
I have uninstall the mod, but still i can see Gallery Configuration tab in Administration area and some gallery options in permission area, any idea how to solve this ?

do i need to remove manually?

I installed and uninstall again but no positive result.

I am using smf 1.1.11

www.afghanistanforums.com

Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 14, 2010, 10:01:43 AM
You would manually need to remove it from Subs.php and ManagePermissions.php you can check out the manual install instructions from the mod site.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Bugo on February 20, 2010, 02:48:14 PM
Russian translation mod (ansi & utf8)
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on February 20, 2010, 02:49:56 PM
Very nice Bugo. Thank you very much for the Russian translation and other translations you have done for mods very helpful for Russian users.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 01, 2010, 11:14:25 PM
Quote from: vbgamer45 on September 16, 2006, 07:13:02 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=473)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=473)

SMF Gallery
Is a gallery system that ties directly into SMF with a bunch of features.

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
Creates thumbnails automatically for uploaded images
Supports bmp, gif, jpeg, and png images
Easy to install package for SMF

2.0.12
!Fixed undefined error in SMF 2.0.x version on view picture

2.0.11
!Fixed mod_security issues with id in url for 1.1.x
!Updated some function names to be  more unqiue
+Added BBC boxes to SMF 1.1.x for categories/pictures
+Using themebox for SMF 1.1.x for BBC boxes


2.0.7
!Fixed bbc editor in SMF 2.0 not working in IE6/IE7
!Better error handling if accessing invalid image id

2.0.6
!Fixed bug with who is viewing category/picture not displaying all members viewing that page
!Moved all queries out of templates

2.0.5 Released
!Fixed bugs with SMF 2.0 using the WYSIWYG editor
+Added the editor component to the category and picture description area for SMF 2.0
+Added index.php to the gallery folder redirects to action=gallery


Changes 1.9.3 and 2.0.3
!Fixed issue on some hosts where it could not use getimagesize in the php temp folder.
!Fixed the category theme link when viewing an image.
!Fixed a Pretty Url filter bug with the add picture link


SMF Gallery 1.9 Released![/b]
+Major updates to the interface
+Uses Admin Tabs for the admin section.
+Added theme links on the major pages.
+Added tabs on many of the pages.
+Minor bugs and fixes.



Started work on a help file for SMF Gallery can be found at
http://www.smfhacks.com/smfgallery/help/


Place all bug reports and feature requests on this site:
http://www.smfhacks.com/index.php?action=modtracker

help me pls with MOD gallery lite ,i just download and use its but now error like in the picture ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg641.imageshack.us%2Fimg641%2F8798%2Ferroroe.jpg&hash=d447a466e7311522fae684df6cb45f783c18388c)

when i'm click on image its show like this how to do sir?
thanks u
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 01, 2010, 11:59:09 PM
Its a mod_security issue

Open gallery.template.php
find all

;id=

replace  all with

&id=

Open Sources/Gallery.php

;id=

replace  all with

&id=
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 02:22:23 AM
sorry i'm can't find this file name (Gallery.php)

and still can't use

u can testing on www.morokat.com

thanks u
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Spuddy on March 02, 2010, 08:50:08 AM
Hi,

Have installed this mod and everything seems to be working fine. However, I can't for the life of me find a link to the gallery anywhere on the forum homepage? Am I missing something!?
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: adbrad on March 02, 2010, 09:06:41 AM
Quote from: Spuddy on March 02, 2010, 08:50:08 AM
Hi,

Have installed this mod and everything seems to be working fine. However, I can't for the life of me find a link to the gallery anywhere on the forum homepage? Am I missing something!?

if everything installed correct you should get a link up the top where it says home help login and so on
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Spuddy on March 02, 2010, 09:13:15 AM
Quote from: adbrad on March 02, 2010, 09:06:41 AM
Quote from: Spuddy on March 02, 2010, 08:50:08 AM
Hi,

Have installed this mod and everything seems to be working fine. However, I can't for the life of me find a link to the gallery anywhere on the forum homepage? Am I missing something!?

if everything installed correct you should get a link up the top where it says home help login and so on

Hey,

No link along the top http://img96.imageshack.us/img96/7480/29047374.jpg (http://img96.imageshack.us/img96/7480/29047374.jpg), can you point me in the direction of manually entering it? I'm using the blackrain111 theme.

Thanks,
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Spuddy on March 02, 2010, 09:28:22 AM
Quote from: Spuddy on March 02, 2010, 09:13:15 AM
Quote from: adbrad on March 02, 2010, 09:06:41 AM
Quote from: Spuddy on March 02, 2010, 08:50:08 AM
Hi,

Have installed this mod and everything seems to be working fine. However, I can't for the life of me find a link to the gallery anywhere on the forum homepage? Am I missing something!?

if everything installed correct you should get a link up the top where it says home help login and so on

Hey,

No link along the top http://img96.imageshack.us/img96/7480/29047374.jpg (http://img96.imageshack.us/img96/7480/29047374.jpg), can you point me in the direction of manually entering it? I'm using the blackrain111 theme.

Thanks,

Its certainly a theme issue as changing back to classic SMF theme results in the gallery link showing. How can I get this link it the custom theme?

http://img96.imageshack.us/img96/7480/29047374.jpg

Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: adbrad on March 02, 2010, 09:31:40 AM
what version smf you using
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: Spuddy on March 02, 2010, 09:35:40 AM
Quote from: adbrad on March 02, 2010, 09:31:40 AM
what version smf you using
1.1.11
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: adbrad on March 02, 2010, 09:45:45 AM
go to the mods page
http://mods.simplemachines.org/index.php?mod=473
and make the nessesary edits to you themes files
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 09:54:31 AM
sir sorry so my problame how to do?
when i click on photo it show like in pictuer

i use smf 1.1.1 defual them

thanks u
u can test at www.morokat.com

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg641.imageshack.us%2Fimg641%2F8798%2Ferroroe.jpg&hash=d447a466e7311522fae684df6cb45f783c18388c)
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 10:20:58 AM
Check my previous post you need to modify Gallery2.template.php or Gallery.template.php

Or Sources/Gallery.php and Sources/Gallery2.php
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 10:26:17 AM
Quote from: vbgamer45 on March 02, 2010, 10:20:58 AM
Check my previous post you need to modify Gallery2.template.php or Gallery.template.php

Or Sources/Gallery.php and Sources/Gallery2.php

i don't know how to find its the file , befor install or install yet?

cos when i'm install yet i'm not see its,,

and if its has in here somay page to find its up 126 page now in ur previous

can  tell me wich page?

thanks u
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 10:31:02 AM
After install they are found in your smf forum install area on your board then just check your sources folder and
themes/default/ folder
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 08:15:31 PM
Quote from: vbgamer45 on March 02, 2010, 10:31:02 AM
After install they are found in your smf forum install area on your board then just check your sources folder and
themes/default/ folder

yes i'm change  follow u yet but still error when i click?

how to do?

help me
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 08:16:58 PM
Those steps should fix it.

If not contact your host to disable mod_security
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 08:23:17 PM
Quote from: vbgamer45 on March 02, 2010, 08:16:58 PM
Those steps should fix it.

If not contact your host to disable mod_security
sorry i'm want to solve of my error can u tell me step to fix?
thanks
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 08:24:01 PM
Check this post
http://www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 08:36:36 PM
can u tell me where i pt this file to my server

To try to disable it, create a file with the name "htaccess.txt" and put the following in it:

Code: [Select]
<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>
Upload it to your server, and then rename it to ".htaccess" (that's right, it starts with a dot.)  If you already have a file with that name, you'll want to open it with Notepad, and add the above to it (top or bottom.)  Create a backup, though, before overwriting anything.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 08:39:23 PM
Place in the root directory of your forum.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 08:49:07 PM
when  i do yet

show like this

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 09:05:11 PM
Seems like an issue the host will need to fix
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 09:10:35 PM
Quote from: vbgamer45 on March 02, 2010, 09:05:11 PM
Seems like an issue the host will need to fix

so how to fix sir? sorry i'm just user in SMF i relly don't know
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 02, 2010, 09:22:29 PM
I don't know either I think the host needs to disable mod_security
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 02, 2010, 09:36:33 PM
Quote from: vbgamer45 on March 02, 2010, 09:22:29 PM
I don't know either I think the host needs to disable mod_security

yes thanks

so now mabe i'm uninstall its cos its can't use

i don't know where how to disable or enable security?

if anybody know tell me too
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: morokat on March 03, 2010, 12:04:30 AM
vbgamer45​ Help me with this problame pls
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 03, 2010, 12:13:10 AM
I sent a link to a topic a couple posts back if not try google for some help
Title: Re: SMF Gallery 2.0.5 Released!
Post by: JamesWC on March 08, 2010, 07:03:16 AM
Quote from: vbgamer45 on June 24, 2009, 09:05:50 PM
Quote from: AM Woody3 on June 24, 2009, 04:07:02 PM
Here is my issue.  The gallery works fine on my test site.  No problems at all.  I move the files and such over to the live site and I get this error.

Warning Gallery path is not writable!

Fatal error: Call to undefined function DoToolBarStrip() in /home4/lousyatg/public_html/Sources/Load.php(1736) : eval()'d code on line 47

Check that your Gallery path is correct under Admin -> Gallery Configuration should be
/home4/lousyatg/public_html/gallery/
And that folder needs to be writable

I'm having the same problem, but I'm not sure what CHMOD settings I should have for the gallery folder. It's currently set to 0755 which is apparently not writable. I don't want to go all the way to 0777 if I can avoid it, so what is recommended? Thanks.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 08, 2010, 09:47:43 AM
If the folder is writable then it is probably something else
What is your gallery path in gallery configuration. I would verify that the setting is correct.
Title: Re: SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support!
Post by: JamesWC on March 08, 2010, 09:56:24 AM
Hi vbgamer45, thanks for the reply.

Quote from: vbgamer45 on March 08, 2010, 09:47:43 AMIf the folder is writable then it is probably something else
What is your gallery path in gallery configuration. I would verify that the setting is correct.

The path is: /home/user/public_html/gallery/

This all came about when I moved everything from a "forums" directory to the root. So previously it was "/home/user/public_html/forums/gallery/" and everything worked fine, but now since moving it doesn't.

When I CHMOD the gallery folder to 777 the warning (bold red on the Gallery Configuration page) disappears, but on 755 it's there.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 08, 2010, 07:00:00 PM
Major gallery update with SMF 2.0 RC3 Support

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
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: aw06 on March 08, 2010, 07:01:31 PM
Does this version have next and back links when viewing a pic ? or that's in Pro Version Only?
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 08, 2010, 08:11:41 PM
Quote from: aw06 on March 08, 2010, 07:01:31 PM
Does this version have next and back links when viewing a pic ? or that's in Pro Version Only?
Still only in pro might backport it.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: aw06 on March 08, 2010, 09:54:56 PM
Quote from: vbgamer45 on March 08, 2010, 08:11:41 PM
Quote from: aw06 on March 08, 2010, 07:01:31 PM
Does this version have next and back links when viewing a pic ? or that's in Pro Version Only?
Still only in pro might backport it.

Kool, looking fwd to that
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Maserati on March 15, 2010, 08:04:31 AM
How to add watermark to image?
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 15, 2010, 11:45:57 AM
Quote from: Maserati on March 15, 2010, 08:04:31 AM
How to add watermark to image?
Currently not built into the lite edition of the Gallery but is a feature of Gallery Pro
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Dharshan on March 21, 2010, 12:05:50 PM
can u please tel me what are the differences you get in gallery and gallery pro ?
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Arantor on March 21, 2010, 12:13:12 PM
See http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Dharshan on March 22, 2010, 04:09:25 AM
any links to people forums using the pro version.......
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: adbrad on March 22, 2010, 04:18:54 AM
there's a demo here
http://www.smfhacks.com/storedemo/index.php?action=gallery
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Dharshan on March 22, 2010, 10:30:40 AM
thanks.....I was searching this at their site but ended up with details page...
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: pipo_il_primero on March 22, 2010, 11:10:31 AM
quick question:
can this gallery be used on a forum hosted on Server "A" but upload/download pictures from a server "B"?
thanks,
PiP
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 22, 2010, 11:18:07 AM
Quote from: pipo_il_primero on March 22, 2010, 11:10:31 AM
quick question:
can this gallery be used on a forum hosted on Server "A" but upload/download pictures from a server "B"?
thanks,
PiP
Not built into the gallery.

But if you have root access to the server webhosting you could set up a share drive on the remote server which could then allow remote upload/downlod.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: pipo_il_primero on March 22, 2010, 11:40:12 AM
thx for quick reply!
so if I have a website on shared host "A" and I install smf gallery on it, I will be able to populate its database with files located on a website on a totally different shared host "B" for as long as I am the admin of the two sites?

And how can I do this (what code I mean)
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 22, 2010, 11:42:44 AM
You could only if you have a share setup on another site. Then would just set the gallery path and gallery url to point to the second site.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: pipo_il_primero on March 22, 2010, 11:52:16 AM
sorry for the basic question, but what do u mean by "share setup"?

ps: I have the admin codes to both websites and I can delete/upload anything I want...
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Arantor on March 22, 2010, 12:02:40 PM
If they're physically on different servers, the short answer is no.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on March 22, 2010, 05:38:29 PM
I was thinking about implementing that into Aeva Media (unrelated to SMF Gallery but still a valid point), and then figured it was too much work for a feature that would only be useful to a handful of people -- not even counting the fact that it might not work on every setup (although it should work on most), and it may pose security threats.
I'd recommend to give up on the idea.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 22, 2010, 05:56:04 PM
Yeah if they have the knowledge they can figure out or invest the time to do so. I did it at work setup a second server to host images and have the webserver just copy to the NSF share.
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: bullbreedluverz on March 25, 2010, 08:10:17 AM
its not a major issue for me as i can edit the files but there is a small issue - the add a picture/return to gallery links are seprated by a line break which causes it to drop down below the titlebg bar (usng curve based theme) really it needs the line break replaced with a non-breaking space so the links stay on 1 line

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi943.photobucket.com%2Falbums%2Fad275%2Feotsdzine%2Fsmfgallery.jpg&hash=d36b4cf3df17cd3392e43b4b298169b56b535d03) (http://s943.photobucket.com/albums/ad275/eotsdzine/?action=view&current=smfgallery.jpg)

heres how i fixed it if anyone else has the problem

in Gallery2.template.php
replaced
// Show return to gallery link and Show add picture if they can
echo '
<tr class="titlebg"><td align="center" colspan="' . $maxrowlevel . '">';
if($g_add)
echo '<a href="' . $scripturl . '?action=gallery;sa=add;cat=' . $cat . '">' . $txt['gallery_text_addpicture'] .'</a><br />';

echo '
<a href="' . $scripturl . '?action=gallery">' . $txt['gallery_text_returngallery'] . '</a></td>
</tr>';


with
// Show return to gallery link and Show add picture if they can
echo '
<tr class="titlebg"><td align="center" colspan="' . $maxrowlevel . '">';
if($g_add)
echo '<a href="' . $scripturl . '?action=gallery;sa=add;cat=' . $cat . '">' . $txt['gallery_text_addpicture'] .'</a>&nbsp;';

echo '
<a href="' . $scripturl . '?action=gallery">' . $txt['gallery_text_returngallery'] . '</a></td>
</tr>';


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi943.photobucket.com%2Falbums%2Fad275%2Feotsdzine%2Fsmfgalleryfix.jpg&hash=e9f1b676aeb67a6bcdb6690fe141cb498350292c) (http://s943.photobucket.com/albums/ad275/eotsdzine/?action=view&current=smfgalleryfix.jpg)

(btw this also happens with SMF Store as i have to edit similar thing in that too)


ETA the code $txt['gallery_text_addpicture'] .'</a><br />'; appears in a couple places in this file so it needs to be changed in each case
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 25, 2010, 10:13:34 AM
hmmm so that's what casues it.  Anyway to make it stay on a new line without having it on the same line
Title: Re: SMF Gallery 2.1 (March 8) with SMF 2.0 RC3 Support!
Post by: bullbreedluverz on March 25, 2010, 03:02:22 PM
ive just changed the <br/> for &nbsp; - &nbsp; keeps it neat looking and on 1 line

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi943.photobucket.com%2Falbums%2Fad275%2Feotsdzine%2Fgalleryfix.jpg&hash=16cadd9d476519cfaa7af98ace2c04bc201b3952) (http://s943.photobucket.com/albums/ad275/eotsdzine/?action=view&current=galleryfix.jpg)

ive changed a few in gallery and store but i think there maybe some more appear, (from looking at the files), once ive used it more as im only just setting it up
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 27, 2010, 01:09:12 PM
New update released! Applies only to the SMF 2.0 version. Added more curve style updates and fixes!

2.2
+More curve style updates!
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: adbrad on March 27, 2010, 01:49:02 PM
like the new layout look alot neater thanks
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 27, 2010, 02:07:32 PM
Glad you enjoy it! Big help from some SMF friends who helped me with my style questions which made this possible.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: gbsothere on March 28, 2010, 09:30:12 AM
I did a search on this error:  "Undefined offset"  and I did find where someone asked about it here on page 96 of the thread, but I can't find where it was resolved.  (Of course, I actually don't see well, but I did try.)

:)


SMF 1.1.11, Default theme and the two errors are these:


8: Undefined offset: 532
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/Gallery.template.php
Line: 1010

The action link is this:  http://mywebsite.com/smf/index.php?action=gallery;sa=comment;id=380

Line 1010 of the Gallery.template.php is

         'size' => array('code' => 'size', 'before' => '', 'after' => '', 'description' => $txt[532]),


and the second error is

8: Undefined offset: 533
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/Gallery.template.php
Line: 1011

The action link is

http://mywebsite.com/smf/index.php?action=gallery;sa=comment;id=385



Line 1011 (for the second error) is

         'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt[533]),


I'd appreciate any help with this. 
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 28, 2010, 09:51:51 AM
Sounds like you are missing some language strings which would be odd for
$txt[532] and  $txt[533] are you using jus plain english under admin -> Server settings for language.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: gbsothere on March 28, 2010, 10:11:59 AM
Quote from: vbgamer45 on March 28, 2010, 09:51:51 AM
Sounds like you are missing some language strings which would be odd for
$txt[532] and  $txt[533] are you using jus plain english under admin -> Server settings for language.


Hi, vbgamer45 and thanks!

I'm using plain English, but I just pulled my Modifications.english.php file from my server and did a search for $txt[532] and  $txt[533] and neither one shows up. 

:-\

Are these strings native to SMF?  (I can't think why my entire forum isn't messed up, if that's the case.)



EDIT:  Apparently, this would be the Post.english.php file.... and it seems to be some sort of font thing.  *S* 

I'll try to find how the string should be written and add it and see if that fixes it.   :)


Edit:  that was it, the strings related to font face and font size and (I'm guessing) some other mod replaced them.  I've added them back and comments in the gallery no longer produce an error.

Thanks!
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 28, 2010, 10:33:23 AM
Glad you got it working
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: bullbreedluverz on March 28, 2010, 04:40:00 PM
cheers 4 update 
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 28, 2010, 05:06:20 PM
I used your fix too! Works well
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: bullbreedluverz on March 28, 2010, 08:07:15 PM
i noticed   :)
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 28, 2010, 11:00:01 PM
Let me know if you have any other ideas or improvements style wise since that is not one of my strengths. I plan on rolling on these layout changes to my other mods as well.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: bullbreedluverz on March 29, 2010, 10:30:07 AM
1) the titlebg on  the Gallery Admin Panel  would look better with the curve styling (rounded ends)

2) the search/my images buttons seem a bit out of place and dont blend well with the layout and might look better if they were moved to where ive placed the No.3 in my attatched image so they follow with the curve styling better as the buttons on curve are placed bettween the linktree and the titlebar rather than under the titlebar

(when ya pass changes on to your other mods dont forget store mod on smfhacks site as it looks sucky without curves styling - sucky (core like) titlebars (http://www.eotsdzine.com/themefactory/index.php?action=store) lol)
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: ivo2296 on April 30, 2010, 11:33:09 PM
Hello,

In SMF 2.0 RC3 with Theme Darky (http://custom.simplemachines.org/themes/index.php?lemma=2062) i had no errors during the installation. However, wherever i click i get and error: Undefined index: image




8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/default/Errors.template.php (body_above sub template - eval?)
Line: 184



8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/default/BoardIndex.template.php (body_above sub template - eval?)
Line: 184

and so on...

No other mods installed.


I hope with your help i can fix that problem.


Thank you!

Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 01, 2010, 12:18:12 AM
Use the disable template eval to find the true error line number
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: ivo2296 on May 01, 2010, 12:55:49 AM
Quote from: vbgamer45 on May 01, 2010, 12:18:12 AM
Use the disable template eval to find the true error line number

I did it:

session 17b7049ecd86c896077e8a66161eb004
Type of error: Undefined

8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/Darky2/index.template.php

    // If the user is logged in, display stuff like their name, new messages, etc.
      if ($context['user']['is_logged'])
      {
         echo '
            <ul class="reset floatright" style="text-align: left">
Line 184---->>            <li class="avatar">', $context['user']['avatar']['image'], '</li>
               <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
               <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
               <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 01, 2010, 01:05:22 AM
That would be a theme or smf problem not part of SMF Gallery
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: ivo2296 on May 01, 2010, 01:08:57 AM
Quote from: vbgamer45 on May 01, 2010, 01:05:22 AM
That would be a theme or smf problem not part of SMF Gallery

Strange, there was no errors before. I gona switch to the Core theme of SMF and do some tests.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: adbrad on May 01, 2010, 05:08:15 AM
i have a feature request
where you got the search and my images buttons would it be possible to add an add image button there as well.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 01, 2010, 10:44:42 AM
Yeah I can add it there too!
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: adbrad on May 01, 2010, 11:08:24 AM
thanks is this likely to be in the next update
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 01, 2010, 12:22:20 PM
Yeah as long as I don't forget lol
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: ukhalik2 on June 07, 2010, 12:02:00 AM
can i get sub-categories with this mod?
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 07, 2010, 12:09:21 AM
Only currently built in the pro edition currently of the mod.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: ukhalik2 on June 07, 2010, 01:14:24 AM
is this gallery files and urls indexed by google? are they included in sitemap ?
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Arantor on June 07, 2010, 09:50:25 AM
Sitemap, I doubt it, gallery files and URLs will be indexed if they're open to guests, which includes images going into Google Image Search
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 07, 2010, 10:24:29 AM
Pretty much with Arrantor said in order to be index you must have your gallery open to guests and the sitemap mods probably do not include any mods.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on June 07, 2010, 10:27:14 AM
Congrats on your new 10k posts + Super Hero status, vbgamer 45 ;)
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 07, 2010, 10:33:26 AM
Crap! Damn I forgot about that I was going to start a new topic!
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on June 07, 2010, 10:35:52 AM
lulz pwned!!!!1
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 27, 2010, 12:50:45 AM
What SMF version? Any errors in the forum's error log?
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 27, 2010, 01:21:30 AM
Yes but first try to get the gallery working at least on the default theme I would try the manual install instructions on the modsite.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 27, 2010, 01:49:47 AM
Sounds like me you are having an issue with the SMF package manager if you can't get ezPortal to work either I would make a post in the general support area and see if support has an idea to fix it. It would probably be faster than manually editing files too.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 27, 2010, 02:18:16 AM
With RC3 you have the option to try to install on other themes when you install a mod.

If that doesn't work. You would just do the theme edits for the mod itself.

In fact now that I think about I don't think this mod does any theme edits for RC3
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on June 27, 2010, 04:15:48 AM
Are you talking to yourself...?
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 27, 2010, 09:52:37 AM
bah I guess the guy deleted his posts.
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on June 27, 2010, 10:16:04 AM
That's what I figured out. A strange way to behave...! Probably you fixed his problem and he felt ashamed about his questions and didn't want to leave a trace of them ;)
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: DEEPSNUYB on June 27, 2010, 04:37:59 PM
Quote from: Nao on June 27, 2010, 10:16:04 AM
That's what I figured out. A strange way to behave...! Probably you fixed his problem and he felt ashamed about his questions and didn't want to leave a trace of them ;)

Dont make assumptions.  I figured it out myself by reading on some threads on how themes work and did not feel reasoning to leave the posts up.  I got the mod working now.   
Title: Re: SMF Gallery 2.2 (March 27) with SMF 2.0 RC3 Support!
Post by: Nao 尚 on June 27, 2010, 06:25:18 PM
Ah, so it was you...

Quote from: DEEPSNUYB on June 27, 2010, 04:37:59 PM
Quote from: Nao on June 27, 2010, 10:16:04 AM
That's what I figured out. A strange way to behave...! Probably you fixed his problem and he felt ashamed about his questions and didn't want to leave a trace of them ;)

Dont make assumptions.
Uh!

QuoteI figured it out myself by reading on some threads on how themes work and did not feel reasoning to leave the posts up.  I got the mod working now.
You did exactly the same thing on the Aeva Media topic.
That's rude, you know that? Especially to those who read topics and try to help people.
So let *me* just assume whatever I want about you...
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 01, 2010, 01:02:53 AM
Released SMF Gallery 3.0 large update with new settings.

3.0
+Added setting to control the number of gallery items per row
+Added settings to control thumbnail height/width
+Added paging for category item list and myimages page.
!Fixed hardcoded text Views on delete image
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: adbrad on July 01, 2010, 03:29:35 AM
Quote from: adbrad on May 01, 2010, 05:08:15 AM
i have a feature request
where you got the search and my images buttons would it be possible to add an add image button there as well.

just a shame you forgot the button
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: sa_reno on July 03, 2010, 06:32:06 AM
Hi,

As this is a very long thread by now I hope you dont my me asking this without going trough all the topics since 2006.

My car enthousiast club has a website built on SMF. We are struggling with the pictures people post. Especially when the posts get older and pictures are removed from photobucket or sites like that. With time this leaves worthless threads.

With this package, are we able to upload pic's inside a post and store the image on our own server? Like, "click on post a pic, select a pic, and done?" Maybe that this picture is being stored in a usermap?

Forum used:

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Theme Name : Arobase Skin
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 03, 2010, 10:52:25 AM
You can do that with SMF's attachment system just add an attachment to a post then select the image file from your computer and then it will saved on your site's server
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: sa_reno on July 03, 2010, 11:08:49 AM
Ok, but will post the picture within the post?
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 03, 2010, 11:16:40 AM
It would be added to the end of the post. I think there is an inline attachments mod out there if you want them in the middle or elsewhre.
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: DEEPSNUYB on July 04, 2010, 04:01:41 AM
Are you able to supply the coding changes from the last version to this new version so we can manually edit the files?
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 04, 2010, 09:14:50 PM
Many changes occurred I recommend using beyond compare to see the differences.
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: Hally_89 on July 05, 2010, 07:09:04 AM
Ok so im using the inferno theme on RC3. I am using the smf gallery also (not pro). Images that are uploaded to the gallery are too big and flow off the theme so what i would like to do rather than restricting the size of images added is that when they are uploaded they are sized down to fit the theme but if you click on them they will blow up to there full size to view them. Is there a mod to make this possible? I have seen it on a site or 2 before but dont know how to go about it. Help appreciated
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 05, 2010, 10:45:10 AM
No addon for that currently. That is part of SMF Gallery Pro
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: BellaStudio on July 06, 2010, 04:22:34 PM
Hi,
I'm very new to administrating a forum.  I did manage to get the gallery mod installed and it works for the most part :D
I am getting this error when I try to comment:

Fatal error: Call to undefined function theme_postbox() in /home/bellawe1/public_html/smf/Sources/Load.php(1733) : eval()'d code on line 1025

I'm also struggling to figure out how to add the link/button to the nav menu. I think it's probably a theme issue. I'll probably figure that one out but the above error...I'm clueless...

Thanks!
Very cool to have a gallery :D
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 06, 2010, 06:00:06 PM
What SMF version are you using?
Title: Re: SMF Gallery 3.0 (July 1) with SMF 2.0 RC3 Support!
Post by: BellaStudio on July 06, 2010, 07:11:03 PM
Hi,
Thanks for the speedy response :)
I'm using 1.1.11  - came with my hosting.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 06, 2010, 08:44:44 PM
Fixed posted a new version on the modsite to fix the add comment isuse. Thanks for the report!

3.0.1
!Fixed error with adding a comment for SMF 1.1.x
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: BellaStudio on July 06, 2010, 09:34:29 PM
Quote from: vbgamer45 on July 06, 2010, 08:44:44 PM
Fixed posted a new version on the modsite to fix the add comment isuse. Thanks for the report!

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

;D WOW! Awesome, thank you! Works!
Much appreciated.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 06, 2010, 09:35:34 PM
Glad to help! :)
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: GSJ on July 29, 2010, 10:44:30 AM
Hi,

I was wondering if there was a way to only allow uploaded images to be shown. Example image links say from photobucket. I had to disable this mod a while back as I was only able to get images uploaded onto my site to be shown. But this used up far too much space. It's a long time since then and was wondering if it was possible to only allow linked images to be used?

Really hoping it's possible as it's a really nice mod, and much more fun for my members to browse and look through then just using a topic set up.

All the best!

GSJ
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 29, 2010, 10:48:37 AM
Linked images are not supported mainly because it would throw the entire layout out of whack since there would be no thumbnails of the images.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: GSJ on July 29, 2010, 11:01:10 AM
Thanks for replying so promptly :)

It's disappointing as like I said it's a lovely mod. But totally can understand, can't imagine it being so nice if the layout was majorly screwed up.

But I have far too many members and they have near no restraint lol so I can't afford to host all the images they'd put up each day, not if I want to also be able to host all their stories and roleplays.

Sad I can't use it, but very happy others can.

Thanks again :)

GSJ

Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: Dharshan on July 31, 2010, 12:54:13 AM
checking out this mod. have not tried it before.

i just need a system so that thers a way to organize pics posted on the forum.

one noob question though.

can the users directly upload pics when they are making a post?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 01, 2010, 09:56:16 PM
Not from a post. They have to upload them using the gallery categories.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: Casa Grande on August 06, 2010, 08:52:43 PM
Quote from: GadgetNutt on September 06, 2009, 05:54:36 PM
Quote from: 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.

I hope I am doing this right and in the correct place.

I am getting errors like this on version 2.0.7 of this mod using SMF version 1.1.10:

8: Undefined index: gallery_text_views
File: /usr/shared/web/MYSITE/mj/Sources/Subs-EzPortalMain.php
Line: 1514

Thanks, Mark

i'm getting this same exact error and it's filling up my error log....




8: Undefined index: gallery_text_views
Apply Filter: Only show the errors from this file
File: /portal/forum/Sources/Subs-EzPortalMain2.php
Line: 1570
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 06, 2010, 08:56:57 PM
That looks like an issue with ezPortal will have to fix that up.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: Shortie861 on August 19, 2010, 06:26:08 PM
Hi there, I have recently added the SMF Gallery to my forum and everything is working fine however I am getting on images that all staff and members can unapprove/approve, edit and delete images from the Gallery itself, is there a setting so you can change certain usergroups settings for the Gallery?

Thanks.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 19, 2010, 06:32:35 PM
There is a permission you can toggle for gallery called "Manage Gallery" under Admin -> Permissions for each membergroup.
That permission really so be set only for gallery admins.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: DEEPSNUYB on August 22, 2010, 11:00:21 PM
this mod is small and simple and works for what you want. any other gallery mod cant compare.  other gallery mods may have more functions but functions youll never use.
stick with this gallery mod cause stone cold says so!

WHAT!?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: dkitchen on August 23, 2010, 06:43:00 PM
IS there way to add an option to auto resize pictures to the max allowable when a user uploads?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 23, 2010, 06:48:29 PM
Not currently in the lite edition of the software might be something I add at a later date.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: dkitchen on August 24, 2010, 01:53:35 PM
I would be willing to pay to have that option so let me know.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 24, 2010, 01:55:29 PM
I would then advise you to check out this
http://www.smfhacks.com/smf-gallery-pro.php
Which does contain that feature and you can upgrade from gallery lite to it.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: tazgal on September 16, 2010, 11:05:26 AM
I installed this mod using the package manager.  When I try to uninstall it, it does not uninstall correctly.  How do I manually uninstall this mod?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 16, 2010, 11:18:23 AM
If you installed other mods after that could cause that issue.

Check the modsite and follow the manual install instructions for this mod and just reverse then to uninstall.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: tazgal on September 16, 2010, 01:12:18 PM
I went through all the folders and searched in the folders, using the search feature from my editor, looking for the code shown on the manual install.  Each folder said that the code was not found in the file.  What is happening?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 16, 2010, 01:35:47 PM
Try checking out the files without the editor and see if you see the code.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: forumuser on September 29, 2010, 09:43:21 PM
I've seen elsewhere (http://www.google.com/#sclient=psy&hl=en&q=%228%3A+Undefined+index%3A+show_spellchecking%22&aq=f&aqi=&aql=&oq=%22%28add_comment+sub+template%22&gs_rfai=&pbx=1&fp=c6affe93747c32d0) where individuals have had an error recorded each time the comment feature is implemented. I just installed this mod, an excellent mod by the way, and I am seeing the same errors. A series of three:

8: Undefined index: show_spellchecking
File: /home/atlantis/public_html/forum/Themes/atlantis/Post.template.php (add_comment sub template - eval?)
Line: 1043

8: Undefined index: show_spellchecking
File: /home/atlantis/public_html/forum/Themes/atlantis/Post.template.php (add_comment sub template - eval?)
Line: 1031

8: Undefined index: show_spellchecking
File: /home/atlantis/public_html/forum/Themes/atlantis/languages/Post.english.php (add_comment sub template - eval?)
Line: 1007


Any idea how I can remedy this issue?

Thanks in advance,
forumuser
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 29, 2010, 09:49:21 PM
What SMF version are you using?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: forumuser on October 12, 2010, 01:36:18 AM
Updated to 1.1.11 and all is well...
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 12, 2010, 02:04:47 AM
Thanks for update since I never seen that error occur to anyone else before.
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: audioleech on October 14, 2010, 10:55:17 PM
I have a problem with this mod that some people seem to have had but i can't find a solution.

I had SMF gallery lite installed and working fine, uninstall encountered errors but i made full backup of my forum and continued with uninstall anyways. i installed smf gallery pro 3.0.7. As far as i can tell the gallery is working, BUT despite the permissions settings, i can not view the gallery.

QuoteAre you trying to look at the pictures of this forum???

I am an admin on my website, but same result happens when a regular member or guest clicks gallery button. any ideas?

http://www.audioleech.com/
This is my website. thanks for any help you can provide
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 14, 2010, 11:09:51 PM
For gallery pro support visit smfhacks.com

But sounds like you are not viewing the gallery correctly you should visit http://www.yoursite.com/index.php?action=gallery and not http://www.audioleech.com/gallery/
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: audioleech on October 14, 2010, 11:13:52 PM
you're the man.

haha, when i edited index.template.php to add the gallery button i put in the wrong URL.

simple fix, all i needed were another pair of eyes. thank you for your help, and thanks for your wicked mod.

AND thank you for your 5 minute response time
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: PLAYBOY on November 21, 2010, 02:44:21 AM
quick question...

Is there a way to make the galleries fast for thousands of pictures?

i have about 22.000 pix and i wanna make a gallery for them? is it possible and how?
Title: Re: SMF Gallery 3.0.1 (July 7) with SMF 2.0 RC3 Support!
Post by: vbgamer45 on November 21, 2010, 10:16:52 AM
You mean like uploading all the pictures faster is that what you need?
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: PLAYBOY on November 22, 2010, 10:05:10 PM
Yeah.
Or it think it would be very cool if we just upload the entire directory to ftp and it finds it there then publish all the pix in the directory.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: Casa Grande on November 24, 2010, 11:45:57 AM
Quote from: Casa Grande on August 06, 2010, 08:52:43 PM
Quote from: GadgetNutt on September 06, 2009, 05:54:36 PM
Quote from: 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.

Any word on a fix for this yet??  I'm using 2.0 rc3 and Ezportal v 4.0.  I know I'm using outdated versions but I am going to upgrade both soon.  Just wondering if the upgrades will actually fix this problem.??
I hope I am doing this right and in the correct place.

I am getting errors like this on version 2.0.7 of this mod using SMF version 1.1.10:

8: Undefined index: gallery_text_views
File: /usr/shared/web/MYSITE/mj/Sources/Subs-EzPortalMain.php
Line: 1514

Thanks, Mark

i'm getting this same exact error and it's filling up my error log....




8: Undefined index: gallery_text_views
Apply Filter: Only show the errors from this file
File: /portal/forum/Sources/Subs-EzPortalMain2.php
Line: 1570
Quote from: vbgamer45 on August 06, 2010, 08:56:57 PM
That looks like an issue with ezPortal will have to fix that up.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on November 24, 2010, 11:52:23 AM
If you need to fix it right now. Open themes/default/index.english.php
Add this entry
$txt['gallery_text_views'] = 'Views:';

Then clear you cache under admin -> maintenance.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: latch on November 29, 2010, 10:34:51 AM
I hope you can overlook my ignorance but...
Isn't there supposed to be a Link somewhere on my SMF Forum to reach the Gallery?
Currently the only way I can reach the Gallery is via the following links in Admin:
Gallery Configuration/Manage Categories/Gallery
-Latch
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on November 29, 2010, 11:22:38 AM
Yes in the menu. If you are using SMF 1.1.x and a custom theme you need to add a menu button that links to http://www.yourforum.com/index.php?action=gallery
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: latch on November 29, 2010, 02:13:59 PM
Thanks so much.
With a little bit of poking around, I figured out to modify the index.template.php file of any additional themes wanted.

In case anyone else is curious of the fix procedure I use for this issue:
Open Default Theme file - index.template.php
Copy lines of code that pertain to the Gallery Menu
Open Custom Theme file - index.template.php
Paste lines of code for Gallery Menu in appropriate place.
Adjust code to match syntax of other menu items in the Custom Theme index.template.php file.
Save - done :)

-Latch
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on November 29, 2010, 03:12:15 PM
That's it exactly I should sticky that post ^
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: Casa Grande on December 03, 2010, 09:00:53 PM
Quote from: vbgamer45 on November 24, 2010, 11:52:23 AM
If you need to fix it right now. Open themes/default/index.english.php
Add this entry
$txt['gallery_text_views'] = 'Views:';

Then clear you cache under admin -> maintenance.

Thanks, gamer!  problem solved!
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on December 03, 2010, 10:56:30 PM
Glad that helped have it fixed for next update for ezPortal as well.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: PLAYBOY on December 16, 2010, 08:53:07 AM
Is there a way to upload a mass amount of pictures instead of one by one?
Can i upload like hundred pictures at once?

1.1.12




Update: Nevermind. Only the pro version ($50) has mass upload option. Uninstalled!
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: ephobe on December 21, 2010, 03:46:54 PM
Quote from: PLAYBOY on December 16, 2010, 08:53:07 AM
Is there a way to upload a mass amount of pictures instead of one by one?
Can i upload like hundred pictures at once?

1.1.12




Update: Nevermind. Only the pro version ($50) has mass upload option. Uninstalled!

Wait, there's no mass upload?

Updated: Uninstalled as well.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on December 21, 2010, 03:57:14 PM
Not built into the lite edition at this time. But you can upload a picture at a time.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: shadow82x on December 29, 2010, 07:25:44 PM
Question: If your already using a SMF Gallery for SMF1.1.x and upgrade to 2.0.x will the data still be there?
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on December 29, 2010, 07:49:40 PM
Yes the data will always be there. The same for all my mods never remove the database information on uninstall
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: JoeB on January 19, 2011, 01:57:02 PM
I get this error using SMF 2.0 RC4

Column count doesn't match value count at row 1
File: /home/*****/public_html/forums/Packages/temp/galleryinstall2.php
Line: 78

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0 RC4,

while your database is at version . The above error might possibly go away if you execute the latest version of

upgrade.php.

db is fine as I upgrade it recently
Please advice
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on January 19, 2011, 02:11:31 PM
Just want to confirm you are using MySQL and if so what version I haven't done any recent changes to it lately so this would be the first report of that issue.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: impreza on January 19, 2011, 06:12:01 PM
Great addition - I tested it, I greet and thank
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: Jeet Chowdhury on January 27, 2011, 12:32:17 PM
if i upload a 1920x1080 size image and if monitor resolution is 1600x900 the image not showing properlly.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: Jeet Chowdhury on January 27, 2011, 12:43:11 PM
yes the problem is with actualism theme.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: reefforum on January 29, 2011, 08:51:57 PM
it installs and I can configure but there is no gallery button anywhere on the site.  using simplywhite theme and have no clue how to fix this. 
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on January 29, 2011, 09:17:39 PM
If SMF 1.1.x you have to modify the index.template.php of that theme to include a menu button
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: reefforum on January 29, 2011, 11:00:06 PM
how do I do that?
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on January 29, 2011, 11:05:55 PM
Find the manual install instructions from the mod site then find similiar code in your custom theme to create a button for gallery
Title: Re: SMF Gallery (Critical Update 1.9.4 2.0.4 Released)
Post by: mydoodlepals on February 03, 2011, 11:56:32 PM
Quote from: vbgamer45 on November 05, 2008, 08:30:02 PM
Quote from: A.SK on November 03, 2008, 01:02:46 AM
Quote from: vbgamer45 on November 01, 2008, 11:38:52 AM
The thumbnails need to be generated for those images.

So for each image, we have to generate a thumbnail.

Ok is there any software or what i have to ask to my hosting company.
If you remind I will try to get added to SMF Gallery a way to regenerate thumbnails.

Did you ever do this-- create a thumbnail re-generator? I finally GD installed on my server today and I thought all went well until I went into my Gallery and there were no thumbnails. (using latest stable versions of smf, gallery and gd) thank you
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 04, 2011, 12:23:48 AM
If you need I add it got in pro edition never moved it back to lite yet.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: mydoodlepals on February 04, 2011, 01:32:38 AM
Sorry I don't quite understand. Are you saying that I will need to buy the pro edition in order to get the thumbs to show back up?
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 04, 2011, 01:34:02 AM
I don't have the regenerate function built into the lite version I could backport it if needed.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: mydoodlepals on February 04, 2011, 02:13:55 AM
I am so sorry I am very ignorant to this sort of thing- if you're saying you can help, I'll take all I can get just to keep the administrator from having to re-upload everything again. and of course thank you....what do I need to do?
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 04, 2011, 10:36:50 AM
Just wait I would probably get to it this weekend.
Title: Re: SMF Gallery 3.0.1 (Nov 2) with SMF 2.0 RC4 Support!
Post by: mydoodlepals on February 04, 2011, 02:36:14 PM
Awesome thank you so very much!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 06, 2011, 05:51:38 PM
Got the update in
3.0.3
+Added regenerate thumbnails option on a category level.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: henrik1782 on February 06, 2011, 06:04:58 PM
Hi...

Here are the danish translation. Hope I got the right files.

Best regards
Henrik
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: mydoodlepals on February 06, 2011, 06:07:43 PM
Quote from: vbgamer45 on February 06, 2011, 05:51:38 PM
Got the update in
3.0.3
+Added regenerate thumbnails option on a category level.

Thank you !!!!!!!!!!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: henrik1782 on February 06, 2011, 06:19:34 PM
Hi...

Just curios... will pictures be resized in 3.0.3 if the exeed board size (screen size).
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 06, 2011, 06:46:19 PM
No they will not be.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: Harvester on February 06, 2011, 06:50:20 PM
I need a bit of help please

My gallery has been working fine. then yesterday it just stopped working right. My gallery is still there and all the images are still there BUT now when someone uploads an image it just shows a red x where the image.. I just ftp'd to the dir folder where the latest images should have been uploaded to and the files arent even there. They didnt make it to their destination even though the gallery acted as if they were uploaded.

a thought: I installed chat software yesterday morning... it is NOT associated with SMF and it was installed outside of the smf root folder... is it possible that the install of this software could affect my gallery or the pathing to it??

Any help would be greatly appreciated please.

Thank you, Jared
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 06, 2011, 06:52:02 PM
Under Gallery settings what is your gallery path and gallery url set to?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: mikemoss on February 08, 2011, 10:22:28 AM
Wow this is really good, I was wondering is it possible to change comments on pictures to descending, rather than ascending ? I think comments read beter this way, as when people reply to other comments, it reads so much better.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: yakyakyak on February 14, 2011, 08:24:05 AM
I am using Sunshine Theme and with the gallery mod installed, after selecting the Category, with the images in the gallery being displayed just fine, scrolling to the bottom of the first page, it is impossible to view the gallery options

"Pages: [1] 2
Add a picture  -   Return to Gallery"

The light colour of the Theme and the Gallery option default colours are conflicting.

Can you help please and offer direction to change the gallery mod text colours only for these options plus how to increase the font size of these options too as most of the members on the forum are OAP's <g>


Thanks!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 14, 2011, 10:03:44 AM
What SMF version?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: yakyakyak on February 14, 2011, 11:10:42 AM
SMF 2.0 RC3

sorry
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: mikemoss on February 15, 2011, 08:27:04 AM
Quote from: mikemoss on February 08, 2011, 10:22:28 AM
Wow this is really good, I was wondering is it possible to change comments on pictures to descending, rather than ascending ? I think comments read beter this way, as when people reply to other comments, it reads so much better.
Hmmm no reply ! maybe it is not possible then !
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 15, 2011, 10:10:17 AM
It is possible you would have to edit the sources/gallery.php file and change the function view_picture and find the query for the comments and change from ASC TO DESC
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: Watchmanz on February 17, 2011, 09:25:14 PM
Hi vbgamer, I'm very keen on this mod for my site but I'd like to achieve something a little different. I hope I explain it clearly .....

I am not interested in separate image categories at all, I just want each site member (newbie and above) to be able to automatically create their own album if they want one (and sub-albums off that album if they want those) - and then start uploading photos.

So when you go into the gallery, it shows "Watchmanz's albums", "vbgamer's albums", and so on.

I'm sure your mod can do this, but would you mind explaining how I could achieve that?

Thanks in advance.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: Neo_TE on February 18, 2011, 04:55:38 AM
hxxp://www.---.com/forums/index.php?action=admin;area=gallery;sa=admincat
8: Undefined index: ID_CAT
File: /public_html/forums/Themes/default/Gallery2.template.php
Line: 1321

Please help me with this error.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 18, 2011, 09:44:02 AM
Quote from: Neo_TE on February 18, 2011, 04:55:38 AM
hxxp://www.---.com/forums/index.php?action=admin;area=gallery;sa=admincat
8: Undefined index: ID_CAT
File: /public_html/forums/Themes/default/Gallery2.template.php
Line: 1321

Please help me with this error.
Fixed posted a new version with a fix for this error.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: mikemoss on February 21, 2011, 02:52:30 PM
Quote from: vbgamer45 on February 15, 2011, 10:10:17 AM
It is possible you would have to edit the sources/gallery.php file and change the function view_picture and find the query for the comments and change from ASC TO DESC

Great works just brilliant  :)
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 21, 2011, 03:06:34 PM
Glad you got it working how you want!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: James Main on February 21, 2011, 10:22:16 PM
one issue I am having is can't copy and paste all of bb code to add image to a post. Can only get the partial code in the window it does not give the rest.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC4 Support!
Post by: vbgamer45 on February 21, 2011, 10:33:02 PM
Quote from: James Main on February 21, 2011, 10:22:16 PM
one issue I am having is can't copy and paste all of bb code to add image to a post. Can only get the partial code in the window it does not give the rest.
Issue is you can't see all of the bbcode? Or you can't right click and select all and copy it
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: DEEPSNUYB on March 04, 2011, 02:16:11 AM
Please help.  I am using MySQL 5.X and RC5.  All the coding modifications have been double checked.  The install file did modify the database and all I get is a blank white screen now.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 04, 2011, 10:12:49 AM
Need more information check your error log.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: DEEPSNUYB on March 04, 2011, 12:10:24 PM
There is none except for detectfree error which is for the iphone mod.  but that mod doesn't really interact with this.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 04, 2011, 12:47:17 PM
Not sure never ran into that open your index.php add after<?php

ini_set("display_errors",1);
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: DEEPSNUYB on March 05, 2011, 03:03:07 AM
Quote from: vbgamer45 on March 04, 2011, 12:47:17 PM
Not sure never ran into that open your index.php add after<?php

ini_set("display_errors",1);


Fatal error: require_once() [function.require]: Failed opening required '/mobile_device_detect.php' (include_path='.:') in /var/www/vhosts/domainname.com/httpdocs/Sources/DetectFree.php on line 92

is all it says on the index.php screen now.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: DEEPSNUYB on March 05, 2011, 03:30:35 AM
Ok got it fixed.  It was that POS hack called iPhone mod or whatever.  That thing has been broken since forever and the authors keep blaming it either on two things, the user or detect_free.php.   The crap doesn't work and why don't they admit it.  JUNK!

My boy vbgamer45 always has his stuff on top, keeps all his mods updated to the lastest version of SMF even if it is just a version number change.

My boy has the best mods out there, no one can touch!

You are my boy!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 05, 2011, 08:33:02 AM
Glad you have it figured out yeah the display errors trick is one i use often if I get a blank page.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: reefforum on March 10, 2011, 03:24:58 AM
great mod thank you.

Is there any way I could have a "next" button to view the next image?
Is there a bulk uploader?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 10, 2011, 09:32:50 AM
I will look into the next/previous button on view image page.

I do have the next/previous and bulk uploader in the pro edition of this mod.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: doomsayer on March 11, 2011, 04:31:25 PM
Maybe I'm missing something...

Does this show existing galleries or only for new pictures

SMF 2.0RC5
Gallery 3.0.1 upgraded from 2.3

I have installed it but when going to the link there is nothing there. I'm looking to display existing albums and tie them in with existing users.
Maybe there is an import function

Thanks
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 11, 2011, 04:36:20 PM
Existing galleries from where?

If you just setup SMF Gallery for the first time you will need to create categories to store the pictures for users to upload into.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: ddabcd277 on March 12, 2011, 07:45:59 AM
Hello vbgamer45,

Nice mod!

Please for your help. I accidently remove the Gallery tab while making some customization with simple portal and want to return it back but don't know how :-[ Appreciate help. Can't find it in settings. I am using smf 1.1.13 and latest version of SMF Gallery 3.0.3.

Thanks.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: doomsayer on March 12, 2011, 08:35:34 AM
Quote from: vbgamer45 on March 11, 2011, 04:36:20 PM
Existing galleries from where?

If you just setup SMF Gallery for the first time you will need to create categories to store the pictures for users to upload into.

I realized after I posted that your mod is a stand alone gallery.
I was looking for integration with Gallery3

Thanks anyway
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 12, 2011, 09:59:43 AM
No problem I think Oldiesman has an integration with Gallery3
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: FounderSim on March 20, 2011, 08:29:16 PM
Quote from: vbgamer45 on September 16, 2006, 07:13:02 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=473)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=473)

SMF Gallery
Is a gallery system that ties directly into SMF with a bunch of features.

Features:
User Image galleries

how do my users set up image galleries... I set up the permissions, but everytime I try to upload a picture on my "Regular" account. It says I need a category. I see no spot to create a gallery on a "Regular" account.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 20, 2011, 09:33:52 PM
A category needs to be setup first for users to uploads pictures into.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: FounderSim on March 21, 2011, 09:26:05 AM
SO user's cant have there own galleries?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 21, 2011, 10:21:44 AM
Not directly you can access users files they they upload under action=gallery;sa=myimages;u=##memberid and that will list all images a user uploaded.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 27, 2011, 06:38:59 PM
vbgamer45 nice mod,

i want use it for catalog if you can help me, i want add title below images trumbial preview.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.pohrani.com%2Ff%2F2Z%2FJb%2F1n0zJl7m%2Fgallery.png&hash=b744873c668d2a3faf079951e9ad3cf16c419f9d)

i was try add something like this, but not work  :(
<div>' . $context['gallery_pic']['title'] . '</div>
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 27, 2011, 06:57:37 PM
Make sure in Gallery.php that title is in the SELECT statement as well
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 28, 2011, 11:32:30 AM
Quote from: vbgamer45 on March 27, 2011, 06:57:37 PM
Make sure in Gallery.php that title is in the SELECT statement as well
thank you,  :)
I use 2.0RC5 and suppose that i must search in the Gallery2.php, but my php is not much good.

can you tell me where in Gallery2.php, so far I have tried to edit Gallery2.template.php
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: Masterd on March 29, 2011, 12:29:27 PM
Try this file.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 29, 2011, 01:31:31 PM
Quote from: Masterd on March 29, 2011, 12:29:27 PM
Try this file.

nothing happend  :(
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 30, 2011, 01:51:33 PM
vbgamer maybe you have time to help with this, where is that query and what code must add?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 01:53:10 PM
Attach both files you have so far.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 30, 2011, 02:16:28 PM
Quote from: vbgamer45 on March 30, 2011, 01:53:10 PM
Attach both files you have so far.


ty for response,
i changed little bit CSS class to adapt on forum theme, in the file Gallery2template line 401. i was try add image title. Here is files and if they are to much diferent from orginal  you may make changes in the orginal files. I will make css and small template changes later again.

Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 02:34:38 PM
Fixed your Gallery2.template.php
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: rocknroller on March 30, 2011, 02:44:33 PM
Quote from: vbgamer45 on March 30, 2011, 02:34:38 PM
Fixed your Gallery2.template.php

You are the man, thank you. If you ever meet I am paying a beer.  :)
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 02:45:36 PM
That would work :) Hopefully they keep stargate around they need to keep shows around for a couple seasons before stopping them.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: h2saad on March 30, 2011, 07:25:57 PM
when installing the Gallery mod got this error:

Fatal error: Call to undefined function pretty_update_filters() in /www/................/htdocs/forum/Packages/temp/galleryinstall2.php on line 137

any help please ... ?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 07:40:37 PM
Quote from: h2saad on March 30, 2011, 07:25:57 PM
when installing the Gallery mod got this error:

Fatal error: Call to undefined function pretty_update_filters() in /www/................/htdocs/forum/Packages/temp/galleryinstall2.php on line 137

any help please ... ?
Posted a new update to the issue you had pretty urls in the past and a  file that it checks for it is still there.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: h2saad on March 30, 2011, 08:04:01 PM
Quote from: vbgamer45 on March 30, 2011, 07:40:37 PM
you had pretty urls in the past and a  file that it checks for it is still there.

yes I have pretty url in old SMF and when upgrading to RC5 it's doesn't work and also there are no uninstall for it, any idea
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 08:45:40 PM
To fix gallery download latest version from modsite.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: h2saad on March 30, 2011, 09:00:50 PM
Quote from: vbgamer45 on March 30, 2011, 08:45:40 PM
To fix gallery download latest version from modsite.

did you mean "SMF Gallery Pro"
because Gallery 3.0.3a are the last version in Lite
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 09:02:20 PM
No redownload from the modsite posted an update.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: h2saad on March 30, 2011, 09:18:00 PM
#vbgamer45,   THANK YOU SO MUCH, Work berfictally and my old Galley back again you can see it Here (http://kodakchallenge.110mb.com/forum/index.php?action=gallery)

Thank you for your GREAT Help.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on March 30, 2011, 09:20:25 PM
Glad you were able to get it work and use the gallery.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: mxcape21 on April 14, 2011, 02:06:44 AM
Hi ,   I just installed this mod and had no errors and it seems to work fine except it won't display category icons, am I doing something wrong....what should the icon url format look like?

thanks
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on April 14, 2011, 08:53:01 AM
The format should be http://ww.yoursite.com/image.png
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: mxcape21 on April 14, 2011, 07:53:31 PM
No that dosent work for me either, I even tried the server Absolute path to the images, used png images.... :(

Nervermind, oddly enough they are showing up today... :laugh:
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on April 14, 2011, 10:32:01 PM
Well whatever it was glad you got it working somehow
Title: Re: SMF Gallery
Post by: RogueTrooper on April 22, 2011, 02:11:19 PM
Hey guys - brilliant mod, but I'm having the same issue as hein:

Quote from: 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...

Is there a method for this that I'm missing?

Thanks :)

RT
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on April 22, 2011, 02:26:12 PM
Hmm looks like I need to add that will try to add it this weekend. BTW what SMF version are you using?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: RogueTrooper on April 22, 2011, 02:46:15 PM
1.1.13

Could you provide the code as well? I don't want the update to overwrite any tweaks ha ha.

I'm new to php - so I apologise if the request seems odd.

Cheers!
RT
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: Prids on May 07, 2011, 09:23:22 AM
Hi,

I was trying to remove this mod from SMF 1.1.13, which was working fine, via package manager in anticipation of perhaps getting the pro version.

Prior to attempting uninstall I removed all galleries from within the mod admin, and user permissions from the forum Admin members permissions.

Now I'm not so sure as the uninstall gives the following four errors (the install was no problem with package manager):

Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed

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

8. Execute Modification ./Sources/PrettyUrls-Filters.php Skipping file
9. Delete File ./Sources/Gallery.php 
10. Delete File ./Themes/default/Gallery.template.php 
11. Delete File ./Themes/default/languages/Gallery.english.php 
12. Delete File ./Themes/default/languages/Gallery.english-utf8.php 
13. Execute Code GalleryUnInstall.php

There are no errors in the Forum Error Log.

I'm going to try and reverse install by manually editing the files backwards off the manual install instructions.  Before I do, does anyone have a better, or safer, idea?

Many Thanks,

Paul
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 07, 2011, 10:30:24 AM
It is safe to uninstall those files are common files to fail if you have multiple mods installed.
Would suggest to uninstall then remove the failed files/code changes manually.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: Prids on May 07, 2011, 10:52:58 AM
Thanks a million.  I do have a few mods, but the default theme.  I'll do as you suggest.

Cheers

Paul
Quote from: vbgamer45 on May 07, 2011, 10:30:24 AM
It is safe to uninstall those files are common files to fail if you have multiple mods installed.
Would suggest to uninstall then remove the failed files/code changes manually.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 18, 2011, 06:27:32 AM
Please forgive my newbie questions. I have had my smf forum up and running for less than a week and no prior experience so I'm still feeling my way around here.

I've got SMF 1.1.13 and SimplePortal 2.3.3.
I'd like a photo gallery and a video gallery on my site. I can see that SMF Gallery will do the photos; will it be able to do a video gallery in the same way?

I notice you also do a video embedder. What is the function of this? In the forum the videos show up when you post the link so what is the embedder doing?

EDIT: I've just been asked if I can host 4,000 plus photos. Would this be considered a reasonable number - ie. there won't be any loss in functionality. I presume I am only limited by my webspace allowances?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 18, 2011, 11:01:50 AM
SMF Gallery Lite does not support videos it would require upgrading to the following
http://www.smfhacks.com/smf-gallery-pro.php
http://www.smfhacks.com/video-addon.php

The video embeder mod found on the modsite works when a user posts a support video site link in a post will auto embed the video player in the post.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 18, 2011, 06:02:41 PM
OK - I will have a think about it. I wasn't planning to have many videos - maybe a maximum of 30 or so - as they take up a lot of space. Weighing up cost/benefits here :)

Thanks for the video embedder info.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: Slave2000 on May 19, 2011, 01:40:33 PM
For some reason whenever I go to the upgrade site it claims that I am banned, even though I have never been there before!  :o

Anyhow, my question is this:

Is it possible to have so many categories on each page? As it is have 26 Categories, each with a large Gallery image, and was wondering whether I could have like 15 or 20 Categories a page, instead of having to scroll a long way down.

I am using 2.0 RC5. I'd appreciate any help, but must confess that I know absolutely nothing about coding.

Thanks in advance!
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 19, 2011, 01:43:36 PM
Hmm don't have that built category paging that would have to be custom built.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 23, 2011, 01:31:34 AM
The Gallery seems to have installed without any problems. For the time being I'm working with the Lite version.

Is it possible to have albums within the categories?
And is it possible to scroll through the large versions of the the images rather than having to return to the thumbnail page each time?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 25, 2011, 06:27:58 PM
The gallery works fine but i moved to another host ans i get this.
There are no images in the gallery.
I have made ​​a block but I see no picture
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 25, 2011, 07:10:23 PM
You need to change the Gallery Path under Gallery Configuration to your hosts new path compare to the path under Server Settings
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 25, 2011, 07:26:57 PM
Quote from: vbgamer45 on May 25, 2011, 07:10:23 PM
You need to change the Gallery Path under Gallery Configuration to your hosts new path compare to the path under Server Settings
I have /home/weerforu/public_html/gallery/
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 25, 2011, 07:28:28 PM
What's your Gallery URL?
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 05:05:29 AM
This is my url

http://weerforum.eu/index.php?action=gallery
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 09:02:21 AM
Make sure your gallery url under settings is set to http://weerforum.eu/gallery/
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 26, 2011, 09:10:21 AM
Quote from: timetraveller on May 23, 2011, 01:31:34 AM
The Gallery seems to have installed without any problems. For the time being I'm working with the Lite version.

Is it possible to have albums within the categories?
And is it possible to scroll through the large versions of the the images rather than having to return to the thumbnail page each time?

I think you missed my questions ^^^  :(
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 09:27:25 AM
Quote
Is it possible to have albums within the categories?
Don't have subcategories built into the lite version.  Currently just top level  categories.

Quote
And is it possible to scroll through the large versions of the the images rather than having to return to the thumbnail page each time?
Second part are you looking for previous/next images?
Example with previous/next and thumbnails
http://www.smfhacks.com/storedemo/index.php?action=gallery;sa=view;id=2
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 09:40:00 AM
Quote from: vbgamer45 on May 26, 2011, 09:02:21 AM
Make sure your gallery url under settings is set to http://weerforum.eu/gallery/

It is allready http://weerforum.eu/gallery/
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 26, 2011, 09:48:53 AM
Yes - the second part is exactly what I am after.
Can't see where to get it though/ what it's called.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 09:55:00 AM
Quote from: wiecher on May 26, 2011, 09:40:00 AM
Quote from: vbgamer45 on May 26, 2011, 09:02:21 AM
Make sure your gallery url under settings is set to http://weerforum.eu/gallery/

It is allready http://weerforum.eu/gallery/
That part is right i am thinking it is your gallery path double check under Server Settings and make sure your path is similar to the one in gallery configuration.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 10:05:27 AM
Quote from: vbgamer45 on May 26, 2011, 09:55:00 AM
Quote from: wiecher on May 26, 2011, 09:40:00 AM
Quote from: vbgamer45 on May 26, 2011, 09:02:21 AM
Make sure your gallery url under settings is set to http://weerforum.eu/gallery/

It is allready http://weerforum.eu/gallery/
That part is right i am thinking it is your gallery path double check under Server Settings and make sure your path is similar to the one in gallery configuration.

This is what i have.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 10:08:50 AM
The /home/weerforu/public_html/gallery/ looks right too.. Hmm so it might be a file permission issue on the gallery folder.

Also I would check your forum's error logs when you upload a picture to see if any errors are returned
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 10:09:02 AM
I see the attachments in Gallery but not in a block (simple portal)
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 10:10:49 AM
Quote from: timetraveller on May 26, 2011, 09:48:53 AM
Yes - the second part is exactly what I am after.
Can't see where to get it though/ what it's called.
The thumbnails at top and previous/next links are currently only in the pro edition I might back port the previous/next links if that helps.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 10:11:36 AM
Quote from: wiecher on May 26, 2011, 10:09:02 AM
I see the attachments in Gallery but not in a block (simple portal)

I think you are using the wrong block in SP make sure you use the "SMF Gallery" block
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 10:15:39 AM
Quote from: vbgamer45 on May 26, 2011, 10:11:36 AM
Quote from: wiecher on May 26, 2011, 10:09:02 AM
I see the attachments in Gallery but not in a block (simple portal)

I think you are using the wrong block in SP make sure you use the "SMF Gallery" block

I did use the correct Gallery block.
There are no images in the gallery.  :(
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 10:18:30 AM
If it is just the Simple Portal block not showing the images it sounds like a bug with Simple Portal.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 10:21:49 AM
Quote from: vbgamer45 on May 26, 2011, 10:18:30 AM
If it is just the Simple Portal block not showing the images it sounds like a bug with Simple Portal.

Uhm ok i will ask there.
Thnx for your help vbgamer45  ;)
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 10:59:24 AM
This is what i see in my log.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 11:00:10 AM
Yeah that's the wrong gallery mod. You might have to delete that portal block and add it again to work make sure you use SMF Gallery
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: wiecher on May 26, 2011, 11:05:07 AM
Quote from: vbgamer45 on May 26, 2011, 11:00:10 AM
Yeah that's the wrong gallery mod. You might have to delete that portal block and add it again to work make sure you use SMF Gallery
I am using this one.
Title: Re: SMF Gallery 3.0.3 (Feb 6) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 26, 2011, 12:24:51 PM
Not sure what that is in SP can't read it but I think there are two gallery blocks in SP.
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 27, 2011, 10:22:14 AM
Minor bug fix update
3.0.4
!Fixed some mod_security issues with SMF 2.0
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: Eudemon on May 27, 2011, 04:54:17 PM
just a question about the pro version
i have communicated with u in smfhack
n u said u gonna put embed image (adding image through url) support into the pro ver
that was about few monthes ago, just wonder how is it going now
plz also add that support to media converter, i wanna migrate from aeva

or maybe i'll use wordpress gallery, i'm not sure  ::)
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 27, 2011, 05:04:45 PM
I have a media converter made for the pro edition.
If you need add image though I can add it you order.
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: Eudemon on May 27, 2011, 05:29:47 PM
i mean the feature that lets u add embed url (remote) item to gallery
just like the one in aeva ( i have the commercial ver)

i think the pro ver currently doesn't have one, right?
i've talked to u before u said u will add it, so i waited few monthes, it's still not happening
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 27, 2011, 05:57:01 PM
If you buy I will add it just detail how you want it work. I can add features quickly when needed But if not a lot of people request a feature I won't add it.
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: timetraveller on May 28, 2011, 01:34:03 PM
One of my users asked for url uploading too. Not that I have the pro version at the moment. He also asked to be able to upload multiple images.

I presume from your earlier answer that sub-categories are available with the pro version.
How do I get the image browsing feature you showed?
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 28, 2011, 02:01:36 PM
I have bulk uploading and subcategories in the pro version.

Image url the main issue I have with that is creating thumbnails,medium sized images. You would still need to download and save the picture for that to happen which then you might as well not have it remotely hosted at all at that point.

The image browsing I would need to find the code that does that exactly.
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: Eudemon on May 28, 2011, 02:05:25 PM
Quote from: vbgamer45 on May 27, 2011, 05:57:01 PM
If you buy I will add it just detail how you want it work. I can add features quickly when needed But if not a lot of people request a feature I won't add it.

alright, i will test out the wordpress one if it doesn't work then i will go for pro ver  :)
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: Biology Forums on June 06, 2011, 03:44:50 PM
How do I get rid of that white patch that shows up whenever the row isn't filled?

Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: vbgamer45 on June 06, 2011, 04:02:02 PM
Will check it out are you using the latest version?
Title: Re: SMF Gallery 3.0.4 (May 27) with SMF 2.0 RC5 Support!
Post by: Biology Forums on June 06, 2011, 07:06:19 PM
Quote from: vbgamer45 on June 06, 2011, 04:02:02 PM
Will check it out are you using the latest version?

Yes, latest version. I've noticed it from the start.

After 5 hours of work, I have revamped the gallery_template.

I found that the original is too <br />-happy lol

Take a look at the changes:

http://biology-forums.com/index.php?action=gallery;sa=view&id=12
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 06, 2011, 08:27:13 PM
Update

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
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 06, 2011, 09:17:33 PM
Quote from: vbgamer45 on June 06, 2011, 08:27:13 PM
Update

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

Can you tell me how to update it manually, I don't want to install, then reinstall. Please :(
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 06, 2011, 09:20:42 PM
If you want to find the exact changes I recommend using Beyond Compare.
Otherwise I just updated Gallery.php and Gallery.template.php
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 06, 2011, 11:14:33 PM
Quote from: vbgamer45 on June 06, 2011, 09:20:42 PM
If you want to find the exact changes I recommend using Beyond Compare.
Otherwise I just updated Gallery.php and Gallery.template.php

You're making this real hard :( It's because I don't have the old version to compare to; only the new version, my version is heavily modified, so it won't cut to the chase.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 06, 2011, 11:17:17 PM
3 lines changed in Gallery.template.php
Check it out using beyond compare it can compare multiple files at once if you made changes yourself to those file.s
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 07, 2011, 12:21:17 AM
lol, then I will pass.

Question, though, is it possible, if someone doesn't provide a description for a picture upload, it states ... Description: No description provided, Instead of being left blank ... Description:

???
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: snooks on June 07, 2011, 02:18:03 AM
Not sure how to upgrade when i try and uninstall the older version i got a error strongly recommending i dont carry on, should i just replace the two files mentioned in your post vbgamer45 ?
thanks
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 07, 2011, 05:59:12 AM
Hello, thanks for a great photogallery!
But would like to ask you if there is any possibility to show random or latest photos on forum home/index page?

Would really need this feature!

Thank you
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 07, 2011, 06:33:28 AM
Quote from: snooks on June 07, 2011, 02:18:03 AM
Not sure how to upgrade when i try and uninstall the older version i got a error strongly recommending i dont carry on, should i just replace the two files mentioned in your post vbgamer45 ?
thanks
Just replace the two files.
If SMF 1.1.x
Copy Gallery.template.php to themes/default
Copy Gallery.php to Sources/
If SMF 2.0.x
Copy Gallery2.template.php to themes/default
Copy Gallery2.php to Sources/
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: timetraveller on June 07, 2011, 07:26:03 AM
Quote from: balou on June 07, 2011, 05:59:12 AM
Hello, thanks for a great photogallery!
But would like to ask you if there is any possibility to show random or latest photos on forum home/index page?

Would really need this feature!

Thank you

I use SimplePortal for my homepage and it's one of the block options, so it's definitely possible :)
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: snooks on June 07, 2011, 08:43:54 AM
Quote from: vbgamer45 on June 07, 2011, 06:33:28 AM
Quote from: snooks on June 07, 2011, 02:18:03 AM
Not sure how to upgrade when i try and uninstall the older version i got a error strongly recommending i dont carry on, should i just replace the two files mentioned in your post vbgamer45 ?
thanks
Just replace the two files.
If SMF 1.1.x
Copy Gallery.template.php to themes/default
Copy Gallery.php to Sources/
If SMF 2.0.x
Copy Gallery2.template.php to themes/default
Copy Gallery2.php to Sources/

Perfect thank you !!
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 07, 2011, 08:45:54 AM
Quote from: shuban on June 07, 2011, 12:21:17 AM
lol, then I will pass.

Question, though, is it possible, if someone doesn't provide a description for a picture upload, it states ... Description: No description provided, Instead of being left blank ... Description:

???
Maybe just not show the description field at all in that case
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 07, 2011, 05:31:33 PM
You could do that as well, what would you have to do for both?
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 07, 2011, 05:34:23 PM
I can do it for next update.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 07, 2011, 07:27:18 PM
Quote from: vbgamer45 on June 07, 2011, 05:34:23 PM
I can do it for next update.

Could you show me though? Or are you just not interested right now, if so, it's okay, I will figure it out myself.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 07, 2011, 08:27:25 PM
It would be in the gallery.template.php in template_view_picture function you can do an empty() check on the descripton or show a text string if needed.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 08, 2011, 02:22:38 AM
Quote from: vbgamer45 on June 07, 2011, 08:27:25 PM
It would be in the gallery.template.php in template_view_picture function you can do an empty() check on the descripton or show a text string if needed.

I guess it would be something like, if empty echo nothing, else, description; On the same note, I also noticed that the comments box shows "Comments" and nothing underneath during guest view (assuming that no one has posted a comment on the picture); why not just remove the whole comments box there are not comments and the user viewing is not logged in. I will look at that later.

But thanks.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 08, 2011, 04:49:29 AM
Would this be easy to configurate? To be able to show this photos on first page? Do I need to uninstall the photogallery smf lite?


Quote from: timetraveller on June 07, 2011, 07:26:03 AM
Quote from: balou on June 07, 2011, 05:59:12 AM
Hello, thanks for a great photogallery!
But would like to ask you if there is any possibility to show random or latest photos on forum home/index page?

Would really need this feature!

Thank you

I use SimplePortal for my homepage and it's one of the block options, so it's definitely possible :)
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 08, 2011, 08:00:31 AM
Quote from: balou on June 08, 2011, 04:49:29 AM
Would this be easy to configurate? To be able to show this photos on first page? Do I need to uninstall the photogallery smf lite?


Quote from: timetraveller on June 07, 2011, 07:26:03 AM
Quote from: balou on June 07, 2011, 05:59:12 AM
Hello, thanks for a great photogallery!
But would like to ask you if there is any possibility to show random or latest photos on forum home/index page?

Would really need this feature!

Thank you

I use SimplePortal for my homepage and it's one of the block options, so it's definitely possible :)
Easy to setup if you use a portal like SimplePortal or ezPortal no need to uninstall
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 08, 2011, 08:30:22 PM
Here's the code to do this:

if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '';

else '';

echo '';


Enjoy :)
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 08, 2011, 08:46:02 PM
Thanks for the post should be helpful for others!
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Inti31 on June 09, 2011, 02:37:53 AM
I like your gallery...

My forum version is 2 rc 5 german-utf-8 / the gallery: http://epica-forum.de/index.php?action=gallery
addition: I just finished installing the new version '305de' in my test forum: http://aida32-inventory.netboom.de/smf/index.php?action=gallery

by the way:
Iwould be glad if you could include the attached german-utf8 language translation file and  in the next release and
also the german-utf8 strings (code snippets) in smf2gallery.xml - thank you...

I did that just for rc5...


<file name="$languagedir/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Galerie';
$txt['smfgallery_menu'] = 'Galerie';
$txt['smfgallery_version'] = '3.0.5 Lite';
$txt['smfgallery_admin'] = 'Konfiguration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Galerie';
$txt['permissiongroup_simple_smfgallery'] = 'Nutze die SMF Galerie.';

$txt['permissionname_smfgallery_view'] = 'Zeige SMF Galerie';
$txt['permissionhelp_smfgallery_view'] = 'Erlaube den Mitgliedern dieser Gruppe die Galerie aufzurufen';
$txt['cannot_smfgallery_view'] = 'Es ist Dir nicht erlaubt die Galerie aufzurufen';

$txt['permissionname_smfgallery_add'] = 'Bilder hinzuf&#252;gen';
$txt['permissionhelp_smfgallery_add'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder hinzuzuf&#252;gen.';
$txt['cannot_smfgallery_add'] = 'Es ist Dir nicht erlaubt Bilder hinzuzuf&#252;gen.';

$txt['permissionname_smfgallery_edit'] = 'Eigene Bilder editieren';
$txt['permissionhelp_smfgallery_edit'] = 'Erlaube den Mitgliedern dieser Gruppe ihre eigenen Bilder zu editieren.';
$txt['cannot_smfgallery_edit'] = 'Es ist Dir nicht erlaubt Bilder zu editieren.';

$txt['permissionname_smfgallery_delete'] = 'Eigene Bilder l&#246;schen';
$txt['permissionhelp_smfgallery_delete'] = 'Erlaube den Mitgliedern dieser Gruppe ihre eigenen Bilder zu l&#246;schen.';
$txt['cannot_smfgallery_delete'] = 'Es ist Dir nicht erlaubt Bilder zu l&#246;schen.';

$txt['permissionname_smfgallery_comment'] = 'Kommentare verfassen';
$txt['permissionhelp_smfgallery_comment'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder zu kommentieren.';
$txt['cannot_smfgallery_comment'] = 'Es ist Dir nicht erlaubt Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Bilder/Kommentare melden';
$txt['permissionhelp_smfgallery_report'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder/Kommentare zu melden.';
$txt['cannot_smfgallery_report'] = 'Es ist Dir nicht erlaubt Inhalte zu melden.';

$txt['permissionname_smfgallery_autoapprove'] = 'Automatische Genehmigung aktivieren';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Hochgeladene Bilder von Mitgliedern dieser Gruppe bed&#252;rfen keiner Genehmigung.';

$txt['permissionname_smfgallery_manage'] = 'Galerie verwalten';
$txt['permissionhelp_smfgallery_manage'] = 'Erteile Mitgliedern dieser Gruppe Vollzugriff auf s&#228;mtliche Sicherheitseinstellungen der Galerie (not recommended)';
$txt['cannot_smfgallery_manage'] = 'Es ist Dir nicht erlaubt die Galerie im Gesamten zu verwalten.';


$txt['gallery_form_managecats'] = 'Kategorien verwalten';
$txt['gallery_form_approveimages'] = 'zu genehmigende Bilder';
$txt['gallery_form_reportimages'] = 'gemeldete Bilder';
$txt['gallery_text_settings'] = 'Einstellungen';
//END SMF Gallery Text Strings
]]></add>
</operation>
</file>



<file name="$languagedir/Who.german-utf8.php" error="skip">
<operation error="ignore">
<search position="end"></search>
<add><![CDATA[
// Begin SMF Gallery
$txt['whoall_gallery'] = 'schaut die <a href="' . $scripturl . '?action=gallery">Galerie an</a>';
// END SMF Gallery
]]></add>
</operation>
</file>

Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 09, 2011, 06:04:11 AM
Very kind of you, but sorry for stupidity.. but in what file should this be past in?
and
If I may show what I´m meaning to achieve in my SMF forum!
Random or latest albumpictures on the forum home: http://www.italienforum.nu/

thanks again!

Quote from: shuban on June 08, 2011, 08:30:22 PM
Here's the code to do this:

if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '';

else '';

echo '';


Enjoy :)
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 09, 2011, 10:23:38 AM
That code just hides the description text if there is no description for the picture.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 09, 2011, 10:35:46 PM
Quote from: balou on June 09, 2011, 06:04:11 AM
Very kind of you, but sorry for stupidity.. but in what file should this be past in?
and
If I may show what I´m meaning to achieve in my SMF forum!
Random or latest albumpictures on the forum home: http://www.italienforum.nu/

thanks again!

Quote from: shuban on June 08, 2011, 08:30:22 PM
Here's the code to do this:

if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '';

else '';

echo '';


Enjoy :)

balou, in the gallery_template.php
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 10, 2011, 12:35:35 PM
I would LOVE a related photo pod for this mod!
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 10, 2011, 12:37:08 PM
Quote from: shuban on June 10, 2011, 12:35:35 PM
I would LOVE a related photo pod for this mod!
Sounds like a good idea like on the bottom of the view picture based on keywords,description,title, etc
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 10, 2011, 03:32:45 PM
Quote from: vbgamer45 on June 10, 2011, 12:37:08 PM
Quote from: shuban on June 10, 2011, 12:35:35 PM
I would LOVE a related photo pod for this mod!
Sounds like a good idea like on the bottom of the view picture based on keywords,description,title, etc

Yes and also show a maximum of four thumbnails
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: timetraveller on June 10, 2011, 08:09:27 PM
I would like to be able to scroll through the large images rather than returning to the thumbnails every time.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 11, 2011, 06:00:53 AM
thanks for your kind help. In the SMFGallery3.0.4 folder I find Gallery.template is this the one? Second, between where do I paste this code ?  ???





Quote from: shuban on June 09, 2011, 10:35:46 PM
Quote from: balou on June 09, 2011, 06:04:11 AM
Very kind of you, but sorry for stupidity.. but in what file should this be past in?
and
If I may show what I´m meaning to achieve in my SMF forum!
Random or latest albumpictures on the forum home: http://www.italienforum.nu/

thanks again!

Quote from: shuban on June 08, 2011, 08:30:22 PM
Here's the code to do this:

if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '';

else '';

echo '';


Enjoy :)

balou, in the gallery_template.php
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 11, 2011, 02:02:49 PM
Find:

<td>
<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '
<hr />


Replace with:

<td>';


if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '<hr />';

else '';

echo '
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

thank you


Quote from: shuban on June 11, 2011, 02:02:49 PM
Find:

<td>
<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '
<hr />


Replace with:

<td>';


if ($context['gallery_pic']['description'] != '')

echo '


<b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '<hr />';

else '';

echo '

Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Ascot on June 11, 2011, 03:38:04 PM
hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 11, 2011, 08:09:13 PM
Quote from: Lük· on June 11, 2011, 03:38:04 PM
hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)

External images are a little tricky. Do you want it to store any pictures at all on your host. I can either download it or download it and create thumbnail then delete the downloaded file but use downloaded file as thumbnail
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Ascot on June 12, 2011, 12:13:12 AM
Quote from: vbgamer45 on June 11, 2011, 08:09:13 PM
Quote from: Lük· on June 11, 2011, 03:38:04 PM
hi there. Awesome mod !!!
thanks a lot.

A little question. How can i make uploads track images from external urls instead it upload to my host?
Hope you can help me.
Thanks in advance~ :)

External images are a little tricky. Do you want it to store any pictures at all on your host. I can either download it or download it and create thumbnail then delete the downloaded file but use downloaded file as thumbnail

hi!, thanks for your answer.
What i really want is to load picture from external URLs and disable image hosting for saving host storage.  (exactly as Avatars).Thumbnail could make automatically trhough css redimention.

Is that possible?
Regards~
Luke
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 12:16:51 AM
I would like to see an example with h css redimention or code how to do it haven't' done much css work.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Ascot on June 12, 2011, 12:52:06 AM
For resize images you can use property max-width / max-height.
If you only use max-width, height will decrease proportional to width and same case for max-height.
This is an example class. You can add it in default theme, index.css


.thumbnail {
max-width:100px;
max-height:150px;
}


Your html should look like this
<img class="thumbnail" src="imgUrl" >
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 12:53:23 AM
Awesome that is a cool tip to know will use that then.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 12, 2011, 12:53:43 AM
 :( I´ve installed Highslide now, but after that can´t find site, HTTP 500 error..   now I´m really lost  :-\

Quote from: shuban on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 12, 2011, 02:08:44 AM
Here is my gallery.template.php; replace yours with mine temporarily and tell me if it works.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Ascot on June 12, 2011, 12:15:18 PM
Quote from: vbgamer45 on June 12, 2011, 12:53:23 AM
Awesome that is a cool tip to know will use that then.
Cool, glad to help you.
Are you able to help me too please?
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 01:46:35 PM
Yeah hopefully will get some time soon remind me.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: eric1234 on June 12, 2011, 03:23:40 PM
The pictures that users upgrade into the forum with this SMF, all the space that the picture used will be in my host's disk usage?
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 03:28:51 PM
Yes pictures are currently stored on your server and if you upgrade smf versions all data is safe.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 12, 2011, 04:29:44 PM
vbgamer45, Could you please provide me the code for next/previous buttons for the images?
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 05:12:45 PM
Might just add it to lite have in pro but that code is different than the one needed here
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 12, 2011, 06:03:09 PM
Quote from: vbgamer45 on June 12, 2011, 05:12:45 PM
Might just add it to lite have in pro but that code is different than the one needed here

Thanks, how long to do I have to wait? I'm anxious.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 12, 2011, 07:15:56 PM
Couple days just remind me if I forget
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 12, 2011, 09:01:37 PM
Quote from: vbgamer45 on June 12, 2011, 07:15:56 PM
Couple days just remind me if I forget

Will do, can't wait for the upgrade.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 01:26:59 AM
I want to report a bug: I allow guests to post comments, but when I click add comment as a guest, it says you have to register.

Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 13, 2011, 06:33:21 AM
Yes thank you, I´ve replaced that now. But after I enabled the highslide before, the forum/site is gone, now I really need some help  :( What to do if I can´t reach the website!?


Quote from: shuban on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: vbgamer45 on June 13, 2011, 09:40:00 AM
Quote from: shuban on June 13, 2011, 01:26:59 AM
I want to report a bug: I allow guests to post comments, but when I click add comment as a guest, it says you have to register.


Will check that out what SMF version?
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 11:39:30 AM
1.1.13
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 11:41:14 AM
Quote from: balou on June 13, 2011, 06:33:21 AM
Yes thank you, I´ve replaced that now. But after I enabled the highslide before, the forum/site is gone, now I really need some help  :( What to do if I can´t reach the website!?


Quote from: shuban on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.

Put a new gallery.template.php in the directory if that's the only thing you changed. Otherwise, I'm unsure where the error is. You could use Google Chrome and it will tell you exact where the problem is if it's a coding error. If this happened after highslide installation, unparse the installation code.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 13, 2011, 01:19:07 PM
Lost the website after I intergrated the Highslide! Now I dont know how to get it back, HTTP 500 it says??? I haven´t changed anything else except that.

thank you for any help!


Quote from: shuban on June 13, 2011, 11:41:14 AM
Quote from: balou on June 13, 2011, 06:33:21 AM
Yes thank you, I´ve replaced that now. But after I enabled the highslide before, the forum/site is gone, now I really need some help  :( What to do if I can´t reach the website!?


Quote from: shuban on June 11, 2011, 10:19:11 PM
Quote from: balou on June 11, 2011, 03:36:49 PM
Hmm now I done it like that, but the pictures doesn´t appear, do I need to enable something?

It should work right away, without enabling anything else. It doesn't interact with the picture part of the code, so I don't see why it's doing that. Do you want my gallery.template.php? You will need Highslide installed, though.

Put a new gallery.template.php in the directory if that's the only thing you changed. Otherwise, I'm unsure where the error is. You could use Google Chrome and it will tell you exact where the problem is if it's a coding error. If this happened after highslide installation, unparse the installation code.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 02:37:07 PM
Upload your index.template and display template and I will fix it.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 05:29:22 PM
I have the following code which works for highslide, but it returns the thumbnail as opposed to the actual image, how can I change it so that it returns the image rather than the thumbnail when clicked:

echo '<a href="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" class="highslide" rel="highslide">

<img src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" height="78" width="120"></a><br />';


Here is an example, scroll to the bottom:

http://biology-forums.com/index.php?action=gallery

I also found this: http://www.simplemachines.org/community/index.php?topic=266750.msg1741763;topicseen#msg1741763

But I don't know how to apply it.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: Vitti on June 13, 2011, 09:10:49 PM
I just uploaded the newest version of this mod (3.0.6) to my server and it will not install.  Keeps giving me the message "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I am running 2.0 RC5.  The package shows up on the package list, but with no option to install.

I had an older version of the gallery running just fine on 1.1.x and I upgraded the forum to 2.0.

Any idea what is going on here?  How do I install it manually?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 13, 2011, 09:47:37 PM
New update

3.1
+Added next/previous links to the picture display
!Allowed guests to leave comments
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 10:27:25 PM
Quote from: vbgamer45 on June 13, 2011, 09:47:37 PM
New update

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

Could you please tell me which files you updated for the, guests allowed to post, change? I replaced my gallery.php with the new one and changed the gallery.template.php to have next/previous and that new feature worked. Are there changes to the gallery.template.php to make the guest-posting work?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 13, 2011, 10:51:56 PM
For guest posting of comments it should just in the Gallery.php files I removed the one line that checked for is not guest
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 13, 2011, 11:17:13 PM
Quote from: vbgamer45 on June 13, 2011, 10:51:56 PM
For guest posting of comments it should just in the Gallery.php files I removed the one line that checked for is not guest

Still doesn't work though, I tried to post as a guest, and I wrote the message in the field, but it doesn't show the comment underneath once it returns to the picture. :-\ try it on mine.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 13, 2011, 11:31:56 PM
Quote from: shuban on June 13, 2011, 11:17:13 PM
Quote from: vbgamer45 on June 13, 2011, 10:51:56 PM
For guest posting of comments it should just in the Gallery.php files I removed the one line that checked for is not guest

Still doesn't work though, I tried to post as a guest, and I wrote the message in the field, but it doesn't show the comment underneath once it returns to the picture. :-\ try it on mine.
Reposted an update. Think I have it fixed this time made one more change to Gallery.php
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 14, 2011, 12:37:09 AM
Quote from: vbgamer45 on June 13, 2011, 11:31:56 PM
Quote from: shuban on June 13, 2011, 11:17:13 PM
Quote from: vbgamer45 on June 13, 2011, 10:51:56 PM
For guest posting of comments it should just in the Gallery.php files I removed the one line that checked for is not guest

Still doesn't work though, I tried to post as a guest, and I wrote the message in the field, but it doesn't show the comment underneath once it returns to the picture. :-\ try it on mine.
Reposted an update. Think I have it fixed this time made one more change to Gallery.php

I also found a problem with the tree as well

My forum > Gallery > Gallery > General Biology

Why is it doubled?

Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 14, 2011, 05:42:37 AM
Appreciate all your help, but this is so confusing, I find a index.php in every "catalogue/map", which one should I use?



Quote from: shuban on June 13, 2011, 02:37:07 PM
Upload your index.template and display template and I will fix it.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 14, 2011, 05:52:18 AM
Yes exactly, it happended after the highslide installation. How do I unparse the installation code?

Here is the link:
http://www.piaggioape.org/index.php?PHPSESSID=266c28b9ec84c7207ed3cb2d2840e3bd&
where it says http 500 internal error!  :(


[[/quote]
If this happened after highslide installation, unparse the installation code.
[/quote]
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 14, 2011, 12:52:46 PM
THX, 3.1a(de) works fine. Maybe you could add 'Gallery.german-utf8.php' in the next update... (see attached file).

German utf8-strings for smfgallery2.xml

<file name="$languagedir/Modifications.german-utf8.php">
<operation>
<search position="end"></search>
<add><![CDATA[
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Galerie';
$txt['smfgallery_menu'] = 'Galerie';
$txt['smfgallery_version'] = '3.1.a Lite';
$txt['smfgallery_admin'] = 'Galerie Konfiguration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Galerie';
$txt['permissiongroup_simple_smfgallery'] = 'Nutze die SMF Galerie.';

$txt['permissionname_smfgallery_view'] = 'Zeige SMF Galerie';
$txt['permissionhelp_smfgallery_view'] = 'Erlaube den Mitgliedern dieser Gruppe die Galerie aufzurufen';
$txt['cannot_smfgallery_view'] = 'Es ist Dir nicht erlaubt die Galerie aufzurufen';

$txt['permissionname_smfgallery_add'] = 'Bilder hinzuf&#252;gen';
$txt['permissionhelp_smfgallery_add'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder hinzuzuf&#252;gen.';
$txt['cannot_smfgallery_add'] = 'Es ist Dir nicht erlaubt Bilder hinzuzuf&#252;gen.';

$txt['permissionname_smfgallery_edit'] = 'Eigene Bilder editieren';
$txt['permissionhelp_smfgallery_edit'] = 'Erlaube den Mitgliedern dieser Gruppe ihre eigenen Bilder zu editieren.';
$txt['cannot_smfgallery_edit'] = 'Es ist Dir nicht erlaubt Bilder zu editieren.';

$txt['permissionname_smfgallery_delete'] = 'Eigene Bilder l&#246;schen';
$txt['permissionhelp_smfgallery_delete'] = 'Erlaube den Mitgliedern dieser Gruppe ihre eigenen Bilder zu l&#246;schen.';
$txt['cannot_smfgallery_delete'] = 'Es ist Dir nicht erlaubt Bilder zu l&#246;schen.';

$txt['permissionname_smfgallery_comment'] = 'Kommentare verfassen';
$txt['permissionhelp_smfgallery_comment'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder zu kommentieren.';
$txt['cannot_smfgallery_comment'] = 'Es ist Dir nicht erlaubt Kommentare zu schreiben.';

$txt['permissionname_smfgallery_report'] = 'Bilder/Kommentare melden';
$txt['permissionhelp_smfgallery_report'] = 'Erlaube den Mitgliedern dieser Gruppe Bilder/Kommentare zu melden.';
$txt['cannot_smfgallery_report'] = 'Es ist Dir nicht erlaubt Inhalte zu melden.';

$txt['permissionname_smfgallery_autoapprove'] = 'Automatische Genehmigung aktivieren';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Hochgeladene Bilder von Mitgliedern dieser Gruppe bed&#252;rfen keiner Genehmigung.';

$txt['permissionname_smfgallery_manage'] = 'Galerie verwalten';
$txt['permissionhelp_smfgallery_manage'] = 'Erteile Mitgliedern Vollzugriff auf s&#228;mtliche Sicherheitseinstellungen der Galerie (not recommended)';
$txt['cannot_smfgallery_manage'] = 'Es ist Dir nicht erlaubt die Galerie im Gesamten zu verwalten.';


$txt['gallery_form_managecats'] = 'Kategorien verwalten';
$txt['gallery_form_approveimages'] = 'zu genehmigende Bilder';
$txt['gallery_form_reportimages'] = 'gemeldete Bilder';
$txt['gallery_text_settings'] = 'Einstellungen';
//END SMF Gallery Text Strings
]]></add>
</operation>
</file>


<file name="$languagedir/Who.german-utf8.php">
<operation error="ignore">
<search position="end"></search>
<add><![CDATA[
// Begin SMF Gallery
$txt['whoall_gallery'] = 'schaut die <a href="' . $scripturl . '?action=gallery">Galerie an</a>';
// END SMF Gallery
]]></add>
</operation>
</file>


just a little question - I miss just one permission: to give users permission to build own categories without the oppurtunity to delete created categories are built by other member - possible?

Just installed that gallery in my testboard - everything fine: http://aida32-inventory.netboom.de/smf/index.php?action=gallery


Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 14, 2011, 12:55:29 PM
Thanks for the translation will look into adding it to the package too!
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: EL34 on June 14, 2011, 01:18:45 PM
I am running 3.0.3 currently.

Do I uninstall that version and install the new version?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 14, 2011, 02:01:01 PM
Yes that is the best way or just install over
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 14, 2011, 02:21:20 PM
Quote from: Inti31 on June 14, 2011, 12:52:46 PM
just a little question - I miss just one permission: to give users permission to build own categories without the oppurtunity to delete created categories are built by other member - possible?
any statement to this?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 14, 2011, 02:22:37 PM
Not easily doable.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 14, 2011, 02:26:14 PM
okay... - that means... -It's merely a matter of time or impossible...? - as a said - just a question...
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 14, 2011, 02:34:26 PM
Matter of time.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 14, 2011, 05:51:28 PM
Fixed.
Title: Re: SMF Gallery 3.0.5 (June 6) with SMF 2.0 Support!
Post by: balou on June 15, 2011, 06:04:21 AM
Please if any could give me advice of how to solve this I´d be very happy.



Quote from: balou on June 14, 2011, 05:52:18 AM
Yes exactly, it happended after the highslide installation. How do I unparse the installation code?

Here is the link:
http://www.piaggioape.org/index.php?PHPSESSID=266c28b9ec84c7207ed3cb2d2840e3bd&
where it says http 500 internal error!  :(


[
If this happened after highslide installation, unparse the installation code.
[/quote]
[/quote]
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 15, 2011, 09:52:12 AM
That would be something with file permissions possible if you have a webserver log it might tell you more details.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 15, 2011, 01:46:52 PM
Could you please create a related images pod that shows up at the bottom of the topic display similar to this mod: http://custom.simplemachines.org/mods/index.php?mod=189 ... based on the description and keywords of the image?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 16, 2011, 03:48:08 PM
Major Error in the mod...

When in My Images, if you click next, it goes back to the gallery categories:

$context['page_index'] = constructPageIndex($scripturl . '?action=gallery;cat=' . $cat, $context['start'], $totalPics, $modSettings['gallery_set_images_per_page']);

It should be something like this:

$context['page_index'] = constructPageIndex($scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER, $context['start'], $totalPics, $modSettings['gallery_set_images_per_page']);

But I'm not how to do it...

Way too many glitches in this mod, I'm getting frustrated.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 16, 2011, 04:08:26 PM
It will do that....Next/previous only work well inside categories gets tricky if you do it on other pages like myimages,search results it would have to take in account those conditions as well...
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 16, 2011, 04:39:06 PM
This is a vital change... Switch my previous edit to this:

$context['page_index'] = constructPageIndex($scripturl . '?action=gallery;sa=myimages;u=' . $context['gallery_userid'], $context['start'], $totalPics, $modSettings['gallery_set_images_per_page']);
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 16, 2011, 04:44:30 PM
Oh I see what SMF version is that?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 16, 2011, 08:53:26 PM
1.1.14
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 16, 2011, 09:02:49 PM
I checked the myimages paging section and it is correct. If you are changing that cat link in the image_listing function that will then break paging in category listing.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 17, 2011, 01:53:46 AM
Quote from: vbgamer45 on June 16, 2011, 09:02:49 PM
I checked the myimages paging section and it is correct. If you are changing that cat link in the image_listing function that will then break paging in category listing.

After adding this, it works properly, actually. Prior to it, it didn't.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: balou on June 17, 2011, 05:12:58 AM
thank you Shuban.

Title: Re: SMF Gallery
Post by: Biology Forums on June 17, 2011, 01:34:11 PM
Quote from: RustyBarnacle on May 08, 2008, 02:16:58 PM
I found this code at TP and it works great on my site:


////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 5/9/2007
// 1.7.1
// - quick fix to parsing the url
//
// Updated 5/9/2007
// 1.7
// - added option to view pics that members on your buddy list posted
//
// For list of all previous updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 3;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 0;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 3;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 1;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 1;
// display filesize?
$gal_dispSize = 1;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
}
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}


Just put it in a PHP box.

Is there a way of making this so that the images shown are related to the content of the topic being display?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 17, 2011, 01:41:59 PM
Quote from: balou on June 17, 2011, 05:12:58 AM
thank you Shuban.

Please include Index.template...

Upload these files, it should work now. :)
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: balou on June 18, 2011, 02:30:12 AM
wonderful, so happy now its back online :)
Shuban you´re so helpful, thank you so much!!!

I guess its a not a good idea to use "Highslide" for my forum?
therefore I´ll give up the idea of having a photos on first page?





Quote from: shuban on June 17, 2011, 01:41:59 PM
Quote from: balou on June 17, 2011, 05:12:58 AM
thank you Shuban.

Please include Index.template...

Upload these files, it should work now. :)
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 18, 2011, 03:46:58 AM
Quote from: balou on June 18, 2011, 02:30:12 AM
wonderful, so happy now its back online :)
Shuban you´re so helpful, thank you so much!!!

I guess its a not a good idea to use "Highslide" for my forum?
therefore I´ll give up the idea of having a photos on first page?





Quote from: shuban on June 17, 2011, 01:41:59 PM
Quote from: balou on June 17, 2011, 05:12:58 AM
thank you Shuban.

Please include Index.template...

Upload these files, it should work now. :)

No, it will work, because I noticed the coding was installed 3 times... This is probably because you installed it 3 times, maybe?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: encodeme on June 18, 2011, 07:05:06 AM
Wonderful ..the next/previous buttons are great.
Thanks for all your work
:)
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 18, 2011, 09:57:09 AM
Quote from: encodeme on June 18, 2011, 07:05:06 AM
Wonderful ..the next/previous buttons are great.
Thanks for all your work
:)
Glad you enjoy it!
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 18, 2011, 12:14:35 PM
Quote from: vbgamer45 on June 16, 2011, 04:08:26 PM
....Next/previous only work well inside categories...

Hmmh, I nearly finished testing a lot of mods now in my testforum - everything works ...

Sorry for that stupid question... but where are the next/previous buttons?
Is it missing because of Highslide?

My testforum: http://aida32-inventory.netboom.de/smf/
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 18, 2011, 12:19:01 PM
Previous/next buttons should be on the view picture page.


Edit: I just reuploaded the package to modsite noticed I forget to upgrade the utf8 language package.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 18, 2011, 12:48:11 PM
hmmh.. can't see them here...
Did you have a look in my testforum? Do you see them there? Maybe I got blind...

- i don't care - will do a reinstall a virgin install of 2.0 gold and will add only the gallery - if then the next/previous button are visible - then I've done sth. wrong... :(

Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 18, 2011, 12:51:58 PM
Try to redownload the mod just made an update
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 18, 2011, 01:39:24 PM
I tried - not possible...
If I upload the new version it is marked as outdated.

i did a fresh installation of smf 2 gold and installed only the mod by using the paket manager.
i set the permissions (full access also for guests), created a category and uploaded some pictures.
I don't have the previous/next buttons..
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 18, 2011, 01:43:49 PM
You are missing the text in your translation of gallery.english.php in 3.1 we added new text strings to gallery.english.php file for previous/next
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 18, 2011, 01:56:18 PM
thx, problem solved... - hey, you didn't tell that.... :)

Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 18, 2011, 08:41:30 PM
Glad you were able to get it fixed and working correctly!
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 19, 2011, 12:45:01 AM
What's the difference between your mod and coppermine gallery mod? :-\ I find that one has some good features.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 19, 2011, 12:46:45 AM
Huge differences....pro edition is better compared to coppermine
Ours is focused more on SMF integration theres is not.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Biology Forums on June 19, 2011, 12:48:15 AM
Quote from: vbgamer45 on June 19, 2011, 12:46:45 AM
Huge differences....pro edition is better compared to coppermine
Ours is focused more on SMF integration theres is not.

But in terms of Lite edition, would you say it's superior to it? I like the whole image sliding thing, etc.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 19, 2011, 12:54:14 AM
I haven't really ever used coppermine myself so can't say/give a real opinion
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 19, 2011, 10:28:54 AM
maybe this is said others - but I think this gallery is the best one I tested.
The integration is perfect with the standard theme.

I don't like aeva 1.4w - this gally integration is much better combined with highslide.
I miss only one feature (I already wrote it) that users are not able to manage own categories (create/delete).

suggestion - maybe it is possible to set a standard categorie icon as default?


Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: bluegruntfuttock on June 20, 2011, 08:07:03 AM
Is there a way with the gallery, in the same as a person can post an event in the calendar, and it also appear in one of the chosen boards, that a person can post to the gallery and it also appear in a board or a person post to the board and choose which gallery it appears in?

Also is it possible to move pictures that have already been posted, into the gallery?


Dave
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 20, 2011, 09:22:19 AM
The pro edition has the option to setup autoposting to board on a picture upload which will create a new topic in a board with the title,description,thumbnail and link to full version.

In the lite you can change the category of a picture by clicking on the edit picture link near each picture and then switch the category from there.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 22, 2011, 04:39:25 AM
I checked my logs (on testforum)

this is what is listed:
2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resourceDatei: /.../smf/Themes/default/languages/Gallery.german-utf8.php (portal_above sub template - eval?)
line: 208


That file (Gallery.german-utf8.php) contains just the translated strings.

Maybe this is because of SimplePortal 2.3.3?
I installed the portal after I installed the gallery.

Any idea to get rid of that message?

It's just the message, the gallery runs fine...

Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 22, 2011, 08:34:23 AM
That is not true error line. Read this topic to turn on better error reporting
http://www.simplemachines.org/community/index.php?topic=290186.0
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: Inti31 on June 22, 2011, 08:54:26 AM
Quote from: vbgamer45 on June 22, 2011, 08:34:23 AM
Read this topic to turn on better error reporting
http://www.simplemachines.org/community/index.php?topic=290186.0
I did that already - the messgae is gone - just forgot to inform you... *sorry*
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 01:19:13 PM
I need help with this mod.  I was able to install it, however I can not find the gallery or where to add images.  I want members to be able to see each others gallery and add pictures to their own.

SMF 1.1.14

Site www.blackwateratv.com

Thanks
Mike
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 01:24:15 PM
If you are using a custom theme in 1.1.x you need to add a menu button in the index.template.php

Otherwise normally accessed via menu button which goes to www.site.com/index.php?action=gallery
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 01:26:16 PM
Well that explains it lol....  I will see if I can figure out how to add a button.

Thanks
Mike
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 01:40:14 PM
If not you can attach your index.template.php and I can check it out.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 01:46:01 PM
Quote from: vbgamer45 on June 25, 2011, 01:40:14 PM
If not you can attach your index.template.php and I can check it out.

Here ya go.... That would be much appreciated as I am terrified to write code.  I tried in the default theme and messed it up....Dont want to do that to this one...

Thanks
Mike
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 04:35:16 PM
Updated file attached
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 04:52:41 PM
Deleted old and installed this one but still no gallery button.....  Am I doing something wrong?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: snooks on June 25, 2011, 04:55:10 PM
help please,

I am trying to install this on 2gold but coming across a error, i had this running np with the previous stable version so appreciate any help please

This is my install error http://imageshack.us/photo/my-images/815/unledir.jpg/ it says i need to add something to index.php but which index.php is this also will the error disappear if i add the required code so i am able to install ?

thnx
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 04:58:19 PM
Quote from: mudskipper on June 25, 2011, 04:52:41 PM
Deleted old and installed this one but still no gallery button.....  Am I doing something wrong?
Might need a lagnauge entry in your themes/themename/languages/modifications.english.php if that file exists
Otherwise double check you placed in the right theme that you are using.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 04:59:13 PM
Quote from: snooks on June 25, 2011, 04:55:10 PM
help please,

I am trying to install this on 2gold but coming across a error, i had this running np with the previous stable version so appreciate any help please

This is my install error http://imageshack.us/photo/my-images/815/unledir.jpg/ it says i need to add something to index.php but which index.php is this also will the error disappear if i add the required code so i am able to install ?

thnx
To install. Proceed with normal install. Then make the change manually to your index.php
This index.php is in the main directory of your along with SSI.php
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 05:15:25 PM
Quote from: vbgamer45 on June 25, 2011, 04:58:19 PM
Quote from: mudskipper on June 25, 2011, 04:52:41 PM
Deleted old and installed this one but still no gallery button.....  Am I doing something wrong?
Might need a lagnauge entry in your themes/themename/languages/modifications.english.php if that file exists
Otherwise double check you placed in the right theme that you are using.

Ok, double checked that it was in the right theme and it is.  Here is my english.php
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 10:32:50 PM
Updated file attached
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 25, 2011, 11:38:50 PM
Uploaded but still no gallery button...
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 25, 2011, 11:45:25 PM
What language is your forum using on Server Settings.
Make sure it set to just english and not english utf8
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: snooks on June 26, 2011, 04:15:13 AM
Quote from: vbgamer45 on June 25, 2011, 04:59:13 PM
Quote from: snooks on June 25, 2011, 04:55:10 PM
help please,

I am trying to install this on 2gold but coming across a error, i had this running np with the previous stable version so appreciate any help please

This is my install error http://imageshack.us/photo/my-images/815/unledir.jpg/ it says i need to add something to index.php but which index.php is this also will the error disappear if i add the required code so i am able to install ?

thnx
To install. Proceed with normal install. Then make the change manually to your index.php
This index.php is in the main directory of your along with SSI.php

I searched the file for 'help' => array('Help.php', 'ShowHelp'), and it came back with nothing found ? i have attached my index.php to make sure i have the correct one

thank you
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 26, 2011, 09:13:24 AM
Quote from: vbgamer45 on June 25, 2011, 11:45:25 PM
What language is your forum using on Server Settings.
Make sure it set to just english and not english utf8

Everything seems to be set to english..
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 26, 2011, 09:20:59 AM
Add after

'help' => array('ExtendedHelp.php', 'ShowExtendedHelp'),
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: mudskipper on June 26, 2011, 09:34:16 AM
vbgamer, may I pm you?
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 26, 2011, 10:05:38 AM
Ok doing a lot today so maybe a while.
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: snooks on June 26, 2011, 03:41:03 PM
Problem when i use next image/previous image

GET to /smf/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request


I did what this thread http://www.simplemachines.org/community/index.php?topic=34270 suggested in my main smf folder but still the same issue, any ideas please

ty
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: vbgamer45 on June 26, 2011, 04:09:38 PM
Issue with mod_security you can either contact to disable it or. Open gallery.template and gallery.php and replace ;id= to &id=
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on June 27, 2011, 07:02:39 PM
Minor update bug fix:
3.1.1
!Fixed mod_security issue with previous/next links
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on June 27, 2011, 11:01:40 PM
Problem with Next/Previous. Clicking next takes you to previous and clicking previous takes you to next. I.e. image ID 201, clicking next takes you to 200, rather than 202.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on June 28, 2011, 07:33:10 AM
Hi vbgamer45! I really enjoy your mods, but I also request to host external images at smf gallery, I think it's a good method to safe bandwich. For example, imageshack provides a thumbnail and it could be used for preview images at smf gallery. Thank you for attend my request!
Title: Re: SMF Gallery 3.1 (June 13) with SMF 2.0 Support!
Post by: marielle on July 05, 2011, 07:04:23 PM
Quote from: mudskipper on June 25, 2011, 11:38:50 PM
Uploaded but still no gallery button...
Just did a test install (on smf 1.1.14) and noticed the same thing. But only when logged in as administrator; when logged in as a normal user the gallery button appears.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 05, 2011, 07:19:43 PM
That is unusal normally it is the other way. The gallery button is tied to permissions for SMF Gallery under Admin -> Permissions modify each group.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: marielle on July 09, 2011, 02:35:30 PM
Quote from: vbgamer45 on July 05, 2011, 07:19:43 PM
That is unusal normally it is the other way. The gallery button is tied to permissions for SMF Gallery under Admin -> Permissions modify each group.
Sorry, I the way I put it here may be a bit confusing. For the regular users, I explicitly gave the permissions for 'view gallery', and that works as expected. Admins should have all the permissions, but somehow don't get to see the gallery button in the menu. However, when I go to the gallery url with an admin account, I can view and edit the gallery there. (So the only thing that's missing is the button.)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 09, 2011, 04:03:59 PM
What SMF version are you using? I am wondering if it is theme issue with permissions I haven't run into this issue before.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 18, 2011, 09:31:24 PM
Would really like to know if you'll be adding a "related images" block soon that displays related images to thread content at the bottom of the thread, for example.

If not, how much will it cost for someone to do this for me?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2011, 09:43:30 PM
Bottom of a thread? Or view picture page.

That would involve quite a bit of work. Would require a custom fulltext search system which I have not built before so I would need to learn that. That add database tables to track related pictures,keywords,titles.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 18, 2011, 10:20:09 PM
Quote from: vbgamer45 on July 18, 2011, 09:43:30 PM
Bottom of a thread? Or view picture page.

That would involve quite a bit of work. Would require a custom fulltext search system which I have not built before so I would need to learn that. That add database tables to track related pictures,keywords,titles.

Here is a demo. How much will something like this cost to do? This, mind you, is an excellent feature and will separate your software from all the rest.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2011, 10:26:52 PM
Hmm so on the bottom of the view thread could be done. Umm pricing I could probably include in the Gallery Pro system if you order.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 18, 2011, 10:34:49 PM
Quote from: vbgamer45 on July 18, 2011, 10:26:52 PM
Hmm so on the bottom of the view thread could be done. Umm pricing I could probably include in the Gallery Pro system if you order.

This is an excellent feature and if the pro. edition contained this, I would consider purchasing. However, the lite version is currently doing an excellent job and I do not want to divert from the changes I've made to its gallery-template.php already. Since this new feature is found in the display.template.php, how much would the code cost me only. I'm guessing you'll be embedding the code straight into the display.template.php (that's what I need).
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2011, 10:52:34 PM
The feature by itself would be pretty costly since I am thinking probably four to six hours of work. Would require modifying Gallery.php files and Display.template.php
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 18, 2011, 10:54:23 PM
Well, throw me a price. Remember, this idea could be implemented into the pro. edition and you'll get your money's worth eventually. So, you have a price in mind?

Just to clarify, this feature entails: Images from the gallery that are related to the content in the thread (if the thread has the word heart, then images containing the word "heart" either in the description, title, and/or keyword are displayed underneath the thread). Only four images will be shown and if there are no images related to the thread's content, no block is shown.



Gotta love programming...
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2011, 11:13:16 PM
I am thinking $75 will include a license for Gallery Pro too. If you ever decide to upgrade it is simple and for custom code changes I recommend beyond compare to find code changes between files I use it all the time for that person.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 18, 2011, 11:18:27 PM
So, 75 for related images + Gallery pro. Are you going to go ahead and begin to program this, or will you only do it if I pay upfront?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 18, 2011, 11:19:36 PM
Hmm, maybe half now and the rest on completion?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on July 19, 2011, 12:32:25 AM
Quote from: vbgamer45 on July 18, 2011, 11:19:36 PM
Hmm, maybe half now and the rest on completion?

PM sent.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Inti31 on July 19, 2011, 12:33:27 AM
Quote from: sunilimon on June 28, 2011, 07:33:10 AMbut I also request to host external images at smf gallery, I think it's a good method to safe bandwich.

I implemented postimage.org below the smiley bar. i only upload a small thumbnail and the pictures by postimage.org.
but you could enter links wherever they were hosted.
The picture links by using postimage.org will get automatically into the description area. So could have more than 1 pic inside...
Because I've installed highslide you could start a diashow with all pictures you uploaded by postimage.

One member uploaded more than 60 pictures in one area

see my gallery: http://epica-forum.de/index.php?action=gallery;cat=9
click on the white diashow item - all normal pics you see in that category/gallery are there included.

Also see: that category/gallery:
http://epica-forum.de/index.php?action=gallery;cat=10
it seems there is just one pic inside - but if you open that pic - you see more than 60 pics inside

cheers Inti31
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: kingkingston on July 31, 2011, 03:10:58 PM
Seeing as Aeva Media will eventually be taken off the site, you should add video embedding to this mod and that would make it the most complete mod on the site, i know heaps of people would love it. Anyway just my thoughts.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 31, 2011, 03:14:59 PM
I keep mods separate I do have Simple Audio Video Embeder for embeding of videos in posts.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: kingkingston on July 31, 2011, 03:20:44 PM
Quote from: vbgamer45 on July 31, 2011, 03:14:59 PM
I keep mods separate I do have Simple Audio Video Embeder for embeding of videos in posts.
yeah i have that mod on my website but was just saying would be good if somehow they were compatible and you could embed videos in the gallery.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on July 31, 2011, 03:21:59 PM
Maybe emededing hmm don't think I want to do video uploads since it would require a lot of support
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Adrek on August 02, 2011, 05:26:25 PM
There is any way to import categories and images from Aeva Media?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 02, 2011, 05:29:41 PM
I have importer for Gallery Pro could make it for lite if needed.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Adrek on August 02, 2011, 05:49:49 PM
If you can make it for lite version that would be great ;)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: MrMorph on August 03, 2011, 05:18:54 AM
I would be interested in that too +1  8)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 03, 2011, 09:40:51 AM
I will see what I can do this weekend.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on August 05, 2011, 03:00:46 AM
HI vbgamer45! is there any news about external images embedding? thank you very much!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 05, 2011, 09:46:17 AM
Haven't built anything for that yet main issue with that is thumbnails
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 08, 2011, 06:40:16 PM
i need help!


i tried to manually install the gallery for 1.1.14 and failed...

i installed the mod in packages manager...and then followed the instructions but all the files that i needed to change but they were already changed so there wasnt much for me to edit....


Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 08, 2011, 07:33:38 PM
How did it fail?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 08, 2011, 08:09:08 PM
i meant i failed trying to install it..idk where i messed up...

ive never manually installed anything but like i said



I installed the package then went on to try to edit the files....all the files i found were already modified....
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 08, 2011, 09:24:40 PM
What did it fail on???
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 08, 2011, 09:45:58 PM
im sorry but your not understand me...it didn't fail on anything...all i meant was that i failed trying to install it....i tried to manually install it....i thought i followed all the settings....but the gallery didn't appear....
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 08, 2011, 10:32:57 PM
Recheck all your steps or open support topic with package manager issue. Should work with package manger no need to manual install.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 08, 2011, 11:00:51 PM
why would it work with package manager if im not using the default theme...


when i installed the gallery..i went to gallery configuration and noticed that the gallery url was pointing to another website so i changed it to my site

http://highstateofmind.com/gallery/
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 08, 2011, 11:49:03 PM
Looks like you got it.
You need to modify index.template.php for SMF 1.1.x to include a button
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 09, 2011, 12:20:01 AM
ok can you give me the steps to doing that please!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 09, 2011, 12:44:28 PM
Modify your themes index.template.php find template_menu make a gallery button like the other buttons copy from normal default template for example
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: andyac on August 12, 2011, 09:56:39 PM
i am getting warning errors trying to uninstall. is this normal?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: andyac on August 12, 2011, 10:00:41 PM
*    1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
   2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
*    3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    4.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
*    5.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
*    6.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed
      2.    Replace    ./Sources/Subs.php    Test failed
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test failed
      2.    Replace    ./Sources/ManagePermissions.php    Test failed
*    8.    Execute Modification    ./Sources/PrettyUrls-Filters.php    Test failed
      1.    Add Before    ./Sources/PrettyUrls-Filters.php    Test failed
   9.    Delete File    ./Sources/Gallery2.php    
   10.    Delete File    ./Themes/default/Gallery2.template.php    
   11.    Delete File    ./Themes/default/languages/Gallery.english.php    
   12.    Extract File    ./Themes/default/languages/Gallery.english-utf8.php    
   13.    Execute Code    GalleryUnInstall.php    
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 12, 2011, 10:31:38 PM
That can happen if you have installed other mods on top you would need to uninstall mods in order of last installed or uninstall then manually modify the files that failed.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: andyac on August 12, 2011, 10:49:42 PM
i just nuked my whole site, going to start over.. should i install themes before mods on a new site? does it make a difference? also i see youre a guru here can u tell me what mod does the side blocks on this demo site

http://demos.traxsdownload.com/index.php

please i would like to know
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 12, 2011, 10:57:55 PM
Install themes first so mods can attempt to install. That demo site uses SimplePortal mod.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on August 24, 2011, 02:24:21 PM
Hi vbgamer45

I've recently upgraded my test forum to 2.0 from 1.1.14.  Upon trying to install SMF Gallery Lite on the upgraded forum, I got this error:

Fatal error: Call to undefined function db_query() in /public_html/forum2/Sources/Subs-PrettyUrls.php on line 300

Although it says pretty urls, I don't have pretty urls installed any more (used the pretty url reverter and uninstalled the mod before upgrading).  The shop mod installed fine, it's only the gallery that's giving me this problem.  Then i refresh the page (or press back) and it hasn't installed anything.

Any clues as to what's causing the issue?

Thanks!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 24, 2011, 02:32:28 PM
Pretty urls extra needs to be uninstalled then download the new version.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bluehaze1991 on August 25, 2011, 01:30:01 AM
Quote from: vbgamer45 on August 09, 2011, 12:44:28 PM
Modify your themes index.template.php find template_menu make a gallery button like the other buttons copy from normal default template for example



how do i request a button to be made....and once i get it...how exactly do I make it appear on my site...what do i have to do on index template??
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 25, 2011, 09:43:05 AM
If it is a graphic button you can post in a graphics request board.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on August 26, 2011, 08:20:21 AM
Quote from: vbgamer45 on August 24, 2011, 02:32:28 PM
Pretty urls extra needs to be uninstalled then download the new version.

Thanks vbgamer.  But I uninstalled pretty urls before upgrading and before trying to install the gallery...
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Adrek on August 26, 2011, 02:23:20 PM
Quote from: ph4ntom on August 02, 2011, 05:26:25 PM
There is any way to import categories and images from Aeva Media?

Quote from: vbgamer45 on August 02, 2011, 05:29:41 PM
I have importer for Gallery Pro could make it for lite if needed.

Quote from: ph4ntom on August 02, 2011, 05:49:49 PM
If you can make it for lite version that would be great ;)

Quote from: vbgamer45 on August 03, 2011, 09:40:51 AM
I will see what I can do this weekend.

So i guess this will be available only for Gallery Pro ?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 26, 2011, 02:45:53 PM
Haven't had time lately maybe one day
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on August 27, 2011, 03:08:35 PM
It worked now that I realised what you meant.  Thanks vbgamer! ^^
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on August 27, 2011, 03:12:12 PM
Glad you got it figured out!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mlwheat on September 16, 2011, 11:09:41 PM
I would like posts of pictures and comments thereon to count toward a user's post count.  Is there a way to do this in SMF Gallery Lite?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 16, 2011, 11:36:32 PM
Not at the moment you would need to add code to add picture function.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mlwheat on September 17, 2011, 12:38:21 PM
Gamer:

Thanks for your input.

mlwheat
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 17, 2011, 01:12:59 PM
If you still need help let me know.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: harnser on September 20, 2011, 12:11:56 PM
Hi.  I would like to add the image Title in the thumbnail view (e.g.: under the thumbnail and above Views, Filesize, Date, etc.).  I've found where to locate this in gallery2.template.php but I can't seem to locate the correct SELECT statement in gallery2.php.  Can anyone please give me a line number or the relevant code to search for?

Thank you!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 20, 2011, 03:30:54 PM
Should be in the fist main function it is a conditional for the main categories and the thumbanil listing inside a category
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on September 24, 2011, 10:05:17 AM
Hiya!

I want to move the gallery button on my forum to a drop down menu.  I have a modification that enables custom buttons with drop downs, and I can easily make the gallery appear there.

However, how do I safely remove the gallery button from the main menu, then?

Thanks!

EDIT:  I'm also using the shop modification - would the procedure be the same?  (if not i'll post a similar request in the shop mod thread)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 24, 2011, 10:21:21 AM
What SMF version?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on September 24, 2011, 05:29:06 PM
Hi again.  Sorry, meant to say it's 2.0.1
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 24, 2011, 06:01:04 PM
The menu code is added to
Souces/Subs.php

Search for gallery
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: WantSome on September 25, 2011, 03:07:32 AM
Thanks fbgamer45!  That worked perfectly
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on September 25, 2011, 11:36:56 AM
Glad to help
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: maf_avt on October 01, 2011, 07:49:02 PM
Sorry for my English.
Have one question - can i set up gallery to keep files on diferent server than forum themselve? (IP adress with FTP or maybe another access)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 01, 2011, 08:09:45 PM
Not easily. But if you can create a shared folder on your main hosting account then point the gallery files to that share it would work. And then update the url to point to secondary server.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: maf_avt on October 02, 2011, 02:06:56 PM
Can i simply mount second folder to some virtual folder in var\home? It will work?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 02, 2011, 02:36:36 PM
Yeah that would work. But also you have to have a website on the virtual mount to view the images like imagedomain.com/gallery/  For your gallery url.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: jwrona0001 on October 14, 2011, 03:22:47 PM
New here.  Sorry if this was already asked but my extensive search could not find an answer.
Is there an easy way to increase the default " PHP: Upload Max Filesize  2m "  I would like to allow 4MB pics to be uploaded
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 14, 2011, 03:25:11 PM
Yes here is a link to some information on that
http://www.smfhacks.com/index.php/topic,3498.0.html
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on October 26, 2011, 03:55:04 PM
OK, I still cant get my gallery working.  I really need someone to log into my info and see if they can fix it.  I would greatly appreciate it.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 26, 2011, 03:59:06 PM
What part is broken?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on October 26, 2011, 04:03:16 PM
The tab at the top of the forum does not show up, its just a blank space.  When you click on it, it brings you the gallery, however the buttons there are blank as well.  Here is my site

http://blackwateratv.com/simplemachinesforum/index.php

You gave me some things previously to try, but I am just not capable I guess.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 26, 2011, 04:05:19 PM
You are missing a language string in
themes/customtheme/languages/modifications.english.php
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on October 26, 2011, 05:03:23 PM
Quote from: vbgamer45 on October 26, 2011, 04:05:19 PM
You are missing a language string in
themes/customtheme/languages/modifications.english.php

ok.  do you want me to upload it here so you can take a look at it?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on October 26, 2011, 05:40:54 PM
This is it..

Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 26, 2011, 05:57:14 PM
Updated file attached
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on October 26, 2011, 06:57:53 PM
Quote from: vbgamer45 on October 26, 2011, 05:57:14 PM
Updated file attached

vbgamer, thanks so much for the help on this.  The gallery tab shows up now, however, when you go to it the 3 tabs add picture, my images, and search are broken.  They are there but they show as text with a red x.  Do you have any idea what is causing that?

Thanks
Mike
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 26, 2011, 07:42:27 PM
Attach your sources/Gallery.php and themes/default/Gallery.template.php
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Paraj on October 30, 2011, 12:42:13 AM
Would be nice to have the form fields given the appropriate CSS classes like class="input_text"

EDIT:
I added the CSS classes input_text, input_file and button_submit to the relevant fields for Gallery2.template.php. I've attached a traditional diff and the end result in case anyone wants/needs it. Hopefully I didn't miss any fields.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on October 30, 2011, 02:09:07 PM
Thanks for the updates will look into merging them.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on November 01, 2011, 04:46:05 PM
Here ya go VB..
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Adrek on November 07, 2011, 07:18:27 AM
Lately, this error appears in the logs

http://xxx/index.php?action=gallery;sa=search2;key=
8:Undefined index: searchfor
File: /home/xxx/public_html/Sources/Gallery2.php
Line: 1812


How to fix it?

SMF - 2.0.1
Gallery - 3.1.1
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: DHC on November 08, 2011, 11:34:57 AM
Please clarify a couple of things.

I am using SMF Gallery Lite v 3.1.1 with SMF 2.0.1. The Gallery is populated with several hundred photos in about a dozen categories.

Am I correct that there is NOT a "Most Recent Uploaded Image" option?

What about a "Most Viewed" option?

Is there any way to hold comments in queue until an Admin approves them?

Is automatic resizing only available in the 'Pro' version?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on November 08, 2011, 12:51:49 PM
The most Recent and Most Viewed blocks are in Gallery Pro

Comment Approval should be in Gallery Lite. I think there is an autocomment permission setting.

Autoresize is in SMF Gallery Pro only

Demo of SMF Gallery Pro easy upgrade from lite to pro
http://www.smfhacks.com/storedemo/index.php?action=gallery
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: greddy on November 20, 2011, 04:44:53 PM

question about the pro version: any chance to import complete albums from coppermine or gallery2 (menalto) ?

thx, Peter
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on November 20, 2011, 05:08:13 PM
I have an importer for coppermine have done about two imports so far not perfect but tries to get as much data as it can.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: rocknroller on November 23, 2011, 12:55:31 PM
this is great mod, :)  is it possible to open new category inside one?  8)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on November 23, 2011, 12:58:12 PM
Not in the lite edition built in pro edition for subcategories
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: rocknroller on November 23, 2011, 01:06:43 PM
tnx,  :)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: mudskipper on November 25, 2011, 09:36:13 PM
Quote from: mudskipper on November 01, 2011, 04:46:05 PM
Here ya go VB..

VB,

Did you ever get a chance to look at these and fix em?

Thanks,
Mike
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on November 25, 2011, 11:00:05 PM
Not yet remind me once I get back.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on November 29, 2011, 08:14:41 AM
Hi vb, any new about external images support? I need to save bandwith and monthly transfer. Thank you very much :D
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on November 29, 2011, 08:40:41 AM
Haven't built that yet but will look into it. Main issue has been thumbnail creation etc.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on November 29, 2011, 09:22:46 AM
Thank you very much, I really need this mod :D
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 18, 2011, 10:13:39 PM
Quote from: arreferee on July 31, 2009, 05:47:08 PM
Quote from: arreferee on July 30, 2009, 04:36:42 PM
Quote from: vbgamer45 on July 29, 2009, 11:34:59 PM
Changed the wrong line. That is for category display order since it is the gallery_cat table.

Should be the second select in that template_main function

look for gallery_pic table

I've tried everything I can think of on this line and nothing has worked so far.  It looks to me like the second SELECT line is only giving a count of the total number of pictures in the gallery.  I don't see anywhere that it is showing what order the pictures show up in.

I finally figured this out and it was not in the template_main function.  It is in the template_image_listing function...beginning on line 166.  For others that would like to make this modification, search for "//Show the pictures".  The ORDER BY is about 7 lines below this.

I found it alright, but have not been able to figure out exactly what needs to be changed there, or precisely what it needs to be changed to:

Quote// Show the pictures
      $dbresult = db_query("
      SELECT
         p.ID_PICTURE, p.totalratings, p.rating, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.realName, p.date, p.description, p.mature
      FROM {$db_prefix}gallery_pic as p
      LEFT JOIN {$db_prefix}members AS m ON (p.ID_MEMBER = m.ID_MEMBER) 
      WHERE  p.ID_CAT = $cat AND p.approved = 1 ORDER BY $sortby $orderby
      LIMIT $context[start]," . $modSettings['gallery_set_images_per_page'], __FILE__, __LINE__);
      $rowlevel = 0;
      
      if (!isset($context['gallery_cat_norate']))
         $context['gallery_cat_norate'] = 0;
      
      while($row = mysql_fetch_assoc($dbresult))
      {
         if ($row['mature'] == 1)
         {
            if (CanViewMature() == false)
               $row['thumbfilename'] = 'mature.gif';
         }
         
         
         if ($rowlevel == 0)
            echo '<tr>';

         echo '<td align="center">';
         if (!empty($modSettings['gallery_set_t_title']))   
            echo $row['title'] . '<br />';
         
         echo '<a href="', $scripturl, '?action=gallery;sa=view;id=', $row['ID_PICTURE'], '"><img src="', $modSettings['gallery_url'], $row['thumbfilename'], '" /></a><br />';
         echo '<span class="smalltext">';
         if (!empty($modSettings['gallery_set_t_rating']) && $context['gallery_cat_norate'] != 1)
         {   
            if ($gallerySettings['gallery_points_instead_stars'])
               echo $txt['gallery_form_rating'] . $row['rating'] . '<br />';
            else
               echo $txt['gallery_form_rating'] . GetStarsByPrecent(($row['totalratings'] != 0) ? ($row['rating'] / ($row['totalratings']* 5) * 100) : 0) . '<br />';
         
         }
         
         if (!empty($modSettings['gallery_set_t_views']))
            echo $txt['gallery_text_views'] . $row['views'] . '<br />';
         if (!empty($modSettings['gallery_set_t_filesize']))
            echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
         if (!empty($modSettings['gallery_set_t_date']))   
            echo $txt['gallery_text_date'] . timeformat($row['date']) . '<br />';
         if (!empty($modSettings['gallery_set_t_comment']))   
            echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['commenttotal'] . '</a>)<br />';
         if (!empty($modSettings['gallery_set_t_username']))
         {
            if ($row['realName'] != '')
               echo $txt['gallery_text_by'] . ' <a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">'  . $row['realName'] . '</a><br />';
            else
               echo $txt['gallery_text_by'] . ' ' . $txt['gallery_guest'] . '<br />';
         }
            
         if ($g_manage)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=unapprove;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_unapprove'] . '</a>';
         if ($g_manage || $g_edit_own && $row['ID_MEMBER'] == $ID_MEMBER)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=edit;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_edit'] . '</a>';
         if ($g_manage || $g_delete_own && $row['ID_MEMBER'] == $ID_MEMBER)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=delete;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_delete'] . '</a>';

         echo '</span></td>';


         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '</tr>';
            $rowlevel = 0;
         }
      }
      
      if($rowlevel != 0)
      {
         echo '</tr>';
      }

I tried changing a bunch of stuff in the red area, but nothing seems to work.  Granted, I have no real coding experience, and am easily missing something on syntax or even looking in the wrong place entirely.  Any ideas?  am I even close?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 12:01:26 AM
$sortby $orderby  control that


sortby is the column in the picture table and orderby is either ASC or DESC depending on how you want it ordered
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 07:09:09 AM
Quote from: vbgamer45 on December 19, 2011, 12:01:26 AM
$sortby $orderby  control that


sortby is the column in the picture table and orderby is either ASC or DESC depending on how you want it ordered

Yeah, I realize that $sortby and $orderby control that, but I'm afraid I'm going to need actual explicit instructions on what needs to go where, if anything needs to be replaced, that sort of thing (do I need p.title vs 'p.title' & maybe something with commas added after, etc).  I will continue trying to fidget with it.  I'm trying to get all entries sorted by title alone.  I didn't know it was separated by columns and rows (& do not know how to handle that); that goes to show how well I can read the code.

Regardless, as soon as I get the $, I'm gonna buy the pro version again; it worked great the last time I bought it for my domain, but I decided to wipe everything out and start from scratch when I upgraded my SMF software from 1.1.x to 2.0.1.  I love the pro version, but I just wanna get everything sorted by title until I can upgrade sometime in the next couple weeks.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 10:19:29 AM
replace

AND p.approved = 1 ORDER BY $sortby $orderby


With

AND p.approved = 1 ORDER BY p.title ASC


That will sort pictures by picture name ascending.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 11:57:07 AM
Doesn't seem to work.  Here's my code:

Quote
// Show the pictures
      $dbresult = db_query("
      SELECT
         p.ID_PICTURE, p.totalratings, p.rating, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.realName, p.date, p.description, p.mature
      FROM {$db_prefix}gallery_pic as p
      LEFT JOIN {$db_prefix}members AS m ON (p.ID_MEMBER = m.ID_MEMBER) 
      WHERE  p.ID_CAT = $cat AND p.approved = 1 ORDER BY p.title ASC
 
      
                LIMIT $context[start]," . $modSettings['gallery_set_images_per_page'], __FILE__, __LINE__);
      $rowlevel = 0;
      
      if (!isset($context['gallery_cat_norate']))
         $context['gallery_cat_norate'] = 0;
      
      while($row = mysql_fetch_assoc($dbresult))
      {
         if ($row['mature'] == 1)
         {
            if (CanViewMature() == false)
               $row['thumbfilename'] = 'mature.gif';
         }
         
         
         if ($rowlevel == 0)
            echo '<tr>';

         echo '<td align="center">';
         if (!empty($modSettings['gallery_set_t_title']))   
            echo $row['title'] . '<br />';
         
         echo '<a href="', $scripturl, '?action=gallery;sa=view;id=', $row['ID_PICTURE'], '"><img src="', $modSettings['gallery_url'], $row['thumbfilename'], '" /></a><br />';
         echo '<span class="smalltext">';
         if (!empty($modSettings['gallery_set_t_rating']) && $context['gallery_cat_norate'] != 1)
         {   
            if ($gallerySettings['gallery_points_instead_stars'])
               echo $txt['gallery_form_rating'] . $row['rating'] . '<br />';
            else
               echo $txt['gallery_form_rating'] . GetStarsByPrecent(($row['totalratings'] != 0) ? ($row['rating'] / ($row['totalratings']* 5) * 100) : 0) . '<br />';
         
         }
         
         if (!empty($modSettings['gallery_set_t_views']))
            echo $txt['gallery_text_views'] . $row['views'] . '<br />';
         if (!empty($modSettings['gallery_set_t_filesize']))
            echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
         if (!empty($modSettings['gallery_set_t_date']))   
            echo $txt['gallery_text_date'] . timeformat($row['date']) . '<br />';
         if (!empty($modSettings['gallery_set_t_comment']))   
            echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['commenttotal'] . '</a>)<br />';
         if (!empty($modSettings['gallery_set_t_username']))
         {
            if ($row['realName'] != '')
               echo $txt['gallery_text_by'] . ' <a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">'  . $row['realName'] . '</a><br />';
            else
               echo $txt['gallery_text_by'] . ' ' . $txt['gallery_guest'] . '<br />';
         }
            
         if ($g_manage)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=unapprove;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_unapprove'] . '</a>';
         if ($g_manage || $g_edit_own && $row['ID_MEMBER'] == $ID_MEMBER)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=edit;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_edit'] . '</a>';
         if ($g_manage || $g_delete_own && $row['ID_MEMBER'] == $ID_MEMBER)
            echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=delete;id=' . $row['ID_PICTURE'] . '">' . $txt['gallery_text_delete'] . '</a>';

         echo '</span></td>';


         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '</tr>';
            $rowlevel = 0;
         }
      }
      
      if($rowlevel != 0)
      {
         echo '</tr>';
      }

      mysql_free_result($dbresult);

Do I need to add it anywhere else?  Here's my gallery url: http://zombiedeathhouse.com/community/index.php?action=gallery
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 12:37:10 PM
Not sure were you got that code from what part of the file.

Attach your whole file and tell me where you want to be sorted.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 01:25:38 PM
gallery.template.php from themes/default.

look for: function template_image_listing, scroll down to  // Show the pictures.  What I posted above is all the code from that area.  It's close to the end of the file.

I want the images in any category I'd ever create to automatically be sorted by picture title when people are viewing the gallery.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 01:31:32 PM
The code in the file looks fine. Hard to tell for sort order since do not see title on thumbnail view in the category.

Also make sure you do not have a Gallery.template.php in your themes folder as that will override the one that you have in themes/default folder.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 01:38:44 PM
Quote from: vbgamer45 on December 19, 2011, 01:31:32 PM
The code in the file looks fine. Hard to tell for sort order since do not see title on thumbnail view in the category.

Also make sure you do not have a Gallery.template.php in your themes folder as that will override the one that you have in themes/default folder.
Nope, no extra template files in themes folder.  I tried logging out/back in and restarting my computer just in case I was having trouble with session cookies/cache for some reason not allowing for a decent refresh.  Who knows, maybe it did work fine, but I'm not seeing it on my particular computer.  What is the first poster you see on the thumbnail view in The Poster Pit?  Is it for a movie titled Anthropophagus?  Or is it for Black Sabbath (Las Tres Caras Del Meido)?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 01:51:54 PM
I see the issue wrong file there should be a Gallery2.template.php attached was Gallery.template.php for SMF 1.1.x
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 01:55:42 PM
Um...I do have the gallery2 template, but the one I attached was the one I got when I installed SMF Gallery Lite 3.1.1.  And that's where I got the code from.

I'll open the gallery2 template and make the same changes and see what's what...

brb...


Nevermind...here's the gallery2.template.php:

EDIT:...I've almost got this figured out...when I go to the package manager and look at the files listed, I get the CORRECT gallery.template.php.  But when I look at that file from my webhost control panel, I get something from an old installation of gallery pro for SMF 1.1.x.  Now, I had completely uninstalled it before installing this, so I have no idea why this was left over, but I'm going to try to find this archived file and replace this left over 1.1.x version with it.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 02:41:14 PM
Okay, I deleted the old version (of gallery.template.php) that was accidentally reinstalled from the Pro install from a few years back (I'm not even going to TRY to figure that one out!)  I went into my webhost control panel and redownloaded the exact same zip file I used to install SMF gallery lite 3.1.1, extracted the files, and FTP'd the gallery.template.php file to the correct file in my default theme folder.

But alas, I cannot find "AND p.approved = 1 ORDER BY $sortby $orderby " in this code.  I did find the "function template_image_listing" near the top of the file, but do not know what to put where.  I'll keep looking at the code to see if I can figure it out, but this seems to be written a bit differently.

BTW - thank you for your help and patience with this, vbgamer45!  8)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 02:48:14 PM
Attach the Gallery2.template.php file will take a look.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 02:49:29 PM
Quote from: vbgamer45 on December 19, 2011, 02:48:14 PM
Attach the Gallery2.template.php file will take a look.
It's up there in my last post. :)

I see the // Show the pictures area of the gallery2.template.php file, but it looks substantially different than what we were discussing earlier.  Not sure whether/where to put AND p.approved = 1 ORDER BY p.title ASC.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 02:59:56 PM
Sorry I forgot for that version I need this file Sources/Gallery2.php
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 03:23:55 PM
Here you go...
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 03:26:40 PM
Try this file
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 03:38:05 PM
PERFECTION!  I see where you made the change.

Thanks again for your patience, vbgamer45!  ;D
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2011, 03:41:29 PM
Thanks glad to help. A good tool to check out changes I recommend Beyond Compare free trial too.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dr. Jay Sin on December 19, 2011, 03:47:30 PM
Looks sweet!  Totally bookmarked that.  Looks worth considering for a purchase after the trial, I'll have to check it out.  :)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: reefforum on December 20, 2011, 03:37:30 AM
How difficult would it be for members to receive auto PM every time a comment is posted on their photos?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 10:12:02 AM
Not difficult to do. Would need to be a setting though in case some members don't want a pm.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: reefforum on December 20, 2011, 12:38:54 PM
Quote from: vbgamer45 on December 20, 2011, 10:12:02 AM
Not difficult to do. Would need to be a setting though in case some members don't want a pm.

Any chance you could tell me how to do it?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 12:40:18 PM
You would need to modify the AddComment2 function in the Gallery.php
And then use the sendpm function to send the pm.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 07:03:56 PM
Hello ..I've searched but cant seem to find how to make Gallery Comments Available in the "most recent" comments for the Forum
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 07:21:04 PM
Requires an addon but I can do what SMF version?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 07:35:12 PM
Quote from: vbgamer45 on December 20, 2011, 07:21:04 PM
Requires an addon but I can do what SMF version?

Thanks vbgamer !

Forum version: SMF 2.0.1
http://e85vehicles.com/e85/
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 07:46:30 PM
Code attached you need to do manual edits back ported from Gallery Pro to lite try it if it works

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Gallery  Recent Comments Board Index Mod Strings
$txt['gallerymod_recent_comment'] = 'Recent Comments';
$txt['gallerymod_guest'] = 'Guest';
//END SMF Gallery  Recent Comments Board Index Mod Strings
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Gallery  Recent Comments Board Index Mod Strings
$txt['gallerymod_recent_comment'] = 'Recent Comments';
$txt['gallerymod_guest'] = 'Guest';
//END SMF Gallery  Recent Comments Board Index Mod Strings
]]></add>
</operation>
</file>



<file name="$sourcedir/BoardIndex.php">
<operation>
<search position="after"><![CDATA[$settings['display_recent_bar'] = !empty($settings['number_recent_posts']) ? $settings['number_recent_posts'] : 0;]]></search>
<add><![CDATA[
// Start SMF Gallery Recent Comments Board Index Mod

global $smcFunc;
$dbresult = $smcFunc['db_query']('', "
SELECT
p.ID_PICTURE, p.ID_CAT, p.title, c.ID_MEMBER, c.comment, c.date,
m.real_name, a.title catname, c.ID_COMMENT
FROM ({db_prefix}gallery_comment AS c, {db_prefix}gallery_pic as p)
LEFT JOIN  {db_prefix}gallery_cat AS a ON (a.ID_CAT = p.ID_CAT)
LEFT JOIN {db_prefix}members AS m ON (c.ID_MEMBER = m.ID_MEMBER)
WHERE  c.ID_PICTURE = p.ID_PICTURE AND c.approved = 1 ORDER BY c.ID_COMMENT DESC LIMIT 10");

$context['gallery_comindex'] = array();
while($row = $smcFunc['db_fetch_assoc']($dbresult))
{
$context['gallery_comindex'][] = array(
'ID_PICTURE' => $row['ID_PICTURE'],
'ID_COMMENT' => $row['ID_COMMENT'],
'title' => $row['title'],
'ID_CAT' => $row['ID_CAT'],
'ID_MEMBER' =>  $row['ID_MEMBER'],
'real_name' => $row['real_name'],
'catname' => $row['catname'],
'comment' => $row['comment'],
'date' => timeformat($row['date']),
);

}
$smcFunc['db_free_result']($dbresult);

// END SMF Gallery Recent Comments Board Index Mod

]]>
</add>
</operation>
</file>
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[// Show information about events, birthdays, and holidays on the calendar.]]></search>
<add><![CDATA[
//SMF Gallery Recent Comments Board Index Mod




echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['gallerymod_recent_comment'], '</h4>
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/post/xx.gif" alt="',$txt['gallerymod_recent_comment'], '" />
</p>
';


// Show Comments

echo '<div class="windowbg2 sectionbody hslice clearfix" id="recent_posts_content">
<dl id="infocenter_recentposts" class="middletext">';

global $smcFunc;
foreach ($context['gallery_comindex'] as $pic)
{

echo '
<dt><strong><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $pic['ID_PICTURE'] . '#c' . $pic['ID_COMMENT'] . '">' . (strlen($pic['comment']) > 50 ? $smcFunc['substr']($pic['comment'], 0, 50)  . '...' : substr($pic['comment'], 0, 50))  . '</a></strong> ', $txt['by'], ' ', ($pic['real_name'] != '' ?  '<a href="' . $scripturl . '?action=profile;u=' . $pic['ID_MEMBER'] . '">' . $pic['real_name'] . '</a>' : $txt['gallerymod_guest']) . ' (<a href="' . $scripturl . '?action=gallery;cat=' . $pic['ID_CAT'] . '">' . $pic['catname'] . '</a>)</dt>
<dd>', $pic['date'], '</dd>';


}



echo '
</dl>';

echo '
</div>
</div>
</div>';




//End SMF Gallery Recent Comments Board Index Mod

]]>
</add>
</operation>
</file>
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 08:05:51 PM
Quote from: vbgamer45 on December 20, 2011, 07:46:30 PM
Code attached you need to do manual edits back ported from Gallery Pro to lite try it if it works

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Gallery  Recent Comments Board Index Mod Strings
$txt['gallerymod_recent_comment'] = 'Recent Comments';
$txt['gallerymod_guest'] = 'Guest';
//END SMF Gallery  Recent Comments Board Index Mod Strings
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Gallery  Recent Comments Board Index Mod Strings
$txt['gallerymod_recent_comment'] = 'Recent Comments';
$txt['gallerymod_guest'] = 'Guest';
//END SMF Gallery  Recent Comments Board Index Mod Strings
]]></add>
</operation>
</file>



<file name="$sourcedir/BoardIndex.php">
<operation>
<search position="after"><![CDATA[$settings['display_recent_bar'] = !empty($settings['number_recent_posts']) ? $settings['number_recent_posts'] : 0;]]></search>
<add><![CDATA[
// Start SMF Gallery Recent Comments Board Index Mod

global $smcFunc;
$dbresult = $smcFunc['db_query']('', "
SELECT
p.ID_PICTURE, p.ID_CAT, p.title, c.ID_MEMBER, c.comment, c.date,
m.real_name, a.title catname, c.ID_COMMENT
FROM ({db_prefix}gallery_comment AS c, {db_prefix}gallery_pic as p)
LEFT JOIN  {db_prefix}gallery_cat AS a ON (a.ID_CAT = p.ID_CAT)
LEFT JOIN {db_prefix}members AS m ON (c.ID_MEMBER = m.ID_MEMBER)
WHERE  c.ID_PICTURE = p.ID_PICTURE AND c.approved = 1 ORDER BY c.ID_COMMENT DESC LIMIT 10");

$context['gallery_comindex'] = array();
while($row = $smcFunc['db_fetch_assoc']($dbresult))
{
$context['gallery_comindex'][] = array(
'ID_PICTURE' => $row['ID_PICTURE'],
'ID_COMMENT' => $row['ID_COMMENT'],
'title' => $row['title'],
'ID_CAT' => $row['ID_CAT'],
'ID_MEMBER' =>  $row['ID_MEMBER'],
'real_name' => $row['real_name'],
'catname' => $row['catname'],
'comment' => $row['comment'],
'date' => timeformat($row['date']),
);

}
$smcFunc['db_free_result']($dbresult);

// END SMF Gallery Recent Comments Board Index Mod

]]>
</add>
</operation>
</file>
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[// Show information about events, birthdays, and holidays on the calendar.]]></search>
<add><![CDATA[
//SMF Gallery Recent Comments Board Index Mod




echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['gallerymod_recent_comment'], '</h4>
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/post/xx.gif" alt="',$txt['gallerymod_recent_comment'], '" />
</p>
';


// Show Comments

echo '<div class="windowbg2 sectionbody hslice clearfix" id="recent_posts_content">
<dl id="infocenter_recentposts" class="middletext">';

global $smcFunc;
foreach ($context['gallery_comindex'] as $pic)
{

echo '
<dt><strong><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $pic['ID_PICTURE'] . '#c' . $pic['ID_COMMENT'] . '">' . (strlen($pic['comment']) > 50 ? $smcFunc['substr']($pic['comment'], 0, 50)  . '...' : substr($pic['comment'], 0, 50))  . '</a></strong> ', $txt['by'], ' ', ($pic['real_name'] != '' ?  '<a href="' . $scripturl . '?action=profile;u=' . $pic['ID_MEMBER'] . '">' . $pic['real_name'] . '</a>' : $txt['gallerymod_guest']) . ' (<a href="' . $scripturl . '?action=gallery;cat=' . $pic['ID_CAT'] . '">' . $pic['catname'] . '</a>)</dt>
<dd>', $pic['date'], '</dd>';


}



echo '
</dl>';

echo '
</div>
</div>
</div>';




//End SMF Gallery Recent Comments Board Index Mod

]]>
</add>
</operation>
</file>


vb excuse my ignorance but which file am I making the changes too?  I dont see where Gallery.php , modifications.english.php, BoardIndex.php ? 
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 08:22:19 PM
Put a package together untested try it out.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 08:28:32 PM
Quote from: vbgamer45 on December 20, 2011, 08:22:19 PM
Put a package together untested try it out.

Modification parse error

VB I Installed anyways..not seeing any changes..any permissions/settings I may need to change?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 08:38:31 PM
Uninstall old version and delete and try this
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 08:46:21 PM
Quote from: vbgamer45 on December 20, 2011, 08:38:31 PM
Uninstall old version and delete and try this

OK that installed without any parse errors..once installed  made  a test comment and where my "recent comments" are at the bottom of the page we know get this .. http://e85vehicles.com/images/testcomments.PNG

I'l keep testing if you want..or we can try another time
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 08:49:45 PM
Not sure what that is in the image....That does not look like any of the code from the addon looks like something custom.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 08:55:41 PM
Quote from: vbgamer45 on December 20, 2011, 08:49:45 PM
Not sure what that is in the image....That does not look like any of the code from the addon looks like something custom.

Interesting because I just checked that area (that's where regular form recent posts are (not the sp recent post)) before installing and recent posts was there.. I unistalled the last zip ..and deleted but still there...I do have backup copies ..which backups should I revert to to see if that fixes it?  boardindex?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 08:57:30 PM
Quote from: vbgamer45 on December 20, 2011, 08:49:45 PM
Not sure what that is in the image....That does not look like any of the code from the addon looks like something custom.

my bad VB.. I have no Idea how that SP text block came active.. anyway got rid of that..  I'll reinstall that last zip again
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 09:04:07 PM
Not seeing any difference.. dont worry about it.. I don't want to take anymore of your time on the free version. Appreciate you checking though

Is this ability in the Pro version? I need to upgrade one of these days anyways
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 09:11:42 PM
It is an addon as well for the pro version.

Example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfhacks.com%2Frecentcom.PNG&hash=f9ddc753ff879b9e44ae5037522e2c0aee11aa17)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 09:22:11 PM
Quote from: vbgamer45 on December 20, 2011, 09:11:42 PM
It is an addon as well for the pro version.

Example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfhacks.com%2Frecentcom.PNG&hash=f9ddc753ff879b9e44ae5037522e2c0aee11aa17)

OK Thanks VB..

Calling it a night
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: e85prices on December 20, 2011, 09:32:12 PM
Any Chance at a 2 For the Price of 1 "Holiday Special"  :)  (Maybe  a 24 hour special or something)

I could really use the Pro version on 2 domains..
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 09:39:19 PM
I could do that :) Just order one and pm me paypal email used.
http://www.smfhacks.com/smf-gallery-pro.php

The pro version does add a ton of features and is almost night and day. Plus get access to my addon forum for the gallery as well.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: reefforum on December 20, 2011, 10:55:39 PM
Can I upgrade from lite without losing photos currently in gallery?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 20, 2011, 11:16:39 PM
Quote from: reefforum on December 20, 2011, 10:55:39 PM
Can I upgrade from lite without losing photos currently in gallery?
Yes you can. Easy upgrade. We suggest to uninstall and install the full version. All data,picture files is safe and is a simple upgrade process.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: pixeleyes on December 23, 2011, 12:24:33 AM
Is it possible to add image in gallery by using embed code (from image hosting site)

instead of uploading on same server.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on December 23, 2011, 12:25:42 AM
Currently it requires a picture to be uploaded. You can use bbc code in the image description though.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: JeffP on January 03, 2012, 05:37:22 PM
Hi Guys
Not sure if this is a bug or just something I have not setup correctly.
I have SMF 2.0.2 with Simple Portal 2.3.4 and SMF Gallery Lite 3.1.1a.
Site is http://www.shorkietalk.com (http://www.shorkietalk.com).
You will see a gallery on the front page of a couple of images. If you click on the image or title you will get a 501 error, but a click on the members name is fine.
Any help would be appreciated.
Thanks
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 03, 2012, 06:47:44 PM
Replied on SMFhacks.com as well but here is what I said there

That is caused by mod_security since it does not like ;id= in the url

Check out this link or ask your hosting provider to disable it
http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security


The issue you are having is the portal block which appears to be part of Simple Portal.

Generally what I suggest if you can't disable it via hosting is do search and replace on the gallery files
for

;id=

And replace with

&id=

You would need to the same with the Simple Portal files as well in your case.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: JeffP on January 04, 2012, 02:58:31 AM
Thanks vbgamer45 but I tried the .htaccess fix and it didn't work. I have put a request with the host to disable this.
We will see what happens.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: humbleworld on January 04, 2012, 05:27:32 AM
Hi Vbgamer45, I just tried this mod and it was installed successfully. But I cannot upload an image because it resulted to an error saying I did not choose a category. The problem is that the drop down menu for Category does not work. If click the drop down menu, it does not drop and of course there are no categories to show.

How shall I fix it? Thanks so much, vbgamer45!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 04, 2012, 08:42:24 AM
Quote from: humbleworld on January 04, 2012, 05:27:32 AM
Hi Vbgamer45, I just tried this mod and it was installed successfully. But I cannot upload an image because it resulted to an error saying I did not choose a category. The problem is that the drop down menu for Category does not work. If click the drop down menu, it does not drop and of course there are no categories to show.

How shall I fix it? Thanks so much, vbgamer45!
Did you add any categories? A category is required to add an image.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: humbleworld on January 04, 2012, 09:08:14 AM
I want to add a category but the menu or drop down button/menu does not move. When I click it, it's empty, so no categories to see at all.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 04, 2012, 07:26:58 PM
vbgamer45...

You'd think I'd already know how to do this by now...

Anyhow...trying to remove the "Gallery" menu tab from subs.php and add it as a sub-menu link under "members" tab.  I just removed the code from subs.php and copied and pasted it as a sub array menu item.  Doesn't work...

Any suggestions?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 04, 2012, 07:33:38 PM
For SMF 2.0 you need to clear the file cache. Under Forum Maintenance to take affect.
The menu array is cached
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 04, 2012, 07:42:58 PM
Ahhh...thanks!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 05, 2012, 02:07:44 PM
vbgamer45,

Header text is not middle-aligned in header image for main gallery page, as well as the My Images page (See attached image).  It's centered, vertically, just not horizontally.  Can you direct me to the location of the code to edit and the specific template, please?  Can you also supply me with the proper code to get the text aligned both horizontally/vertically within the header, please?

Thanks, in advance...
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 02:09:36 PM
Files would be in themes/default/Gallery2.template.php
Functions would be template_main and template_myimages.

The code changes that part I am not sure would have to research that myself.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 05, 2012, 02:26:38 PM
I'm assuming this is the code for the main header:
ShowTopGalleryBar($txt['gallery_text_title']);

And for the My Images header is:
ShowTopGalleryBar();

Only thing is...I really wouldn't know how to code this with my limited abilities...

Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 02:35:00 PM
You would look for the ShowTopGalleryBar function.  What controls the style in smf 2.0 is class tag and the div tags around the area
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 05, 2012, 02:46:24 PM
LOL!  Yeah?  And?  ::)

Sorry, not trying to be a wise***.  Just lettin' you know...I'm no coder.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 05, 2012, 02:57:06 PM
Its ok the design stuff I am not great at basically what I do is look for similar code used and then try to adapt into the mods. I tend to prefer tables but in SMF 2.0 mostly divs are used for styling which gets a little tricker.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on January 05, 2012, 02:59:45 PM
Understood...guess I'll just let sleeping dogs lay.  Thanks, anyway...
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: carlosdelarco on January 13, 2012, 06:58:50 PM
I just finished the spanish_es-utf8 translation of this mod. I just attached it to this message.

Regards!!

Edit:

You need to add this to Modifications.spanish_es-utf8.php (you must set UTF-8 code for this file)

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Galería para SMF';
$txt['smfgallery_menu'] = 'Galería';
$txt['smfgallery_version'] = '3.0 Lite';
$txt['smfgallery_admin'] = 'Configuración de la Galería';

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

$txt['permissionname_smfgallery_view'] = 'Ver SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Permitir a los usuarios ver la galería';
$txt['cannot_smfgallery_view'] = 'No tienes permiso para ver la galería';

$txt['permissionname_smfgallery_add'] = 'Añadir imagen';
$txt['permissionhelp_smfgallery_add'] = 'Permitir a los usuarios añadir imágenes.';
$txt['cannot_smfgallery_add'] = 'No tienes permiso para añadir una imagen.';

$txt['permissionname_smfgallery_edit'] = 'Editar imagen propia';
$txt['permissionhelp_smfgallery_edit'] = 'Permitir a los usuarios editar imágenes.';
$txt['cannot_smfgallery_edit'] = 'No tienes permiso para editar la imagen.';

$txt['permissionname_smfgallery_delete'] = 'Borrar imagen propia';
$txt['permissionhelp_smfgallery_delete'] = 'Permitir a los usuarios borrar imágenes.';
$txt['cannot_smfgallery_delete'] = 'No tienes permisos para borrar la imagen.';

$txt['permissionname_smfgallery_comment'] = 'Dejar comentario';
$txt['permissionhelp_smfgallery_comment'] = 'Permitir a los usuarios para dejar comentarios en imágenes.';
$txt['cannot_smfgallery_comment'] = 'No tienes permisos para dejar comentarios.';

$txt['permissionname_smfgallery_report'] = 'Reportar Imágenes/Comentarios';
$txt['permissionhelp_smfgallery_report'] = 'Permitir a los usuarios reportar imágenes y comentarios.';
$txt['cannot_smfgallery_report'] = 'No tienes permiso para reportar contenidos.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto aprobar imágenes';
$txt['permissionhelp_smfgallery_autoapprove'] = 'La imágenes no necesitan ser aprobadas.';

$txt['permissionname_smfgallery_manage'] = 'Gestionar galería';
$txt['permissionhelp_smfgallery_manage'] = 'Permitir a los usuarios añadir/borrar/editar todas las categorias. Borrar comentarios, borrar imágenes, aprobar imágenes';
$txt['cannot_smfgallery_manage'] = 'No tienes permisos para gestionar la galería.';


$txt['gallery_form_managecats'] = 'Gestionar Categorías';
$txt['gallery_form_approveimages'] = 'Aprobar imágenes';
$txt['gallery_form_reportimages'] = 'Imágenes reportadas';
$txt['gallery_text_settings'] = 'Ajustes';

//END SMF Gallery Text Strings


Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 13, 2012, 07:53:12 PM
Thanks again for the translation!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: pols1337 on January 23, 2012, 02:32:58 PM
Dear vbgamer45,

I recently installed your SMF Gallery 3.1.1 for SMF Forum 2.0.2, which is bridged with Coppermine Photo Gallery.  My Coppermine gallery already existed, and resided in http://universeofmen.com/gallery/ 

Well, the SMF Gallery also wanted to place itself into the same folder, and now neither my members nor I can access my original CPG.  We keep getting redirected to http://universeofmen.com/index.php?action=gallery instead of http://universeofmen.com/gallery/

I've already uninstalled the SMF Gallery package, but it does not fix anything. 

1.  I need the redirection fixed.  Now.   >:(

2.  Eventually I'd like to have the gallery up for SMF, but it needs to go into a different subfolder.

Please advise.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 23, 2012, 02:37:10 PM
Inside the gallery folder remove the index.php you may have to replace with a coppermine version.

You can use SMF Gallery with a different url/path just needs to be changed under gallery configuration.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: pols1337 on January 23, 2012, 02:57:17 PM
Thanks.  Resolved.  Overwrote the index.php with the Coppermine index.php and manually removed all of the pictures. 
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: pols1337 on January 24, 2012, 04:13:43 PM
Hi vbgamer,

So I reinstalled the SMF Gallery Lite, and used a different path and url to /smfgallery/ instead of /gallery/, which houses my Coppermine Photo Gallery. 

Unfortunately, the ?action=gallery still overrode the /gallery/ link and redirected my users to the SMF gallery. 

Is there any way the ?action=gallery can be kept separate from /gallery/?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 24, 2012, 04:19:15 PM
Do you have the gallery path and gallery url?  Set.
Make sure you have the new index.php from coppermine in the gallery folder.


Then action=gallery should redirect to SMF Gallery Lite
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: ElectroPheonix on January 25, 2012, 01:36:15 AM
I have installed this and it works perfectly but I have a question about what it can do.

I would like it so that when someone comments on a picture, the picture thread moves to the front page of the gallery. Currently you have to sift through the gallery pages to see which pictures have been commented on... Is there a feature that can make the pictures with comments be placed in the front (just like when forum posts come to the top when someone replies to the topic)?

Thanks
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 25, 2012, 01:16:33 PM
There might be a setting to show recent images on the homepage.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Baloch on January 28, 2012, 06:44:40 AM
Is there anyway to import pictures with comments from
Aeva-Media to newly installed SMF Gallary?

I need to know on urgent bases. Please help me out to resolve this issue.

Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 28, 2012, 10:13:14 AM
Quote from: Baloch on January 28, 2012, 06:44:40 AM
Is there anyway to import pictures with comments from
Aeva-Media to newly installed SMF Gallary?

I need to know on urgent bases. Please help me out to resolve this issue.


I have it in the pro edition of gallery I can make one for lite if needed
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: bigjoe11a on January 31, 2012, 09:37:19 AM
I wanted to update my forums. Do I have to uninstall this mod and then reinstall it after I update my forum.

Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2012, 10:08:23 AM
If you are doing a large upgrade yes such as 1.1.x to 2.0.x
If is a minor patch you do not need to uninstall.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Dewed on January 31, 2012, 05:20:23 PM
Maybe a stupid question, but I've just upgraded to SMF 2.02 (from 2.01) and now I'd like to upgrade SMF Gallery from v3.1.1 

Can I just install the package? 

Do I need to uninstall first? and if so what about current image/categories
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2012, 07:09:26 PM
You can just install the latest version and it will work.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Rob C on February 16, 2012, 06:50:27 PM
I have a user's account get all messed up (different topic and unnecessary) so it was deleted and they started a new account. Now all of the pictures are owned by "Guest" and they would like to have access to them again to edit titles, etc. Can I give those pictures back to this user now that they have a new account? How would I do that? Thanks so much for a great mod!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2012, 07:43:58 PM
It is possible to do but you need to look at the smf_gallery_pic table in the database and find the images that are owned by guest (The user's old ID_MEMBER) and then update the ID_MEMBER field on those pictures to the members' new member id.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Rob C on February 16, 2012, 09:25:41 PM
It may be beyond my ability but where is the database file located?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2012, 09:50:25 PM
Should be in your control panel from your webhosting account under phpMyAdmin
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Rob C on February 17, 2012, 10:46:38 AM
Thank you! I think I got this!  :)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on February 17, 2012, 11:01:07 AM
Let me know if you need anymore help.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: ben sisko on February 21, 2012, 12:28:18 PM
is there any way i can import all gallery items from Aeva Media 1.4b into SMF Gallery and not lose all forum links like this:
[img]http://mysite.com/MGalleryItem.php?id=45[img]
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on February 21, 2012, 03:06:31 PM
Not at the moment the Pro converter does not convert img links inside posts.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: AlexBarsan on March 01, 2012, 10:40:53 AM
One question, as admin how can I move more then one photo from one categry to another, ono by one is possible by clicking Edit, but how can I move about 30 photos at once, thanks!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on March 01, 2012, 11:04:14 AM
Currently that is the only way to move pictures unless you go using the database with an sql query.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on March 05, 2012, 08:42:12 PM
vbgamer,

I had my link to the gallery moved as a tab and added as a menu item in my Members tab sub-menu.  I decided I wanted to move the arcade link there, as well.  So I added the arcade link and now the gallery link went away.

Here is that part of code from my Subs.php file.  Do you think you can help me find what I did wrong, please?  Thanks, in advance...

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'] . '-' . empty($context['disable_sp']), $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
// [Staff] button
'staff' => array(
'title' => $txt['smfstaff_stafflist'],
'href' => $scripturl . '?action=staff',
'show' => $context['allow_view_stafflist'],
'icon' => '',
'is_last' => true,
),
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
// Glossary Mod
'glossary' => array(
'title' => $txt['glossary'],
'href' => $scripturl . '?action=glossary',
'show' => $context['allow_view_glossary'],
'is_last' => true,
),
),
),
'irc' => array(
'title' => 'IRC',
'href' => "http://glitchpc.net/index.php/page,irc_chat.html",
'show' => true,
'target' => "_blank",
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
'portal' => array(
'title' => $txt['sp-adminCatTitle'],
'href' => $scripturl . '?action=admin;area=portalconfig',
'show' => allowedTo(array('sp_admin', 'sp_manage_settings')),
'is_last' => true,
),
),
),
'moderate' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => $context['allow_moderation_center'],
'sub_buttons' => array(
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !empty($modSettings['modlog_enabled']) && !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => $modSettings['postmod_active'] && !empty($user_info['mod_cache']['ap']),
),
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
'is_last' => true,
),
),
),
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
'is_last' => true,
),
),
),
'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
'is_last' => true,
),
),
),
//Begin SMFQuiz
'SMFQuiz' => array(
'title' => $txt['SMFQuiz'],
'href' => $scripturl . '?action=SMFQuiz',
'show' => allowedTo('quiz_view'),
'sub_buttons' => array(
),
),
//End SMFQuiz
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
'view' => array(
'title' => $txt['calendar_menu'],
'href' => $scripturl . '?action=calendar',
'show' => allowedTo('calendar_post'),
),
'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
'is_last' => true,
),
),
),

// [Contact Page] button
'contact' => array(
'title' => $txt['smfcontact_contact'],
'href' => $scripturl . '?action=contact',
'show' => $context['allow_view_contact'],
'icon' => '',
),
           
// [Links button]
'links' => array(
'title' => $txt['smflinks_menu'],
'href' => $scripturl . '?action=links',
'show' => $context['allow_view_smflinks'],
'icon' => '',
),

'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
'arcade' => array(
'title' => $txt['arcade'],
'href' => $scripturl . '?action=arcade',
'show' => allowedTo('arcade_view'),
'sub_buttons' => array(
),
// [SMF Gallery] button
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
'is_last' => true,
),
),
),
),

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),

'treasury' => array(
'title' => $txt['treasury_menu'],
'href' => $scripturl . '?action=treasury',
'show' => $context['allow_view_treasury'],
'sub_buttons' => array(
),
),
'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
);
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on March 05, 2012, 08:50:43 PM
In the arcade button you have

'sub_buttons' => array(


Which is missing a ), closing or you have it moved in the ending area instead
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: GlitchPC on March 05, 2012, 08:55:01 PM
Yep...you were right!  Thanks, a bunch!
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on March 05, 2012, 09:01:33 PM
Glad to help.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: OCJ on March 06, 2012, 04:55:16 AM
Nice simple gallery but I cannot use it as it opens images to full size on clicking the thumbnail rather than to a reasonable page resize - goes way off the page to the right embedded in the template. Guess the paid version is better at this.
A resize image view would be nice with a full size in a new window or on click of resize image.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Inti31 on March 06, 2012, 07:27:10 AM
Quote from: igirisjin on March 06, 2012, 04:55:16 AMA resize image view would be nice with a full size in a new window or on click of resize image.

we 'missue' the gallery for that - we just use the description area to place/embed picture hosted by external pichoster like postimage.org.
So we upload just a little preview pic...

advantage: we only host that little pic on our webserver and the embedded pics are slidable... instead of clicking every time on nexr

example:
http://epica-forum.de/index.php?action=gallery;sa=view;pic=33

http://hfc2005.de/forum/smf/index.php?action=gallery;cat=4

or that one: http://forum.die-trennungsseite.de/index.php?action=gallery;cat=10

so that works nice and we use one pic just as a 2nd category
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: OCJ on March 06, 2012, 07:34:53 AM
Members want to share large photos and do not want to upload resizes one place and full size another place... too much duplication... and nobody likes making extra accounts for other sites to do the same job the gallery should do.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Inti31 on March 06, 2012, 08:08:16 AM
that is how it works - we upload large photos to postimage.org/imageshack.us and embed them into the description field.
it is shown a little bit smaller - but when you click on it, you can slide through every pic is embedded, also you can download it in its origin size... - so there is no limit.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on April 02, 2012, 06:48:23 PM
I've finalized the look on my gallery, any other suggestions?

http://biology-forums.com/index.php?action=gallery;sa=view;id=154
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on April 02, 2012, 08:25:15 PM
Gallery looks great. That is the most customized version of the gallery I have seen to date.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on April 02, 2012, 08:44:55 PM
Quote from: vbgamer45 on April 02, 2012, 08:25:15 PM
Gallery looks great. That is the most customized version of the gallery I have seen to date.

Thanks, if only you knew how much time it took! lol O:)
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on April 05, 2012, 12:39:56 PM
Hi vbgamer45! is there any new about external images support? I think this feature is so interesting to all people who has little hosting space
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on April 05, 2012, 12:52:41 PM
Nothing yet.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Zuća on April 07, 2012, 04:47:26 PM
how to change name "gallery" in menu ... modifications.english.php ?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on April 07, 2012, 05:09:06 PM
Yes it is in themes/default/languages/modifications.english.php
If using SMF 2.0 you have to clear the cache too.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Zuća on April 22, 2012, 04:23:34 PM
how to resize images when viewing ,as on aeva media (+ zoom in , - zoom out) ???
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on April 22, 2012, 04:24:49 PM
No built in javascript based zoom in and out in the lite edition. Do have highslide to enlarge images in the pro edition.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on April 26, 2012, 11:43:46 PM
There are a lot of members adding really small images. Is it possible to put a limitation for minimum height or minimum width?

I'm using the pro. version, and I still have a few months left on my 1 years subscription. :(
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on April 27, 2012, 12:31:51 AM
Quote from: Liam_michael on April 26, 2012, 11:43:46 PM
There are a lot of members adding really small images. Is it possible to put a limitation for minimum height or minimum width?

I'm using the pro. version, and I still have a few months left on my 1 years subscription. :(
For prop feature request posts on smfhacks.com so I don't miss the topic.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 03, 2012, 09:20:40 PM
Is there a possiblity you can add a recent comment block?

Like this: http://www.flying-bits.org/gallery/index.php

AND...

A column for LAST IMAGE?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 03, 2012, 10:06:02 PM
Possibly please post these on SMFHacks.com since that is were I keep track of feature requests for the pro edition.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on May 05, 2012, 07:45:38 AM
Hi vbgamer45, is there any possibility to upload more than 1 photo per thread?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 05, 2012, 12:20:30 PM
Per thread? In Pro we have bulk upload which allows you to upload multiple images at one time.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on May 05, 2012, 01:37:43 PM
Sorry, I've not explained correctly, I would like know if an user can create an own album. For example: my vacation photos and this user post all photos into this personal album. Sorry for confusion :D
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 05, 2012, 02:09:56 PM
Yeah for User albums/personal galleries that is a feature of the pro edition of this mod.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: sunilimon on May 05, 2012, 02:12:54 PM
Thanks for your answer! :D
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 24, 2012, 08:17:53 PM
I find that after uploading an image, it doesn't return back to the uploaded image, but returns to the main gallery category selection. How do I configure it to return to the image that was just uploaded?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: SMFHacks.com Team on May 24, 2012, 08:31:08 PM
You would change the redirectexit call in the addpicture2 function to point back to picture id action=gallery;sa=view;id=###

Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 24, 2012, 09:04:49 PM
Quote from: SMFHacks.com Team on May 24, 2012, 08:31:08 PM
You would change the redirectexit call in the addpicture2 function to point back to picture id action=gallery;sa=view;id=###

Could you elaborate, here's what I found:

if (isset($_REQUEST['copyimage']))
{
redirectexit('action=gallery;sa=copyimage;id=' . $gallery_pic_id);
}
else if (isset($_SESSION['last_gallery_url']))
{
redirectexit($_SESSION['last_gallery_url']);
}
else
{
// Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);
}
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: SMFHacks.com Team on May 24, 2012, 09:11:04 PM
That's it modifiy

// Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);

To
redirectexit('action=gallery;sa=view;id=' . $gallery_pic_id);
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 25, 2012, 07:29:34 PM
Quote from: SMFHacks.com Team on May 24, 2012, 09:11:04 PM
That's it modifiy

// Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);

To
redirectexit('action=gallery;sa=view;id=' . $gallery_pic_id);

Thanks, check it out: http://biology-forums.com/index.php?action=gallery;sa=view;id=464
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 25, 2012, 07:39:25 PM
Awesome glad to help
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 25, 2012, 07:53:04 PM
Quote from: vbgamer45 on May 25, 2012, 07:39:25 PM
Awesome glad to help

vbgamer45, did you ever get around to creating a "related topics" block that displays topics related to the image?
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 25, 2012, 07:55:16 PM
Probably not I think I did a related images block.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Biology Forums on May 25, 2012, 08:02:05 PM
Quote from: vbgamer45 on May 25, 2012, 07:55:16 PM
Probably not I think I did a related images block.

That was for me, but now I'm in need of the opposite. :(
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: vbgamer45 on May 25, 2012, 08:36:31 PM
Don't have any time at the moment to write code for specific requests.
Title: Re: SMF Gallery 3.1.1 (June 27) with SMF 2.0 Support!
Post by: Shambles on May 29, 2012, 02:51:24 PM
How can I prevent the Google Crawlers causing this error?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FDwFhb.jpg&hash=6c3585c3256b3b50e2fd49875e981315194beda9)

It's only ever Google IP addresses that cause this, but it's several times a day  :o

Platform Details:
SMF 2.0.2
Simple Portal 2.3.5
MySQL version: 5.0.95-community
eAccelerator: 0.9.6.1
PHP: 5.2.17

Modifications:

1. Countdown BBCode 2.0.1
2. SimplePortal 2.3.5
3. Aeva ~ Auto-Embed Video & Audio 7.2
4. SMF Gallery Lite 3.1.1a
5. PageDropdown 1.4
6. Highslide 4 SMF 0.8.1
7. Contact Form 1.1
8. Separate the sticky topics 1.0.0
9. Google Analytics Code 1.4
10. Google Translate for SMF 2.0 1.1
11. Email Template Editor 1.0
12. Float BBCODE 1.0.2
13. Moderator and Administrator Comment Tags 1.8.1
14. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.1
15. SMF 2.0.2 Update 1.0
16. Tidy Child Boards 1.4
17. Member Color Link 3.1
18. Auto Purge Old Topics 1.2
19. Default Avatar 2.2
20. Double Check your Email in Registration by SmfSimple.com 1.0
21. Hide Signatures from Guests 2.0
22. Display Signatures Only Once Per Page 1.0.3
23. Hide Avatars from Guests 2.0
24. Auto Lock Old Topics 1.3
25. Copy Topics 1.6
26. Thank-o-matic 3.0
27. SMF 2.0.1 Update 1.0
28. BCC Messages 1.2
29. Happy Birthday 0.3
30. PNG Message Icons 1.3.1
31. Enable or Disable "« Last Edit: by »" for Administrators 1.3a
32. james bond avatars 1.0
33. Dog Avatars 1.0
34. Cat Avatars 1.0
35. Country_Flagatars 1.1
36. Welcome Topic Mod 2.1
37. Removes the post rank if a custom title is set 1.1
38. Hide User Names from Guests 1.1
39. Bookmarks 2.3
40. MessagePreviewOnHover 1.8
41. SMF Arcade 2.5 RC1
42. httpBL 2.5.1
43. Stop Spammer 2.3.9
44. [BBCode] Blink 1.0
45. Country Flags 1.1.2
46. Spoiler Tag 0.7.2a
47. Add Join Date to Post 1.0
48. [BBCode] Dotted Underline 1.0


Code reported in error message:
Sources/Gallery2.php around line 579


    $dbresult = $smcFunc['db_query']('', "
SELECT
c.id_picture, c.id_comment, c.date, c.comment, c.id_member, m.posts, m.member_name, m.real_name
FROM {db_prefix}gallery_comment as c
LEFT JOIN {db_prefix}members AS m ON (c.id_member = m.id_member)
579 WHERE c.id_picture = " . $context['gallery_pic']['id_picture'] . " ORDER BY c.id_comment DESC" );

$context['gallery_comment_count'] = $smcFunc['db_affected_rows']();
$context['gallery_comment_list'] = array();


The error is not caused by anyone else viewing or updating our gallery (which is splendid I have to say :))
Title: Re: SMF Gallery 3.1.1 (May 29) with SMF 2.0 Support!
Post by: SMFHacks.com Team on May 29, 2012, 07:53:50 PM
Quote from: Shambles on May 29, 2012, 02:51:24 PM
How can I prevent the Google Crawlers causing this error?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FDwFhb.jpg&hash=6c3585c3256b3b50e2fd49875e981315194beda9)

It's only ever Google IP addresses that cause this, but it's several times a day  :o

Platform Details:
SMF 2.0.2
Simple Portal 2.3.5
MySQL version: 5.0.95-community
eAccelerator: 0.9.6.1
PHP: 5.2.17

Modifications:

1. Countdown BBCode 2.0.1
2. SimplePortal 2.3.5
3. Aeva ~ Auto-Embed Video & Audio 7.2
4. SMF Gallery Lite 3.1.1a
5. PageDropdown 1.4
6. Highslide 4 SMF 0.8.1
7. Contact Form 1.1
8. Separate the sticky topics 1.0.0
9. Google Analytics Code 1.4
10. Google Translate for SMF 2.0 1.1
11. Email Template Editor 1.0
12. Float BBCODE 1.0.2
13. Moderator and Administrator Comment Tags 1.8.1
14. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.1
15. SMF 2.0.2 Update 1.0
16. Tidy Child Boards 1.4
17. Member Color Link 3.1
18. Auto Purge Old Topics 1.2
19. Default Avatar 2.2
20. Double Check your Email in Registration by SmfSimple.com 1.0
21. Hide Signatures from Guests 2.0
22. Display Signatures Only Once Per Page 1.0.3
23. Hide Avatars from Guests 2.0
24. Auto Lock Old Topics 1.3
25. Copy Topics 1.6
26. Thank-o-matic 3.0
27. SMF 2.0.1 Update 1.0
28. BCC Messages 1.2
29. Happy Birthday 0.3
30. PNG Message Icons 1.3.1
31. Enable or Disable "« Last Edit: by »" for Administrators 1.3a
32. james bond avatars 1.0
33. Dog Avatars 1.0
34. Cat Avatars 1.0
35. Country_Flagatars 1.1
36. Welcome Topic Mod 2.1
37. Removes the post rank if a custom title is set 1.1
38. Hide User Names from Guests 1.1
39. Bookmarks 2.3
40. MessagePreviewOnHover 1.8
41. SMF Arcade 2.5 RC1
42. httpBL 2.5.1
43. Stop Spammer 2.3.9
44. [BBCode] Blink 1.0
45. Country Flags 1.1.2
46. Spoiler Tag 0.7.2a
47. Add Join Date to Post 1.0
48. [BBCode] Dotted Underline 1.0


Code reported in error message:
Sources/Gallery2.php around line 579


    $dbresult = $smcFunc['db_query']('', "
SELECT
c.id_picture, c.id_comment, c.date, c.comment, c.id_member, m.posts, m.member_name, m.real_name
FROM {db_prefix}gallery_comment as c
LEFT JOIN {db_prefix}members AS m ON (c.id_member = m.id_member)
579 WHERE c.id_picture = " . $context['gallery_pic']['id_picture'] . " ORDER BY c.id_comment DESC" );

$context['gallery_comment_count'] = $smcFunc['db_affected_rows']();
$context['gallery_comment_list'] = array();


The error is not caused by anyone else viewing or updating our gallery (which is splendid I have to say :))
Fixed
Update posted
3.1.2
!Fixed database error if viewing a link of a delete picture. Normally occurred by search engines
Title: Re: SMF Gallery 3.1.1 (May 29) with SMF 2.0 Support!
Post by: Shambles on May 30, 2012, 06:23:20 AM
Quote from: SMFHacks.com Team on May 29, 2012, 07:53:50 PM
Quote from: Shambles on May 29, 2012, 02:51:24 PM
How can I prevent the Google Crawlers causing this error?

It's only ever Google IP addresses that cause this, but it's several times a day  :o

Fixed
Update posted
3.1.2
!Fixed database error if viewing a link of a delete picture. Normally occurred by search engines
Thank you - I'll get this update put in right away  8)
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: Inti31 on May 30, 2012, 11:25:36 AM
thx - seems like the error messages are gone - btw: people which have 3.1.1a installed need just to change Gallery2.php...

good job!
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: vbgamer45 on May 30, 2012, 12:07:08 PM
Quote from: Inti31 on May 30, 2012, 11:25:36 AM
thx - seems like the error messages are gone - btw: people which have 3.1.1a installed need just to change Gallery2.php...

good job!
Glad to help! Yeah just a change to the core Gallery.php files.
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: Shambles on May 30, 2012, 01:05:01 PM
Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.

Confirmed: no further errors - many thanks  :D

I looked at the changed .php files and the installation process and decided that no harm would come if I uninstalled 3.1.1a then installed the fixed version. No problems whatsoever.

Thanks again for the rapid fix  8)
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: vbgamer45 on May 30, 2012, 01:14:30 PM
Glad to help!
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: Inti31 on May 30, 2012, 04:23:27 PM
@Shambles - I fully agree - in general, I do the same - but I've to check some more files because english is not my forum language.
I modified this mod so that it includes just my german language, also I throwed out every 1.x part.
I've to check if there are new translation strings every time a new version is released.

@vbgamer45 - I am thinking of the pro version - is there a German translation available - or is this not the place to ask for...?
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: vbgamer45 on May 30, 2012, 05:23:47 PM
Quote from: Inti31 on May 30, 2012, 04:23:27 PM
@Shambles - I fully agree - in general, I do the same - but I've to check some more files because english is not my forum language.
I modified this mod so that it includes just my german language, also I throwed out every 1.x part.
I've to check if there are new translation strings every time a new version is released.

@vbgamer45 - I am thinking of the pro version - is there a German translation available - or is this not the place to ask for...?
Someone did a translation for german for the lite edition long ago http://www.smfhacks.com/index.php/topic,115.0.html

All the pro language strings are kept in gallery.english.php and is easy to translate.
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: DMR123 on June 08, 2012, 04:16:10 AM
Hi,

If I enter restrictions i.e. max width and height in the gallery most images wont upload as they are too big, and if I take the restrictions off, if am image is too big it will go of the screen.

Is there anything which can be done so that the gallery automatically resizes the image to fit the screen?

Cheers
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: Shambles on June 08, 2012, 12:04:06 PM
Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.
The original issue I reported is well and truly gone, however a different one has now surfaced (only with crawlers)

Any clues?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FdxotI.jpg&hash=c4b35c36b0807b8c77ed383afbaf51a7fbcef934)
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: vbgamer45 on June 08, 2012, 12:08:08 PM
Hmm will work on a fix for that as well.
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: SMFHacks.com Team on June 09, 2012, 01:14:40 AM
Quote from: Shambles™ on June 08, 2012, 12:04:06 PM
Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.
The original issue I reported is well and truly gone, however a different one has now surfaced (only with crawlers)

Any clues?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FdxotI.jpg&hash=c4b35c36b0807b8c77ed383afbaf51a7fbcef934)
Fixed


New update posted:
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
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: Inti31 on June 09, 2012, 03:33:06 AM
just info - the uninstall for 2.0.x in package-info needs to be corrected:

that is how it looks
<uninstall for="2.0 - 2.0.99,2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<modification type="file" reverse="true">smfgallery2.xml</modification>
<remove-file name="$sourcedir/Gallery2.php" />
<remove-file name="$themedir/Gallery2.template.php" />
<remove-file name="$themedir/languages/Gallery.english.php" />
<require-file name="Gallery.english-utf8.php" destination="$themedir/languages" />
<code>GalleryUnInstall.php</code>
</uninstall>


the require- file name need to be replaced by a remove-file name...

cheers inti31

btw: people which have 3.1.1a/3.1.2 installed need just to change Gallery2.php...

good job!
Title: Re: SMF Gallery 3.1.2 (May 29) with SMF 2.0 Support!
Post by: Shambles on June 09, 2012, 03:49:54 PM
Quote from: SMFHacks.com Team on June 09, 2012, 01:14:40 AM

Fixed


New update posted:
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
Thanks  8)
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: SMFHacks.com Team on June 09, 2012, 04:12:18 PM
Glad to help.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: iain sherriff on July 15, 2012, 03:53:25 PM
Hi.
I have Ad Management running on my forum (wonderful mod  :) ).
Will Ads show in SMF Gallery?
WIll both mods run with the audio embed mod ?

thanks

:)

SMF 2.0.2 with Crip's Anecdota
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 15, 2012, 04:00:18 PM
All the mods will work together ok.
Ad placements are just the ones that are built into the ad management medication.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: iain sherriff on July 16, 2012, 04:57:04 AM
thank you for reply :)
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 16, 2012, 10:28:03 AM
Glad to help let me know if you have any other questions
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on July 23, 2012, 07:05:37 AM
Hi,

I have to install a user friendly Gallery into my SMF forum. Already I have Aeva Media 1.4w, it's good but not user friendly. So, I am looking up something to replace existing gallery with user friendly gallery.

Following are the options I am looking for. Will I be able to do below options with SMF Gallery?
1. Creating multiple levels of Categories?
2. Setting permissions to individual categories based on user?
3. Show/Hide gallery to set of people?
4. Using SMF users without need to create new set of users?
5. Possibility of displaying/uploading images to other image sharing sites like Flickr?
6. Automatically posting the Link in Facebook once category is created in SMF Gallery?
7. Automatically posting the Link in Facebook once image is posted in SMF Gallery?
8. When user post comments/rate it, it should get published in Facebook under same thread that of the image?
9. Limit the size of the file to upload?
10. Show EXIF information if available in file?
11. Navigate previous/next images from zoomed picture without going back to thumbnail screen?
13. Option to display random and last few snaps on all screens in SMF Gallery?
14. Add additional (mandatory/optional) fields to get values from user while to upload?
15. Rating system with option to view the history?

I hope some of them are already exist, but would like hear from you to decide which is best suitable for me to install.

Thanks in advance.
Ajai
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 23, 2012, 10:20:12 AM
Quote from: ajaikumarr on July 23, 2012, 07:05:37 AM
Hi,

I have to install a user friendly Gallery into my SMF forum. Already I have Aeva Media 1.4w, it's good but not user friendly. So, I am looking up something to replace existing gallery with user friendly gallery.

Following are the options I am looking for. Will I be able to do below options with SMF Gallery?
1. Creating multiple levels of Categories?
2. Setting permissions to individual categories based on user?
3. Show/Hide gallery to set of people?
4. Using SMF users without need to create new set of users?
5. Possibility of displaying/uploading images to other image sharing sites like Flickr?
6. Automatically posting the Link in Facebook once category is created in SMF Gallery?
7. Automatically posting the Link in Facebook once image is posted in SMF Gallery?
8. When user post comments/rate it, it should get published in Facebook under same thread that of the image?
9. Limit the size of the file to upload?
10. Show EXIF information if available in file?
11. Navigate previous/next images from zoomed picture without going back to thumbnail screen?
13. Option to display random and last few snaps on all screens in SMF Gallery?
14. Add additional (mandatory/optional) fields to get values from user while to upload?
15. Rating system with option to view the history?

I hope some of them are already exist, but would like hear from you to decide which is best suitable for me to install.

Thanks in advance.
Ajai
Most of those features are in SMF Gallery Pro
http://www.smfhacks.com/smf-gallery-pro.php

Demo of http://www.smfhacks.com/storedemo/index.php?action=gallery

The lite edition allows basic uploading/commenting and categories for gallery.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on July 24, 2012, 06:07:48 AM
Hi VBGamer,

Quote from: vbgamer45 on July 23, 2012, 10:20:12 AM
Most of those features are in SMF Gallery Pro
http://www.smfhacks.com/smf-gallery-pro.php

Demo of http://www.smfhacks.com/storedemo/index.php?action=gallery

The lite edition allows basic uploading/commenting and categories for gallery.

Thanks a lot for the reply.

BTW, I tried adding images using demo account but it seems admin needs to approved it. :( So not able to do anything useful with the demo account.

Can you please confirm whether below options are available?
Quote
5. Possibility of displaying/uploading images to other image sharing sites like Flickr?
6. Automatically posting the Link in Facebook once category is created in SMF Gallery?
7. Automatically posting the Link in Facebook once image is posted in SMF Gallery?
8. When user post comments/rate it, it should get published in Facebook under same thread that of the image?
10. Show EXIF information if available in file?
11. Navigate previous/next images from zoomed picture without going back to thumbnail screen?
15. Rating system with option to view the history?
16. Also, will I be able to restrict upload if EXIF information does not exist in image?

Thanks again.
Ajai
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 24, 2012, 10:38:38 AM
5. How would that work? Or do you mean handling remote urls.

6/7 no. But we have facebook sharing links and other sharing links.

8. No

10. Yes

11. We have previous/next links on the view image page to go each image.

15 yes

16 no you can't restrict if no exif.


I could build most of  those options but it would custom work to include those.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: N i g h t m a r e on July 25, 2012, 10:51:31 PM
im using SMFGallery 3.1.3. i installed it today but wanna use it for a different reason than a gallery for other users to upload there images
i just wanna make a few little modifications:

1.Change the name of it on the main menu from "Gallery" to "Item Database"
2.Take away users ability to upload new images to the gallery/item database
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on July 26, 2012, 03:50:29 AM
Quote from: vbgamer45 on July 24, 2012, 10:38:38 AM
10. Show EXIF information if available in file?
      Yes

Checked the same, but can see only few EXIF information (Camera Make & Model). Not sure why other information like ISO, Shutter speed, Exposure, etc. are not displaying. I can see this information if I upload same image in Avermedia. Any idea about this?
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on July 26, 2012, 03:52:11 AM
Quote from: vbgamer45 on July 24, 2012, 10:38:38 AM
I could build most of  those options but it would custom work to include those.

How much will you charge for them? Can you give a breakup? Probably same source can be used for other members as FB integration is really an must have option at present.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 26, 2012, 11:33:15 AM
Quote from: ajaikumarr on July 26, 2012, 03:50:29 AM


Checked the same, but can see only few EXIF information (Camera Make & Model). Not sure why other information like ISO, Shutter speed, Exposure, etc. are not displaying. I can see this information if I upload same image in Avermedia. Any idea about this?
In SMF Gallery Pro under
Admin -> Gallery Configuration -> Settings -> EXIF

You have to check each option that you want to show on that page for EXIF information


Quote from: ajaikumarr on July 26, 2012, 03:52:11 AM
Quote from: vbgamer45 on July 24, 2012, 10:38:38 AM
I could build most of  those options but it would custom work to include those.

How much will you charge for them? Can you give a breakup? Probably same source can be used for other members as FB integration is really an must have option at present.
Give me exactly how each function would work and then I can get a better idea on how time it would take me to build it.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on July 27, 2012, 04:11:00 AM
Thanks for the reply VBGamer...

BTW, to sum up missing FB integration options,

1. When an Image is posted in Gallery, an FB page should be updated with information like "So & So added an image in this website.". (BTW, Facebook Integration mod is already installed and configured hence this can use the same parameters)

2. When someone replied/rated the image, respective post in FB page should be updated with information like "So & so commented/rated this <with the comment>..." (Like FB Integration mod for SMF)

Hope that helps.
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: N i g h t m a r e on July 27, 2012, 04:45:47 AM
Excuse Me,

i just started using the gallery yesterday and changed the name of it to "Item Database" that took a while to figure out but now im actually using the gallery but.

it only lets me create catagorys,is there anyway i can add folders inside the catagorys? for different types of images in each folder?
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: vbgamer45 on July 27, 2012, 10:45:27 AM
Quote from: TheNextProdigy.com on July 27, 2012, 04:45:47 AM
Excuse Me,

i just started using the gallery yesterday and changed the name of it to "Item Database" that took a while to figure out but now im actually using the gallery but.

it only lets me create catagorys,is there anyway i can add folders inside the catagorys? for different types of images in each folder?
Subcategories not supported with the lite edition at this time.



Quote from: ajaikumarr on July 27, 2012, 04:11:00 AM
Thanks for the reply VBGamer...

BTW, to sum up missing FB integration options,

1. When an Image is posted in Gallery, an FB page should be updated with information like "So & So added an image in this website.". (BTW, Facebook Integration mod is already installed and configured hence this can use the same parameters)

2. When someone replied/rated the image, respective post in FB page should be updated with information like "So & so commented/rated this <with the comment>..." (Like FB Integration mod for SMF)

Hope that helps.
In general the admin sets the page/profile he wants to post for correct? So it is only posting to the gallery admin's page defined in the settings for the gallery configuration.

2. Is it making a new post for each every comment and each every rating?

Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: ajaikumarr on August 01, 2012, 01:16:34 AM
Sorry for the delayed reply VBGamer.

Quote from: vbgamer45 on July 27, 2012, 10:45:27 AM
In general the admin sets the page/profile he wants to post for correct? So it is only posting to the gallery admin's page defined in the settings for the gallery configuration.
Attached screenshots of "Facebook Integration" page on Admin panel. So, these will be defined by Admin already. Based on this settings, when an picture/comment is posted in Gallery it should get automatically published in Facebook.

Quote from: vbgamer45 on July 27, 2012, 10:45:27 AM
2. Is it making a new post for each every comment and each every rating?
Prefer the comments to get posted under same post that of image. Rating is not mandatory, if easier can follow the same rule that of comments (attached an screenshot FBIntegration-3.jpg).
i.e.
    * when an image is posted in forum, an link to this image with description should get posted in Facebook.
    * when an comment is posted for image, same information should get posted in Facebook under above post.

Please let me know if my above explanation is not clear.

:)
Title: Re: SMF Gallery 3.1.3 (June 9) with SMF 2.0 Support!
Post by: RockyVII on August 13, 2012, 11:50:19 AM
hi all,

I am using SMF Gallery 3.1.3 on my site and working successfuly. But I have a problem. Unfortunately,My web hosting space small.Therefore  I want to change photos add page some part. Members might add only photo URL.  not from their computers photos. 

Upload Pictures:
(instead)
Add Image URL:

How do I do it? Do you have a idea ?  ???
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: SMFHacks.com Team on August 25, 2012, 12:24:20 PM
Update/bug fix
3.1.4
!Fixed top gallery bar layout issue in chrome for SMF 2.0
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Adrek on August 25, 2012, 12:45:54 PM
after update from 3.1.3 I have small problem with links:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg88.imageshack.us%2Fimg88%2F7203%2Fgallery313.png&hash=94d24d2860a4eeb8cfb78e1aa8c7af44d3abf62e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg577.imageshack.us%2Fimg577%2F7013%2Fgallery314.png&hash=1575115a814151e6c9fc271fc9c167254ac59bf4)

Latest versions of Google Chrome, Opera and Firefox.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: SMFHacks.com Team on August 25, 2012, 01:19:22 PM
What theme is that?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Adrek on August 25, 2012, 02:06:48 PM
It's ModernDark96 design by BlocWebDesign (and yes, on default theme it looks fine)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: domscatterbrain on September 13, 2012, 06:53:57 PM
how do i make it redirect to the uploaded picture page (that contain direct link, bbc, html link) after i upload / edit picture?
i understand that i must make change to every lines like this
redirectexit('action=gallery;sa=myimages;u=' . $id_member);
into
redirectexit('action=gallery;sa=view;pic=' . $some_variable);
But what variable i must use if i want to do that?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on September 13, 2012, 07:22:30 PM
It would be the pictureID from mysql insertid function
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: movierchives on September 13, 2012, 07:49:15 PM
Comments doesn't seem to be working on mine, tested a default account and no reply option and admin account doesn't see a reply option either  ???
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on September 13, 2012, 08:26:55 PM
What SMF version?

Do you have comments enabled in permissions and settings?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: movierchives on September 13, 2012, 08:42:18 PM
Latest version and yes comments was enabled first

EDIT: Found the problem, NueBlue theme
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on September 13, 2012, 08:55:58 PM
Ok cool. Yeah normally you would click the add comment button in the screenshot to add a reply
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: domscatterbrain on September 14, 2012, 08:00:05 PM
Quote from: vbgamer45 on September 13, 2012, 07:22:30 PM
It would be the pictureID from mysql insertid function
thank you
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on September 17, 2012, 01:18:49 PM
Glad to help let me know if you need anything else.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Slashy on October 17, 2012, 12:51:00 PM
Hi, I have problem with posting the images!
I think there is something with UTF-8 encoding, because when I type in Tittle or in the Description letters like a,c,e,s - everything is ok, but when I start typing my own country letters like ā,č,ē,š then the system shows me following error:

QuoteIncorrect string value: '\xC4\x81\xC4\x81\xC4\x81' for column 'title' at row 1
File: /var/www/line2.lv/htdocs/Forums/Sources/Gallery2.php
Line: 839

Sorry for my English, please help me! ;)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on October 17, 2012, 12:58:42 PM
Did change the gallery tables to support utf8?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Slashy on October 17, 2012, 01:51:22 PM
No I did not, how can I do that?

Sorry if this is a silly question, I`m not such good at it...
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on October 17, 2012, 03:11:48 PM
You can run sql statements or change in the database using phpmyadmin if you have a control panel for your website
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: glennmckenna on November 04, 2012, 06:50:38 AM
i cant seem to be able to change the language of the gallery
when i change the language of the forum to french, the gallery stays in English
I'm pretty sure that I've like what is said on the help page
but still no joy

I'm currently running smf 2.0.2 with the theme called bleuz
and to access the forum all you have to is replace:
index.html
with
/new/forum/index.php
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on November 04, 2012, 10:20:51 AM
Have you translated the gallery files?
themes/default/languages/gallery.english.php
And'
themes/default/languages/modifications.english.php
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: glennmckenna on November 04, 2012, 01:44:02 PM
Quote from: vbgamer45 on November 04, 2012, 10:20:51 AM
Have you translated the gallery files?
themes/default/languages/gallery.english.php
And'
themes/default/languages/modifications.english.php
what i've done is i first downloaded the french language version and installed it then i downloaded and installed the gallery and translated the gallery.english.php but the problem is that that folder isn't in the languages folder it's in the forum themes folder should it be there ?
i installed the gallery using the forum
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on November 04, 2012, 02:11:30 PM
If there isn't  languages folder then copy the file to themes/default/languages folder
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: glennmckenna on November 05, 2012, 05:31:17 AM
Quote from: vbgamer45 on November 04, 2012, 02:11:30 PM
If there isn't  languages folder then copy the file to themes/default/languages folder
i have sent you a copy of the forums folders by pm so you can taker look at it
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on November 05, 2012, 12:26:47 PM
Checked I don't see any gallery files in
Themes/default/languages
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: available on November 06, 2012, 03:43:09 AM
great mod  ;D
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: glennmckenna on November 06, 2012, 05:16:00 AM
Quote from: vbgamer45 on November 05, 2012, 12:26:47 PM
Checked I don't see any gallery files in
Themes/default/languages
the thing is that it's the forum it's self that installed it
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: sunilimon on November 28, 2012, 03:34:51 PM
Hi vbgamer45, is there any new about external embedding? I'm so interested in this function. Thank you very much!
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on November 28, 2012, 04:14:32 PM
External images? Or embed pictures on other pages?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: sunilimon on November 28, 2012, 04:35:50 PM
I would use external images instead uploading images to my server :D
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on November 28, 2012, 04:48:14 PM
Not at the moment haven't been able to get that added
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Inti31 on November 28, 2012, 04:51:29 PM
@sunilimon: yeah, that would be a nice feature

but you could do it in an easy way:
example: http://epica-forum.de/index.php?action=gallery;cat=9

have a look to the 2nd pic - it is just that size: 1.66kb and the only pic you've to upload like you upload a normal (big) picture - means: that is the only pic which u have to save on your webserver.
means: you only need that little preview pic which has a max. height of 78px.

click now  on the 2nd pic - this opens that link: http://epica-forum.de/index.php?action=gallery;sa=view;pic=33

Now you see 7 pic which are fine adjusted/slidable.
the "trick": put the external pic links (postimage.org, imageshack, etc) in the description area

and upload just the little preview pic - saves a lot of space...

another example: http://hfc2005.de/forum/smf/index.php?action=gallery;sa=view;pic=33

the only pic I've uploaded to the webserver is that size: 2,86kb - but that gallery has 16 pics inside


Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 07, 2012, 05:16:00 PM
will this create a kinda category on it's own??
i need to use an external image (maybe i uploaded on my gmail or so) with the help of BBC code??
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 07, 2012, 05:30:22 PM
You could do it with BBC Code
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 08, 2012, 01:58:34 AM
Quote from: vbgamer45 on December 07, 2012, 05:30:22 PM
You could do it with BBC Code
thanks :D
after installing the mod, will it form a kinda category, because i wouldn't want anything to interrupt my index, how exactly will it look like? do you have any DEMO site ;)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 08, 2012, 12:49:53 PM
Demo of it at http://www.smfhacks.com/storedemo/index.php?action=gallery

No it does not affect the forums but instead adds it's own tab in the menu.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 08, 2012, 04:47:10 PM
thanks but i will like to edit the "gallery" on my menu to something i like ( i like customizing my menu :p )
where will i locate the file and the name inside cpanel
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 08, 2012, 04:51:15 PM
If you just want to change text you can find in themes/default/languages/modifications.english.php
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 08, 2012, 05:17:46 PM
done . thanks
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 08, 2012, 05:22:34 PM
Glad to help.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 09, 2012, 05:18:28 AM
on more thing please

i have marked
>>Show BBC Code
>>Show Direct Link Code
>>Show Html Link Code
they didn't show here.........
(https://lh6.googleusercontent.com/-x1qQ3m2H2LE/UMRkpzrfcRI/AAAAAAAAAco/G_LWpQXgRuY/s636/Capture.PNG)

where exactly should i insert the BBC code images
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Shambles on December 09, 2012, 11:16:22 AM
Quote from: johnpaul2k2 on December 09, 2012, 05:18:28 AM
on more thing please

i have marked
>>Show BBC Code
>>Show Direct Link Code
>>Show Html Link Code
they didn't show here.........

They show up under each picture in the gallery, as a different way of linking to that existing picture.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 09, 2012, 11:22:43 AM
Also if you want to use BBC
BBC codes images should go in the description of the picture.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 09, 2012, 11:58:41 AM
Quote from: vbgamer45 on December 09, 2012, 11:22:43 AM
Also if you want to use BBC
BBC codes images should go in the description of the picture.
doing that, this is what i get
(https://lh3.googleusercontent.com/-gvyReP2nwp8/UMTCuqy44wI/AAAAAAAAAdQ/kCN7lXkXcDM/s543/Capture.PNG)

Quote from: Shambles™ on December 09, 2012, 11:16:22 AM
Quote from: johnpaul2k2 on December 09, 2012, 05:18:28 AM
on more thing please

i have marked
>>Show BBC Code
>>Show Direct Link Code
>>Show Html Link Code
they didn't show here.........

They show up under each picture in the gallery, as a different way of linking to that existing picture.
i saw it but what i need is "not uploading them to my server!!!!
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 09, 2012, 12:25:40 PM
I would suggest uploading a tiny pixel.
The main issue with just bbc images there would be no preview thumbnail but that is a workorder
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 09, 2012, 12:40:06 PM
Quote from: vbgamer45 on December 09, 2012, 12:25:40 PM
I would suggest uploading a tiny pixel.
The main issue with just bbc images there would be no preview thumbnail but that is a workorder
please how will i use this tiny pixes??
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Shambles on December 09, 2012, 12:41:22 PM
The way to use this mod is to upload a single image to the gallery store, allowing it to create a thumbnail etc.

Further pics are added to that gallery entry using bbcode links to externally hosted images, entered into the "description" text box.



EDIT: double ninja'd
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 09, 2012, 01:20:05 PM
Thanks Shambles for explaining it better.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Shambles on December 09, 2012, 01:25:11 PM
Quote from: johnpaul2k2 on December 09, 2012, 12:40:06 PM
please how will i use this tiny pixes??

The idea is good, to upload the merest morsel of an image (ie, a pixel file).

But trust me here. It. Will. Not. Look. Good. In. Your. Gallery. At. All.

Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 09, 2012, 02:00:00 PM
case closed#
since i am using unlimited hosting, no problem at all :D
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 10, 2012, 04:16:29 PM
Quote from: johnpaul2k2 on December 09, 2012, 02:00:00 PM
case closed#
since i am using unlimited hosting, no problem at all :D
That's the best way to do it.
Most hosts now a days allow lots of space thankfully.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: johnpaul2k2 on December 10, 2012, 04:58:12 PM
i suggest one thing

please in your next version, try to include " adding images with code" even videos
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 10, 2012, 05:10:55 PM
Will put it down on feature list request list.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 13, 2012, 03:02:06 PM
I get this error at every page load while browsing the gallery, what should I do?

PHP Fatal error:  Call to undefined function theme_linktree()
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 13, 2012, 03:03:14 PM
What SMF version? And does it say a line/file number?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 13, 2012, 03:07:28 PM
Quote from: vbgamer45 on December 13, 2012, 03:03:14 PM
What SMF version? And does it say a line/file number?

I am using the pro version 1.1.x, though I cannot use the support at the official site because my subscription is finished.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 13, 2012, 03:19:01 PM
Just remove theme_linktree() call from the files that should help it. You can always renew at any time for $25 to get latest software
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 17, 2012, 09:52:49 PM
What could be a reason that thumbnails are 0kb while the full size image is being uploaded with no issue. I just changed servers.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 17, 2012, 10:48:54 PM
Quote from: stylusss on December 17, 2012, 09:52:49 PM
What could be a reason that thumbnails are 0kb while the full size image is being uploaded with no issue. I just changed servers.
Make sure you have GD installed support and credits and make sure it is listed.
Also check your forum error log for any related errors.

Also check under Gallery Configuration that your gallery path is correct sometimes that changes when changing server companies.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 17, 2012, 11:35:13 PM
Quote from: vbgamer45 on December 17, 2012, 10:48:54 PM
Quote from: stylusss on December 17, 2012, 09:52:49 PM
What could be a reason that thumbnails are 0kb while the full size image is being uploaded with no issue. I just changed servers.
Make sure you have GD installed support and credits and make sure it is listed.
Also check your forum error log for any related errors.

Also check under Gallery Configuration that your gallery path is correct sometimes that changes when changing server companies.
I believe GD is the issue.

Here are my phpinfo.php settings, what is missing?

gd

GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled

Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 18, 2012, 12:06:06 AM
Will GD is there so that is good.
Can you create thumbnails on attachments you upload for images that you post in the forums or resize avatars to smaller?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 18, 2012, 12:34:09 AM
Quote from: vbgamer45 on December 18, 2012, 12:06:06 AM
Will GD is there so that is good.
Can you create thumbnails on attachments you upload for images that you post in the forums or resize avatars to smaller?

No, images are not being resized properly on thread uploads... :-\
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 18, 2012, 12:36:16 AM
hmm sounds like a problem with gd or server setup. Might be the temp path not set correctly or doesn't have permissions.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 18, 2012, 11:05:01 PM
Quote from: vbgamer45 on December 18, 2012, 12:36:16 AM
hmm sounds like a problem with gd or server setup. Might be the temp path not set correctly or doesn't have permissions.

Ended up fixing it by installing the JPEG module.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 18, 2012, 11:10:49 PM
Good to know. Was that something extra or just part of GD?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: stylusss on December 19, 2012, 04:41:20 PM
Quote from: vbgamer45 on December 18, 2012, 11:10:49 PM
Good to know. Was that something extra or just part of GD?

No, it was strictly GD
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on December 19, 2012, 04:48:05 PM
Thanks again good to know in the future for people who may run into a similiar issue.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Chas Large on January 08, 2013, 10:53:01 AM
I've searched this topic and looked at the pro version but could find no mention of some sort of alert that could be set up when someone adds a picture to the gallery, or maybe an indicator on the gallery tab like (new) or (nn) for the number of new pictures added.

Is/would it be possible to do this?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 08, 2013, 02:38:42 PM
Pro does have the new indicators based on images that you have seen or not.
And there is an watch member and get notified if they post any pictures.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Chas Large on January 09, 2013, 07:10:36 AM
Quote from: vbgamer45 on January 08, 2013, 02:38:42 PM
Pro does have the new indicators based on images that you have seen or not.
And there is an watch member and get notified if they post any pictures.
That must come under the bullet point of "And much more!" ;)
Thanks
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 09, 2013, 09:04:25 AM
Yeah if you want a full demo let me know I can set it up for any of the products.

I am also working on major update for the gallery as well too
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Chas Large on January 09, 2013, 09:11:51 AM
Quote from: vbgamer45 on January 09, 2013, 09:04:25 AM
Yeah if you want a full demo let me know I can set it up for any of the products.

I am also working on major update for the gallery as well too
Sounds good. I looked at the demo on SMF hacks and whilst it looked good couldn't see any major benefits over the free version. The notification for members that new photos had been added would be nice. Not really for discussion here methinks so may come back to you later. Thanks.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Munkey on January 15, 2013, 09:37:37 AM
Recently upgraded the board to SMF version 2.0.3. Had an older version of Gallery Lite and I am trying to install Gallery Lite version 3.1.4. Install says it was normal with no errors but when I go to any page on the board I get a bunch of code showing at the top of the page. here is a screenshot of what I am seeing. I uploaded the package to the packages folder, installed using package manager, then using my FTP client, I made the Gallery folder 777 permisions. Does the same on any theme I try.

SMF version - 2.0.3
Gallery Lite version 3.1.4
SMF theme Yabb SE Classic 2.0

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.techpropaducah.com%2Fimages%2Fgallery_error_1.JPG&hash=58a0bf51679a761d3ec6e4f3764dcc023f043b01)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 15, 2013, 09:49:30 AM
You have to open this file
Themes/default/languages/modifications.english.php


Find

?>

And move it all the way to the end of the file.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Munkey on January 15, 2013, 09:53:47 AM
Quote from: vbgamer45 on January 15, 2013, 09:49:30 AM
You have to open this file
Themes/default/languages/modifications.english.php


Find

?>

And move it all the way to the end of the file.


Thanks. I'll give that a shot.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 02:20:11 PM
I hope I"m in the right place.   I am using SMF Gallery Lite 1.8.1.2 and I got an error message this morning that needs to be addressed.  It actually happened twice.  I am attaching a screen shot in hopes that someone can help with this.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 02:29:54 PM
I would first upgrade to the lastest SMF Gallery lite version and see if it helps.
Currently at version 3.1.4
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 02:49:42 PM
That's a huge jump in versions.  Will that not cause a problem with my current gallery? I like to keep things upgraded but I'm hesitant to make a jump that big.  I'd hate to lose all the stuff we have in our gallery.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 03:01:06 PM
You will not loose anything. I made sure that each upgrade always keeps the data preserved and safe.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: kat on January 27, 2013, 03:05:48 PM
Would the fact that MaryLou's using a v1.1.17 forum make a difference, VB?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 03:06:41 PM
SMF version doesn't matter in this case the gallery will work with any SMF version.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: kat on January 27, 2013, 03:08:46 PM
Wonderful!

Thanks!
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 03:09:28 PM
Okay, I'll take your word for it and will give it a try.   :)  I'm such a coward when it comes to upgrading things because I know so much can go wrong. 

Thanks for the suggestion!!   May I ask, are there any notable differences between the version I have and the current one?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: kat on January 27, 2013, 03:10:08 PM
If you go for it, MaryLou, please read my sig, first. You can even click on it, to get the "How", if you like. ;)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 04:13:54 PM
Quote from: MaryLouW on January 27, 2013, 03:09:28 PM
Okay, I'll take your word for it and will give it a try.   :)  I'm such a coward when it comes to upgrading things because I know so much can go wrong. 

Thanks for the suggestion!!   May I ask, are there any notable differences between the version I have and the current one?

Minor changes but you can see a recent changelog in the first post of this topic
http://www.simplemachines.org/community/index.php?topic=114291.msg732154#msg732154
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 04:55:47 PM
Oh my gosh, that's the first time I've ever done a backup like that!  Your directions were absolutely perfect using the PHPMyAdmin!  The only thing I didn't know is where the backup file went but I did find it later in my downloads folder.

That was quite an experience because I had to install the PHPMyAdmin and had no clue what I was doing it but I must have done it right because it all worked!  I will be doing this on a regular basis now that I know how and I saved your page of instructions just in case I forget!  THANK YOU!!!   I like to learn at least one new thing each and every day and this was my "today" learning experience!
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: kat on January 27, 2013, 05:00:23 PM
Pleasure, darlin'!

Did you get the "Home directory", too?

If you go to CPanel>Files>Backups, you can get both the database and the site/forum (Home directory). You can restore both (If you ever need to), from there, too.

The database is THE thing, coz that can't be rebuilt. But, saving the site/forum can save you a LOT of work, if it ever goes "Phut!".
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 05:04:54 PM
I don't have cPanel..  so no, I didn't do that.  I could just download it all via ftp though, couldn't I?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: kat on January 27, 2013, 05:10:41 PM
Yep! Probably easier, that, coz there's no need to dearchive. :)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 06:10:50 PM
This must not be my day for things going right!   :'(   I downloaded the file "SMFGallery3.1.4.zip so I could upgrade my old version.  When I went to install it,  I got a message saying the package was already installed.  How could that be?  so, I checked my list of packages and now it shows two listings for the gallery.   One has a red dot beside it.

So, what do I do now?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: TheListener on January 27, 2013, 06:12:18 PM
Quote from: MaryLouW on January 27, 2013, 06:10:50 PM
This must not be my day for things going right!   :'(   I downloaded the file "SMFGallery3.1.4.zip so I could upgrade my old version.  When I went to install it,  I got a message saying the package was already installed.  How could that be?  so, I checked my list of packages and now it shows two listings for the gallery.   One has a red dot beside it.

So, what do I do now?

Did you uninstall the previous version of the mod?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 06:22:00 PM
No, was I supposed to?  Wouldn't that have removed all my stuff from the gallery?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: TheListener on January 27, 2013, 06:37:32 PM
Quote from: MaryLouW on January 27, 2013, 06:22:00 PM
No, was I supposed to?


All mods are supposed to be uninstalled before the newer version is installed.

Quote
Wouldn't that have removed all my stuff from the gallery?

No as the items in the gallery would then be stored on the server your forum is hosted on.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 06:46:45 PM
OH... so how should I proceed now?   

I've had that gallery installed for about 5 years now and I don't think I've ever updated any of my mods  so it didn't cross my mind that I needed to take that extra step.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 07:15:10 PM
Try to uninstall the old version then install the new version.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 07:45:25 PM
Guess what??  It all worked!!!   I uninstalled the old one, then re-installed the new one and now everything is as it should be!!  Hopefully, I won't get any more errors related to the gallery. 

Thank you all again for your expert help!!!  Now's a good time to back up everything since it appears that all is working perfectly!!

Thank you so much!!!!  :) :) :) :)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on January 27, 2013, 07:55:33 PM
Glad you were able to get it to work! It is good to setup a backup schedule as well so in case anything happens you always have a copy at least on your computer.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: MaryLouW on January 27, 2013, 08:27:17 PM
I think it's very nice but what would be even nicer is if the title showed under the thumbnail.   When you have really small object, it would be very helpful.  Maybe that could be added in a future upgrade.

I think we can close this topic because all seems to be working perfectly!!!   A big THANK YOU!!!!!! :)
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: BitBass on February 09, 2013, 10:32:06 AM
Sorry if I'm being dense but is there a way to have an embed link or dropdown on a new post/reply?  I'm trying out the lite version and it looks like the only way to get an image embedded in a post is to go to the image first, copy one of the link helpers, go back to the post and paste it in.  Hope I'm making sense.

It would be nice to be able to either select an image directly from the post or to have a post button from the image.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on February 09, 2013, 12:32:39 PM
At the moment that is the only way to do it get the image url from the image page then embed into a post.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: b0mbardo on March 09, 2013, 11:51:06 PM
Look's great, work's great one question though in the Edit/Add gallery it has "Gallery Icon URL" I cannot get an icon there! What is the size limits and is there a particular path I need to put the icon in?
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on March 10, 2013, 03:43:19 AM
Quote from: b0mbardo on March 09, 2013, 11:51:06 PM
Look's great, work's great one question though in the Edit/Add gallery it has "Gallery Icon URL" I cannot get an icon there! What is the size limits and is there a particular path I need to put the icon in?
No limit just needs to be a full url such as http://www.mysite.com/yourimage.jpg
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: b0mbardo on March 10, 2013, 11:02:35 AM
Well I have tried every different the of image I have...jpg, png and all I get is a broken image icon. So I am not sure what the deal is!
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on March 10, 2013, 11:24:04 AM
Can you send me a link to your gallery so i can take a look and see what the issue is.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: b0mbardo on March 10, 2013, 11:39:01 AM
sure its http://teamcordwood.com/TCForums/
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on March 10, 2013, 12:32:45 PM
Your image doesn't exist
http://www.teamcordwood.com/images/BassTlogoicon.png

That's the error I see.
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: Biology Forums on March 10, 2013, 01:31:50 PM
Quote from: sunilimon on November 28, 2012, 04:35:50 PM
I would use external images instead uploading images to my server :D

What if that external server goes offline? Then you're screwed :(
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: b0mbardo on March 10, 2013, 07:11:11 PM
Quote from: vbgamer45 on March 10, 2013, 12:32:45 PM
Your image doesn't exist
http://www.teamcordwood.com/images/BassTlogoicon.png

That's the error I see.

yep, I got it thank you!  :o
Title: Re: SMF Gallery 3.1.4 (Aug 25) with SMF 2.0 Support!
Post by: vbgamer45 on March 10, 2013, 07:53:07 PM
Glad you got it fixed!
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: SMFHacks.com Team on March 19, 2013, 03:28:32 PM
New Update for Gallery 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
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: thisizaremix on March 30, 2013, 05:51:49 AM
This would be awesome if it had some features like ADK Gallery, such as link to members gallery in post userarea, link in profile to personal gallery etc.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on March 30, 2013, 09:28:32 AM
Quote from: thisizaremix on March 30, 2013, 05:51:49 AM
This would be awesome if it had some features like ADK Gallery, such as link to members gallery in post userarea, link in profile to personal gallery etc.
User galleries are part of SMF Gallery Pro.
I try to avoid theme edits when possible so less chance of failure in custom themes.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 02, 2013, 02:43:23 PM
I found a Bug

in Gallery2.template Line 1000

Should be
$txt['gallery_txt_htmllink']
not
$txt['gallery_set_showcode_htmllink']

This is a cute little Gallery though is just missing 2 critical features, and I am note sure if these are in the $50 version??

1, Downsize oversized images
(Because he can have real trouble understanding how to downsize a larger Pic and if it it too wide it breaks the look of the forum)
2, Ability for user to choose a Pic from the Gallery while making his post
(Rather than First He has to go to the Gallery and copy the BB Code which is a pain)

is that functionality in the Pay Version? though really I just want those basic features everything else is overkill for me

Garry

Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 02, 2013, 02:47:25 PM
Will look at that bug reported.

1. Yes in pro have resizing options to autoreisize. Thumbnail,medium sized, full size, and display settings

2. I believe we have an addon for gallery pro if not I can build it.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 03, 2013, 08:16:41 AM
Thanks vbgamer45, ok I paid for Gallery Pro, and install was flawless, Thank you so much
wow it's a lot more complex, I still don't understand how to make it size down large images, or how you add the Medium re-sized image into your forum post

Is it an Addon to Select a forum post image from the Gallery
i.e He or she Uploads to the Gallery first, then Selects it into his or her post, from the Gallery, rather than posting the complex looking image BB code

Can you make that? dosen't everybody want to do it that way?

Cool

Thanks
Garry


Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 03, 2013, 09:24:04 AM
For autoresizing.

The system uses the setting called "Resize Images if too large"
And it uses the Max Image Width and Max Image Height settings as the resize options

For second thing I have this addon - Post Image Upload - On forum message
http://www.smfhacks.com/index.php/topic,6365.0.html
Might need to be tweaked a little to get what you need.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 05, 2013, 01:59:48 PM
I can see that re-sizing now, that is great, the paid version is worth it just for that feature, Thankyou!
These days modern digital cameras take pics that are way too big for web and the average user does not want to or does not know how to re-size it down to a suitable dimension
This will save much disk space and bandwidth and make image posts in my forum more presentable

With the other link, (6365) I get this error
The topic or board you are looking for appears to be either missing or off limits to you.

vbgamer45 could you please check that link? I did log in to SMFHacks

Garry
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 05, 2013, 02:26:57 PM
To access that link you have to enter your license key information under
http://www.smfhacks.com/index.php?action=license
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 07, 2013, 09:40:45 AM
Got it all working Thanks vbgamer45
That Post Image Upload.
Now That's what I am talking about!!!!

Excellent little Mod, to Gallery Pro, it worked beautifully, this makes so much more sense, to simply upload an image while making a Post.
It is so logical I can't understand why everyone is not looking for that feature, I can't even do it here right now, If I could I would post a Pic and show you, haha, now I can't be bothered uploading it somewhere else then coming back here

I am having trouble understanding why dosen't everyone want to do this one?
Perhaps is it because forum managers save Space and Bandwidth by having images hosted elsewhere?

Thankyou so much vbgamer45, I am so pleased!!

Garry

Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 07, 2013, 09:54:30 AM
Glad you enjoy that addon for Gallery Pro I have bunch of other small ones you should also check out in the downloads forum.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 07, 2013, 10:38:28 AM
:-) Thank you vbgamer45 , I will

Hey I am experiencing some minor bugs with "Add image to post and upload to Gallery"

Though the images upload they don't add to the Total Images count and seem partially orphaned
e.g In the Gallery the Thumbnail of the uploaded picture displays though when I click on the Thumbnail it gives "An Error Has occures No picture Exists"


May I suggest Would it be better to insert a BB Code rather than a HTML Link?
With the current method My Added image does not Zoom nicely like a Regular gallery image (i.e bb added images in a post have Click to enlarge)


I see the nubie user may be not sure what is the difference between "Add Picture" and "User Gallery" he will not know which Upload Picture box to select for his result.
Could the form be reduced to One Browse for image box? to simplify



If I neglect to Select a Category, I end up with "An Error has Occured, You need to select a Category"
Would some client side validation help advoid this?

Garry
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 09, 2013, 10:56:04 AM
This sort of thing, like the Images uploaded with the Post Image Upload are kind of Phantom

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Formusforum.com%2FBUGS%2F10-04-201312-20-41AM.jpg&hash=bf16ae1f6f4565e44e960d35ecc2b3f7bc1d3fed)


Garry
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 09, 2013, 11:18:07 AM
Will look into this soon been really busy the last week.
Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: blakilox on April 14, 2013, 03:30:18 AM
Thanks Vbgamer45
I have just uninstalled post image upload temporarily for now
If you need me to switch that on again I can, so you could see the bugs? I am just worried the users in my growing little forum may post these phantom images and the only way I can see to repair them is to delete them

you can see the Phantom Image issue in my Gallery now on the blue image
http://ormusforum.com (http://ormusforum.com) / forum

None the less, this mod is brilliant, I really think this is the way to go, if it can be made easy for the poster to add his or her image "while he posts" the Gallery use will be far more popular

Traditionally my topic has been handled by old school email lists
the point of starting my forum is to use images in it's discussion, your Gallery is just that, Thank you so much for your help

Garry
Australia

Title: Re: SMF Gallery 3.5 (Mar 19) with SMF 2.0 Support!
Post by: vbgamer45 on April 14, 2013, 10:44:16 AM
Been sick/busy sorry haven't had the chance to look it yet.
Title: Re: SMF Gallery 3.6 (Apr 14) with SMF 2.0 Support!
Post by: SMFHacks.com Team on April 14, 2013, 09:30:23 PM
SMF Gallery Lite Update:
3.6
+Added copyright removal system.
Title: Re: SMF Gallery 3.6 (Apr 14) with SMF 2.0 Support!
Post by: efas on May 04, 2013, 06:29:16 AM
apologies if this has been posted before, but i have tried searching for it without success,

i'm using smf 2.0.4
smf gallery 3.6
plus other mods

my problem is this error message i am getting frequently in my error log

its in  sources/admin.php
8: Undefined index: gallery_txt_copyrightremoval

although everything seems to be  working as it should

do i need to take any action with this? as the only effect that i can see is that it fills up the error log page !
Title: Re: SMF Gallery 3.6 (Apr 14) with SMF 2.0 Support!
Post by: vbgamer45 on May 04, 2013, 09:52:08 AM
Are you using a gallery translatation?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: SMFHacks.com Team on May 04, 2013, 04:38:32 PM
Minor update efas fixes your issue as well

3.6a
!Fixed undefined string error in SMF 2.0 in the admin area issue was from 3.6 update
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: efas on May 04, 2013, 05:44:24 PM
Quote from: SMFHacks.com Team on May 04, 2013, 04:38:32 PM
Minor update efas fixes your issue as well

3.6a
!Fixed undefined string error in SMF 2.0 in the admin area issue was from 3.6 update

thats brill! and quick too!  much appreciated  :)
i take it i can uninstall and delete version 3.6 and install 3.6a without loss of existing gallery pics ?

Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 04, 2013, 06:05:25 PM
Yes you can. Uninstalling does not remove data.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: efas on May 05, 2013, 04:33:15 AM
success  :) uninstalled and deleted v3.6
installed 3,6a and everything as before
but now without the error :)

many thanks for your help guys  :)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 05, 2013, 11:03:40 AM
Glad that was able to fix the issue for you!
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: OCJ on May 20, 2013, 03:11:28 AM
I would consider using the pro version but have some questions I need to sort out first ...


It is for a club that members share photos with each other after events- linked in my signature here.
At the moment I use Aeva Media but it works in an odd way. To get latest albums on the main gallery page, admin has to manually edit and set each user album to 'Featured'. A lot of work for nothing. Or the only other option is to search through the user album pages (not good either).

What I need is that new user albums go on the main gallery page (latest albums with album thumbnail). Preferably ordered so that latest albums are at the top... Aeva media doesnt do that either - it orders them by some other strange way and including user ID.

We used to use Gallery Menalto - perfect, except new versions have no bridge with SMF and it is too much work to mage double log in accounts for everyone.



We need a simple (add album) interface for users (always confused). They need mass upload and download as we share large photos. Only selected member groups should be able to use mass download.

Also linked online videos.


One minor point is that we need guests to see smaller preview photos as it encourages them to join the club but prefer that they cannot access full size images. Users have copyright to their photos and we had problems before with visitors ripping off member's original photos to sell on stock photo sites.
Aeva Media displays full size images to guests ... It can also overload websites if many large images are opened at the same time - we had the site shut down by a host because a Korean bot went on the rampage trying to open and reopen all photos on the site.

Members should also have the permissions to hide their albums from guests.

If most of these questions are not a problem I would like to use the pro version... it would be nice to test it beforehand if possible. Or a refund if it doesnt suit us.

Andy
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 21, 2013, 11:32:50 AM
I can setup a demo for the SMF Gallery Pro system on a forum at http://www.createaforum.com will have about 90% of all features and is a full admin demo.


Quote
What I need is that new user albums go on the main gallery page (latest albums with album thumbnail). Preferably ordered so that latest albums are at the top... Aeva media doesnt do that either - it orders them by some other strange way and including user ID.
Latest albums now is that pictures from user galleries? Or just newest user gallery?

Quote
We need a simple (add album) interface for users (always confused). They need mass upload and download as we share large photos. Only selected member groups should be able to use mass download.
We have a built in multiuploader either the flash based multiupload select or standard multiple bulk fields.
We do not have a mass download feature at this time though.

Quote
Also linked online videos.
I have that in the videoaddon for SMF Gallery Pro separate though.

Quote
Members should also have the permissions to hide their albums from guests.
They have the option to make a gallery password protected or the option to make private and invite specific people.

Quote
One minor point is that we need guests to see smaller preview photos as it encourages them to join the club but prefer that they cannot access full size images. Users have copyright to their photos and we had problems before with visitors ripping off member's original photos to sell on stock photo sites.
Aeva Media displays full size images to guests ... It can also overload websites if many large images are opened at the same time - we had the site shut down by a host because a Korean bot went on the rampage trying to open and reopen all photos on the site.
Could be built not built in though. You have control over the thumbnail size, medium size and have a fullsize image for each picture.


Now I can do custom development/tweaks and let you know how much that would be based on the number of hours it would take me to do it.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: OCJ on May 21, 2013, 11:54:12 AM
QuoteLatest albums now is that pictures from user galleries? Or just newest user gallery?

A bit confused after this... basically if a user makes a new album it would be best displayed on the main gallery page so people can see new stuff was uploaded (rather than buried in sub albums of a particular user).

The mass download is a particularly big point... people do not want to open 100 photos and save each one.
Though I know often a lot of photos are not wanted but downloading in 1 zip and sorting later is much faster.

Other things are not a big issue - it would be good to try out a demo.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 21, 2013, 12:10:45 PM
So if a user makes a new gallery and if they upload pictures to it would be post on the main page? So older galleries with new picture would not be on the main page.

Mass download I could build just requires a good web hosting/server/vps  I could do a zip file based system where you can check off gallery pictures to download and this would be the fullsize images right?


Demo will send you a pm.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: OCJ on May 22, 2013, 02:35:07 AM
Yes, full size photos would be zipped (the ' you-know-who' gallery does this).

I use the word album rather than gallery. So the main page of the gallery would contain rows and columns of latest user albums. I can do this on Menalto gallery and most other open source galleries - sort order of latest albums.


On our present SMF gallery I have to make every user album 'featured' manually to get this but even then they are not sorted by album number or date created ... weird combination or by user ID... havent looked at in in detail:

outdoorclubjapan.com/index.php?action=media


This is ideal.... I can sort user albums by just about anything but now its by latest created album (top to bottom). The last year though its become just an admin gallery.

http://outdoorclubtokyo.com/gallery/


Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Simple Site Designs on May 30, 2013, 08:19:13 PM
Hi, I'm interested in the Pro version of this mod but was wondering, what sort of file volume can it manage? Basically we expect to have a lot of large graphics, in fact, I may even be looking at moving the storage over to AWS (S3 & CloudFront)... be curious to know if you think that is workable, and if you would be willing to contribute (paid) to the process of doing so?

- Josh
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 30, 2013, 10:35:32 PM
If I had galleries with 10,000+ files. We do have a multiple directory storage option which spreads files into multiple folders.

AWS I could look into that as an option but would require a good amount of development team to test with the api's.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Dhayzon on May 31, 2013, 08:47:29 PM
disable this section

for a simple textarea   :o :o

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F9KH929K.png&hash=ecb67d5fbdc44cd061e36bd018da9e791b0c36bf)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 31, 2013, 09:28:33 PM
Requires a template edit to the gallery2.template.php file you have to remove bbc box called in the addpicture /editpicture area
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Dhayzon on June 01, 2013, 11:56:43 AM
larger thumbnails??

http://club-dhayzone.net/gallery/?cat=1
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 01, 2013, 12:41:08 PM
There is a setting in gallery settings that controls the thumbnail height/width
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Dhayzon on June 01, 2013, 03:56:03 PM
Quote from: vbgamer45 on June 01, 2013, 12:41:08 PM
There is a setting in gallery settings that controls the thumbnail height/width

thanks
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 02, 2013, 09:15:06 PM
Quote from: Simple Site Designs on May 30, 2013, 08:19:13 PM
Hi, I'm interested in the Pro version of this mod but was wondering, what sort of file volume can it manage? Basically we expect to have a lot of large graphics, in fact, I may even be looking at moving the storage over to AWS (S3 & CloudFront)... be curious to know if you think that is workable, and if you would be willing to contribute (paid) to the process of doing so?

- Josh
I just moved a bunch of my sites to cloudfront will look into aws upload and see how hard it would be.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Simple Site Designs on June 03, 2013, 10:00:26 PM
Quote from: vbgamer45 on June 02, 2013, 09:15:06 PM
Quote from: Simple Site Designs on May 30, 2013, 08:19:13 PM
Hi, I'm interested in the Pro version of this mod but was wondering, what sort of file volume can it manage? Basically we expect to have a lot of large graphics, in fact, I may even be looking at moving the storage over to AWS (S3 & CloudFront)... be curious to know if you think that is workable, and if you would be willing to contribute (paid) to the process of doing so?

- Josh
I just moved a bunch of my sites to cloudfront will look into aws upload and see how hard it would be.

Thanks vbgamer45
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Kettu on June 12, 2013, 01:19:36 PM
Hi,
great mod. Thanks!

I like the option "Gallery Icon", because we have a category for every user (small private forum) and use the avatar picture there. It is possible to restrict the size of the icons like for the thumbnails, i.e. max width 100, max height 100 px?

Thanks a lot.
Kettu
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 12, 2013, 02:17:52 PM
The category thumbanils or the image thumbnails
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Kettu on June 12, 2013, 03:56:36 PM
Quote from: vbgamer45 on June 12, 2013, 02:17:52 PM
The category thumbanils or the image thumbnails
The category thumbnails. :)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 12, 2013, 04:17:09 PM
I don't have a setting for that in the lite version.

I would suggest you edit the icon to the size needed before you import into the gallery as icon
Title: gallery image loading problem
Post by: cereleus on July 16, 2013, 04:35:45 AM
file loading image gallery
picture gallery does not seem to
There are not only the picture comment sections
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fakvaryumbilyap.com%2Fresimyukle%2Fresimler%2Feae2057c33c2d30126166efa15b12658.png&hash=67932efb741cd282e628048d88c13d27cbe81c1f)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 07:52:31 AM
Images not appearing? Do you have a link to your gallery to check it out.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 10:05:00 AM
There are connections
http://akvaryumbilyap.com/gallery
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 11:00:10 AM
Change your gallery url in gallery configuration to
http://akvaryumbilyap.com/gallery/
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 11:06:25 AM
sory
it did not work
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 11:12:10 AM
What is your gallery path setting
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 11:20:25 AM
/var/www/vhosts/akvaryumbilyap.com/httpdocs/gallery/
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 11:22:20 AM
That looks ok.

Make sure your gallery path is writable and also look at your forum's error log for details.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 11:35:02 AM
I checked no problem
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 11:43:34 AM
Double check gallery path /var/www/vhosts/akvaryumbilyap.com/httpdocs/gallery/
It should be similar to your sources path under Server Settings.


Otherwise make sure you have GD installed to create thumbnails
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 11:52:14 AM
has this warning
Is that the problem
----------------------------------
The above PHP settings control how large a file will be accepeted by the gallery. These are settings are controlled by the php.ini or your webhost
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 11:53:53 AM
If the file is greater than 2MB most hosts limit it to that size.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 16, 2013, 12:17:55 PM
Thank you for your help
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 16, 2013, 12:29:07 PM
Glad to help.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 18, 2013, 07:20:09 AM
Hi friends, I wonder what is the problem does not seem to SMF Gallery photos uploaded seamlessly problem.
http://akvaryumbilyap.com/index.php?action=gallery;sa=myimages;u=1
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 18, 2013, 09:19:48 AM
What SEO mod are you using?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 18, 2013, 02:50:23 PM


yes you are right the problem seo
the problem is solved
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cereleus on July 18, 2013, 03:42:33 PM
How to add an additional section?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fakvaryumbilyap.com%2Fresimyukle%2Fresimler%2Fe48f05644639d9f1b4da4fbf9aee2110.png&hash=a854645161fe6ce0a79cb665c7fd7934ea94ab93)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 18, 2013, 03:53:43 PM
A title?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 22, 2013, 07:35:45 PM
I'm not sure if this question was asked before, but where the "Add Comment" section is under an image, I was wondering if there was a way to add a template there (like a set of questions)

For example:

Where was the picture taken:
When was the picture taken:
What type of camera was used:
Additional comments:

Those questions would already be in the comment section, and they could add their response.

I'm guessing it could be done like this, but not sure where to add it in the file.

$txt['gallery_text_where was the picture taken'] = 'where was the picture taken';
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 22, 2013, 09:12:25 PM
In the textarea itself or above the addcoment area.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 22, 2013, 09:54:24 PM
I have tried adding the txt lines in the textarea and addcomment areas in both  languages/Gallery.english.php and Gallery2.template.php, and I keep getting parse and syntax errors lighting up like a pinball machine. ;)

Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 22, 2013, 10:32:54 PM
Attach your Gallery2.template.php with the changes and I can see what the issue is
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 22, 2013, 11:06:09 PM
Here you go, and thank you. I added the new code after line 1029 if that helps.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on July 23, 2013, 02:38:43 PM
Is there a way to remove the Filesize:Height:Width: in the description area of the gallery?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 23, 2013, 03:06:47 PM
Quote from: vbgamer45 on July 22, 2013, 10:32:54 PM
Attach your Gallery2.template.php with the changes and I can see what the issue is
This this file
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 23, 2013, 03:07:18 PM
Quote from: CheeseHead05 on July 23, 2013, 02:38:43 PM
Is there a way to remove the Filesize:Height:Width: in the description area of the gallery?
Yes they can be removed in the themes/default/gallery.template.php area. If you need help just attach the file and I can remove it.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 23, 2013, 03:21:16 PM
Quote from: vbgamer45 on July 23, 2013, 03:06:47 PM
Quote from: vbgamer45 on July 22, 2013, 10:32:54 PM
Attach your Gallery2.template.php with the changes and I can see what the issue is
This this file

Awesome man. Thanks for your help. Much appreciated.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 23, 2013, 03:22:23 PM
Glad to help
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: fifty-seven on July 23, 2013, 08:06:54 PM
Just wanted to say awesome mod! 
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 23, 2013, 08:55:59 PM
Glad you enjoy this mod!
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on July 24, 2013, 05:51:24 PM
Quote from: vbgamer45 on July 23, 2013, 03:07:18 PM
Quote from: CheeseHead05 on July 23, 2013, 02:38:43 PM
Is there a way to remove the Filesize:Height:Width: in the description area of the gallery?
Yes they can be removed in the themes/default/gallery.template.php area. If you need help just attach the file and I can remove it.

Here u go vb.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 24, 2013, 05:58:34 PM
Updated file attached
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 24, 2013, 07:41:33 PM
Quote from: vbgamer45 on July 24, 2013, 05:58:34 PM
Updated file attached

That file kicks out a fatal error-
Fatal error: Call to undefined function GalleryCheckInfo() in /home/content/x/xxx/html/mysite/Sources/Load.php(2176) : eval()'d code on line 3784

Line 3784- $showInfo = GalleryCheckInfo();
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 24, 2013, 09:21:35 PM
Which file? Make sure you downloaded the one for your reply.

Otherwise that update is in the newest SMF Gallery version.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 24, 2013, 10:45:53 PM
Ah sorry. It's the Gallery2.template.php file. Cheesehead asked how to remove the Filesize:Height:Width:, and that was something I wanted to do as well.

So the ability to remove that info is in the latest update anyway then?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 24, 2013, 10:55:31 PM
No it was a custom edit
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on July 24, 2013, 11:11:12 PM
Hmmm weird. I uninstalled the older version, installed 3.6a, and the file worked like a charm, and without the error.  :o

Thanks again, and on a side note- it's great to still see support of this mod after nearly 7 years.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 24, 2013, 11:55:18 PM
Thanks I am one of the very few who still do mainly since I enjoy making things.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cat_woman on July 25, 2013, 04:51:16 PM
I'm just building my forum now using SMF and was considering using Coppermine galleries bridged to SMF.  I would like to use this mod instead (free for now - $0 budget), but is there a demo I can see using the free version?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 25, 2013, 04:53:12 PM
Demo for the free version no. But I have forums you can check on http://www.createaforum.com but the free version mainly has the following: categories, picture uploads, commenting, and permissions to manage that.

Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cat_woman on July 25, 2013, 05:29:05 PM
Quote from: vbgamer45 on July 25, 2013, 04:53:12 PM
Demo for the free version no. But I have forums you can check on http://www.createaforum.com but the free version mainly has the following: categories, picture uploads, commenting, and permissions to manage that.

Thanks for the link.  I do have my own domain with a shop and blog already. Does this mod allow for members to have their own galleries and subgalleries within that?  Eg, say I want a main under my user name for general photos and then sub galleries for different projects?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on July 25, 2013, 05:32:51 PM
The free version does not have user galleries/their own gallery. But you can create categories for the members to upload photos
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: cat_woman on July 25, 2013, 05:37:49 PM
Ok, thanks for the info. :)
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: dale3887 on August 19, 2013, 02:13:17 PM
Anybody know why i'm getting this error after installing the smf gallery it only comes up in the admin center and the profile section.

// Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 19, 2013, 02:22:39 PM
Open themes/default/languages/who.english.php

Find

?>


And move to the end of the file.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 02, 2013, 11:32:24 PM
I am having trouble trying to get all of my pics the same size so that it can look somewhat uniform..I have set my thumbnail size and width at 400 and my max allowed height and width set at 1000 and I have decreased this from 2500 and my pics still look the same.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 02, 2013, 11:40:10 PM
Those settings in the free version I believe only affected newly uploaded images. Check if there is a regenerate thumbnails option if so that will reajust the thumbnails for all images based on the current settings.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 03, 2013, 10:18:53 AM
Do you think it is possible to integrate the Good Post Bad Post Mod in the gallery?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 03, 2013, 10:22:48 AM
Possible maybe likely no.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 03, 2013, 10:41:43 AM
I didnt think so but worth asking.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 03, 2013, 09:27:03 PM
I noticed that I don't have a poll button anymore and I was interested in adding it back. Which poll code do I use to get it back vbgamer?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 03, 2013, 10:07:19 PM
Poll button for the forum itself? Polls are controlled by permissions
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 03, 2013, 10:46:50 PM
Yes I want to know if I can still add the "new poll" option that is located on top and bottom of the forum, remember the forum is completely gone as requested.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 03, 2013, 10:52:10 PM
If you have a board then yes created just have to view the board and can post a poll
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 04, 2013, 01:13:08 AM
I don't have a forum, remember?

http://www.simplemachines.org/community/index.php?topic=509404.0
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 04, 2013, 01:14:01 AM
Yeah so where do you want the poll then? You can create boards still and then go into the board
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 04, 2013, 11:24:47 AM
How do you go into the board? I saw the board options still but i didnt think it mattered since mine is gone. I would like the poll in the same location.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 04, 2013, 11:37:13 AM
I am not sure what do you mean poll in same location as what?

You can access the board by doing ?board=
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 04, 2013, 04:08:50 PM
As admin, you will see the option to create a "new poll" button located on the actual board at top and botton but being that I dont have a one, I cant add a poll because i dont have the option to create a "new poll", And u said that even tho my board is gone and not really gone
Quote from: vbgamer45 on September 04, 2013, 01:14:01 AM
Yeah so where do you want the poll then?
You can create boards still and then go into the board
?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 04, 2013, 04:43:51 PM
Create a board under Admin Manage Boards and find out the board id by hovering over the link
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: Apllicmz on September 07, 2013, 07:04:39 PM
Update portuguese Files



<file name="$languagedir/Who.portuguese_pt.php" error="skip">
   <operation error="ignore">
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
//Begin SMF Gallery SMFPT
$txt['whoall_gallery'] = 'na <a href="' . $scripturl . '?action=gallery">Galeria</a>';
//END SMF Gallery Strings By Candidosa2         
]]></add>
   </operation>
</file>
<file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
   <operation error="ignore">
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
//Begin SMF Gallery SMFPT
$txt['whoall_gallery'] = 'na <a href="' . $scripturl . '?action=gallery">Galeria</a>';
//END SMF Gallery Strings By Candidosa2         
]]></add>
   </operation>
</file>









<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
   <operation>
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
//Begin SMF Gallery Text Strings translate by Candidosa2
$txt['smfgallery_title'] = 'Galeria Para SMF';
$txt['smfgallery_menu'] = 'Galeria';
$txt['smfgallery_version'] = '3.0 Lite';
$txt['smfgallery_admin'] = 'Configura&ccedil;&atilde;o da Galeria';


//Permissions
$txt['permissiongroup_smfgallery'] = 'Galeria do SMF';


$txt['permissionname_smfgallery_view'] = 'Ver Galeria SMF ';
$txt['permissionhelp_smfgallery_view'] = 'Permite ao utilizador visualizar a Galeria';
$txt['cannot_smfgallery_view'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para ver a Galeria';


$txt['permissionname_smfgallery_add'] = 'Adicionar Imagem';
$txt['permissionhelp_smfgallery_add'] = 'Permite ao utilizador adicionar uma imagem.';
$txt['cannot_smfgallery_add'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar uma imagem.';


$txt['permissionname_smfgallery_edit'] = 'Editar pr&oacute;pria imagem ';
$txt['permissionhelp_smfgallery_edit'] = 'Permite ao utilizador editar uma imagem.';
$txt['cannot_smfgallery_edit'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para editar uma foto.';


$txt['permissionname_smfgallery_delete'] = 'Apagar a pr&oacute;pria foto ';
$txt['permissionhelp_smfgallery_delete'] = 'Permite ao utilizador apagar uma imagem.';
$txt['cannot_smfgallery_delete'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o apagar uma imagem.';


$txt['permissionname_smfgallery_comment'] = 'Deixe coment&aacute;rios';
$txt['permissionhelp_smfgallery_comment'] = 'Permite ao utilizador deixar coment&aacute;rios em uma imagem.';
$txt['cannot_smfgallery_comment'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para deixar coment&aacute;rios.';


$txt['permissionname_smfgallery_report'] = 'Relat&oacute;rio de Imagens/Coment&aacute;rios';
$txt['permissionhelp_smfgallery_report'] = 'Permite ao utilizador informar fotos e coment&aacute;rios.';
$txt['cannot_smfgallery_report'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para reportar conte&uacute;do.';


$txt['permissionname_smfgallery_autoapprove'] = 'Auto Aprovar Imagens';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Imagens n&atilde;o precisa esperar pela aprova&ccedil;&atilde;o.';


$txt['permissionname_smfgallery_manage'] = 'Administrar Galeria';
$txt['permissionhelp_smfgallery_manage'] = 'Permite ao utilizador adicionar/excluir/editar todas as categorias. Excluir Coment&aacute;rios, Imagens excluir, aprovar Imagens';
$txt['cannot_smfgallery_manage'] = 'Você n&atilde;o tem permiss&atilde;o para gerenciar galeria.';


$txt['gallery_form_managecats'] = 'Gerir as Categorias';
$txt['gallery_form_approveimages'] = 'aprovar Images';
$txt['gallery_form_reportimages'] = 'Imagens relatados';
$txt['gallery_text_settings'] = 'configura&ccedil;&otilde;es';
$txt['gallery_txt_copyrightremoval'] = 'Remo&ccedil;&atilde;o de direitos autorais';


//END SMF Gallery Text Strings   Support SMFPT     
]]></add>
   </operation>
</file>


<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
   <operation>
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
//Begin SMF Gallery Text Strings translate by Candidosa2
$txt['smfgallery_title'] = 'Galeria Para SMF';
$txt['smfgallery_menu'] = 'Galeria';
$txt['smfgallery_version'] = '3.0 Lite';
$txt['smfgallery_admin'] = 'Configura&ccedil;&atilde;o da Galeria';


//Permissions
$txt['permissiongroup_smfgallery'] = 'Galeria do SMF';


$txt['permissionname_smfgallery_view'] = 'Ver Galeria SMF ';
$txt['permissionhelp_smfgallery_view'] = 'Permite ao utilizador visualizar a Galeria';
$txt['cannot_smfgallery_view'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para ver a Galeria';


$txt['permissionname_smfgallery_add'] = 'Adicionar Imagem';
$txt['permissionhelp_smfgallery_add'] = 'Permite ao utilizador adicionar uma imagem.';
$txt['cannot_smfgallery_add'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar uma imagem.';


$txt['permissionname_smfgallery_edit'] = 'Editar pr&oacute;pria imagem ';
$txt['permissionhelp_smfgallery_edit'] = 'Permite ao utilizador editar uma imagem.';
$txt['cannot_smfgallery_edit'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para editar uma foto.';


$txt['permissionname_smfgallery_delete'] = 'Apagar a pr&oacute;pria foto ';
$txt['permissionhelp_smfgallery_delete'] = 'Permite ao utilizador apagar uma imagem.';
$txt['cannot_smfgallery_delete'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o apagar uma imagem.';


$txt['permissionname_smfgallery_comment'] = 'Deixe coment&aacute;rios';
$txt['permissionhelp_smfgallery_comment'] = 'Permite ao utilizador deixar coment&aacute;rios em uma imagem.';
$txt['cannot_smfgallery_comment'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para deixar coment&aacute;rios.';


$txt['permissionname_smfgallery_report'] = 'Relat&oacute;rio de Imagens/Coment&aacute;rios';
$txt['permissionhelp_smfgallery_report'] = 'Permite ao utilizador informar fotos e coment&aacute;rios.';
$txt['cannot_smfgallery_report'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para reportar conte&uacute;do.';


$txt['permissionname_smfgallery_autoapprove'] = 'Auto Aprovar Imagens';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Imagens n&atilde;o precisa esperar pela aprova&ccedil;&atilde;o.';


$txt['permissionname_smfgallery_manage'] = 'Administrar Galeria';
$txt['permissionhelp_smfgallery_manage'] = 'Permite ao utilizador adicionar/excluir/editar todas as categorias. Excluir Coment&aacute;rios, Imagens excluir, aprovar Imagens';
$txt['cannot_smfgallery_manage'] = 'Você n&atilde;o tem permiss&atilde;o para gerenciar galeria.';


$txt['gallery_form_managecats'] = 'Gerir as Categorias';
$txt['gallery_form_approveimages'] = 'aprovar Images';
$txt['gallery_form_reportimages'] = 'Imagens relatados';
$txt['gallery_text_settings'] = 'configura&ccedil;&otilde;es';
$txt['gallery_txt_copyrightremoval'] = 'Remo&ccedil;&atilde;o de direitos autorais';


//END SMF Gallery Text Strings   Support SMFPT     
]]></add>
   </operation>
</file>

Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 07, 2013, 07:19:18 PM
Thanks Joomlamz for the translations!
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 08, 2013, 02:23:26 AM
Yes, but we deleted the entire board. I cant add the poll back if I don't have a board.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 08, 2013, 11:35:11 AM
Create a board under admin -> Manage Boards and that will still work.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 09, 2013, 10:07:57 AM
vb,

I have some examples to look at...

In the first two, there is a member viewing and on the other there is an admin viewing. As you can see the member cant see the poll option which is what I want to add back and as u know its located on the top of the board but since he cant see the board there is no poll to view. Same with second pic. Now with the third pic, once admin is clicked as you can see, now you can view board. And the forth pic is just so you can where the poll option is located and the "poll" is what im looking to add to my "gallery" so that my members can vote on the pics.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 09, 2013, 10:14:31 AM
So you want a poll option in the gallery?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 09, 2013, 10:15:26 AM
yes. members can upload pics to the gallery, but i want other members to vote in polls for the gallery pics.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 10, 2013, 10:50:51 AM
What you could is a polls button in your SMF menu and link to a board which has all the polls listed/option to create a new poll

Or you can create a link that says post new poll in the menu of SMF
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 10, 2013, 11:08:47 AM
The first option sounds best. What codes would I need to add?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 10, 2013, 11:14:29 AM
You would edit your Sources/Subs.php and add a menu button

If you need help post the file here.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 10, 2013, 11:10:09 PM
Here u go vb,

Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 11, 2013, 11:02:11 AM
This code adds a menu item called View Polls and links it to board 1.0
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 12, 2013, 10:07:30 AM
Thanks bud,

I have one last question, I have changed the heights and widths in gallery settings and forgot the default numbers.
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 12, 2013, 11:34:06 AM
Thumbnail width = 120
Thumbnail height 78


max width and height 2500
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: CheeseHead05 on September 12, 2013, 08:08:36 PM
Thanks vb!
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 12, 2013, 09:46:37 PM
Glad to help
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: johnpaul2k2 on September 29, 2013, 04:02:29 AM
i have uninstalled the mod but the tab is still displaying on my menu list

how will i get remove it??
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 29, 2013, 09:13:57 AM
What SMF version?
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: johnpaul2k2 on September 29, 2013, 06:04:52 PM
2.0.4
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 29, 2013, 06:55:52 PM
Look in your Sources/Subs.php and find the code adding by the gallery and remove
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: johnpaul2k2 on September 30, 2013, 01:46:40 AM
 :)

thanks
Title: Re: SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on September 30, 2013, 11:24:10 AM
Glad to help
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: SMFHacks.com Team on October 02, 2013, 01:14:52 PM
New update
3.7
!Fixed searching in other languages using special characters
+Better support for other languages characters throughout the gallery
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: AllanD on October 09, 2013, 08:24:53 PM
Is there a way to change the menu name from gallery to something else?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on October 09, 2013, 08:33:13 PM
Yes you have modify themes/default/languages/modifications.english.php
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sindawe on October 20, 2013, 05:31:39 AM
Nice mod, really like what I could do with it.

Question:
I'm using this for an online mmorpg guild site. I want to be able to have a category called "Guild Images" and only have it so that the admins can upload images there (images pertaining to boss kills, events, etc. to be used on the portal news posts), but still allow guild members to upload their own images.

So basically...
AdminGroup could go to Gallery, click on category "Guild Images" and upload an image with auto approve turned on, image would automatically appear in category.
RegularMembers could view what's in "Guild Images" or any other categories listed
RegularMembers could Upload/Edit/Delete images in their own category (eg. category that user created) - potentially allows users to create their own categories

Thanks,
Sin.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on October 20, 2013, 11:21:51 AM
I have category level permission but only in the pro edition http://www.smfhacks.com/smf-gallery-pro.php which also allows users to create their own galleries as well.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sindawe on October 20, 2013, 07:18:10 PM
Do you have a community/non-commercial version of pro?
That would be really awesome for gamer guilds.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Arantor on October 20, 2013, 07:25:44 PM
This mod is the community version ;)
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sindawe on October 20, 2013, 07:37:00 PM
Ok, thanks.
I'm sorry, I guess I was just hoping there'd be a version for non-commercial groups that was full version and not a 'lite' version, or at least a way to do full permissions like I'm looking for. I see the pro is $50, but for small time gamer groups, that's still pretty high.

Again, thanks for your time.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Arantor on October 20, 2013, 07:37:40 PM
Fairly sure the Aeva Media mod could do that, actually now that I think about it.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sindawe on October 20, 2013, 07:44:38 PM
Thank you for the info.
I hadn't looked much into Aeva because it looked like, from the mod page, it hadn't been update since '11 and was actually on its way to not being supported any longer. I'll check it out though and dig into it some more, see what it's about.

Thanks.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sarahlee1 on November 05, 2013, 02:33:52 PM
Alright so i did a manual install, I'm pretty positive I followed your instructions perfectly but I'm getting this error. I'm using Version 2.0.5 and Inferno theme, any advice?


Error:

Table 'smp_hdl63nc7l3.smf_gallery_pic' doesn't exist
File: /hermes/bosoraweb184/b2234/ipg.amadatabasecom/Sources/Gallery2.php
Line: 1945
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 05, 2013, 02:42:32 PM
You have to manually run the installer. copy the galleryinstall2.php to your main folder of your smf were SSI.php is and then run via the browser
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sarahlee1 on November 05, 2013, 02:53:35 PM
Worked! Thanks for the quick reply!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 05, 2013, 03:04:19 PM
Glad to help
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sparky33 on November 15, 2013, 10:09:18 AM
Just installed and works a treat, however doesn't seem to have share options, I have Add Facebook Like, Tweet, and Google +1 for topics but it doesn't add them to the galleries?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 15, 2013, 10:10:01 AM
A quick option would be to add the sharing code to the gallery.template.php in view picture function

Otherwise I have sharing options built into SMF Gallery Pro http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sparky33 on November 15, 2013, 10:18:57 AM
Cheers for the quick reply, pro is out of my budget as it's not a money making forum, and I'm not sure how I would add the sharing code?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 15, 2013, 12:47:37 PM
You would need to get sharing code from each social network then edit the gallery template files to include that code in the function template_viewpicture function
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 04:51:54 PM
Please dont flame me, I did look through several pages before my boss walked in and almost caught me. But is there anyone here that could link me to where I can find info on making my gallery path writeable? Ive tried what I did find on the net, but was unable to get it to work. Any help is appreciated.

Warning Gallery path is not writable! D:\Hosting\xxxxxxx\html/gallery/
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 04:52:49 PM
Are you using Apache on Windows OR IIS?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 04:58:50 PM
Vbgamer45, are you asking me that question?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 05:00:01 PM
Yes I am. What webserver software?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 05:03:21 PM
Im going to have to apologize already, im honestly not sure? Im at work, how could I find out?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 05:07:30 PM
How did you setup smf and php?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 05:10:35 PM
On my windows computer at home, and godaddy is my host.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 05:14:20 PM
I know, im not much help, sorry.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 05:16:28 PM
Hosting with godaddy?  You probably should have a control panel with a file manager to set/change the file permissions.

If not put in a support ticket with godaddy to make your D:\Hosting\xxxxxxx\html/gallery/ path writable.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 05:18:31 PM
Quote from: vbgamer45 on November 18, 2013, 05:16:28 PM
Hosting with godaddy?  You probably should have a control panel with a file manager to set/change the file permissions.

If not put in a support ticket with godaddy to make your D:\Hosting\xxxxxxx\html/gallery/ path writable.
I see the control panel in the gallery settings, and it shows green saying writeable, but below that it gives the error I posted above. Ive tried to change it but no luck. Where is the control panel you speak of, before I contact them and ask?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 05:22:35 PM
I am not sure I do not use godaddy. I would contact godaddy
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 05:26:40 PM
just emailed them. Ill get back with you when I hear back. Thank you for your patience.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 06:09:57 PM
I got into my control panel on godaddy, but not sure what to do from there. I did create a directory in IIS management to lead to the folders but not sure what permissions to give or where to go from there?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 06:24:54 PM
Give writable/read and exctuable permissions
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 07:02:13 PM
I think I got it, now just to figure out how to use it. Is there a way to upload multiple pics at one time?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 07:39:12 PM
To use just create a category then upload items to that category.

Not in the lite edition of the modification.

Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 07:42:18 PM
Quote from: vbgamer45 on November 18, 2013, 07:39:12 PM
To use just create a category then upload items to that category.

Not in the lite edition of the modification.
Ok, thank you. Where do I find the upgraded version?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 07:52:57 PM
Link: http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: STRRAYNGE on November 18, 2013, 08:09:35 PM
Quote from: vbgamer45 on November 18, 2013, 07:52:57 PM
Link: http://www.smfhacks.com/smf-gallery-pro.php
Great, Thanks! Ill have to wait on that one for a couple weeks, but I appreciate it!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on November 18, 2013, 08:11:35 PM
Glad to help.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: handy1 on December 20, 2013, 10:10:04 AM
Hi!

Very good MOD and works great! But...

It's not easy to use if user wants to add gallery images to posts. You've to open gallery on new tab and copy there codes/img url.

Is it possible to make new button in message board where user goes to gallery and choose right image in there?
This would be great :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F2lu3mmc.jpg&hash=a36f268cd4216d42db15a7e06a0d438cb9ffe751)
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: treehugger on January 17, 2014, 12:56:48 PM
I'd like to hide Views: Filesize:  Date: By: from under the thumbnail
and Views: Filesize: Height: Width: Posted by: from under the enlarged picture.

I'm using SMF Gallery 3.7 and SMF 2.0.6

I've done a search but the last time this seems to have been mentioned was back in 2007.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: treehugger on January 19, 2014, 07:35:48 AM
Anyone?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on January 19, 2014, 02:26:21 PM
On the view picture page? Requires editing the themes/default/Gallery.template.php

I do have the option though in the pro version to check/uncheck as setting those fields as being visible.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Biology Forums on January 20, 2014, 06:57:31 PM
Quote from: handy1 on December 20, 2013, 10:10:04 AM
Hi!

Very good MOD and works great! But...

It's not easy to use if user wants to add gallery images to posts. You've to open gallery on new tab and copy there codes/img url.

Is it possible to make new button in message board where user goes to gallery and choose right image in there?
This would be great :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F2lu3mmc.jpg&hash=a36f268cd4216d42db15a7e06a0d438cb9ffe751)

This is a very interesting idea.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on January 20, 2014, 07:49:46 PM
Nice idea i don't think a button can be a popup though.
I have an addon for SMF Gallery Pro users that allows you to upload from the message page and returns a bbc link
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Arantor on January 20, 2014, 07:58:57 PM
Aeva Media did it...
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on January 21, 2014, 10:43:52 AM
Will think about in the future but at the moment no time at all.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Westwegoman on February 05, 2014, 09:52:44 PM
Everything seems to upload fine but I have been getting this error in the error log when I add a picture. It's a error that has appeared since I originally installed it back when it was version 3.1.1. I just upgraded to 3.7 and am still getting it.

Any ideas?


http://www.bayoustatefishing.com/community/index.php?action=gallery;sa=add
8: Undefined index: max_sig_characters
File: /community/Themes/default/GenericControls.template.php
Line: 34


Line 34 in that file is
<div class="smalltext">', sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']), ' <span id="editorLeft">', $modSettings['max_messageLength'], '</span></div>';

I'm guessing that it has to do with signatures. I've tried setting that to "0" to see if it changed anything but it didn't.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 07, 2014, 05:26:48 PM
It looks a setting in SMF look under signature settings and enter a limit for signatures.

If not do you have another signature mod that changed some settings?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Westwegoman on February 07, 2014, 05:45:02 PM
I have the current signature mod but it was doing it before I installed it. I also tried setting the signature limit high and even entered 0 for no limit but I still got the error.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 07, 2014, 11:55:24 PM
That code is not in the standard default SMF 2.0.x install from what I can tell on my searches in the Genericcontrol.template.php looks like it was added to it.

<div class="smalltext">', sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']), ' <span id="editorLeft">', $modSettings['max_messageLength'], '</span></div>';


Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Westwegoman on February 08, 2014, 09:26:14 AM
By searching through all the mod files, I have narrowed it down to the Characters remaining of post mod. Ill seek help over there. Thanks for the help.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 08, 2014, 09:33:03 AM
Glad to help.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: MaryLouW on February 17, 2014, 05:05:53 PM
I hope I"m asking this in the right place.  I currently have SMF Gallery Light 3.1.4  and SMF 1.9.  I am planning to upgrade to SMF 2.x in the next week or so. 

My question is, will I lose my gallery when I upgrade to SMF 2.x?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 18, 2014, 09:55:54 AM
You will not loose any data. For 2.0 just download and install the latest version of the gallery and all the data will be there.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: MaryLouW on February 18, 2014, 02:20:02 PM
Do I download and install this before I do the upgrade to SMF?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 18, 2014, 02:48:32 PM
No you would do that afterwords
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: MaryLouW on February 18, 2014, 05:03:18 PM
Okay, but when I upgrade to SMF 2.x, won't that remove all my current mods, including the gallery?  Are you saying the images will not be lost?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 18, 2014, 05:37:05 PM
Yes it will remove all current mods. The gallery picutres are stored in the gallery folder and as long as you don't delete the picture and don't delete your database all the information is still there.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: MaryLouW on February 18, 2014, 05:48:26 PM
Thank you! That sounds encouraging!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sheryltoo on February 23, 2014, 03:05:59 PM
I just added the gallery to my site and I was wondering if there's an easy way for people to use any pictures in the gallery in a post. I figured out that I could copy and past the url from properties but is there any other way?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on February 23, 2014, 03:48:50 PM
At the moment no. Other than copying the picture url.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sheryltoo on March 05, 2014, 03:21:24 PM
Sorry for not thanking you sooner for that information.
I'm actually here because I'm not sure if there's an issue with the mod or my site.
I was having an issue with the reply window at my site so I thought I'd uninstall my mods and see if one of them was causing the issue. When I tried to uninstall Gallery, I got errors.
I took a picture of what the errors said and will attach it here. I ended up not doing anything because I wasn't sure what I should do. The error message said the mod wouldn't uninstall correctly if I proceeded.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Westwegoman on March 05, 2014, 03:28:02 PM
I have gotten this many times with mods. It could be that some code was changed by another mod that was installed after you added the gallery, which will prevent the gallery from uninstalling properly.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 05, 2014, 03:49:29 PM
That uninstall issue is common with smf you need to uninstall mods in the last order they were installed in most cases since one mod may change another error that a mod was also editing.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sheryltoo on March 05, 2014, 05:00:53 PM
Alright, thank you.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 07, 2014, 03:33:56 PM
I've just uploaded this mod to my forum but I'm getting an error message when I try to install which, frankly, has me panicked. The test failed on point no. 5 - the execute modification and add after part, then in the second column it says ./index.php. Please will somebody help me? Oh, the forum's www.thenaturalhairforum.co.uk and it's version 2.0.7.
Thanks!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 07, 2014, 03:58:30 PM
Proceed with the install. You may have to attach your index.php and we can verify if the change made or not and if not fix the file.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 07, 2014, 04:17:55 PM
Well, it seems to have installed. But something's not right...what do I do now?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 07, 2014, 04:29:16 PM
Attach your index.php file from root directory of your forum.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 07, 2014, 04:45:29 PM
Here it is. Hope this is the right one.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 07, 2014, 04:48:28 PM
Updated file attached
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 07, 2014, 04:59:13 PM
Wow, that was quick. It worked, although it's rendered my menu icons unusable - but that's no problem at all, I'm really not bothered about that. Now I'll go back to my other thread about getting the gallery into my header block...may need your help with that too. Thanks v much! :)
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 11, 2014, 04:42:47 PM
Hi, one more little issue with this mod. I can only see the pictures if I'm logged in. I want guests to be able to see it too...
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 11, 2014, 04:55:04 PM
And while I'm at it, is there a way to remove the big space between the images? And also, can I remove the comments and caption part from the pictures?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 11, 2014, 05:25:49 PM
Quote from: S Mac on March 11, 2014, 04:42:47 PM
Hi, one more little issue with this mod. I can only see the pictures if I'm logged in. I want guests to be able to see it too...
In admin -> modifications  Settings -> Custom blocks
Edit the gallery block and choose guests as permission to view the block and any other membergroup that you want it to be visible to.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: S Mac on March 11, 2014, 06:00:02 PM
Oh yeh - thanks.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on March 26, 2014, 01:13:45 AM
I installed the gallery a while back to test it out (version 3.1.4) and then uninstalled it. I knew I was going to use it eventually, so I kept the tables in the database. When I go into my files, I still see a gallery folder in my root. (a couple of jpeg pictures, and an index.php)

My question is, if I now want to install the latest version (3.7), do I just go into my package manager and click on the delete link (3.14, currently not installed)? Then just upload the 3.7 version? Is having the galley folder in my root ok if I want to delete the old uninstalled version, and upload and install the new one?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 26, 2014, 01:28:01 AM
Yeah just delete the old version then install the new version. Having the gallery folder and tables is ok and data will be restored when installed as new.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on March 26, 2014, 01:29:55 AM
You are awesome man. Thanks for the quick reply as always. It is very much appreciated.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: INTREPID405 on March 28, 2014, 10:38:48 AM
Using SMF 2.0.7 and just downloaded Gallery Lite. No errors.  Seems like the only way I/we can upload images into the Gallery is by using the "browse" hot link which is OK going forward.

But, we have a number of images contained in posts though out the forum. How can I/we get them into the Gallery? Tried, copy/paste, drag/drop.

                            Thanks, J.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 28, 2014, 10:49:50 AM
That is the only way you would need to download the images from the posts then reupload them using the add picture browse link
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: INTREPID405 on March 30, 2014, 12:50:38 AM
When a member includes an image in a post would the Pro version automatically load the image into the Gallery?

If not, is it possible to write code that will do that?

                             Thanks,
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on March 30, 2014, 01:41:25 AM
No not currently a feature. That would be tricky since you would have to search for attachments and also inline images posted as links also would have to decide where they would appear in the gallery under what category etc.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on April 05, 2014, 02:41:15 AM
I'm not planning on enabling comments, and I would like to delete the comment part where the images are shown in the row (as every picture would of course all say comments (0) )

here is an image of what I am trying to remove-

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2Frck0ld.png&hash=b485c563de548c16bb3a9c4da621954ae924f8e7)

Is it just deleting this part out of themes/default/gallerytemplate2.php that gets rid of the comments (0) line?

echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '">' . $row['commenttotal'] . '</a>)<br />';
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on April 05, 2014, 10:08:04 AM
Yes that would get rid of it in that location.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on April 05, 2014, 12:23:08 PM
Thank you.

One more question; I set up different categories, and when a picture is added, it becomes the newest, and first one shown in the row; making the one added before that second in the row. Is there a way to have it so that the first picture uploaded to a certain category stays first, the second uploaded stays second, etc.

So basically; the newest picture added to a gallery category would automatically be the last picture in that category.

Or maybe even have the order of the pictures per category be shown in alphabetical order (by title of picture)?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on April 05, 2014, 12:42:00 PM
You have to change the order by in sql query from
ORDER BY p.ID_PICTURE DESC
TO
ORDER BY p.ID_PICTURE ASC
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on April 05, 2014, 02:13:50 PM
Dumb question, but what file is that in? Or is that a table I have to change in phpadmin?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on April 05, 2014, 02:23:55 PM
It would be in Sources/Gallery.php  I think GalleryMainView or GalleryThumbnaillisting
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on April 05, 2014, 02:49:13 PM
Awesome. Thank you once again for your help.



Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on April 05, 2014, 07:18:30 PM
Glad to help
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: TRR on April 20, 2014, 10:19:10 PM
Hello,

Just installed this mod and now I have this message at the top of my forum.

// Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings

How do I fix this?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on April 21, 2014, 08:00:59 AM
Open themes/default/languages/who.english.php
Find ?>
The move it all the way to the end of the file.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Harvester on May 01, 2014, 10:40:07 PM
i installed this... it went smooth... no errors,,,
and when i click on the gallery link.... the url changes mysite.com/forums/gallery/?action=gallery
but no gallery page loads. im left staring at my forum index still.

i checked the files edit against the parser and all looks fine
not sure whats wrong
please assist.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: mashby on May 01, 2014, 10:42:12 PM
Might be that mod you have installed that I mentioned in another topic. That's not a typical URL from SMF. :)
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 01, 2014, 11:03:50 PM
What SEO mod are you using?
It looks like the action is rewritten.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Harvester on May 02, 2014, 09:32:37 AM
Im using SMFPacks: SEO Pro Mod.

Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 02, 2014, 01:32:05 PM
Is there an option to disable action rewriting? I think that is causing the issue.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: hygron on May 05, 2014, 09:00:33 PM
I am bumping this topic for my use.  Sorry, and thanks for the support.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 05, 2014, 11:19:26 PM
To do what?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Steve on May 06, 2014, 11:00:20 AM
Quote from: hygron on May 05, 2014, 09:00:33 PM
I am bumping this topic for my use.  Sorry, and thanks for the support.

No offense but couldn't you just bookmark this topic instead of bumping it so all the folks who provide support don't think there's a new question? :)
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Shambles on May 06, 2014, 12:06:35 PM
.. or click the "Mark Unread" button.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sonicweb on May 16, 2014, 12:28:57 AM
Ok, i dont know if this has been asked or not, but i couldnt find it in the several pages of replies i looked at here on this thread, so im gonna ask now. I just installed the gallery, and it installed properly. No errors or warnings upon installation. I tried adding a picture, and it said it uploaded and everything, but when you try to see it in the gallery, there is no thumbnail nor is there a picture. If you right click on the thumbnail and view the image, it says its not found. So, im assumed that the files werent uploading at all. I checked the directory on the server, and sure enough, nothing there. Any idea what might be causing this?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 16, 2014, 08:01:49 AM
Check that the gallery folder is writable. And the gallery path and gallery url path are correct. Look at the forum error log for clues.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Steve on May 16, 2014, 08:49:23 AM
Quote from: sonicweb on May 16, 2014, 12:28:57 AM... there is no thumbnail nor is there a picture. If you right click on the thumbnail and view the image ...

I'm a little confused. If there's no thumbnail, how did you right-click on it?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sonicweb on May 16, 2014, 12:56:45 PM
 there is a thumbnail thre, but it shows a broken image. Here's a SS of what it looks like after trying to upload a couple pictures.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 16, 2014, 01:48:51 PM
Did you check your forum's error log? And paths in the gallery settings?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sonicweb on May 16, 2014, 02:25:02 PM
Well, i made a booboo and dont know how to revert back to the original. I tried changing the button from "gallery" to "garage", but apparently that messed everything up, even after i tried a fresh install of the package. heres the error i get.

Use of undefined constant Garage - assumed 'Garage'
/Sources/Subs.php
Line: 4131

Which is this.....

// [SMF Gallery] button
         'gallery' => array(
            'title' => Garage,
            'href' => $scripturl . '?action=gallery',
            'show' => $context['allow_smfgallery_view'],
            'icon' => '',

So, I'm assuming all i have to do is revert that garage thing back to original, but I, for the life of me, have no idea what the original code would be on that line. Trying to teach yourself this stuff can be a nightmare!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 16, 2014, 03:30:00 PM
Change  Garage to 'Garage'
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sonicweb on May 16, 2014, 03:38:42 PM
 I did that. same error is thrown.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 16, 2014, 05:43:01 PM
the quotes should fix that though.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: sonicweb on May 16, 2014, 05:52:40 PM
upon reading more error logs, it seems to be colliding with a script from another mod. eNotify could be the culprit. I'll dig around the code and see what i find out.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 16, 2014, 07:14:08 PM
Ok good luck let me know what you find.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: jlt1 on May 22, 2014, 07:17:53 PM
I had a gallery CMS installed under /gallery on my server in which the SMF Gallery installed itself into. I changed the directory in the mod settings to change it to /gallery1 but it didn't work. So I uninstalled the mod. Now that I uninstalled it, SMF still redirects to the SMF Gallery mod which goes back to the SMF index even after being uninstalled. Can someone tell me how to let /gallery (which has a different CMS installed) redirect back to it and not back to SMF. Thanks.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on May 22, 2014, 07:30:19 PM
You would have to replace the index.php in the gallery folder to your cms index php file.

The directory if you are using smf gallery needs to end in a slash / as well.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: SaltedWeb on June 16, 2014, 07:54:40 PM
Gallery works great I wanted to change the menu to say something different then " Gallery "
I looked in sub.php didn't see anything there that would change it anyone have any ideas ?


Thanks
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on June 16, 2014, 08:08:23 PM
If you're wanting to change the gallery name that is in the menu of the navigation bar, that's in languages/Modifications.english.php

Find-

$txt['smfgallery_menu'] = 'Gallery';

Change Gallery to whatever you want.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: SaltedWeb on June 16, 2014, 08:19:05 PM
Thank You,
some reason I thought it was in sub/.php appreciate the help. ;D
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: br360 on June 16, 2014, 08:27:32 PM
You're welcome.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Soulmaster on June 19, 2014, 02:50:52 PM

hello,  after the update to 2.0.8 i was missing the gallery on my website , so i put the code in the updated files.. but now there is no gallery in the menu on the frontpage.  it's in the subs.php .


how to fix this? site is www.theworldofchasers.com

Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 19, 2014, 03:18:12 PM
Attach your Subs.php file.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Soulmaster on June 19, 2014, 04:04:47 PM
as ask
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 20, 2014, 07:42:56 AM
Updated file attached
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: Soulmaster on June 20, 2014, 03:52:41 PM
thnx
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 20, 2014, 04:44:39 PM
Glad to help!
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: bharat_forum on June 29, 2014, 08:48:36 AM
Can you please tell me if it will be possible for each member to create as many photo albums as they want?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 29, 2014, 10:16:51 AM
Not in the lite version but I have user galleries in the pro version of the mod.
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: bharat_forum on June 29, 2014, 10:21:00 AM
Where can I download it?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 29, 2014, 11:06:25 AM
Link: http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: bharat_forum on June 29, 2014, 11:34:24 AM
Is there a way to translate this mod into some other languages? What should I do for that?
Title: Re: SMF Gallery 3.7 (Oct 2) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on June 29, 2014, 12:27:57 PM
Yes translate the gallery.english.php file and any text strings added to modifications.english.php file.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: SMFHacks.com Team on August 18, 2014, 04:26:56 PM
New update released!

4.0
+Better linktree display in certain areas of the gallery
+Not filling in all the information/errors on add picture page now 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
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: Xer0n_ on August 20, 2014, 04:33:19 AM
I have searched through a bunch of pages and being that there are 177 of them I'm pretty sure it's been covered but I can't find it.  When users add pictures to the gallery it uses their native resolution and show up extremely large when selected.   I tried using a smaller resolution for the maximums but the upload fails if the original is larger and it doesn't go through.

Is there a way when clicking on a screenshot to have it scaled down to fit within the browser instead of the native?  Most screenshots from our gaming community are 1920x1080 and we have to scroll an immense amount to view the entire thing. 

This is what I gather, it's defined based on the original images specs:

< img height="1080" width="1920" src="7_20_08_14_3_20_01.jpeg" alt="" >

Edit:
Nevermind, I guess I need to buy "pro" to be able to do that.
Title: Re: Translated into German!
Post by: Karin´s Servietten on August 27, 2014, 07:01:30 AM
Quote from: Badelehrling on September 19, 2006, 05:09:35 PM
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)



Schade, der Link geht nicht!
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 27, 2014, 08:01:28 AM
That link isn't working for me either. What are you lookign to do?
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 28, 2014, 01:16:18 PM
Hello, My first post here on the forum, but used it multiple times as reference, I'm a little confused with this package atm.
I have a custom theme on my site, and mods work fine, i'm using Godaddy as a host and the SMF application just plugs in.
i'm on a windows server.
I installed the package with some minor file errors (which is expected) I had removed the 'help' menu from my forum in the source>sub.php
so that was one of the error messages, but it still installed successfully, i'm able to go to Configuration and see Gallery on the bottom
I click on it and it brings me to the mod, so it seems to be installed and working.

The problem is I can't seem to find the location of the gallery in the forum , unless under configuration to edit settings and other goodies this mod offers. I read "If you are using a custom theme you may see some errors installing on index.template.php" and it also said it should still install fine just without the menu "You can access the gallery via yoursite name than ?action=gallery if you do not have a link or button on your theme" I'v tried adding ?action=gallery to the end of my site name and still couldn't see the mod.
I have added a category with a picture just so I could know their is a pic file in the mod, also but I still don't find it any where on the forum..


Also I'm using smf 2.0.8, but would I be able to change my version of smf to one with GD support (is that what is causing this problem i'm having) without losing my content? I haven't made it 'live' as in telling all my friends yet
so loss of members is okay. I just don't want to lose what i'v already started adding (content). 


"Requirements for SMF Gallery Lite or Pro:
To have SMF 2.0.x, SMF 1.1.x or SMF 1.0.x installed and that your PHP has GD support.
If you do not know if your current host supports GD ask them or in SMF go to your Admin section of your forum and click on Support and Credits and it may say the GD version if it is installed."
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 28, 2014, 01:50:17 PM
It seems like the modification did not install correctly. Do you have a link at all in the admin area for the gallery? Or no options at all?
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 28, 2014, 02:30:07 PM
It does have a data directory url, When I copy and pasted it in my browser it just brings me to the home page of the forum.
I went to gallery>Settings, Is that the correct place too look?
And thank you for your help man, amazing mod.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 28, 2014, 03:34:24 PM
I still need help with this, i'v been struggling on my own and been trying to make it work, I usually don't make accounts because I solve it on my own or someone else has already experienced the same problem and has an answer. Any extra help would be honored please
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 28, 2014, 03:40:10 PM
Attach your Sources/Subs.php

I want to see if the gallery code is added there. Or you can look at the manually code instructions on the modsite and look for the changes made to Sources/Subs.php to make them.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 29, 2014, 12:13:46 PM
Sorry for late reply, For some reason I wasn't getting your reply yesterday.
I am attatching subs.php from sources directory into the reply now.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 29, 2014, 12:18:26 PM
Code was missing from that file have updated it
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 29, 2014, 12:55:43 PM
I have updated the subs by deleting all the contents in my ftp client and copy and pasting the Your edited version but I still do not see a change in the forums, sir. I have also tried editing threw godaddy's webhosting file manager that is connected to the ftp, and I some how deleted the file and the forum would show an error page so I went back into the sources and created a file "Subs.php" and Pasted your edited version and the forum is running again but still the photo gallery isn't working.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 29, 2014, 01:46:48 PM
Just like to note , I was testing all this with the default theme, and switched back to my custom template theme and now theirs a blank tab that is trying to redirect to the photo gallery but it does not load or switch the page.
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 29, 2014, 01:51:56 PM
Doesn't look like it installed at all then.
Redownload from http://mods.simplemachines.org/index.php?mod=473 and then install the package.

Or grab the manual install instructions from http://mods.simplemachines.org/index.php?mod=473
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: MyTime on August 29, 2014, 02:05:58 PM
Wonderful VB, You are an incredible tech Person, I would be very proud to have the knowledge know how you have, It is working seems to be operating exactly as designed. I'm very happy with this, and I would definetly note to donate too you, once any of my businesss take off but I only have $300 to my name atm. Thank you very much
Title: Re: SMF Gallery 4.0 (Aug 18) with SMF 2.0/SMF 1.1.x Support!
Post by: vbgamer45 on August 29, 2014, 02:12:07 PM
No problem good luck with your forum/site!
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: SMFHacks.com Team on September 20, 2014, 07:55:07 PM
Massive update to the SMF Gallery system
Now with a built in Aeva Media Convertor! If you have been waiting for a migration path now is the time to convert over! Also a bunch other tweaks in the gallery system, full changelog below
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
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Shambles on September 21, 2014, 06:28:17 AM
Thanks for the massive update. Good job :D

Just one thing... in your smfgallery2.xml package file you have this:

<file name="$languagedir/Who.english.php">
<operation error="ignore">
<search position="end"></search>
<add><![CDATA[
// Begin SMF Gallery
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
// END SMF Gallery Strings
]]></add>
</operation>
</file>


On my installations, the position="end" inserts the code after my php closure tag (?>) rendering the added text to the screen. I've had to edit the closure tag to a position below your additional code ;)
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on September 21, 2014, 11:36:19 AM
Yeah unfortunately that is an issue with smf mods when using the package manager. So other mods do not do the change correctly

Honestly SMF should just remove the ?> from the language files at least not needed.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Arantor on September 21, 2014, 01:35:31 PM
Actually it IS needed. The package manager would be even more broken without it since when it looks for the 'end' of the file, it's looking for ?>.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on September 21, 2014, 01:49:25 PM
Hmm haven't looked into the package manager myself. But seems like it would be better just to do an fseek to the end of the file and just append from there.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: crustybum on September 21, 2014, 02:37:48 PM
Under the tiltle "convertors" i have nothing showing, can someone tell me how i import my old aeva gallery?
Thanks
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Arantor on September 21, 2014, 02:46:19 PM
Quote from: vbgamer45 on September 21, 2014, 01:49:25 PM
Hmm haven't looked into the package manager myself. But seems like it would be better just to do an fseek to the end of the file and just append from there.

There are reasons why it doesn't do this, and also reasons why it doesn't just fopen the file in 'ab' mode and be done with it.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: crustybum on September 22, 2014, 08:53:04 AM
Is it correct that you can only upload one picture at a time?, i cant see any bulk uploader?
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on September 22, 2014, 08:56:29 AM
Quote from: crustybum on September 21, 2014, 02:37:48 PM
Under the tiltle "convertors" i have nothing showing, can someone tell me how i import my old aeva gallery?
Thanks
You need to have aeva installed at the same time as SMF Gallery
Quote from: crustybum on September 22, 2014, 08:53:04 AM
Is it correct that you can only upload one picture at a time?, i cant see any bulk uploader?
That is correct. In the lite edition of SMF Gallery there is only one upload at a time. In SMF Gallery Pro we have the multibulk uploader.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: crustybum on September 22, 2014, 09:15:15 AM
OK many thanks, price is a bit steep for a hobby,  ;D but thanks.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on September 22, 2014, 12:35:09 PM
Sent a pm.
Title: Unable to load the 'main' template
Post by: lewism on October 05, 2014, 02:40:06 PM
Using SMF 2.0.8 and gallery lite 5.0, all set up and configured then I went to test and after entering the first message information and uploading the image, I got


An Error Has Occurred!
Unable to load the 'main' template.

I am using the default template with no major mods to it other than linking to my own banner.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 04:09:50 PM
Do you have the gallery2.template.php in your themes/default folder?

And it only happens on upload image? You can visit other parts of the gallery?
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 05:46:15 PM
Yes, I see this template installed there.
As for only when uploading, I guess I cannot say yet since I have not been able to upload but the gallery menus, categories, etc, seem to be displaying.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 05:55:51 PM
What mods do you have installed? I do not have a main template. Called I have one called mainview but not main.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 06:20:48 PM
1.    Enhancements to recent posts 2.0.5
2.    Contact Page 3.2
3.    SMF Gallery Lite 5.0
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 06:25:25 PM
Try uninstalling Enhancements to recent posts 2.0.5

Also for your error what page do you end up on? That says main template. As in the url in your browser
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Arantor on October 05, 2014, 06:28:31 PM
'main' is the default setting for $context['sub_template']. If a mod doesn't override that, that is what will be called for...
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 06:40:38 PM
I fully deleted the enhancement addon then tested again.

After adding image and hitting submit;

The browser url is;
http://www.domain.com/index.php?action=gallery&sa=add2

An Error Has Occurred!
Unable to load the 'main' template.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 06:48:05 PM
Quote from: lewism on October 05, 2014, 06:40:38 PM
I fully deleted the enhancement addon then tested again.

After adding image and hitting submit;

The browser url is;
http://www.domain.com/index.php?action=gallery&sa=add2

An Error Has Occurred!
Unable to load the 'main' template.

I haven't' been able to recreate that issue. I have downloaded the mod from the modsite then tested it on my test site.
Tried adding/editing picture.  With errors and without errors. Can't recreate the issue....

Please check your forum's error log for details and let me know what type of file, the filesize etc.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 06:54:50 PM
Type of error: Template
http://www.domain.com/index.php?action=gallery&amp;sa=add2
Unable to load the 'main' template.

No other errors in the apache logs. My site is pretty new, nothing much on it, everything works but this.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 07:08:37 PM
I am at a loss at this point.
Does the picture add at all inside the category?

Make sure your gallery path is correct under gallery settings should end in a /
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 07:38:08 PM
Yes, the gallery directory exists. Does it need any special permissions?

drwxr-xr-x  2 apache apache  4096 Oct  5 10:20 gallery

There is nothing inside the gallery other than the index file.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 07:42:53 PM
Just needs to be writable is your gallery path valid ends in a slash?
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 08:42:12 PM
Yes, the paths look fine.
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 10:05:45 PM
What image are you uploading. What type and how large?
Title: Re: SMF Gallery 5.0 (Sep 20) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 11:12:38 PM
I have actually tried various file sizes and types. I changed the allowed size to 2000mb

However, I think I finally found the problem. It is that of setting the resolution size then trying to upload something which is larger. There should be a more informative error message perhaps.

I thought it would let me know that the size was too large or that it would resize it. Is there any sort of auto resizing function for that to happen? Most people don't even have a clue of how to edit images anymore these days and will want to upload huge crazy sized files. An auto resize is a must these days in any gallery :).

Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: SMFHacks.com Team on October 05, 2014, 11:26:57 PM
New update:
5.0.1
!Fixed bug in error message SMF 2.0 for images that exceed max width/height
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 11:27:43 PM
Quote from: lewism on October 05, 2014, 11:12:38 PM
I have actually tried various file sizes and types. I changed the allowed size to 2000mb

However, I think I finally found the problem. It is that of setting the resolution size then trying to upload something which is larger. There should be a more informative error message perhaps.

I thought it would let me know that the size was too large or that it would resize it. Is there any sort of auto resizing function for that to happen? Most people don't even have a clue of how to edit images anymore these days and will want to upload huge crazy sized files. An auto resize is a must these days in any gallery :).


That was the issue posted an update to fix that bug.

I do have auto resizing of images if they exceed but that is in the pro edition of the modification.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 11:31:51 PM
I'll be buying that edition but I wanted to test this out first :)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 11:41:46 PM
One more question. Is there a way to make the image auto fit the browser when viewing? No one would want to scroll side to side while viewing a bunch of images.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 11:43:28 PM
Quote from: lewism on October 05, 2014, 11:41:46 PM
One more question. Is there a way to make the image auto fit the browser when viewing? No one would want to scroll side to side while viewing a bunch of images.
Yes it does. Has setting for display, medium size, thumbnail size, and large size images.
If you want a 95% full demo check out http://www.createaforum.com you can signup for a free forum I have SMF Gallery Pro installed there. Or I can pm you a test forum login.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 11:46:18 PM
It's ok, I'll just buy it now and see how things go. Looks like you're an active developer and quick to respond to support as well and that's the key to any good product :).

Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 05, 2014, 11:48:30 PM
The only other question I have about purchasing is...

'Copyright removal'

Is this a separate fee or is that included in the paid version? I sure hope this is included in the paid version? :)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 11:49:52 PM
Yes I am working on updates all the time and have quick response times, been working on the gallery for many years now. I am really proud of the Pro edition in terms of features/options that you can do with it.

Sent pm.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Arantor on October 05, 2014, 11:53:11 PM
Can you upload huge files without changing the server limits?

Curious to know about uploading 20MB JPEG files for example but the server in question does not allow me access to change the max upload limits.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 05, 2014, 11:58:33 PM
Planned in an update been looking into it reading php input/splitting it up in chunks.
That part only matters for the most part for large media mainly videos.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Arantor on October 06, 2014, 12:00:14 AM
It's *lots* of fun. Then you also have to balance sending it from the server too... not so much a problem for you since it looks like you're letting Apache do the work, but if you put files behind a PHP script to protect them from guests/unauthorised users, you get to have so much fun with it otherwise avoiding server timeouts.

It's a serious amount of work to design and implement and get right, but I think it'd be worth it if it could be done.

(It *can* be done. It's just *scary*.)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: lewism on October 06, 2014, 12:02:12 AM
Now that I've purchased, do I need to fully remove the other version then install this one?

Do I have to upgrade SMF to 2.0.9 or can I wait to make sure other plugins are updated first.

I signed up to smfhacks but the site is note responding to my trying to log back in :)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on October 06, 2014, 12:03:52 AM
Just sent you a pm on instructions should uninstall old version then install SMF Gallery Pro all data is kept intact.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: gaurav09 on November 04, 2014, 05:44:55 AM
error when going to "Manage Categories" please help to fix...

Forbidden

You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: margarett on November 04, 2014, 05:50:22 AM
This has probably nothing to do with this MOD.
You should be on Godaddy. Ask them to disable mod_security ;)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: gaurav09 on November 04, 2014, 05:53:40 AM
Quote from: margarett on November 04, 2014, 05:50:22 AM
This has probably nothing to do with this MOD.
You should be on Godaddy. Ask them to disable mod_security ;)
"Ask them to disable mod_security"  :-\  :-\
ok if you are saying then i will talk to them :) :D

edit : ,.. i ask host provider or domain provider :p
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: margarett on November 04, 2014, 06:17:13 AM
Host.

Do note, this is a known and old "incompatibility" with Godaddy (which our developers tried to fix with them but without any positive reply). You might need to insist a bit to have that happening...
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: gaurav09 on November 04, 2014, 06:25:16 AM
Quote from: margarett on November 04, 2014, 06:17:13 AM
Host.

Do note, this is a known and old "incompatibility" with Godaddy (which our developers tried to fix with them but without any positive reply). You might need to insist a bit to have that happening...
but i figured something else  :-X

my adress bar url is showing this :
http://www.xyz.com/index.php?action=admin;area=gallery;sa=admincat;d5c434ed4=b94e3fb43590d54732a3e0cba4694946

but when i am removing "d5c434ed4=b94e3fb43590d54732a3e0cba4694946" ,..then error is not coming  :-\  :-\
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: margarett on November 04, 2014, 06:33:15 AM
OK, the background is different than I thought.
Nevertheless, it's probably still an issue with mod_security (as it's usually the cause of the "Forbidden" errors).

You can talk to your host nevertheless. vbgamer45 should give his insight when he sees this ;)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: gaurav09 on November 04, 2014, 07:01:00 AM
please also tell how to hide or say how to remove gallery tab from header menu ?
thanks.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 04, 2014, 08:57:56 AM
It is controlled by Admin -> Permissions.

Or if you want to remove it completely remove rom Sources/Subs.php
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: gaurav09 on November 04, 2014, 10:17:17 AM
Quote from: vbgamer45 on November 04, 2014, 08:57:56 AM
It is controlled by Admin -> Permissions.

Or if you want to remove it completely remove rom Sources/Subs.php

how to disable it ?.....i do not want to remove completely !!

// [SMF Gallery] button
'gallery' => array(
'title' => $txt['smfgallery_menu'],
'href' => $scripturl . '?action=gallery',
'show' => $context['allow_smfgallery_view'],
'icon' => '',
),
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: margarett on November 04, 2014, 11:49:00 AM
'show' => false,

;)
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 04, 2014, 01:12:18 PM
That would work but no one will see it and you will have change the code again back to the old to get to work correctly if you plan to use that tab
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: 420SA on November 12, 2014, 07:40:26 AM
Hi there

Have you guys considered adding a "Latest Gallery Images" to the board index? That would be a great feature!

Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 12, 2014, 09:47:35 AM
I have added it in the pro edition as an addon. It is easy to add if needed.

Do you mean just under recent posts. Or showing the actual images?
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: jwwd on November 22, 2014, 01:16:11 AM
Hi
I just upgraded my SMF Gallery from 5.0 to 5.0.1 and now I see this in the top of my forum:

// Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings // Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings // Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings

The above code is appearing in the "Admin Center" and "Profile"

My SMF forum is version 2.0.9.

Anyone know what might be the issue?

Best regards,
Henrik
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 22, 2014, 01:23:39 AM
Open themes/default/languages/who.english.php

Find

?>

And move it all the way to the end of the file.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: jwwd on November 22, 2014, 04:57:50 AM
Quote from: vbgamer45 on November 22, 2014, 01:23:39 AM
Open themes/default/languages/who.english.php

Find

?>

And move it all the way to the end of the file.

Hi and thanks for your quick reply.

Its working perfect.

Best regards,
Henrik
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 22, 2014, 10:37:13 AM
Glad to help that sometimes happens when some mods modify the file the wrong way.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Sudhakar Arjunan on November 24, 2014, 03:07:15 PM
If you give me smf gallery with aevamedia importer  and direct image upload option would be good vbgamer45
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 24, 2014, 03:57:10 PM
The aeva media importer is built into SMF Gallery Lite.
For Pro I have it as well.

If you get SMF Gallery Pro now is the time blackfriday pricing only $40 this week only!!!
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: Sudhakar Arjunan on November 27, 2014, 10:34:29 AM
Nice vbgamer45,

But what about uploading images in post page. Instantly goes live in a post with link gallery when users click on the image.

and what about the 2.0 version support.
Title: Re: SMF Gallery 5.0.1 (Oct 5) SMF 2.0.x and SMF 1.1.x now with Aeva Media Converter!
Post by: vbgamer45 on November 27, 2014, 10:44:59 AM
I have an addon in the members area that adds a link to upload files from the post page.

The mods work for 2.0.x

SMF Gallery Pro will also install on 2.1 but some of the styling will be off for now.

Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: SMFHacks.com Team on December 13, 2014, 09:33:01 PM
New release with SMF 2.1 Beta native support!

5.5
+Added support for SMF 2.1 Beta 1 now using hooks for most file edits for SMF 2.1 Beta 1!
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: xeon365 on December 15, 2014, 05:06:12 PM
what is the difference from free and pro versions... i just want something that did what aeva gallery did, the website generates 0$ so not really wanting to spend anything on it.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on December 15, 2014, 05:15:30 PM
Pro just has more features for power users.

Free has a built in convertor from Aeva. And contains all image uploading features along with categories.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Adrek on January 10, 2015, 12:52:20 PM
I have old Coppermine Gallery and newer Aeva Media installed.

I want to move both to one site and use SMF Gallery mod, but there is only Aeva converter. That's not a problem, I think Aeva has Coppermine  importer so I later convert both Aeva databases to SMF Gallery.
Is there any script to merge two galleries using SMF Gallery?
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Arantor on January 10, 2015, 01:02:14 PM
All of the importers to all the current systems don't really handle merging all that well, they tend to reuse all the ids, so merging doesn't tend to work too well (this applies to the Aeva importer, the SMF Gallery importer for Aeva and my importers)
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 10, 2015, 01:24:35 PM
I do not have a script to merge galleries as stated as both that is the issue with reusing id's instead of making newer ones which makes the import process easier.

I have a coppermine gallery for SMF Gallery Pro along with Aeva
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Adrek on January 12, 2015, 05:12:12 PM
I did test conversion Aeva > SMF Gallery (over 3000 images and 6000 comments :) ) but I have one more question - should your converter convert user created albums from Aeva?
After conversion I see new category named "Member Galleries" but it's empty. I know that user galleries are available in Pro version, but is there way to get pictures from Aeva user galleries to SMG general album?
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 12, 2015, 05:20:29 PM
Right now they are just held in place in case you upgrade to pro.
You can move them over to a general category but this will need to be reverse if you upgrade to pro.

It requires an mysql query UPDATE smf_gallery_pic SET ID_CAT = #IDCATHERE# WHERE USER_ID_CAT != 0
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: xeon365 on January 14, 2015, 04:46:23 AM
eeh tried the free version, but it is total crap compared to avea ... i mean seriously you upload pictures and then instead of it taking the user to the picture they uploaded, it takes them to myimages, where the picture they just effing uploaded is somewhere among the pages of other uploads, because you can't even sort that by last uploaded??!?

i mean this is so bad on so many fronts i dont event want to look at the pro year license version

and multi file upload is a pro feature?

oh then i saw this http://aeva.noisen.com/6138/a-cautionary-tale-for-aeva-haters






Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 14, 2015, 09:03:01 AM
Yes it goes to myimages because what if the picture is not approved yet it won't be visible. No reason to flip out mate.
Multiupload is a pro only feature.
The lite version is very simple compared to the pro version. If aeva works for you then stick with it.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: xeon365 on January 14, 2015, 09:24:43 AM
"Yes it goes to myimages because what if the picture is not approved yet it won't be visible" ...

...And that makes total sense ....when as the admin and the sole user who can approve pictures gets the same functionality uploading, as a user who cannot approve the upload so that it is seen in the proper gallery ::)

"The lite version is very simple compared to the pro version"

you say that, but i'm thinking the pro version probably isn't that pro from what i've seen.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 14, 2015, 09:50:12 AM
Signup on createaforum.com includes SMF Gallery Pro You can make your choice based on that. I can easily say SMF Gallery Pro is the best gallery on the market right now and I have looked at all the options.  Plus been around six years and still updated and a thousand plus customers.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Dragon41673 on January 23, 2015, 01:24:13 PM
Hello,

I've just installed this mod to my forum, and I needed to know if something that I thought was included with this version, is able to be done. ..

What I'd like to do is have user folders for their own pictures, rather than "all" pictures be in the same folder. This way, when someone comes to visit the gallery, they can go to the correct user folder to view their work, rather than see a bizillion pictures all at the same time which they didn't want to see.

I don't see in the admin panel where this is a function of this version...is it?
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 23, 2015, 01:29:04 PM
User galleries/member galleries are not part of SMF Gallery Lite but are a feature in SMF Gallery Pro.
In the free version. You can have multiple categories but pictures in the categories can have multiple members in the same category.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Dragon41673 on January 23, 2015, 01:31:28 PM
Ok, thanks...I'm guessing there is no way to set it up how I'd like it without going pro right? I only ask because my site doesn't have the amount of traffic yet to justify buying the pro version.

If I do end up getting the amount of traffic I feel would justify the purchase, and I did buy it, would I be able to install the pro version & have it automatically sort the images by the user to make the folders I want?

Thanks
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 23, 2015, 01:35:38 PM
Sent you a pm with some more information.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: ovidole91 on January 28, 2015, 07:57:13 PM
i have an error on my website www.farmingsimulator.info

Fatal error: Call to undefined function GalleryMemberUnviewedItems() in /home/farmingromania/public_html/Sources/Subs.php on line 4144

please help me to fix this
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on January 28, 2015, 08:26:01 PM
GalleryMemberUnviewedItems is not part of SMF Gallery Lite if you are a SMF Gallery Pro customer please post on http://www.smfhacks.com for support.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Risto_Jääskeläinen on February 12, 2015, 07:16:49 AM
I think I have almost newest Lite but I see no Finnish text strings. So there is my contribution. Translation to Gallery.finnish-utf8.php. As far as I can say it seem to work. I have not tested all features but ... At least this translation seems to be good for basic user.

<?php
/*
SMF Gallery Lite Edition
Version 5.0
by:vbgamer45
http://www.smfhacks.com
Copyright 2008-2014 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 suomentanut RJ/2015
*/

//Gallery.template.php Strings

//Title string jää ennalleen tuotemerkin tapaisesti
$txt['gallery_text_title'] = 'Gallery';

//Main gallery table strings
$txt['gallery_text_galleryname'] = 'Kategorian nimi';
$txt['gallery_text_gallerydescription'] = 'Kategorian kuvaus';
$txt['gallery_text_totalimages'] = 'Kuvia yhteensä';
$txt['gallery_text_reorder'] = 'Järjestä';
$txt['gallery_text_options'] = 'Toiminnot';

$txt['gallery_text_adminpanel'] = 'Galleryn hallintapaneeli';
$txt['gallery_text_addcategory'] = 'Lisää kategoria';
$txt['gallery_text_editcategory'] = 'Muokkaa kategoriaa';
$txt['gallery_text_delcategory'] = 'Poista kategoria';
$txt['gallery_text_settings'] = 'Asetukset';
$txt['gallery_text_permissions'] = 'Oikeudet';
$txt['gallery_text_imgwaitapproval'] = 'Hyväksymistä odottavia kuvia: ';
$txt['gallery_text_imgcheckapproval'] = 'Tarkista kuvien hyväksyntäluettelo';

$txt['gallery_text_imgreported'] = 'Raportoituja kuvia: ';
$txt['gallery_text_imgcheckreported'] = 'Tarkista raportoidut kuvat';
$txt['gallery_at'] = ' ';

$txt['gallery_write_error'] = 'Varoitus: Galleryn kansio ei ole kirjoitettava! ';
$txt['gallery_text_myimages'] = '[Omat kuvat]';
$txt['gallery_text_search'] = '[Haku]';
$txt['gallery_text_edit'] = '[Muokkaa]';
$txt['gallery_text_delete'] = '[Poista]';
$txt['gallery_text_unapprove'] = '[Hylkää]';
$txt['gallery_text_approve'] = '[Hyväksy]';
$txt['gallery_text_up'] = '[Ylös]';
$txt['gallery_text_down'] = '[Alas]';
$txt['gallery_text_reportpicture'] = '[Raportoi kuva]';
$txt['gallery_text_delcomment'] = '[Poista kommentti]';


$txt['gallery_text_filesize'] = 'Tiedostokoko: ';
$txt['gallery_text_by'] = 'Toi:';
$txt['gallery_text_date'] = 'Päiväys: ';
$txt['gallery_text_comments'] = 'Kommentteja:';
$txt['gallery_text_views'] = 'Näyttöjä: ';

$txt['gallery_text_addpicture'] = 'Lisää kuva';
$txt['gallery_text_returngallery'] = 'Palaa Galleryyn';

//Online strings
$txt['gallery_who_viewgallery'] = ' katselee tätä kategoriaa.';
$txt['gallery_who_viewpicture'] = ' katselee tätä kuvaa.';
$txt['gallery_who_members'] = 'Jäseniä';
$txt['gallery_who_hidden'] = 'Piilossa';

//Form Strings
$txt['gallery_form_title'] = 'Otsikko:';
$txt['gallery_form_description'] = 'Kuvaus:';
$txt['gallery_form_icon'] = 'Kuvakkeen Url:';

$txt['gallery_warn_category'] = 'Varoitus: tämä POISTAA tämän kategorian ja KAIKKI kuvat, kommentit ja arvioinnit, joita kategoriassa on...';

$txt['gallery_form_addpicture'] = 'Lisää kuva';
$txt['gallery_form_category'] = 'Kategoria:';
$txt['gallery_form_keywords'] = 'Avainsanat:';
$txt['gallery_form_uploadpic'] = 'Lataa:';
$txt['gallery_form_maxwidth'] = 'Enin leveys ';
$txt['gallery_form_maxheight'] = 'Enin korkeus ';
$txt['gallery_form_pixels'] = ' kuvapistettä';
$txt['gallery_form_additionaloptions'] = 'Lisävalinnat:';
$txt['gallery_form_allowcomments'] = 'Salli tämän kuvan kommentointi.';
$txt['gallery_form_notapproved'] = 'Kuvasi ei näy Galleryssä muille ennen sen hyväksyntää.';
$txt['gallery_form_editpicture'] = 'Muokkaa kuvaa';
//View picture
$txt['gallery_text_picstats'] = 'Kuvien tilastot:';
$txt['gallery_text_height'] = 'Korkeus:';
$txt['gallery_text_width'] = 'Leveys:';
$txt['gallery_text_postedby'] = 'Lähettäjä:  ';
$txt['gallery_text_addcomment'] = 'Kommentoi';
//Delete picture
$txt['gallery_warn_deletepicture'] = 'Varoitus: tämä poistaa kuvan etkä voi palauttaa sitä.';
$txt['gallery_form_delpicture'] = 'Poista kuva';


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

$txt['gallery_form_reportpicture'] = 'Raportoi kuvasta';

//Gallery admin pics
$txt['gallery_form_managecats'] = 'Hallitse kategorioita';
$txt['gallery_form_approveimages'] = 'Hyväksy kuvat';
$txt['gallery_form_reportimages'] = 'Raportoi kuvista';

//Settings page
$txt['gallery_set_description'] = 'Allows you to edit the important settings for your gallery.';
$txt['gallery_set_maxheight'] = 'Enin kuvakorkeus: ';
$txt['gallery_set_maxwidth'] = 'Enin kuvaleveys: ';
$txt['gallery_set_filesize'] = 'Suurin tiedostokoko: ';
$txt['gallery_set_path'] = 'Galleryn polku: ';
$txt['gallery_set_url'] = 'Galleryn Url: ';
$txt['gallery_set_whoonline'] = 'Näytä kuka katselee kuvaa';
$txt['gallery_set_images_per_page'] = 'Kuvia sivulla:';

$txt['gallery_shop_settings'] = '<b>Kauppapisteasetukset</b><br /><span class="smalltext">Vain jos SMF-Shop on asennettu</span>';
$txt['gallery_shop_picadd']  = 'Kuva lisää pisteitä: ';
$txt['gallery_shop_commentadd'] = 'Komentti lisää pisteitä: ';

// BBC and Image Links code
$txt['gallery_txt_image_linking'] = 'Kuvan linkityskoodit';
$txt['gallery_set_showcode_bbc_image'] = 'Näytä BBcode';
$txt['gallery_set_showcode_directlink'] = 'Näytä suoran linkin koodi';
$txt['gallery_set_showcode_htmllink'] = 'Näytä Html-linkin koodi';


$txt['gallery_txt_bbcimage'] = 'BBcode';
$txt['gallery_txt_directlink'] = 'Suora linkki';
$txt['gallery_txt_htmllink'] = 'Html-linkki';


$txt['gallery_set_commentschoice'] = 'Salli käyttäjän vaihdella, näkyykö kuvan komentit vai ei.';
$txt['gallery_set_permissionnotice'] = 'Lopuksi! Älä unohda tehdä kullekin ryhmälle oikeusasetuksia, jotta ne voivat katsoa ja lisätä kuvia Galleryyn.';
$txt['gallery_set_editpermissions'] = 'Muokkaa oikeuksia';

//Approve list
$txt['gallery_app_image'] = 'Kuva';
$txt['gallery_app_title'] = 'Otsikko';
$txt['gallery_app_description'] = 'Kuvaus';
$txt['gallery_app_date'] = 'Päiväys';
$txt['gallery_app_membername'] = 'Jäsen';

//Report list
$txt['gallery_rep_piclink'] = 'Kuvalinkki';
$txt['gallery_rep_reportby'] = 'Raportoija';
$txt['gallery_rep_comment'] = 'Kommentti';
$txt['gallery_rep_viewpic'] = 'Näytä kuva';
$txt['gallery_rep_deletepic'] = '[Poista kuva]';
$txt['gallery_rep_delete'] = '[Poista raportti]';

//Search Page
$txt['gallery_search_pic'] = 'Hae kuvaa';
$txt['gallery_search_for'] = 'Hakuehto:';
$txt['gallery_search_title'] = 'Hae kuvan otsikkoa';
$txt['gallery_search_description'] = 'Hae kuvausta';
$txt['gallery_search_keyword'] = 'Hae avainsanoja';
$txt['gallery_search'] = 'Haku';

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

//My Images
$txt['gallery_myimages'] = 'Omat kuvat';
$txt['gallery_myimages_app'] = 'Kuva hyväksytty';
$txt['gallery_myimages_notapp'] = 'Kuvaa ei hyväksytty';

$txt['gallery_save_settings'] = 'Tallenna asetukset';
//#############################
//Gallery.php Strings
//#############################
$txt['gallery_error_cat_title'] = 'Kategorian otsikko antamatta!';
$txt['gallery_error_no_pic_selected'] = 'Yhtään kuvaa ei ole valittu.';
$txt['gallery_error_pic_notapproved'] = 'Tätä kuvaa ei ole vielä hyväksytty eikä sinulla ei ole oikeutta katsella sitä.';
$txt['gallery_error_no_title'] = 'Kuvan otsikko antamatta.';
$txt['gallery_error_no_cat'] = 'Kategoriaa ei valittu.';
$txt['gallery_error_invalid_picture'] = 'Ei kelvollinen kuvatiedosto.';
$txt['gallery_error_img_size_height'] = 'Kuvasi ylittää kokorajoja. Korkeutta oli:  ';
$txt['gallery_error_img_size_width'] = ' Leveyttä oli: ';
$txt['gallery_error_img_filesize'] = 'Kuvasi ylittää tiedostokokorajan. Tiedostokoko on enintään ';
$txt['gallery_error_no_picture'] = 'Ladattua kuvaa ei löydy.';
$txt['gallery_error_noedit_permission'] = 'Sinulla ei ole oikeutta muokata tätä kuvaa.';
$txt['gallery_error_nodelete_permission'] = 'Sinulla ei ole oikeutta poistaa tätä kuvaa.';
$txt['gallery_error_no_comment'] = 'Et syöttänyt komenttia!';
$txt['gallery_error_not_allowcomment'] = 'Hetkinen...Tämä kuva ei salli komentteja...';
$txt['gallery_error_no_com_selected'] = 'Ei valittua komenttia.';
$txt['gallery_error_no_user_selected'] = 'Ei valittua käyttäjää.';
$txt['gallery_error_no_report_selected'] = 'Ei valittua raporttia.';
$txt['gallery_error_no_search'] = 'Et syöttänyt mitään etsittävää...';
$txt['gallery_error_search_small'] = 'Hakutermisi liian lyhyt, vaaditaan yli kolme merkkiä.';

$txt['gallery_guest'] = 'Vieras';
$txt['gallery_text_oldpicture'] = 'Vanha kuva';

$txt['gallery_nocatabove'] = 'Käsiteltävän kategorian yläpuolella ei ole toista.';
$txt['gallery_nocatbelow'] = 'Käsiteltävän kategorian alapuolella ei ole toista.';

$txt['gallery_nopicsincategory'] = 'Tässä kategoriassa ei ole kuvia';

$txt['gallery_text_posts'] = 'Viestejä:';
$txt['gallery_text_pages'] = 'Sivuja: ';

// Latest Version:
$txt['gallery_txt_latestversion'] = 'Tuorein versio: ';
$txt['gallery_txt_yourversion'] = 'Versiosi: ';
$txt['gallery_txt_version_outofdate'] = 'Gallery-versiosi ei ole ajan tasalla!';

$txt['gallery_error_category'] = 'Kategoriaa ei löydy';

$txt['gallery_upload_max_filesize'] = 'PHP: Ladattaessa suurin tiedostokoko ';
$txt['gallery_post_max_size'] = 'PHP: Viestin suurin tiedostokoko  ';
$txt['gallery_upload_limits_notes'] = 'Ylläolevat PHP-asetukset määräävät, kuinka suuri tiedosto hyväksytään Galleryyn. Näitä asetuksia hallinnoi joko php.ini tai verkkopalvelusi.';


$txt['gallery_set_thumb_height'] = 'Enin pienoiskuvan korkeus:';
$txt['gallery_set_thumb_width'] = 'Enin pienoiskuvan leveys:';
$txt['gallery_set_images_per_page'] = 'Kuvia sivulla:';
$txt['gallery_set_images_per_row'] = 'Kuvia rivillä:';

$txt['gallery_text_regeneratethumbnails'] = '[Uudista pienoiskuvat]';
$txt['gallery_text_regeneratethumbnails2'] = 'Uudista pienoiskuvat';
$txt['gallery_regen_notes'] = 'Tämä uudistaa kaikki pienoiskuvat tässä kategoriassa. Pienoiskuvien koko tulee nykyisten pienoiskuva-asetusten mukaiseksi.  Riippuen kategorian kuvamäärästä tämä saattaa kestää hetkisen. Siirrytään kategoriaan kun valmista.';

$txt['gallery_txt_continue'] = 'Jatka';

$txt['gallery_text_prev'] = 'Edellinen kuva';
$txt['gallery_text_next'] = 'Seuraava kuva';

$txt['gallery_txt_copyright'] = 'Copyright';
$txt['gallery_txt_copyrightremoval'] = 'Copyright-poisto';
$txt['gallery_txt_copyrightkey'] = 'Copyright-avain';
$txt['gallery_txt_ordercopyright'] = 'Tilaa copyright-poisto';


$txt['gallery_txt_copyremovalnote'] = 'Copyright-poisto poistaa Galleryn alaosassa olevan tekstin "Powered by SMF Gallery" ja kaikki linkit smfhacks.com-osoitteeseen.';

$txt['gallery_txt_tweetnewitems'] = 'Viserrä uusia juttuja';

$txt['gallery_errors_addpicture'] = 'Seuraavia virheitä sattui lisättäessä kuvaa:';

// 5.0
$txt['gallery_txt_waitingforapproval'] = 'Odottaa hyväksyntää';
$txt['gallery_txt_convertors'] = 'Muuntimet';

$txt['gallery_txt_importaeva'] = 'Tuo Aeva Media';
$txt['gallery_txt_noimport'] = 'Ei tuontia tukevaa galleriaa. Tukee vain Aeva Media -tuontia.';
$txt['gallery_txt_findotherconvetors'] = 'Tästä löydät kaikki muuntimet, joita meillä on toisista ohjelmistoista SMF Galleryyn.';

$txt['gallery_txt_begin_import'] = 'Aloita tuonti';
$txt['gallery_text_import_warning'] = 'Varoitus! Tuonti poistaa KAIKEN nykyisen aineiston SMF Gallerystä!';
$txt['gallery_text_aevapathnotfound'] = 'Aeva-polkua ei löydy! Varmista, että Aeva-tiedostot on asennettu ja muokkaus asennettu!';
$txt['gallery_txt_inorderimport'] = 'Galleryn tuomiseksi tarvitsemme joitain tietoja Aeva-asennuksestasi.';
$txt['gallery_txt_pathtoimportaeva'] = 'Polku Aevaan:';


$txt['gallery_import_clearingsmfgallery'] = 'SMF Gallery -aineiston poistaminen';
$txt['gallery_import_mainpictures'] = 'Isojen kuvien tuominen';
$txt['gallery_import_categories'] = 'Kategorioiden tuominen';

$txt['gallery_import_userpictures'] = 'Käyttäjien kuvien tuominen';
$txt['gallery_import_ratings'] = 'Arvostelujen tuominen';
$txt['gallery_import_comments'] = 'Kommenttien tuominen';
$txt['gallery_import_unviewedlog'] = 'Katsomattomien lokien tuominen';
$txt['gallery_import_recounting'] = 'Uudelleenlaskenta kategorioille';

$txt['gallery_import_complete'] = 'Tuonti valmis!';

$txt['gallery_avea_imported'] = 'Aeva Media -informaatio tuotu!';
$txt['gallery_visit_imported_gallery'] = 'Käy tuodussa Galleryssä';

$txt['gallery_visit_promo1'] = 'Erikoistarjous SMF Gallery Prosta Aeva Media -käännynnäisille!';
$txt['gallery_visit_promo2'] = 'Käy tällä sivulla yksityiskohtien vuoksi: ';

$txt['gallery_import_welcome'] = 'Tervetuloa SMF Galleryn Aeva Media -tuojaan. ';

?>
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on February 12, 2015, 07:29:21 AM
Thankyou Risto_Jääskeläinen for your translation!
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Fisch.666 on March 12, 2015, 10:43:59 AM
Hi,

currently i'm trying to convert a Aeva Media 1.4w on SMF 2.0.9 to SMF Gallery Lite 5.5a. When doing the conversion steps the following error is shown:


Duplicate entry '6' for key 'PRIMARY'
File: /var/www/forum/Sources/Subs-ConvertAeva2.php
Line: 362


Line 362 is inserting the old categories in the new gallery_cat table where it seems to bail out. Any hints how i can debug this further?

Thanks in advance for a reply.

*Edit*

Converting another Aeva Media 1.4w on a second SMF 2.0.9 with SMF Gallery Lite 5.5a and less categories worked like a charm.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on March 12, 2015, 11:28:51 AM
Around line 362 of that file find

$smcFunc['db_query']('', "INSERT INTO {db_prefix}gallery_cat
(id_cat,title,description,id_parent,roworder)

Change to

$smcFunc['db_query']('', "INSERT IGNORE INTO {db_prefix}gallery_cat
(id_cat,title,description,id_parent,roworder)
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Fisch.666 on March 12, 2015, 02:02:32 PM
Hi,

thank you very much for your reply. That partly did the trick. After modifying the mentioned line i got another error:


Duplicate entry '26' for key 'PRIMARY'
File: /var/www/forum/Sources/Subs-ConvertAeva2.php
Line: 1300


In line 1298 i also had to change "INSERT INTO" in "INSERT IGNORE INTO" and now the the conversion was successful.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on March 12, 2015, 02:05:50 PM
Glad to help.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: MoreBloodWine on April 14, 2015, 12:33:23 PM
On certain parts of the site like viewing a profile, and not just in some parts of the admin area. With this mod installed there's this line at the top of the site and on the pages with it displayed have a larger than normal font.

// Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings

Using 5.5a

Ty.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on April 14, 2015, 12:58:48 PM
Open themes/default/languages/who.english.php

Find
?>

And move it all the way to the end of the file.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: MoreBloodWine on April 14, 2015, 01:15:28 PM
Quote from: vbgamer45 on April 14, 2015, 12:58:48 PM
Open themes/default/languages/who.english.php

Find
?>

And move it all the way to the end of the file.
Fixed. Looks like when the gallery installed it did it at the end of the file but after the ?>

Thx.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on April 14, 2015, 01:26:27 PM
Yeah some mods install wrongly which will cause that issue to occur.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: roshaoar on April 29, 2015, 06:19:31 PM
Can I ask, does this gallery use something different to obtain exif to Fatman's exif mod (http://custom.simplemachines.org/mods/index.php?mod=169)? On my testforum I can see exif fine (http://extreme-macro.co.uk/forum/light-diffusers/links-test/) with the exif mod, but not on the same shot in the Lite gallery (http://extreme-macro.co.uk/forum/gallery/?sa=view;pic=2). Or is it a paid feature?

thanks!
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on April 29, 2015, 06:21:16 PM
Gallery lite does not support exif.
The paid one does but it uses php's exif functions with the php_exif module when installed.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: roshaoar on April 29, 2015, 06:41:58 PM
k, got it, thx! They both seem to call exif_read_data which must be the inbuilt php module I'm guessing
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on April 29, 2015, 07:15:22 PM
Yeah that is the built in function.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: soundlizard on May 17, 2015, 07:15:53 PM
Could you possibly tell me where to change the colors of the links? My theme is black, so some of the links wont show against the background. the ones in the screenshot, specifically. thanks in advance!
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on May 17, 2015, 07:37:17 PM
you would need to change the css class inside the gallery2.template.php on the text
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: soundlizard on May 17, 2015, 07:49:33 PM
found the file. where in those gazillion lines of code could i find the code to change?
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on May 17, 2015, 11:34:39 PM
That's the hard part you have to find that text in the language file then match it up in the template area
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: orela on June 27, 2015, 10:48:12 AM
Hello

I have problems with my language display.
I am using UTF-8 language and also in installation i selected UTF-8 in SMF installation.
When i am writing category name with my language i see '?' any smilies...
How can i fix it?

Thanks
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on June 27, 2015, 11:03:29 AM
You need to convert all the database tables to utf8 that start with smf_gallery
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: orela on June 27, 2015, 11:30:42 AM
Can you explain how do to this?
Why in my previous server it was OK?
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: orela on June 27, 2015, 11:51:40 AM
I found in PHP admin how to do it.

Thanks
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on June 27, 2015, 02:23:26 PM
Glad that helped.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: villasg on June 28, 2015, 03:40:33 AM
Hello .
I planed to install this great mod in my smf 2.0.10 but i have a simple question .
In my host i have "Disk Space Usage 271.14 MB / 400 MB " .
Can i rent an another web space for images for gallery ? ( not in my Main Domain but in another hoster ?)
Are this possible and how can i make this ( in settings of mod gallery path - url etch ?)
Thanks
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on June 28, 2015, 09:28:52 AM
Not easily no.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Krissnikkers on June 29, 2015, 12:27:31 PM

Just downloaded and started uploading files... and it is brilliant solves a lot of my problems just one slight niggle...  How can you tell that new pics have been uploaded?  Any chance of a box at the bottom of the gallery showing last say 5 uploaded pics?

Thanks for a great mod!

Kriss :)
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: vbgamer45 on June 29, 2015, 01:09:51 PM
There is no way to tell if a picture is new or not in the free it is included in SMF Gallery Pro though.

For a  box at the bottom. Check out either ezPortal or SimplePortal I belive they both have options to have portal blocks that contain last images uploaded.
Title: Re: SMF Gallery 5.5 (Dec 13) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1.x
Post by: Krissnikkers on June 29, 2015, 01:13:18 PM

I just noticed that on the Pro one... sorry for the question will look next time... :)

Still going to use it though... :)

Kriss :)
Title: SMF Gallery 5.5.1 (July 1) works with SMF 2.1 Beta 1! and SMF 2.0.x and SMF 1.1
Post by: SMFHacks.com Team on July 01, 2015, 08:55:14 PM
Update!

5.5.1
!Delete temp file if not a valid picture file for disk space/security
Title: Re: SMF Gallery
Post by: GazCBG on July 09, 2015, 06:03:40 PM
I have Pretty URLs installed will it change the URL, like it does for the forum etc...?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 09, 2015, 07:08:04 PM
You can download the pretty urls filter addon for pretty urls I think it has one for SMF Gallery
Title: Re: SMF Gallery
Post by: melanie1986 on July 23, 2015, 07:35:38 PM
I have some issues with it, you can see one here

http://www.simplemachines.org/community/index.php?topic=538173.msg3825987#msg3825987

profile pages are all weird as is the who's online when you click that. As well some members can't even see the tab? I do like it tho :)
Title: Re: SMF Gallery
Post by: vbgamer45 on July 23, 2015, 07:37:38 PM
This mod shouldn't touch profile pages or the who's online.
Only part in the whos online it should say they are viewing the gallery

For the permissions. Under Admin -> Permissions you must give each membergroup permissions needed for the gallery such as viewing the gallery etc.
Title: Re: SMF Gallery
Post by: melanie1986 on July 23, 2015, 07:43:47 PM
Wow that was quick. Thanks. I'll check the permissions out, that might be an issue on one point.

I've uninstalled it for now and those pages are back to normal, so any ideas why? It also affects the main admin page, doing the same thing. Its like the page is in 'safe' mode when you do that on your computer. That's how it looks.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 23, 2015, 09:06:06 PM
I see the issue. Open your themes/default/languages/who.english.php find

?>

Move all the way to the end of the file. After you have installed SMF Gallery
Title: Re: SMF Gallery
Post by: melanie1986 on July 23, 2015, 09:24:39 PM
okays, thank you. I'll let you know if it works :D
Title: Re: SMF Gallery
Post by: melanie1986 on July 27, 2015, 04:35:08 PM
I'm getting my techy guy onto it, he doesn't trust me fiddling around with the panel  O:)

Two questions. How can we make it so only admins can add photos and can we somehow have it so there is no 'comment' panel? We only want this as a display gallery.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 27, 2015, 04:37:19 PM
The gallery system has it's own permisisons for uploading, viewing, etc You would need to change each membergroups permissions under Admin -> Permissions
Then modify each group
And give each membergroup the permissions needed.


The comment panel. You might have to remove from the gallery.template.php file I forgot if there is an option to disable comments in the lite version or not. There might be when you edit category but I don't remember.
Title: Re: SMF Gallery
Post by: br360 on July 27, 2015, 04:40:19 PM
To remove the comment panel; look in themes/default/gallerytemplate2.php

remove-
echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $row['id_picture'] . '">' . $row['commenttotal'] . '</a>)<br />';

***The amount of comments in each gallery pic will be removed- The panel will still be visible, but only to admins- nobody else.

Make sure that "Leave Comments" is unchecked in the membergroups permissions sections as well. ;)
Title: Re: SMF Gallery
Post by: melanie1986 on July 27, 2015, 05:12:46 PM
Thank you both, that is very helpful for me :) I'll let you know how I do :D
Title: Re: SMF Gallery
Post by: timidapsin on August 22, 2015, 01:39:50 AM
Hello please does the mod embbed youtube videos?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 22, 2015, 09:02:36 AM
This mod does not embed youtube
But I have this mod that does http://custom.simplemachines.org/mods/index.php?mod=2681
Title: Re: SMF Gallery
Post by: Sean Dempsey on August 25, 2015, 05:58:21 AM
I can't find the answer to this using the search function. The terms I'm using are too general I think and the info is getting swamped with irrelevant returns.

I replaced two picture threads with the gallery and it works great, there is one drawback though, posters who put up pictures on the thread got their post count incremented and all the attendant fame and glory that brings. Now putting an image in the gallery doesn't change their post count.
This is a major disincentive to using the gallery.

Is there an option I have missed? Is there any possibility of a change to the mod to increment post count?

Thanks
Title: Re: SMF Gallery
Post by: vbgamer45 on August 25, 2015, 08:31:09 AM
Currently it is not an option in the lite version it is part of the pro version of the gallery.
I use this code to increase the post count on upload

updateMemberData($user_info['id'], array('posts' => '+'));
Title: Re: SMF Gallery
Post by: Dave J on August 25, 2015, 08:36:59 AM
Quote from: Sean Dempsey on August 25, 2015, 05:58:21 AM
I can't find the answer to this using the search function. The terms I'm using are too general I think and the info is getting swamped with irrelevant returns.

I replaced two picture threads with the gallery and it works great, there is one drawback though, posters who put up pictures on the thread got their post count incremented and all the attendant fame and glory that brings. Now putting an image in the gallery doesn't change their post count.
This is a major disincentive to using the gallery.

Is there an option I have missed? Is there any possibility of a change to the mod to increment post count?

Thanks

If I'm reading you correctly you need the settings on the 'Features' page in the configuration settings. See the image below
Title: Re: SMF Gallery
Post by: vbgamer45 on August 25, 2015, 08:45:03 AM
davejo that is correct but again that is only in the pro version of this mod.
Title: Re: SMF Gallery
Post by: Dave J on August 25, 2015, 03:00:36 PM
Quote from: vbgamer45 on August 25, 2015, 08:45:03 AM
davejo that is correct but again that is only in the pro version of this mod.

good point VB
Title: Re: SMF Gallery
Post by: Sean Dempsey on August 30, 2015, 07:00:47 AM
Quote from: vbgamer45 on August 25, 2015, 08:31:09 AM
Currently it is not an option in the lite version it is part of the pro version of the gallery.
I use this code to increase the post count on upload

updateMemberData($user_info['id'], array('posts' => '+'));


Many thanks for your helpful reply.
However I'm new to SMF and don't know where to put that piece of code. I would really appreciate some more details.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 30, 2015, 10:31:36 AM
It would go in Sources/Gallery2.php in the AddPicture2 function after the picture is uploaded.
Title: Re: SMF Gallery
Post by: Sean Dempsey on August 31, 2015, 04:22:47 AM
Thanks a million. I'll do that today.
You guys are great.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 31, 2015, 12:46:09 PM
Glad to help good luck with the changes.
Title: Re: SMF Gallery
Post by: dreep on September 17, 2015, 02:43:24 AM
Hey,

Excuse my poor english plz.

I'he installed smf 2.0.1 with few modification.
I want to use smf gallery.
I can create category, but when i want to upload an image, i can't because when i clic on "add" button, it says :
"AN ERROR HAS OCCURRED!
Category not found"

what can i do plz ?
thx a lot !
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2015, 09:01:22 AM
What mods do you have added on your forum?
Do you have tiny portal?
Title: Re: SMF Gallery
Post by: dreep on September 17, 2015, 10:50:26 AM
Hi,

No Tiny Portal for the moment, but in the futur perhaps...
I try to upload image from my work and it works, i understand nothing !
I will try again tonight...

if you see something bad, tell me...
thx
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2015, 11:02:09 AM
Does the download system work? When adding to a category?
Title: Re: SMF Gallery
Post by: dreep on September 17, 2015, 11:35:07 AM
not tested for the moment, i can uninstall it for the moment...
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2015, 11:39:30 AM
No please test adding a file I want to see if you get the same error.

The download and gallery system use similar code.
Title: Re: SMF Gallery
Post by: dreep on September 17, 2015, 04:36:57 PM
I win against thé machine !!!!

So, pb resolved...

Picture too high...

But why this error...

I can upload now, thx !
Title: Re: SMF Gallery
Post by: vbgamer45 on September 17, 2015, 04:50:25 PM
If the filesize is too large for PHP read this topic on how to raise it http://www.smfhacks.com/index.php/topic,3498.0.html
Title: Re: SMF Gallery
Post by: dreep on September 18, 2015, 06:09:05 AM
I resolved this problem, thanks a lot.

Another question :
Where can i modify something to resolve this visual probleme (char in the same color of font in orange line at the bottom...) ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhub.divxfr.free.fr%2Ferreur_gallery%2Fgallery1.png&hash=33df96e0a370c409c35bb9b2e6b99a07c8ea3213)

Thx aigain !
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2015, 09:27:25 AM
It would probably be the class property it would be found in the gallery2.template.php in the themes/default folder.
Title: Re: SMF Gallery
Post by: dreep on September 18, 2015, 09:28:38 AM
Quote from: vbgamer45 on September 18, 2015, 09:27:25 AM
It would probably be the class property it would be found in the gallery2.template.php in the themes/default folder.
thx, i can search now !!  :laugh:
Title: Re: SMF Gallery
Post by: Novice on October 23, 2015, 10:31:13 PM
I used the regenerate thumbnail function to repair attachments from my recent upgrade of SMF and like it so much I want you to create a mod that will do this on a global scale for images in threads. We have about 5500 images and less than 1500 regenerated when I updated from 1.1.21 to 2.0.11 - the paperclip is still there to view the attachment but the thumb is just a little black box with an X in the middle. Saving and reattaching each file works but, it is something that will take longer than I have time on this earth to do. Is there a possibility that this could be done?

My apologies in advance if I didn't put this in the right place. I just followed the author trail.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 24, 2015, 12:28:42 AM
Possible could be done but I do not have the time to work on a new mod of that nature.
Title: Re: SMF Gallery
Post by: Novice on October 24, 2015, 02:24:13 PM
I certainly understand. Thanks for your response and everyone at our site loves the classifieds mod we purchased!
Title: Re: SMF Gallery
Post by: vbgamer45 on October 24, 2015, 03:55:17 PM
Thanks for your support! Hoping to pick up the SMF stuff more once 2.1 is released.
Title: Re: SMF Gallery
Post by: Novice on October 25, 2015, 11:19:57 AM
Quote from: vbgamer45 on October 24, 2015, 03:55:17 PM
Thanks for your support! Hoping to pick up the SMF stuff more once 2.1 is released.
Great! I can't wait and only hope that the others that contribute mods will do the same. The bulk of our mods are by the Hack team so I'm worrying too much.

I set up a test site using our old 1.1.21 database and upgraded it to 2.0.10 before trying to do it with the live data. It wasn't as smooth as I had hoped but learned that uninstalling all mods and then pruning the mod data out of the database is the only real way to remove most of the bumps. I then upgraded the test site with the large upgrade to 2.1.0 Beta2. Nearly every attachment at this point had no ability to generate a thumbnail for our attachments. The only thumbs that worked were the ones that had been created using 2.0.10. All priors were not recognized. For a group that relies on pictorial communication as well as text in their posts, it is a nightmare. As I said before, I doubt I would ever live long enough to save each attachment then reattach and save each post. I'm actually getting a headache thinking about it.

Maybe you could pass this along to the folks that are the expert coders that deal with this aspect of the program for 2.1.x. It really is a huge issue for upgrades if you think about it.

Keep up the good work and FYI, I'm still trying to figure out all the bells and whistles the Classifieds mod has. I changed some of the text in the English files to kind of customize it a little. I don't think it will effect the functionality any. But everyone is really having a good time with it. Come join our group so you can see what we have done with it. Here is a referral link for you to use and once your on, I'll upgrade your status to be able to see the controls.

http://membersforum.knightsofthecointable.org/index.php?action=refferals;refferedby=100

Thanks for all your help and support!
Terry Olds
Novice
Title: Re: SMF Gallery
Post by: vbgamer45 on November 03, 2015, 10:22:54 AM
That might be a flaw in the 2.1 upgrader if attachments form 1.1.x are messed up.
Title: Re: SMF Gallery
Post by: ArkServer on November 04, 2015, 07:38:47 AM
I have not read through all 185 pages but my question is does this mod have a feature that allows me to set a different server to upload images that shows up on the forum? my host bandwidth is very limited and i host all my drawings/art on imgur for that reason but the idea of having a gallery to show all artwork in one place is neat instead of creating a new topic and post drawings that way like i have now --> http://blushyface.com/community/creative-corner/

if not, is there a way to do so?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 04, 2015, 08:07:48 AM
No, The gallery has a gallery path and url option but can't upload to a new server. Bandwidth shouldn't be an issue today i would look into a different hosting plan if that is the case.
Title: Re: SMF Gallery
Post by: ArkServer on November 04, 2015, 08:18:42 AM
Quote from: vbgamer45 on November 04, 2015, 08:07:48 AM
No, The gallery has a gallery path and url option but can't upload to a new server. Bandwidth shouldn't be an issue today i would look into a different hosting plan if that is the case.

I actually asked around here http://www.simplemachines.org/community/index.php?topic=540859.0 and contacted my host last week but no reply yet.. shame. I don't want to fill your topic with off topic so I'll leave it at that.

Too bad for me that there is no option to upload to another server but i'll definitly give this mod a go when i have more space. Thanks for the help :)
Title: Re: SMF Gallery
Post by: vbgamer45 on November 04, 2015, 10:32:40 AM
Remote servers are hard to do. You would have to somehow copy over the file to that server. Either via ftp or some other method.
Title: Re: SMF Gallery
Post by: PaulKet on November 14, 2015, 09:35:42 PM
I'm getting an error with SMF 2.1 beta 2 and this mod:

File: /home/myforum/public_html/Sources/GalleryHooks.php

>179: 'title' => $txt['smfgallery_menu'],

How can I fix this?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 14, 2015, 10:02:25 PM
Make sure this text is in your themes/default/languages/modifications.*.php files


//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '5.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';
$txt['gallery_txt_convertors'] = 'Convertors';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use 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.';


$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_text_settings'] = 'Settings';
$txt['gallery_txt_copyrightremoval'] = 'Copyright Removal';

//END SMF Gallery Text Strings
Title: Re: SMF Gallery
Post by: PaulKet on November 14, 2015, 10:28:59 PM
Quote from: vbgamer45 on November 14, 2015, 10:02:25 PM
Make sure this text is in your themes/default/languages/modifications.*.php files

Thank you, vbgamer45. The code was missing.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 14, 2015, 10:48:00 PM
Glad to help
Title: Re: SMF Gallery
Post by: Lum-chan on November 29, 2015, 10:42:08 AM
Currently I'm still running version 2.0 but I'd like to upgrade to 5.5.1 of Gallery Lite. What is the recommended way to do this? Just install it over the previous install or deinstall 2.0 first and then install the latest version?

Thanks in advance!
Title: Re: SMF Gallery
Post by: vbgamer45 on November 29, 2015, 10:59:24 AM
If you can uninstall that would be best bet if not the other way might be ok too.
Title: Re: SMF Gallery
Post by: Lum-chan on November 30, 2015, 06:37:46 PM
Thanks, I'll give it a try.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 30, 2015, 06:55:26 PM
Let me know if you have any issues.
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on January 02, 2016, 04:59:17 PM
Update
5.6
!Fixed menu icon for SMF 2.1 Beta 2
Title: Re: SMF Gallery
Post by: warhonowicz on January 08, 2016, 03:27:01 AM
This will be a bit of a long shot, but maybe someone can help me. A couple of years ago I built a forum for a club I was a member of at the time. I used SMF and a version of SMF Gallery. I ran the site for a couple of years but then left the club as I moved away but still kept in touch with some of the members. They have recently contacted me since they had massive problems with the forum (I believe it had been hacked) and asked me to help.

I have been able to restore most of the forum but I cannot get the gallery to work. I downloaded everything from the server before starting work and within those files is SMFGallery3.1.3. When I install the mod I get a load of text at the top of the screen even though I got no error message during the install.

I then downloaded the current version of SMFGalleryLite and tried it with that version with the same result.

Would anyone know what causes this and how I can solve it?

Title: Re: SMF Gallery
Post by: Fisch.666 on January 08, 2016, 05:57:32 AM
Hi,

have a look at your Themes/default/languages/Modifications.english.php an make sure the ?> is after the shown text and not before this text.
Title: Re: SMF Gallery
Post by: warhonowicz on January 08, 2016, 08:42:12 AM
Quote from: Fisch.666 on January 08, 2016, 05:57:32 AM
Hi,

have a look at your Themes/default/languages/Modifications.english.php an make sure the ?> is after the shown text and not before this text.

Thanks ... that was the problem.
Title: Re: SMF Gallery
Post by: warhonowicz on January 08, 2016, 01:31:49 PM
But I now have another one ... my error log shows an error


http://xxx.co.uk/index.php?
8: Undefined index: smfgallery_menu
File: /home/sites/xxx.co.uk/public_html/Sources/Subs.php

When I look at the Subs.php file, line 4078 is in this area, it's actually the third one from the top.

      // [SMF Gallery] button
         'gallery' => array(
            'title' => $txt['smfgallery_menu'],
            'href' => $scripturl . '?action=gallery',
            'show' => $context['allow_smfgallery_view'],
            'icon' => '',
         ),

Can anyone tell me what is causing the error and how I can get rid of it?

Thanks
Title: Re: SMF Gallery
Post by: Fisch.666 on January 08, 2016, 01:52:58 PM
Hi,

probably still some missing/broken language files. My install has:


grep -iR "smfgallery_menu" . --include=*.php
./Sources/Subs.php:                             'title' => $txt['smfgallery_menu'],
./Themes/default/languages/Modifications.english.php:$txt['smfgallery_menu'] = 'Gallery';
./Themes/default/languages/Gallery.english.php:$txt['smfgallery_menu'] = 'Gallery';
./Themes/default/languages/Modifications.german-utf8.php:$txt['smfgallery_menu'] = 'Galerie';
./Themes/default/languages/Gallery.english-utf8.php:$txt['smfgallery_menu'] = 'Gallery';
Title: Re: SMF Gallery
Post by: vbgamer45 on January 08, 2016, 02:01:06 PM
Yes make sure all your Modifications.*.php files has the gallery strings.
Title: Re: SMF Gallery
Post by: Siirist on January 11, 2016, 11:04:21 AM
Hi,

I have two issues.

1) While the button (with the word "Gallery") appears and functions, the icon ((https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi185.photobucket.com%2Falbums%2Fx21%2F1greywolf%2Fgallery.png&hash=7057fc9a6db8f0ed40ac28fa755452c758a0d223)) does NOT appear.

2) When I try to upload an image that is 6kb (like the gallery icon), it says that the image is more than 1.95mb in size.

To correct the first issue,
I have uploaded the gallery.png to my default template (Ostara)/ images/Menu_Icons and then went to:
my Subs.php file, and added a location for the icon like this

      // [SMF Gallery] button
         'gallery' => array(
            'title' => $txt['smfgallery_menu'],
            'href' => $scripturl . '?action=gallery',
            'show' => $context['allow_smfgallery_view'],
            'icon' => '/Menu_Icons/Gallery.png',
         ),

But that didn't add the icon to the Menu bar.

Thoughts?

Thank you for your help in advance,
Siirist
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2016, 11:11:56 AM
1. What SMF version are you using? Are you using the latest version of SMF Gallery.
Also are you using a menu mod?
The gallery icon should be in the images folder of theme itself not in any subfolder

#2. Unsure anything in the error log haven't seen that happen before. Try a different file?
Title: Re: SMF Gallery
Post by: Siirist on January 11, 2016, 11:33:50 AM
Quote from: vbgamer45 on January 11, 2016, 11:11:56 AM
1. What SMF version are you using? Are you using the latest version of SMF Gallery.
Also are you using a menu mod?
The gallery icon should be in the images folder of theme itself not in any subfolder

#2. Unsure anything in the error log haven't seen that happen before. Try a different file?

Thank you for your quick reply!! :-)

I am sooooo bad!  :-[

It's in my sig to post that stuff and I didn't.   :-[

SMF ver.  2.0.11

Mods:
1.    Custom Copyright    1.0.4    Installed yesterday without any visible issues
2.    Menu_Icons    1.0
3.    SMF Gallery Lite    5.6
4.    PM Warning    1.0
5.    Topic Solved    1.1.1
6.    Google Translate for SMF 2.0    1.4
7.    SMF 2.0.11 Update    1.0
8.    Optimus Brave    1.8.7   Installed yesterday without any visible issues
9.    Default_Membergroup    2.0
10.    Welcome Back    1.0      Installed 2 days ago without any visible issues
11.    Enhanced Dropdown    1.3
12.    Board-color-and-icons    1.1
13.    Caps_Lock_Detection_on_Login    1.1.0.2

So the icon belongs in the images folder.

I have uploaded the gallery.png to the following areas:
brightforest/images
default/images
Habbingo/images
Habboland/images
Ostara/images

No icon showing.

Issue #2
I have tried 5 images that were under 100kb, NOTE: Badge.jpg that was 4kb did upload. Nothing in the error log.

Hmmm,
Siirist
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2016, 11:43:19 AM
#1 I think it is an issue with the menu icons mod. There is normally not an icon for SMF 2.0.x contact that mod author to see how to get it to work.
Title: Re: SMF Gallery
Post by: Siirist on January 11, 2016, 05:48:23 PM
Hi,

Well, earlier I manually un-installed Menu-Icons ver1.0 and after the forum was tested and backed up, I installed Simple Menu. There is only one issue with Simple Menu in that it displays a magnifying glass instead of a gear for the Admin.

I will check and see if there are any errors in the error log.

Thanks,
Siirist
Title: Re: SMF Gallery
Post by: Siirist on January 11, 2016, 10:05:39 PM
Got it fixed

Because I had installed Simple Menu, all the icons are in the template/default template/images/smi folder

Placed gallery.png into the smi folder, and all is good.

Thank you for the mod.

Be Well,
Siirist
Title: Re: SMF Gallery
Post by: vbgamer45 on January 11, 2016, 11:16:58 PM
Glad you have it working!
Title: Re: SMF Gallery
Post by: Siirist on January 12, 2016, 12:05:30 AM
Quote from: vbgamer45 on January 11, 2016, 11:16:58 PM
Glad you have it working!

Hi Vbgamer,

Well, I got the icon fixed.

Still can't load a pic in the gallery.   :(

Give it a try if you will by clicking here (http://www.asanctuary.net/forum2/index.php?action=gallery).

Regards,
Siirist
Title: Re: SMF Gallery
Post by: vbgamer45 on January 12, 2016, 12:08:57 AM
Max Filesize is 1.95kB
You have a setting in the admin of the gallery too small. Make it 50000000
Title: Re: SMF Gallery
Post by: Siirist on January 12, 2016, 05:17:21 PM
Quote from: vbgamer45 on January 12, 2016, 12:08:57 AM
Max Filesize is 1.95kB
You have a setting in the admin of the gallery too small. Make it 50000000


Sweet!!!

It's all good now.

Thank you,
Siirist
Title: Re: SMF Gallery
Post by: vbgamer45 on January 12, 2016, 06:06:00 PM
Glad to help
Title: Re: SMF Gallery
Post by: phpshiva on January 23, 2016, 05:25:09 AM
Quote from: domscatterbrain on September 13, 2012, 06:53:57 PM
how do i make it redirect to the uploaded picture page (that contain direct link, bbc, html link) after i upload / edit picture?
i understand that i must make change to every lines like this
redirectexit('action=gallery;sa=myimages;u=' . $id_member);
into
redirectexit('action=gallery;sa=view;pic=' . $some_variable);
But what variable i must use if i want to do that?

I would like to have this in my Gallery
has anyone done this and would help me please?
Title: Re: SMF Gallery
Post by: muskrat_skull on February 03, 2016, 08:48:16 PM
How do I embed a picture uploaded into the gallery into a post, and better yet, is there a way to have an upload button on the post page or a bbcode based button? 
Title: Re: SMF Gallery
Post by: vbgamer45 on February 03, 2016, 09:10:00 PM
Quote from: muskrat_skull on February 03, 2016, 08:48:16 PM
How do I embed a picture uploaded into the gallery into a post, and better yet, is there a way to have an upload button on the post page or a bbcode based button? 
Right now you have to copy and paste the link or the image fie into the post.

In SMF Gallery Pro though I do have an addon for it that allows uploading from a post/inserting from a post I believe.
Title: Re: SMF Gallery
Post by: Jade Elizabeth on February 25, 2016, 01:34:04 AM
Hmm what's happening here?

Unknown column 'money' in 'field list'
File: E:\xampp\htdocs\colorme\Sources\Gallery2.php
Line: 934


I keep getting this and I'm not sure what's happening. I don't have a shop mod installed, I did used to but I don't think it was your one.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 25, 2016, 01:53:22 AM
The gallery still thinks the shop is installed since there are some shop related settings still in the smf_settings database table.

Either remove entires from that table or delete the shop code from the sources/gallery2.php file
Title: Re: SMF Gallery
Post by: Jade Elizabeth on February 25, 2016, 04:54:57 AM
How am I going to know if they're shop settings? There has to be a better way than this?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 25, 2016, 08:33:28 AM
You would have to look at each entry in the smf_settings table and see if it is shop related.

Or you can add the money column back to members table and that will fix the error.
Title: Re: SMF Gallery
Post by: Chas Large on April 05, 2016, 05:53:04 PM
How do you remove a category thumbnail?

I have set a photo as a gallery thumbnail by clicking "set as category thumbnail" whilst viewing an image in a member gallery. Now it's set I cannot see any way to remove it except perhaps uploading an image, setting that then deleting it. Am using the Pro version 5.0.3 - yes I know it's not the latest but it does what we need it to do.

Anyone had this issue? how did you resolve it?

Many thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 05, 2016, 05:56:19 PM
In the pro version there should be a "[Delete Picture]" link next filename when editing category. But I am not sure what version that was added in
Or you can upload a very small clear tracking pixel image 1x1 or delete the filename from smf_gallery_cat table
Title: Re: SMF Gallery
Post by: Chas Large on April 05, 2016, 06:02:30 PM
Quote from: vbgamer45 on April 05, 2016, 05:56:19 PM
In the pro version there should be a "[Delete Picture]" link next filename when editing category. But I am not sure what version that was added in
Or you can upload a very small clear tracking pixel image 1x1 or delete the filename from smf_gallery_cat table
In the member gallery I can delete the picture. In the members gallery category list I can delete the categories but no, there is no way to remove a image as the thumbnail from the category.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 05, 2016, 06:03:20 PM
Is it a members gallery category or a main gallery category?
Title: Re: SMF Gallery
Post by: Chas Large on April 05, 2016, 06:11:05 PM
Quote from: vbgamer45 on April 05, 2016, 06:03:20 PM
Is it a members gallery category or a main gallery category?
Members Gallery > Sub category of that, thumbnail of that category.

Replacing the image with another then deleting the image does not remove the thumbnail. Even rebuilding the thumbnails after the removal does not get rid of it.

I'll hack the dB tomorrow, seems the only (ludicrous) way to do it. :(
Title: Re: SMF Gallery
Post by: vbgamer45 on April 05, 2016, 06:16:04 PM
It would be in the gallery_usercat table the id from url of that member category. I checked latest pro I do have that for subcategories as well.
Title: Re: SMF Gallery
Post by: Chas Large on April 06, 2016, 03:33:11 PM
Quote from: vbgamer45 on April 05, 2016, 06:16:04 PM
It would be in the gallery_usercat table the id from url of that member category. I checked latest pro I do have that for subcategories as well.

Thanks, yes, that's where the thumbnail remained even though I had deleted the original file.

Appreciate the help
Title: Re: SMF Gallery
Post by: vbgamer45 on April 06, 2016, 04:04:04 PM
Glad you have it working. Also if you ever need to upgrade only $25 to get the latest version no matter how old your Gallery Pro is at.
Title: Re: SMF Gallery
Post by: Grammy on June 14, 2016, 11:55:17 AM
SMF 2.0.11 default

Can you replicate this issue?  I just realized today that, when creating a new category, if I type a description and save it, it's fine, but if I copy text from elsewhere to paste into the description field (in this case, from another test forum) the result is so microscopically tiny that you can barely see it.

I've started with a new test forum today and have been systematically adding one mod at a time, testing for errors and glitches, then moving on to adding the next mod.  I am now at the Gallery mod and so this is what I've discovered.

I'm attaching a screenshot (the last category is the one with the description field I tried to paste text into). 

These are the two errors it throws:

Undefined index: description
Themes/default/GenericMenu.template.php
Line 303

Undefined index: title
Themes/default/GenericMenu.template.php
Line 291

I've never had these Undefined index errors appear until I tried to paste text into the description field.  No other action seems to throw them.  I suppose most people never will paste into the description field, but I thought you guys might want to know about it.

Title: Re: SMF Gallery
Post by: vbgamer45 on June 14, 2016, 02:36:56 PM
What type of text are you pasting in from what source?
And what editor are you using in SMF which editor mode
Title: Re: SMF Gallery
Post by: Grammy on June 14, 2016, 02:49:47 PM
Quote from: vbgamer45 on June 14, 2016, 02:36:56 PM
What type of text are you pasting in from what source?
And what editor are you using in SMF which editor mode

I actually was moving final touches from the test forum to the final forum and clicked "Edit" for a gallery category in the test forum to open that field and copied what was in that field, then opened the window for the new forum and pasted it into that gallery category field.  So it was just a copy/paste from one forum's category field to another.  It was just plain text; I hadn't used any HTML or BBC.

When I do edit SMF files, I use TextWrangler (Mac) but I haven't made any manual edits.  Everything installed smoothly and I've never had any errors until I just happened to try pasting some descriptions so that I wouldn't have to type them all out again.
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on June 14, 2016, 02:54:00 PM
Copy it into Notepad, then from Notepad to the gallery, that will remove any formatting.
Title: Re: SMF Gallery
Post by: Grammy on June 14, 2016, 02:58:27 PM
Quote from: Sir Osis of Liver on June 14, 2016, 02:54:00 PM
Copy it into Notepad, then from Notepad to the gallery, that will remove any formatting.


Okay; that worked!  Well....  alrighty, then!   :D

I did't realize there was any formatting, not having used any HTML or BBC, but apparently there was.  I'm not sure why that threw Undefined errors, but if I knew that, I'd know everything.  (And no one wants that...)

Thanks! 
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on June 21, 2016, 12:27:58 AM
Minor update:

5.6.1
!Minor fixes with Aeva convertor handling apostrophes filenames
Title: Re: SMF Gallery
Post by: glennmckenna on July 17, 2016, 12:27:50 PM
I'm looking to remove a bar from the style (see attached image) of the gallery page, i assume i have to modify Gallery2.template.php ?

and to remove that bar i have to remove this :

ShowTopGalleryBar($txt['gallery_text_title']);


but when ever i remove it i get this error (sorry for it being in french)
Erreur de traitement du modèle !

Un problème s'est produit durant le chargement du modèle ou du fichier de langue /Themes/default/Gallery2.template.php. Vérifiez la syntaxe et réessayez. Rappelez-vous que les apostrophes (') doivent souvent être échappées via une barre oblique (\). Pour obtenir plus de détails sur ces erreurs par PHP, essayez d'accéder directement au fichier.

Vous pouvez aussi recharger la page ou utiliser le thème par défaut.
syntax error, unexpected 'function' (T_FUNCTION)


i even get this error when i re add it, to fix the error i have to restore a backup
Title: Re: SMF Gallery
Post by: vbgamer45 on July 17, 2016, 03:19:57 PM
Removing that line shouldn't cause an issue unless there is code before it.

Please attach the changed file.
Title: Re: SMF Gallery
Post by: glennmckenna on July 17, 2016, 06:16:08 PM
here are the two scritpts, the -bak is before modification
Title: Re: SMF Gallery
Post by: vbgamer45 on July 17, 2016, 09:14:49 PM
Removing that shouldn't create an error. there is no reason it should.
Title: Re: SMF Gallery
Post by: glennmckenna on July 18, 2016, 07:48:54 AM
Quote from: vbgamer45 on July 17, 2016, 09:14:49 PM
Removing that shouldn't create an error. there is no reason it should.
now that's interessting cause i get template errors every time

here's a copy of the error
Quote
Error treatment model !

It Seems That the forum Meet Some difficulties CURRENTLY WITH His MODELS Graphics . Could Be the Problem What Not being temporary , Back TRY more later. If you continue to see this post , contact the administrator.

Vous pouvez aussi try recharger page
Title: Re: SMF Gallery
Post by: glennmckenna on August 01, 2016, 11:29:46 AM
Quote from: glennmckenna on July 17, 2016, 12:27:50 PM
I'm looking to remove a bar from the style (see attached image) of the gallery page, i assume i have to modify Gallery2.template.php ?

and to remove that bar i have to remove this :

ShowTopGalleryBar($txt['gallery_text_title']);


but when ever i remove it i get this error (sorry for it being in french)
Erreur de traitement du modèle !

Un problème s'est produit durant le chargement du modèle ou du fichier de langue /Themes/default/Gallery2.template.php. Vérifiez la syntaxe et réessayez. Rappelez-vous que les apostrophes (') doivent souvent être échappées via une barre oblique (\). Pour obtenir plus de détails sur ces erreurs par PHP, essayez d'accéder directement au fichier.

Vous pouvez aussi recharger la page ou utiliser le thème par défaut.
syntax error, unexpected 'function' (T_FUNCTION)


i even get this error when i re add it, to fix the error i have to restore a backup
i've done some looking into to this problem but i've found some other strange things with the template

were would be the best place to talk about this cause i don't know i it's a good idea to fill tis topic up with this sort of thing
Title: Re: SMF Gallery
Post by: vbgamer45 on August 01, 2016, 11:32:03 AM
Post it here depends on what is asked.
Title: Re: SMF Gallery
Post by: glennmckenna on August 01, 2016, 11:55:51 AM
Quote from: vbgamer45 on August 01, 2016, 11:32:03 AM
Post it here depends on what is asked.
i've changed program to modify the theme (was using phpstorm 2016 now using notepad++)
but now not all the modifications that i'm doing are being applied but don't get any errors

i'm trying to:ShowTopGalleryBar($txt['gallery_text_title']);
would the there be alot of work to be done to make the gallery fully responsive,
i'm curently running a modified version of redsy using bootstrap
as far as i can see i would only have to modify:
is there also a way to modify where i get redirected to fter uploading a image for example to the image just uploaded
Title: Re: SMF Gallery
Post by: glennmckenna on August 02, 2016, 08:45:35 AM
Quote from: glennmckenna on August 01, 2016, 11:55:51 AM
Quote from: vbgamer45 on August 01, 2016, 11:32:03 AM
Post it here depends on what is asked.
i've changed program to modify the theme (was using phpstorm 2016 now using notepad++)
but now not all the modifications that i'm doing are being applied but don't get any errors

i'm trying to:

  • delete the black bar at the top (circled in the picture on the left)
    thought that i had to remove this lign (is that correct?):
ShowTopGalleryBar($txt['gallery_text_title']);


  • reduce the space below the menu buttons (circled in the the picture on the left, second circle down)
    i've tried deleting the three <br> but with no luck (there are are only 3 br tags once in the code)

  • remove a td that i can't see why it's there and it's causeing problemes with the centering (highlighted in green in the pictre on the right)
    i tried finding it in the code but with ono luck

would the there be alot of work to be done to make the gallery fully responsive,
i'm curently running a modified version of redsy using bootstrap
as far as i can see i would only have to modify:

  • the class of the images (add responsive)
  • the class of the link boxes

is there also a way to modify where i get redirected to fter uploading a image for example to the image just uploaded
would there be a possibility to help me out with any of this ?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 05, 2016, 07:37:28 PM
The design level stuff I am not that good with.
Title: Re: SMF Gallery
Post by: glennmckenna on August 06, 2016, 05:33:03 AM
Quote from: vbgamer45 on August 05, 2016, 07:37:28 PM
The design level stuff I am not that good with.
is there someone in paticular that i should speek to for this or should i create a topic ?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 06, 2016, 01:13:40 PM
I would create a topic for help
Title: Re: SMF Gallery
Post by: JerzyLS on August 23, 2016, 06:24:51 PM
Hey, last time I just changed my hosting and I have problem.
When I try to upload new picture, it shows me blank.

The url generates every time, but on the server there's no the image.  I checked it on FTP.

On the old hosting it worked fine.

Title: Re: SMF Gallery
Post by: vbgamer45 on August 23, 2016, 06:30:54 PM
You will need to fix the gallery path under Admin -> Gallery Configuration -> Gallery Settings
Title: Re: SMF Gallery
Post by: JerzyLS on August 23, 2016, 06:38:52 PM
I fixed the paths at the beginning.

But, wait... I checked it again and I just added the slash at the end of the path to the gallery.

And working, thanks!

Title: Re: SMF Gallery
Post by: vbgamer45 on August 23, 2016, 07:32:25 PM
Glad you have it working!
Title: Re: SMF Gallery
Post by: aodio on November 15, 2016, 06:38:17 AM
How would you list categories in the Lite version ?

And, could you please explain why in permissions ..Admin doesn't have a check box for Gallery use?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 15, 2016, 08:19:54 AM
List categatories? You can add categories by visiting the gallery and click add category

What do you mean by admin doesn't have a checkbox for gallery use? Admin's always have all permissions to do anything
Title: Re: SMF Gallery
Post by: aodio on November 15, 2016, 03:22:37 PM
Quote from: vbgamer45 on November 15, 2016, 08:19:54 AM
List categatories? You can add categories by visiting the gallery and click add category

What do you mean by admin doesn't have a checkbox for gallery use? Admin's always have all permissions to do anything

All good mate... issues sorted ;).. lovely ... what is the storage capacity for each member or in total gallery ?

Cheers 
Title: Re: SMF Gallery
Post by: vbgamer45 on November 15, 2016, 03:23:00 PM
There is no limits in lite.
Title: Re: SMF Gallery
Post by: aodio on November 16, 2016, 06:29:21 PM
Quote from: vbgamer45 on November 15, 2016, 03:23:00 PM
There is no limits in lite.


Appreciated...

Cheers (Y)
Title: Re: SMF Gallery
Post by: humbleworld on January 06, 2017, 02:43:39 AM
Hi, vbgamer. I'm not sure if this has been asked. But I cannot find the Gallery link in the Tab Bar Menu. Show I shall I make it shown even when I am logged out?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 06, 2017, 06:00:01 AM
What SMF version?
The mod is permission based so their is permissions for each membergroup to show the gallery or not.
Title: Re: SMF Gallery
Post by: humbleworld on January 06, 2017, 08:23:12 AM
I am using Version 2.0.12, vbgamer.
Title: Re: SMF Gallery
Post by: Arantor on January 06, 2017, 09:19:02 AM
Update to 2.0.13 and see if that fixes your problem.
Title: Re: SMF Gallery
Post by: Harvester on January 29, 2017, 09:01:19 PM
Hello,

I have Aeva Media 1.4w on my site. I dont have many photos but enough to affect a bunch of posts if I lost them. I see that your mod will import from aeva media. How can I install your mod and get the photos from aeva media into it? do I have to uninstall Aeva Media first? What is the best way for me to switch to your gallery without causing too much havoc on my site.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 29, 2017, 09:06:35 PM
Keep aeva media installed first then use the convertor. It doesn't touch aeva media at all. It will wipe out anything you have in SMF Gallery though.
Title: Re: SMF Gallery
Post by: Harvester on January 29, 2017, 09:13:24 PM
Quote from: vbgamer45 on January 29, 2017, 09:06:35 PM
Keep aeva media installed first then use the convertor. It doesn't touch aeva media at all. It will wipe out anything you have in SMF Gallery though.

So I install your mod and then run the converter on aeva once it's installed?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 29, 2017, 09:14:20 PM
Yes. There is an import tab in the admin area of the gallery. It imports all the data so if you go to gallery pro that will be there as well.
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 08:49:42 AM
Hello vB  I got about 84% done with the import and got this message:

Duplicate entry '120' for key 'PRIMARY'
File: /home3/jared867/public_html/fishinpedia.com/fishin-forums/Sources/Subs-ConvertAeva2.php
Line: 692

Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 08:54:27 AM
Here is the full error from my error log:


Apply Filter: Only show the error messages of this URL
http://fishinpedia.com/fishin-forums/index.php?action=admin;area=gallery;sa=convert;importstep=import2;start=100
Apply Filter: Only show the errors with the same message
Database Error: Duplicate entry '120' for key 'PRIMARY'

INSERT INTO smf_gallery_pic
(id_picture,title,description,id_member,id_cat,
views, filesize, height, width,
filename, thumbfilename, mediumfilename,totalratings,rating,
commenttotal, approved, date, keywords,allowcomments )
VALUES ('120','The winner in the Cutest fish Category',
'You\'ve heard of the First, Biggest and Most categories.
Well now there is a new one.
The Cutest Fish !', '18', '1', '18',
'167759', '640', '480',
'albums/Fish_Photos/Dir_1/main_120.jpg', 'albums/Fish_Photos/Dir_1/thumb_120.jpg','albums/Fish_Photos/Dir_1/medium_120.jpg','0','0',
'0',
'1','1444415914'
, '',1)
Apply Filter: Only show the errors from this file
File: /home3/jared867/public_html/fishinpedia.com/fishin-forums/Sources/Subs-ConvertAeva2.php
Line: 692


I read something about repairing the table to resolve a similar issue but I am not quite sure which table to repair. Am i on the right track?
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 09:02:50 AM
well repairing the tables did not resolve my issue so I will wait for knowledgeable input now :)
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 09:10:36 AM
Copy this file to your sources directory and then try again
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 09:18:30 AM
I copied the file to my subs folder.. one was there but I told it to overwrite... then I restarted the import process... This time it didnt get past the importing categories stage

error this time is

Database Error: Unknown column 'id_picutre' in 'where clause'

select count(*) from smf_gallery_pic where
id_picutre = 53
Apply Filter: Only show the errors from this file
File: /home3/jared867/public_html/fishinpedia.com/fishin-forums/Sources/Subs-ConvertAeva2.php
Line: 528

One thing i notice is the work picture is not spelled correctly. Its showing as "picutre". Is that a syntax error or is that the way it should be?
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 09:28:31 AM
ok seems it was a syntax error in the file you had me upload. I found it on line 528 and once I corrected the spelling the converter progressed and completed without a hitch! :)

Thank you vB! :)



Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 09:30:44 AM
opps ok here is the new one.
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 09:32:03 AM
now it  seems all my photos were put into only one album.  When the first importing was running (the one that failed, before I uploaded the new file you gave me) there were photos in all albums.  Now only one album has photos in it while the other albums are all empty.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 09:47:01 AM
Try my new one i posted above made another change in it.
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 09:53:09 AM
ok that worked... though some photos were not carried over... only about 10

I can move those manually...

Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 11:16:46 AM
Glad it worked!
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 01:26:10 PM
I would love to see the BBC embed codes return... i love those short predictable codes  ie [smg id=46] so easy for members to use as well.

any chance of that feature being added?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 01:36:57 PM
Not likely. It eats up too much resources. I think I have a script in gallery pro that replaces existing one with the image thumbnails
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 03:36:47 PM
vB I went to add a picture (by the way, no way to add multiple images?) and when I submitted I received this error:

http://fishinpedia.com/fishin-forums/index.php?action=gallery&amp;sa=add2
Database Error: Unknown column 'money' in 'field list'

UPDATE smf_members
SET money = money + 0
WHERE id_member = 1
LIMIT 1
Apply Filter: Only show the errors from this file
File: /home3/jared867/public_html/fishinpedia.com/fishin-forums/Sources/Gallery2.php
Line: 934

money makes me think of the shop mod... which I uninstalled the other day... or could money be something else?  not sure how its affecting the gallery though.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2017, 03:42:13 PM
Yeah that would be it. Remove ShopVersion from smf_settings table and that error will go away.
Title: Re: SMF Gallery
Post by: Harvester on January 30, 2017, 03:58:52 PM
Thanks for pointing me in  the right direct vB. I found that in the smf_settings as well as several other Shop* variables and deleted all of them.  Pictures upload nicely now. One thing I am curious of though - when I upload the image, after it uploaded, I did not see the image. I saw a page of images and i had to go 3 pages deep (to my last page of images) to find the image I uploaded. Any way for me to set it so that once the image is uploaded its the first image on the page? I feel the way it is set now could be confusing to my members.
Title: Re: SMF Gallery
Post by: gccb on February 19, 2017, 06:22:47 AM
Hi, quick question.

I downloaded the latest update.

Do I just upload using package manger and let it over write the old version?

Thanks in advance,
Rodney.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 19, 2017, 09:12:06 AM
Yes that will work!
Title: Re: SMF Gallery
Post by: gccb on February 20, 2017, 03:29:26 AM
Thanks  ;)
Title: Re: SMF Gallery
Post by: Harvester on February 20, 2017, 07:38:19 PM
Help please.

I had to  uninstall this mod and now i am getting a TON of errors from it. I noticed the uninstall had no option to remove all the tables so I am guessing maybe the tables are still there? 

I still have AEVA media gallery installed and am about to uninstall it too... but I want to see if i can resolve this issue from the SMF Gallery uninstall before I proceed.

I have recieved over 1000 errors in the last 35 minutes all revolve around Undefined index: allow_smfgallery_view and Undefined index: smfgallery_menu
Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2017, 07:53:06 PM
What language package are you using?
Make sure if you are using a custom theme in the theme's languages modifications.* folder that this code is in.

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '5.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';
$txt['gallery_txt_convertors'] = 'Convertors';

//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


Attach your Sources/Subs.php  i can fix the allow_smfgallery_view error from that.
Title: Re: SMF Gallery
Post by: Harvester on February 20, 2017, 08:14:12 PM
I have already uninstalled the mod. Not because of any issues with it, I am just working on something... these errors that I spoke of above only started AFTER I uninstalled the mod..


nevertheless, I have attached my subs.php

Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2017, 08:15:21 PM
Are you looking to uninstall it completely?
It sounds like it uninstalled when you had errors? saying it couldn't unisntall?
Title: Re: SMF Gallery
Post by: Harvester on February 20, 2017, 08:17:15 PM
yes, for the meantime, I am.

I have a bunch of odd issues so I am trying to uninstall ALL mods and then install only bare necessities (I went crazy  and installed all sorts of stuff at first lol)

Title: Re: SMF Gallery
Post by: gccb on February 20, 2017, 08:19:25 PM
Sorry, back again.

Update worked, but now I have three gallery links in the menu.
Reason I did the update in the first place was to try and remove twin links that have been there.
I've been using version 2.xxx for the last five or six years.

My SMF is 1.1.21 at http://www.goldcoastcb.com/forum/index.php

Is this a hard fix?

Thanks,
Rodney.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2017, 08:38:50 PM
Quote from: gccb on February 20, 2017, 08:19:25 PM
Sorry, back again.

Update worked, but now I have three gallery links in the menu.
Reason I did the update in the first place was to try and remove twin links that have been there.
I've been using version 2.xxx for the last five or six years.

My SMF is 1.1.21 at http://www.goldcoastcb.com/forum/index.php

Is this a hard fix?

Thanks,
Rodney.
Attach your index.template.php it is installed multiple times to that file.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2017, 08:40:04 PM
Quote from: Harvester on February 20, 2017, 08:17:15 PM
yes, for the meantime, I am.

I have a bunch of odd issues so I am trying to uninstall ALL mods and then install only bare necessities (I went crazy  and installed all sorts of stuff at first lol)


Updated file attached
Title: Re: SMF Gallery
Post by: Harvester on February 20, 2017, 09:04:04 PM
Thank you vB. That did the trick :)

Title: Re: SMF Gallery
Post by: vbgamer45 on February 20, 2017, 09:24:10 PM
Glad to help
Title: Re: SMF Gallery
Post by: gccb on February 21, 2017, 01:12:06 AM
Quote from: vbgamer45 on February 20, 2017, 08:38:50 PM
Attach your index.template.php it is installed multiple times to that file.

Sorry but it's been a long time since I've done all this.

So with the file found at /forum/Themes/classic/index.template.php .. I "attach" it?

Attach what? Do you mean edit any duplicate gallery entries from that index.template.php?

Thanks,
Rodney.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 21, 2017, 01:33:43 AM
Attach as an attachment to this post and I can fix.
Or look inside that file and remove the duplicate buttons for gallery added.
Title: Re: SMF Gallery
Post by: gccb on February 21, 2017, 01:47:39 AM
I see. sorry. I'm not real sharp with php, so if you could have a look that would be great.

You need the one from the default theme folder, right?

It's attached.

Thanks mate.

Title: Re: SMF Gallery
Post by: gccb on February 21, 2017, 05:45:19 AM
Quick update: I braved the php and found the extra two entries.
All good now.

Cheers.
;)
Title: Re: SMF Gallery
Post by: drfun on April 05, 2017, 12:53:15 PM
Hello all,

Please i was wondering, if there is a way to customize the SMF gallery to display in round edge boxes like Aevea media, or is it only Neo that t has such right of displaying his media gallery that way.?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 05, 2017, 01:01:44 PM
It is if you know CSS/or are a web designer.
Title: Re: SMF Gallery
Post by: drfun on April 05, 2017, 03:02:53 PM
Thanks vb, can you help with the CSS code that can help archive this and may be it will be nice also to have it on the mod.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 05, 2017, 03:08:01 PM
I do not have much experience with that so no.
Title: Re: SMF Gallery
Post by: glennmckenna on April 21, 2017, 11:49:44 AM
may i ask way is this function defined :

ShowTopGalleryBar();

cause i'm unable to find it any where
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2017, 12:03:56 PM
probaly in sources/gallery2.php or themes/default/gallery2.template.php
Title: Re: SMF Gallery
Post by: glennmckenna on April 21, 2017, 12:06:40 PM
Quote from: vbgamer45 on April 21, 2017, 12:03:56 PM
probaly in sources/gallery2.php or themes/default/gallery2.template.php
tried both but no luck
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2017, 12:51:10 PM
Search the mod itself the zip file and see where the code is.
Title: Re: SMF Gallery
Post by: glennmckenna on April 24, 2017, 02:23:54 PM
Quote from: vbgamer45 on April 21, 2017, 12:51:10 PM
Search the mod itself the zip file and see where the code is.
found it...
must of been blind the first time i looked cause i found it after 3 clicks
Title: Re: SMF Gallery
Post by: vbgamer45 on April 24, 2017, 02:43:31 PM
Glad you found it yeah I used phpstorm or text and do search in all files to find stuff for me.
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on April 27, 2017, 01:54:27 AM
Critical Update
6.0
!Fixed possible injection issue due to regression in category view. Must update.

Title: Re: SMF Gallery
Post by: petewadey on June 05, 2017, 01:03:49 PM
What are the main differences between the free version and pro?
Title: Re: SMF Gallery
Post by: Shambles on June 05, 2017, 01:04:20 PM
Quote from: petewadey
What are the main differences between the free version and pro?

http://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: vbgamer45 on June 05, 2017, 01:14:04 PM
There are huge feature differences. The lite edition is for small sites which have around 100 photos or less.
Main differences bulk uploading, personal/user galleries, unviewed system, interface improvements, support for audio/video files.
Title: Re: SMF Gallery
Post by: petewadey on June 05, 2017, 01:21:57 PM
So very similar to to use as Aeva Media which I wish to replace. Is migration easy?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 05, 2017, 01:27:22 PM
Yes I have a migration script. That imports pictures, ratings, categories, comment replies etc.
Title: Re: SMF Gallery
Post by: mrkid on July 01, 2017, 08:47:19 AM
Can the links be hidden, so only the "owner" can share the picture? I'm trying my best to say Phuck You to Photobucket, and let me users use my site for photo storage.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2017, 09:36:47 AM
You can turn of the sharing of links under settings.

Yeah photobucket has caused a lot of problems.
Title: Re: SMF Gallery
Post by: mrkid on July 01, 2017, 10:13:02 AM
Quote from: vbgamer45 on July 01, 2017, 09:36:47 AM
You can turn of the sharing of links under settings.

Yeah photobucket has caused a lot of problems.

Turning off the links setting will still show code to the uploader?

And yes...Photobucket will either roll over or sink like a rock. Amazing how arrogant they were.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2017, 11:23:28 AM
No it won't show the sharing links to anyone.
Title: Re: SMF Gallery
Post by: mrkid on July 01, 2017, 11:36:17 AM
Could that be modified "fairly easily"? :P

Is that an option in pro?

I just wouldn't want people sharing others pics if I can avoid it.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2017, 11:41:53 AM
It's not an option in pro but it can be changed in the template file easily just need SMF version. Or I can add it to Pro too if needed has a lot of extra features you can check out a demo on createaforum.com if you want a full demo or smfhacks.com/demos
Title: Re: SMF Gallery
Post by: mrkid on July 01, 2017, 11:54:29 AM
I was leaning toward the Pro version anyway. What changes would be needed? I assume it would be in permissions?

Also, can you block uploads by post count?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2017, 12:05:01 PM
It's an if statement would check if gallery admin or owner of picture then show the sharing links.

I haven't tried blocking by post count. But there is an option to set category level permissions on each category and you can block post counts
Title: Re: SMF Gallery
Post by: mrkid on July 01, 2017, 12:28:09 PM
Hmm...maybe I'll play around tonight with the free version, and keep you posted. I feel you may get busy with Photobucket's "policy change".
Title: Re: SMF Gallery
Post by: vbgamer45 on July 01, 2017, 12:29:27 PM
On my forum hosting sites yes I am some users noticed two so far. So i might have to build them an image hosting system.
Title: Re: SMF Gallery
Post by: sah62 on July 11, 2017, 01:12:30 PM
I recently purchased SMF Gallery Pro with the intent of replacing an existing Coppermine installation that was bridged to my SMF forum. Does anyone have any thoughts on an easy way to automate user album image file migration from Coppermine to SMF Gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 11, 2017, 01:19:17 PM
I have an import script in the customer download forums. I haven't used it recently but should be a good way to start.
Title: Re: SMF Gallery
Post by: sah62 on July 11, 2017, 01:32:46 PM
Quote from: vbgamer45 on July 11, 2017, 01:19:17 PM
I have an import script in the customer download forums. I haven't used it recently but should be a good way to start.

Link, please?
Title: Re: SMF Gallery
Post by: vbgamer45 on July 11, 2017, 02:27:14 PM
Here it is you must enter your license in the members area to view it http://www.smfhacks.com/index.php/topic,2839.0.html
Title: Re: SMF Gallery
Post by: sah62 on July 11, 2017, 05:19:13 PM
Got it - thanks! It needs work for PHP 7.x, but I think I can handle that.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 11, 2017, 05:54:19 PM
Ok yeah good luck I forgot that is an older script if uses mysql change to mysqli_ I have a wrapper file here you can use as well
Title: Re: SMF Gallery
Post by: efk on July 14, 2017, 03:04:06 PM
What are limits on Lite version? I'm not asking here for difference between free and paid version, but what are limits on free. From what I understood Gallery is using forum memory, but is there a limit on how many pictures can be there? I have a plan to have on in about 300-500 pictures, so don't wanna risk to be in situation to search for alternatives if something unexpected happen. Also Pro version is too expensive to get atm.
Title: Re: SMF Gallery
Post by: vbgamer45 on July 14, 2017, 03:17:50 PM
There is no limit on the number of pictures on the free version. No limits other than the pro version has more features.
Title: Re: SMF Gallery
Post by: XSeb74 on August 10, 2017, 05:13:13 AM
Hello
Please find attached the French trasnlation for the Gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on August 11, 2017, 08:21:16 AM
Thanks for the translation!
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 13, 2017, 10:17:24 AM
Hello there.
smf version: 2.0.14.
smf gallery version: 6.0.

Problems

1. I do not have albums named folder when I convert. I created it manually and reopened the modification, but it did not happen again.
2. When the conversion is complete, all images are added to a single album. Picture categories do not occur.
3. Picture links are available. But it does not physically exist on the server.
4. When I want to add a new picture, the picture is not displayed. but the painting is available. The image is physically absent from the server.

This modification worked when I edit chmod of newly created folders on another server. But I could not get it to work on a different server.
Help please.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 13, 2017, 11:12:26 AM
Did you convert from another gallery system.
Or did you just change servers?

If you changed servers make sure your gallery path settings was updated to the new servers gallery path
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 13, 2017, 01:52:43 PM
Quote from: vbgamer45 on September 13, 2017, 11:12:26 AM
Did you convert from another gallery system.
Or did you just change servers?

If you changed servers make sure your gallery path settings was updated to the new servers gallery path
Aeva Media to smf gallery.
Categories are not forming. all images are added to the same album. and the pictures do not physically occur on the server.
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 14, 2017, 12:56:51 PM
Can SMF Gallery Pro Edition demo site link?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 14, 2017, 01:01:18 PM
User demo https://www.smfhacks.com/demos/index.php?action=gallery


If you want an admin demo signup on https://www.createaforum.com for a forum.
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 14, 2017, 01:18:04 PM
thanks. paypal was banned in turkey. Is there another payment method?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 14, 2017, 02:08:17 PM
I can do credit card, bitcoin, etherium
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 14, 2017, 11:27:06 PM
Quote from: vbgamer45 on September 14, 2017, 02:08:17 PM
I can do credit card, bitcoin, etherium

Would you give a url (link) to pay by credit card?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 14, 2017, 11:45:46 PM
PM me your email. I can also do an amazon gift card.
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 16, 2017, 10:20:11 AM
hello
wattermark text ok
but
wattermark image not working. what is missing?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.muhabbetkusuureticileri.org%2Fimg%2Falinti.PNG&hash=71451485686fbe49c474e3aa70075ae7b6c527f9)
Title: Re: SMF Gallery
Post by: vbgamer45 on September 16, 2017, 11:29:34 AM
It has to be a file path not a url
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 16, 2017, 11:59:56 AM
thanks.
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 16, 2017, 12:02:38 PM

Are there Turkish language files for pro version?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 16, 2017, 12:39:33 PM
Not that I know of.
Title: Re: SMF Gallery
Post by: bolubeyi61 on September 16, 2017, 01:17:35 PM



Well. Today we installed a pro version for 2 of our customers. If necessary we will continue to receive support from here. Thank you.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 16, 2017, 01:25:34 PM
Thanks.
For SMF Gallery Pro support please post on https://www.smfhacks.com/ it keeps things more organized.
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 03:58:05 PM
Hi!

Today I installed SMF Gallery free and I can't seem to find any way to set permissions for who can and can't see or access any particular gallery. For example I'd like to have a gallery for general members to upload to, and one that's for moderators and admins only.

Is this functionality available on the free version? If not, is it available on the paid version? I can't seem to find any documentation that mentions that capability specifically. Admittedly I'm frustrated and tired of sifting through a bazillion places looking for answers and may have missed it.

Thanks for your trouble.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2017, 05:08:02 PM
Category level permissions are not part of the free version of this modification they are in the pro edition.

Basically in the free edition you have global permissions found under Admin -> Permissions then modify each membergroup.
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 06:44:38 PM
Quote from: vbgamer45 on September 19, 2017, 05:08:02 PM
Category level permissions are not part of the free version of this modification they are in the pro edition.

Basically in the free edition you have global permissions found under Admin -> Permissions then modify each membergroup.

Thank you, that is helpful. My apologies if you've said a bazillion times already. 

One more question, is there a way to force a pic uploaded to a category to convert to a proscribed size for said category, rather than just have the upload denied?  If not in the free version then in the pro? I want to manage the file sizes but also make it easy for my users to use the files on the bulletin board and in articles.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2017, 07:39:09 PM
Yes that is a feature in the pro version. If the file is too big it will be resized to the allowed height/width size.
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 07:43:00 PM
Quote from: vbgamer45 on September 19, 2017, 07:39:09 PM
Yes that is a feature in the pro version. If the file is too big it will be resized to the allowed height/width size.

Well that probably just sold it, then. 

Thanks for your trouble and have a lovely rest-of-your-day.

Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2017, 07:46:49 PM
Glad to help partial list of features and more details can be found at https://www.smfhacks.com/smf-gallery-pro.php
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 08:08:58 PM
Wow, thanks again.

Next question.  Now that I have the pro version can I just upgrade the free one I'm running, or do I have to uninstall the free version to install pro?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2017, 08:14:04 PM
Uninstall the old version first then install pro.
Uninstalling does not delete pictures or data.
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 08:16:08 PM
Quote from: vbgamer45 on September 19, 2017, 08:14:04 PM
Uninstall the old version first then install pro.
Uninstalling does not delete pictures or data.

SWEET.  I'm off to get that done. :D
Title: Re: SMF Gallery
Post by: Suz on September 19, 2017, 08:41:54 PM
Hmmmm.  I seem to have lost the save button when in "edit category."  I can make changes but I can't save them.

Love the look so far, though.

ETA:  Never mind.  It's "edit category" not "save." Duh.

I think this is proof I need to walk away for the nice and come back tomorrow. :)  Have a good night.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2017, 08:46:51 PM
Yeah there is a lot of new settings/features to explore. Be sure to check all settings tabs and each option.
Title: Re: SMF Gallery
Post by: jcohen780 on December 10, 2017, 09:55:05 PM
I just installed SMF Gallery Lite 6.0. after going around for a day or so in another thread, I was sent over here.

https://www.simplemachines.org/community/index.php?topic=557618.msg3951628#msg3951628

What I am trying to find out:  Is there an EASY way to link pictures (or is there code) from the Gallery so that they will show in a regular forum post?!?!

This seems to be something very simple that SMF (and related Mods) should be able to easily handle.
Title: Re: SMF Gallery
Post by: vbgamer45 on December 10, 2017, 10:32:35 PM
There might be thumbnail sharing link options. Otherwise that would be in the pro edition.
Title: Re: SMF Gallery
Post by: jcohen780 on December 10, 2017, 11:02:13 PM
Ok, I found something p, and I think I got it working now. Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on December 10, 2017, 11:36:03 PM
Glad you found a solution!
Title: Re: SMF Gallery
Post by: jcohen780 on December 10, 2017, 11:55:13 PM
Quote from: vbgamer45 on December 10, 2017, 11:36:03 PM
Glad you found a solution!

Me too. Thanks!!
Title: Re: SMF Gallery
Post by: Trishah on January 13, 2018, 07:48:56 AM
I just installed the free version and went through the process to import our Aeva Media galleries.  It shows the correct path to the mgal_data directory.  I run the importer.  It goes through a sequence of things it's importing, but when it's done, there is nothing in the gallery.  I have verified that there are images and things in the mgal_data directory.  How do I get this to work?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 13, 2018, 11:27:13 AM
No categories made or anything?
I might need to see the gallery itself.
Title: Re: SMF Gallery
Post by: SaltedWeb on January 13, 2018, 02:53:26 PM
Quote from: Trishah on January 13, 2018, 07:48:56 AM
I just installed the free version and went through the process to import our Aeva Media galleries.  It shows the correct path to the mgal_data directory.  I run the importer.  It goes through a sequence of things it's importing, but when it's done, there is nothing in the gallery.  I have verified that there are images and things in the mgal_data directory.  How do I get this to work?


( did you clear your browsers cache? Not just F5 ) I know everyone always says it but ive done it many times forgot to clear it and op there is my images.
Title: Re: SMF Gallery
Post by: bharat on January 19, 2018, 03:19:29 AM
I would like to know if there SMF Gallery in Russian? Or do I need to translate everything?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 19, 2018, 09:00:16 AM
There is one from 2007 on this page
https://www.smfhacks.com/index.php?topic=111.30
Title: Re: SMF Gallery
Post by: bharat on January 19, 2018, 09:28:52 AM
Thanks for the link, just have one question. Everything got translated only the word gallery on the main page still wtitten in English, how can I fix it?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 19, 2018, 09:30:41 AM
In themes/default/languages/modifications.english.php
Title: Re: SMF Gallery
Post by: bharat on January 19, 2018, 09:35:16 AM
Do I need to change it in Russian there?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 19, 2018, 09:46:02 AM
yeah or add to russian modifications language file
Title: Re: SMF Gallery
Post by: bharat on January 19, 2018, 10:00:40 AM
It is already in Russian file and I tried to change in English one but nothing is changed.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 19, 2018, 12:02:47 PM
Clear your cache under file maintenance.
Title: Re: SMF Gallery
Post by: bharat on January 19, 2018, 12:36:56 PM
Did it but still looks the same.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 19, 2018, 01:09:02 PM
Check all the other language files do a search for 'Gallery';
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 05:42:14 AM
All the language file??? But it is written in English and Russian only. The thing is that I can see it written in Russian but when I click there it appears in English.
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 05:43:15 AM
Can you please also tell me, if I remove images from Gallery will be they still visible in other topics?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2018, 08:37:35 AM
No they won't if you delete the image in the gallery then it won't be visible in the topic since you deleted the image.
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 09:47:39 AM
I tried to remove image an I can still see it in the topic, how is it possible then?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2018, 09:48:55 AM
How is the image in the topic? Linked? need more details
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 12:30:22 PM
I just copied the URL from the gallery and then removed it from there.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2018, 12:32:34 PM
The picture should be deleted then when you delete from the gallery.
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 12:35:42 PM
Somehow I can see all the pictures which were removed from the gallery.
Title: Re: SMF Gallery
Post by: bharat on January 20, 2018, 12:36:27 PM
How many pictures can be add to the gallery, doesn't it take a lot of space?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2018, 12:37:39 PM
No set limit. It depends on space of your hosting account.
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 08:34:44 AM
If I have 20 GB of space would it get full fast?
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 08:35:43 AM
Can someone still help me with my question about one word written in English instead of Russian. Please see the attachment.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2018, 08:57:18 AM
it would be in the themes/default/languages/modificatoins.english.php file
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 09:00:37 AM
What should I change there?
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 09:09:18 AM
I checked it earlier and didn't find anything wrong. Tried to type in Russian as well but it didn't help.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2018, 09:15:08 AM
That's the only place it would be in those files. Unless you hardcoded it somewhere.
i would do a search across the entire site.
Also clearing the file cache on smf helps sometimes.
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 09:33:42 AM
No, I didn't hardcoded anything. Also cleared the cache a few times but nothing changed. Where can I search he entire site?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2018, 09:35:41 AM
You can use grep if you are on linux or download the whole site to your local machine then do a search in a files in text editors such as textpad or phpstorm
Title: Re: SMF Gallery
Post by: bharat on January 22, 2018, 09:40:09 AM
Can it be simply a bug? By the way I am not using Linux.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2018, 09:45:11 AM
No.
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on January 25, 2018, 07:20:06 PM
Been using an old version of gallery lite (3.0) for several years on my family forum.  It's been extensively customized, so don't want to upgrade to current version.  It doesn't resize images, just lets you set max width/height.  Just installed this mod (https://custom.simplemachines.org/mods/index.php?mod=2206) to resize attached images.  Any way to integrate it with the gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 25, 2018, 09:57:00 PM
Not at the moment would need to be added. But I already have resizing code in my pro edition so probably won't do it.
Title: Re: SMF Gallery
Post by: SaltedWeb on February 05, 2018, 10:20:14 PM
If I already have the lite version will this update with purchasing the paid version without losing all the work?
So will in install right along side or how does that work?
I am considering making a purchase on the paid but don't want to lose any work and have to redo all the pics and cats.

Thanks
Title: Re: SMF Gallery
Post by: SaltedWeb on February 05, 2018, 10:47:57 PM
Quote from: Sir Osis of Liver on January 25, 2018, 07:20:06 PM
Been using an old version of gallery lite (3.0) for several years on my family forum.  It's been extensively customized, so don't want to upgrade to current version.  It doesn't resize images, just lets you set max width/height.  Just installed this mod (https://custom.simplemachines.org/mods/index.php?mod=2206) to resize attached images.  Any way to integrate it with the gallery?

FYI
AVS makes a great media suite, right now they are 70% off the image converter has a built in resizing , I use it to keep online photos the right size.
One can buy the image program separate, I bought the whole suite which has life upgrades a couple years ago best money I ever spent as it has all
sorts of converters, editor anyways not to take away from buying the paid version but I like this AVS alright.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 05, 2018, 10:55:05 PM
When upgrading to pro all pictures and inforamtion is saved even if you uninstall lite which you need to do to upgrade to pro.
Title: Re: SMF Gallery
Post by: SaltedWeb on February 05, 2018, 11:10:49 PM
Quote from: vbgamer45 on February 05, 2018, 10:55:05 PM
When upgrading to pro all pictures and inforamtion is saved even if you uninstall lite which you need to do to upgrade to pro.

Ok great thank you for the fast reply.
Title: Re: SMF Gallery
Post by: vbgamer45 on February 05, 2018, 11:37:07 PM
np if you have any other questions let me know.
Title: Re: SMF Gallery
Post by: dpalenski on February 25, 2018, 04:41:54 PM
I've just upgraded to Pro I know the uploader has an option to be notified of comments but do people who leave comments have an option to be notified of replies to their comments

thanks 
Title: Re: SMF Gallery
Post by: vbgamer45 on February 25, 2018, 07:07:38 PM
People no since the comments aren't threaded but might be a good idea to add.
Title: Re: SMF Gallery
Post by: SaltedWeb on March 06, 2018, 12:15:15 PM
Does this allow uploads from deposit site?

I noticed I can easily do it in the SMF posts on the forum but the Gallery doesn't seem to incorporate the same process ?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 06, 2018, 02:35:34 PM
I am not sure I understand. This mod only allows photos that you upload from your computer.
Title: Re: SMF Gallery
Post by: SaltedWeb on March 07, 2018, 10:51:29 AM
Yep that was the answer I was looking for.... thank you. Was hoping it would take elsewhere to save storage and bandwidth.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 08, 2018, 12:49:19 AM
Yeah not meant for remote files. Mainly issues with that is handling thumbnails/resizing and your images could disappear if that hosting service disappears.
Title: Re: SMF Gallery
Post by: Westwegoman on August 08, 2018, 10:41:46 PM
Im getting the following error. Any idea what could be causing it?

http://www.segnette.com/community/index.php?action=gallery;sa=next
8: Undefined index: id
File: /Sources/Gallery2.php
Line: 2478
Title: Re: SMF Gallery
Post by: vbgamer45 on August 08, 2018, 10:54:50 PM
A bad link? All those urls for next previous should have an id variable passed in the url.
Title: Re: SMF Gallery
Post by: Westwegoman on August 08, 2018, 11:07:27 PM
Quote from: vbgamer45 on August 08, 2018, 10:54:50 PM
A bad link? All those urls for next previous should have an id variable passed in the url.

I hadn't noticed that. I see what you are saying. I'll just write it off as probably someone screwing around.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 08, 2018, 11:17:43 PM
Yeah more than likely.
Title: Re: SMF Gallery
Post by: Looking on January 08, 2019, 03:25:39 PM
Does the converter add AEVA files to an existing SMF Gallery? In other words, I have an SMF Gallery with existing files that I want to keep AND import AEVA into it as well.

If not, what would you recommend so I can have the content of both in just SMF Gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 08, 2019, 03:28:51 PM
No it overwrites the data. Would be hard custom sql to change the picture ids.
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on February 05, 2019, 06:05:28 PM
+Added install support for SMF 2.1 RC1
Title: Re: SMF Gallery
Post by: landyvlad on February 06, 2019, 06:48:19 AM
Hiya

I just installed it to a freshly installed SMF 2.1 RC1 forum

I have got the following errors



vladtepes
Today at 11:43 am
118.208.120.187
42d61b917e62e95b88da39a20aa992d2
Type of error: General
2: getimagesize(/home/dronefli/public_html/gallery//img.tmp): failed to open stream: No such file or directory
https://www.droneflightforum.com/index.php?action=gallery&amp;sa=add2
/home/dronefli/public_html/Sources/Gallery2.php (Line 846)

vladtepes
Today at 11:43 am
118.208.120.187
42d61b917e62e95b88da39a20aa992d2
Type of error: General
2: getimagesize(): Filename cannot be empty
https://www.droneflightforum.com/index.php?action=gallery&amp;sa=add2
/home/dronefli/public_html/Sources/Gallery2.php (Line 838)

vladtepes
Today at 11:31 am
118.208.120.187
42d61b917e62e95b88da39a20aa992d2
Type of error: Undefined
8: Undefined index: smfgallery_menu
https://www.droneflightforum.com/index.php?action=admin;area=packages;sa=install2;package=1549452599.zip;pid=0
/home/dronefli/public_html/Sources/GalleryHooks.php (Line 182)




Perhaps a fix is needed?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 06, 2019, 08:29:17 AM
Make sure the gallery folder is writable.
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on February 13, 2019, 03:28:25 PM
6.0b
!Minor tweaks/fixes for SMF 2.1.x
Title: Re: SMF Gallery
Post by: landyvlad on March 03, 2019, 07:55:26 PM
I have SMF Gallery (Pro) very 8.0.4 running on 2.1RC1 (release)



I am getting the following errors, all of which seem to relate to class.gifresize.php


Check all 
vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

8: iconv_strlen(): Detected an illegal character in input string
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 339)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

2: A non-numeric value encountered
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 324)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

2: A non-numeric value encountered
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 298)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: Undefined

8: Undefined variable: gr_mod
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 188)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: Undefined

8: Undefined variable: lc_palet
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 188)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

8: iconv_strlen(): Detected an illegal character in input string
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 339)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

2: A non-numeric value encountered
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 324)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

2: A non-numeric value encountered
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 298)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: Undefined

8: Undefined variable: gr_mod
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 188)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: Undefined

8: Undefined variable: lc_palet
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 188)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

8192: Methods with the same name as their class will not be constructors in a future version of PHP; GIF_eXG has a deprecated constructor
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 79)

vladtepes
Today at 12:43 am
203.13.3.94
4e61db89944963b1030fb8da4739c20c
Type of error: General

8192: Methods with the same name as their class will not be constructors in a future version of PHP; FRM has a deprecated constructor
https://www.droneflightforum.com/index.php?action=gallery;sa=add2
/home/dronefli/public_html/Sources/class.gifresize.php (Line 60)


Perhaps someone can let me know what the probable cause may be?


In case it matters , only other mods installed are TinyPortal, Fix background Tasks.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 03, 2019, 08:15:31 PM
Can you attach the gif file that is casing that.
Title: Re: SMF Gallery
Post by: landyvlad on March 04, 2019, 12:32:43 AM
This is the only gif I have tried to upload (and it was successful too)
Title: Re: SMF Gallery
Post by: woolly bugger on March 08, 2019, 03:06:22 PM
large images in the gallery don't display correctly, the width is squished into the window.

anyway to fix this?

running 2.1 with ezportal
Title: Re: SMF Gallery
Post by: vbgamer45 on March 08, 2019, 03:39:46 PM
You might be able to set a max display width, height in the gallery settings I think that is a setting in the lite edition.
Title: Re: SMF Gallery
Post by: woolly bugger on March 08, 2019, 04:03:42 PM
I'm only seen max allowed image width and height... both set to zero
this appears to be upload limits....

nothing indicates max display H x W
Title: Re: SMF Gallery
Post by: vbgamer45 on March 08, 2019, 04:15:28 PM
Yeah, I guess didn't have that feature in the lite edition of the mod.
Title: Re: SMF Gallery
Post by: njtweb on March 26, 2019, 02:26:52 PM
Is this responsive yet?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 26, 2019, 02:35:25 PM
Not the main tables. It is mostly table based.
Title: Re: SMF Gallery
Post by: 4everBlue on March 27, 2019, 02:12:14 PM
Im using the black and white theme, i am using the themes index.template
Its actually showing up now but not as a button! Anyone have any idea of whats going on?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 27, 2019, 02:19:57 PM
Are you using SMF 2.0.x
Title: Re: SMF Gallery
Post by: Soulreaver87 on April 30, 2019, 09:30:02 PM
Let me start by saying this Mod is great. Just what Ive been looking for.

I just have 1 small issue if anybody can help me.

When a user click on a Thumb Is show the image full size, this then classes as 1 view. Is there a way of only letting that view go up once per IP Address? I have notices if a person keeps clicking on it or holding F5 the views still go and it can mess up the actual views on an image.

Thanks in advance.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 30, 2019, 11:30:42 PM
I have an option that limit views per session using a cookie but that is only in the pro edition of the gallery
Title: Re: SMF Gallery
Post by: Soulreaver87 on May 01, 2019, 02:43:54 AM
Oh ok, Just that I was going to implement the shop points but was looking at doing points per view not points per uploads. Wouldn't be fair if al a user would have to do is keep reloading 1 image to gain points.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 01, 2019, 05:37:38 AM
You would have to have a table that checks the if the member viewed the item or not that could do it then I have a view log in the pro edition.
Title: Re: SMF Gallery
Post by: Cloudmaster on May 07, 2019, 10:06:32 AM
I'm getting the following error after installing SMF Gallery Lite 6.0b on an SMF 2.0.13 forum (which I can't upgrade for technical reasons).  I've used it to import Aeva Media Gallery images, but although the import seems to have gone well (SMF Gallery is showing imported galleries / images) this is the error I see -

Database Error
Incorrect integer value: '' for column 'filesize' at row 1
File: C:\FileStore\Staging\forum\Sources\Subs-ConvertAeva2.php
Line: 704

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.13, while your database is at version 2.0. The above error might possibly go away if you execute the latest version of upgrade.php.


I'm not sure which database it's referring to (or MySQL itself) so don't know whether to be worried about this error
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2019, 10:11:08 AM
Did it fail to update? Or just that one line we can make change to fix that issue.
Title: Re: SMF Gallery
Post by: Cloudmaster on May 07, 2019, 12:41:57 PM
Quote from: vbgamer45 on May 07, 2019, 10:11:08 AM
Did it fail to update? Or just that one line we can make change to fix that issue.

Sorry for appearing clueless, but I'm not sure what I'm supposed to be updating (and how)

Also, it hasn't imported all the albums (a symptom of this error?)
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2019, 03:13:45 PM
Yeah i think it is.

I just posted an update go to the modsite and download latest version hopefully helps fix that issue.
Title: Re: SMF Gallery
Post by: Cloudmaster on May 07, 2019, 03:21:11 PM
Thanks for trying bu I'm still getting the same error

Edit:  Sorry, not exactly the same error, now getting 'Incorrect integer value: '' for column 'height' at row 1' on the first line
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2019, 03:28:46 PM
Copy this file to your sources folder and try conversion again
Title: Re: SMF Gallery
Post by: Cloudmaster on May 07, 2019, 03:41:25 PM
Thank you sir!!

The import went without any errors this time, so I guess I can declare 'case closed'

Having said that, I'm still seeing Aeva albums that haven't been imported (as far as I can tell)

Not too worried at this point
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2019, 03:42:08 PM
Glad that helped. Yeah aeva has some odd cases where it gets tricky to import some of the data.
Title: Re: SMF Gallery
Post by: Biology Forums on May 18, 2019, 02:14:30 PM
How can I manually remove this block from the admin area?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 18, 2019, 04:11:41 PM
It's in your Sources/Subs.php file.
Title: Re: SMF Gallery
Post by: Biology Forums on May 18, 2019, 06:05:04 PM
Quote from: vbgamer45 on May 18, 2019, 04:11:41 PM
It's in your Sources/Subs.php file.

Couldn't find it. All I found pertaining to the gallery there was:

$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');

and


         // [SMF Gallery] button
         'gallery' => array(
            'title' => $txt['smfgallery_menu'],
            'href' => $scripturl . '?action=gallery',
            'show' => $context['allow_smfgallery_view'],
            'icon' => '',
         ),
Title: Re: SMF Gallery
Post by: Mick. on May 18, 2019, 07:03:38 PM
@sf, I would think it's on admin template file.?? Perhaps pull the file and search for gallery on there
Title: Re: SMF Gallery
Post by: Biology Forums on May 18, 2019, 07:32:22 PM
I checked the install xml file to see if that's the case, but didn't find any admin edits. I'm assuming it's part of a hook or something
Title: Re: SMF Gallery
Post by: Mick. on May 18, 2019, 07:56:37 PM
Look on them hooks.php. should show where it is
Title: Re: SMF Gallery
Post by: Biology Forums on May 18, 2019, 10:40:16 PM
Quote from: Mick. on May 18, 2019, 07:56:37 PM
Look on them hooks.php. should show where it is

It appears to be so. Do you know anything about how they're implemented?
Title: Re: SMF Gallery
Post by: SychO on May 19, 2019, 06:58:07 AM
as far as I know, you can't remove an admin menu item without removing its whole admin section with it.

you could if you edit the related generic admin template functions and skip showing an item if it's the gallery's
Title: Re: SMF Gallery
Post by: Arantor on May 19, 2019, 07:11:23 AM
It is possible to fudge it slightly so that things are hidden but still accessible, but this isn't recommended as it can screw around with session handling under some circumstances.

Though I would wonder why it is so terrible to have a link to the configuration.
Title: Re: SMF Gallery
Post by: Mick. on May 19, 2019, 07:20:48 AM
Sources/Admin.php that would be this. If you remove this, it removes the entire admin control from admin page and from the gallery.

'gallery' => array(
'title' => $txt['smfgallery_admin'],
'permission' => array('smfgallery_manage'),
'areas' => array(
'gallery' => array(
'label' => $txt['smfgallery_admin'],
'file' => 'Gallery2.php',
'function' => 'GalleryMain',
'custom_url' => $scripturl . '?action=admin;area=gallery;sa=adminset;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(
'adminset' => array($txt['gallery_text_settings']),
'admincat' => array($txt['gallery_form_managecats']),
'reportlist' => array($txt['gallery_form_reportimages']),
'approvelist' => array($txt['gallery_form_approveimages']),
'copyright' => array($txt['gallery_txt_copyrightremoval']),
'convert' => array($txt['gallery_txt_convertors']),

),
),),
),



So if removing the link in admin is what you want. Remove the title and label and you still have admin access to it directly from gallery itself in the bottom links. ie; settings.

'gallery' => array(
'permission' => array('smfgallery_manage'),
'areas' => array(
'gallery' => array(
'file' => 'Gallery2.php',
'function' => 'GalleryMain',
'custom_url' => $scripturl . '?action=admin;area=gallery;sa=adminset;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(
'adminset' => array($txt['gallery_text_settings']),
'admincat' => array($txt['gallery_form_managecats']),
'reportlist' => array($txt['gallery_form_reportimages']),
'approvelist' => array($txt['gallery_form_approveimages']),
'copyright' => array($txt['gallery_txt_copyrightremoval']),
'convert' => array($txt['gallery_txt_convertors']),

),
),),
),
Title: Re: SMF Gallery
Post by: Mick. on May 19, 2019, 07:54:23 AM
Removing the title and label language throws an undefined error. It does what you want but we want it without errors.

I tried using 'show' => false, but it didnt work for me.

I even went with half-ass cheating the system with...
'title' => '',     and     'label' => '', but it leaves the round background image in admin.
Title: Re: SMF Gallery
Post by: Arantor on May 19, 2019, 09:24:46 AM
The option you want is 'select' but like I said, using it on things that aren't designed explicitly for its use is a bad idea.
Title: Re: SMF Gallery
Post by: Biology Forums on May 19, 2019, 11:10:01 AM
Thanks fellas... I can't believe I missed the admin.php edit.

Quote from: Arantor on May 19, 2019, 09:24:46 AM
The option you want is 'select' but like I said, using it on things that aren't designed explicitly for its use is a bad idea.

Removed because I'm 'forking' the mod for a project I'm doing -- the admin menu and the stuff inside have been gutted, they aren't necessary
Title: Re: SMF Gallery
Post by: njtweb on May 19, 2019, 11:58:14 AM
Quote from: Study Force on May 19, 2019, 11:10:01 AM
Thanks fellas... I can't believe I missed the admin.php edit.

Quote from: Arantor on May 19, 2019, 09:24:46 AM
The option you want is 'select' but like I said, using it on things that aren't designed explicitly for its use is a bad idea.

Removed because I'm 'forking' the mod for a project I'm doing -- the admin menu and the stuff inside have been gutted, they aren't necessary

Are you making a mod or is it something explicitly for your site?
Title: Re: SMF Gallery
Post by: Biology Forums on May 20, 2019, 10:05:17 AM
No, it's just for one of my sites.
Title: Re: SMF Gallery
Post by: Hatshepsut on June 13, 2019, 02:26:48 AM
I use SMF Gallery Pro, version 8.0.5

There is a problem with personal galleries. They exist and are discoverable, but users cannot upload pictures into their galleries.
The names of the user galleries does not appear in the category drop-down list:

Click => (https://i.postimg.cc/fVq9HxJf/Gallery-upload.jpg) (https://postimg.cc/fVq9HxJf)

Also, if I try to move an already existing picture to my personal gallery, I get error mesage:

"An error has occurred
You need to create a category first before you upload a picture."

Forum details:

Version Information:
Forum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.62-cll
PHP: 7.1.29 (more detailed)
Server version: Apache


Link to my forum gallery:

https://bg-nacionalisti.org/BNF/index.php?action=gallery
Title: Re: SMF Gallery
Post by: vbgamer45 on June 13, 2019, 09:46:27 AM
Normally, you would create a category in the personal gallery area.
But if users need help with that. Change this setting

Under Admin -> Gallery Configuration -> User Gallery Settings
Check this option "Create a Default User Gallery Category" and save
Title: Re: SMF Gallery
Post by: Hatshepsut on June 13, 2019, 11:23:51 AM
Quote from: vbgamer45 on June 13, 2019, 09:46:27 AM
Normally, you would create a category in the personal gallery area.
But if users need help with that. Change this setting

Under Admin -> Gallery Configuration -> User Gallery Settings
Check this option "Create a Default User Gallery Category" and save


Thanks, creating of Default User Gallery Category is solving the problem :)
Title: Re: SMF Gallery
Post by: Bigguy on June 25, 2019, 01:50:41 PM
Been trying to re-install this mod after taking care of a different un-related error and when I press install I get this:
Too many keys specified; max 64 keys allowed
File: /home/******/public_html/Packages/temp/galleryinstall2.php
Line: 234

Never had this error before but it will not install again. Trying to install on 2.1 RC2
Title: Re: SMF Gallery
Post by: JacksonHe on August 17, 2019, 10:52:36 AM
Quote from: landyvlad on March 04, 2019, 12:32:43 AM
This is the only gif I have tried to upload (and it was successful too)
I opened the file you posted. but it isnot gif. Could you send me the gif ?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 17, 2019, 11:26:21 AM
Quote from: Bigguy on June 25, 2019, 01:50:41 PM
Been trying to re-install this mod after taking care of a different un-related error and when I press install I get this:
Too many keys specified; max 64 keys allowed
File: /home/******/public_html/Packages/temp/galleryinstall2.php
Line: 234

Never had this error before but it will not install again. Trying to install on 2.1 RC2

Missed this. It means too many indexes on one of the tables. I had a bug where it would keep adding the index on to a table. Will recheck.
Title: Re: SMF Gallery
Post by: Bigguy on August 17, 2019, 12:22:11 PM
Thank you sir. :)
Title: Re: SMF Gallery
Post by: vbgamer45 on August 17, 2019, 12:28:20 PM
6.0d
!Minor bug fix on index creation for SMF 2.0-SMF 2.1


I would suggest looking at indexes in phpmyadmin and delete the duplicates on the smf_gallery_pic table
Title: Re: SMF Gallery
Post by: Bigguy on August 17, 2019, 06:04:00 PM
I'll do this either tonight or tomorrow. Thanks alot for takin a look. :)
Title: Re: SMF Gallery
Post by: Bigguy on August 17, 2019, 06:13:05 PM
Never had to play around in phpmyadmin. Installed great. ;)
Title: Re: SMF Gallery
Post by: vbgamer45 on August 17, 2019, 06:58:47 PM
Yeah, was an odd issue between smf 1.1.x and 2.0.x+ when in the 2.0.x version we changed names to being lowercase.
Title: Re: SMF Gallery
Post by: Bigguy on August 17, 2019, 08:50:47 PM
Glad it's resolved. :) Love havin a gallery.
Title: Re: SMF Gallery
Post by: freekart on August 28, 2019, 04:09:14 AM
I am using black and white themes, I am using themes index.[b=http://freecalendarkart.com/]template[/b]
It is actually showing now, but not as a button! Does anyone have any idea?
Title: Re: SMF Gallery
Post by: vbgamer45 on August 28, 2019, 07:11:46 AM
What's your forum url?
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 05:26:54 AM
Is there anyway to fix this? The image goes off the page

(https://screens.community-modding.com/images/rchDcjgxhP.png)
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2019, 08:04:55 AM
There should be a max height and width settings in the lite version.
In the pro version there is max height and width display settings as well.
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 08:08:07 AM
Quote from: vbgamer45 on September 18, 2019, 08:04:55 AM
There should be a max height and width settings in the lite version.
In the pro version there is max height and width display settings as well.
I do not want to restrict the size allowed to be uploaded, I just want the image to be scaled when uploaded.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2019, 08:11:37 AM
I don't believe there is a setting in the lite version for this.  You can check on the settings section. But I believe it is just thumbnail size, max  filesize etc.
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 08:28:22 AM
Quote from: vbgamer45 on September 18, 2019, 08:11:37 AM
I don't believe there is a setting in the lite version for this.  You can check on the settings section. But I believe it is just thumbnail size, max  filesize etc.
Okay, Do you know of another mod that will resize images thorough the forum? Or is the Pro version the only way to go?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2019, 08:33:00 AM
In the forum itself? I would check the modsite for image resizer
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 08:43:18 AM
Quote from: vbgamer45 on September 18, 2019, 08:33:00 AM
In the forum itself? I would check the modsite for image resizer
Sorry, I meant for the Gallery.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2019, 10:10:32 AM
You could try doing manual code such as css to force the image size on the view picture page.
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 10:24:16 AM
Quote from: vbgamer45 on September 18, 2019, 10:10:32 AM
You could try doing manual code such as css to force the image size on the view picture page.
Sorry, Im not sure what you mean.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 18, 2019, 10:27:27 AM
Basically there is no built in way in the lite version and would have to be custom coded to be added to the lite version.
Title: Re: SMF Gallery
Post by: sc2142 on September 18, 2019, 10:29:24 AM
Quote from: vbgamer45 on September 18, 2019, 10:27:27 AM
Basically there is no built in way in the lite version and would have to be custom coded to be added to the lite version.
Ah, Okay, Ill have to find someone to code it for me, Thanks.
Title: Re: SMF Gallery
Post by: Diego Andrés on September 19, 2019, 09:51:12 AM
Using CSS would be the best way of doing it like vbgamer suggested.
Title: Re: SMF Gallery
Post by: sc2142 on September 19, 2019, 09:52:10 AM
Quote from: Diego Andrés on September 19, 2019, 09:51:12 AM
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.
Title: Re: SMF Gallery
Post by: Diego Andrés on September 19, 2019, 09:53:17 PM
Quote from: sc2142 on September 19, 2019, 09:52:10 AM
Quote from: Diego Andrés on September 19, 2019, 09:51:12 AM
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.

Could you provide a link to see this issue
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 06:45:08 AM
Quote from: Diego Andrés on September 19, 2019, 09:53:17 PM
Quote from: sc2142 on September 19, 2019, 09:52:10 AM
Quote from: Diego Andrés on September 19, 2019, 09:51:12 AM
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.

Could you provide a link to see this issue
This is my test site. https://fgcjhbdn.website/forums/gallery/picture/2/
Heres a virus total: https://www.virustotal.com/gui/url/ff1dc7063550d501dde641601924bb15c5e3f8ab24569fac67b5e120647188d2/detection
Title: Re: SMF Gallery
Post by: Diego Andrés on September 20, 2019, 10:56:38 AM
Try adding something like

td#sp_center img {
    width: Xpx
}


Replace X with your width
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 10:57:49 AM
Quote from: Diego Andrés on September 20, 2019, 10:56:38 AM
Try adding something like

td#sp_center img {
    width: Xpx
}


Replace X with your width
Sorry, Im not the brightest, where do i put it xD
Title: Re: SMF Gallery
Post by: Diego Andrés on September 20, 2019, 10:59:15 AM
At the end of the /css/index.css file in your theme folder
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 11:02:41 AM
It did work, However, It made every other image enlarge everywhere else on the forum also.
Title: Re: SMF Gallery
Post by: Diego Andrés on September 20, 2019, 11:17:41 AM
Yes I'm aware just was waiting for you to complain ;D
I'm not familiar with SMF Gallery so I have to install the mod to give you more specific instructions, I'll do that later.
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 11:18:34 AM
LOL
Title: Re: SMF Gallery
Post by: Diego Andrés on September 20, 2019, 11:21:26 AM
Code (Gallery2.template.php) Select

<img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />


Code (Replace) Select

<img class="gallery_pic" height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />




img.gallery_pic {
    width: Xpx
}


No testing either so no promises again  ;D
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 11:32:42 AM
Quote from: Diego Andrés on September 20, 2019, 11:21:26 AM
Code (Gallery2.template.php) Select

<img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />


Code (Replace) Select

<img class="gallery_pic" height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />




img.gallery_pic {
    width: Xpx
}


No testing either so no promises again  ;D

Thanks bud, It works, Anyway to keep it from upscaling now? LMAO
Title: Re: SMF Gallery
Post by: Diego Andrés on September 20, 2019, 12:11:03 PM
For lower resolutions?
Title: Re: SMF Gallery
Post by: sc2142 on September 20, 2019, 12:12:20 PM
Yes, I would like to keep resolutions that are lower than what is specified untouched.
Title: Re: SMF Gallery
Post by: Diego Andrés on September 21, 2019, 10:23:51 PM
Sorry I forgot about this was a bit busy

You'd have something like this
@media screen and (max-width: 767px) {
img.gallery_pic {
    width: Xpx
}
}


You can replace max with min (if you want) and the resolution, or add more  :D

Also works with a range
@media screen and (min-width: 240px) and (max-width: 640px)
Title: Re: SMF Gallery
Post by: sc2142 on September 22, 2019, 05:36:54 AM
It works, However, It ignores the larger images now. :-\
Title: Re: SMF Gallery
Post by: MultiformeIngegno on February 15, 2020, 02:08:03 PM
I have installed SMF Gallery and imported all pictures and categories from Aeva Media. Can I set up a redirect from the old Aeva URLs to SMF Gallery's?

For example I used to display Aeva's thumbnails /index.php?action=gallery;sa=media;in=22;thumb
Any luck to redirect all these to the new SMF Gallery URLs?
Title: Re: SMF Gallery
Post by: calorian on February 16, 2020, 06:25:27 PM
Just installed this.
I've two main questions. Is it possible to upload to the gallery straight from the new topic screen or have the gallery display and link to post attachments?

Secondly, if so, would it be possible to make an ezBlock for the last 5-10 etc picture attachments uploaded that link to the posts for the portal page?
(similar to this mod but not on every page https://custom.simplemachines.org/mods/index.php?mod=2523)
Title: Re: SMF Gallery
Post by: vbgamer45 on February 16, 2020, 07:52:23 PM
1. I have a addon in the pro edition that adds a link on topic display to upload/import from the gallery.

2. For ezPortal? And picture attachments such as in forum fposts?   ezPortal should have block options to display latest pictures from SMF Galllery Pro/Lite
Title: Re: SMF Gallery
Post by: jsx on April 01, 2020, 03:54:28 PM
This is cool modification and works well except that it doesn't display diacritical marks in photo names. This error only occurs in this forum. Forum uses UTF-8 encoding and the database also has UTF-8 encoding. In the database, rows: smf_gallery_cat, smf_gallery_comment, smf_gallery_pic, smf_gallery_report have a collation: latin1_swedish_ci - And here should be utf8_general_ci
Title: Re: SMF Gallery
Post by: vbgamer45 on April 01, 2020, 04:27:17 PM
Yes you will need to change those manually then it should work.
Title: Re: SMF Gallery
Post by: jsx on April 02, 2020, 03:16:40 AM
In these rows in phpmyadmin in the Operations tab, I changed manually to utf8_general_ci - but diacritical marks still did not display correctly.

smf_gallery_cat, smf_gallery_comment, smf_gallery_pic, smf_gallery_report

I had to change to utf8_general_ci in every position in the Structure tab and now everything is fine.

It is interesting why latin1_swedish_ci was created after installing the modification. Do you have any idea for this?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2020, 06:01:40 AM
Yes probably mod has to be updated for it on install check
Title: Re: SMF Gallery
Post by: jsx on April 02, 2020, 07:52:57 AM
A friend is going to buy the Pro version of this gallery someday, so it would be good if there was no problem after installing with character encoding. 8)
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2020, 08:48:31 AM
That is done on new installs with pro if you didn't have lite installed already.
Title: Re: SMF Gallery
Post by: jsx on April 02, 2020, 10:07:37 AM
Is added content in the Lite version be available in the Pro version? I mean available content after uninstalling the Lite version and installing the Pro version.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2020, 10:14:51 AM
yes it will be.
Title: Re: SMF Gallery
Post by: njtweb on April 03, 2020, 12:45:32 PM
Saw the new website today, looks great! Wondering, is the gallery mod responsive yet?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 03, 2020, 01:09:40 PM
It is not the SMF 2.0 version will not be.  SMF 2.1 possibly.
Title: Re: SMF Gallery
Post by: efk on April 06, 2020, 01:16:44 AM
I was wondering, is it possible to make mod to support external links to be shown into Gallery and not only attachments? Just asking because uploading takes resources, so if taken from somewhere else that can save resources.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 06, 2020, 01:21:02 AM
Like external pictures?  Issues with that is I still need to keep a copy of the image to create thumbnails etc. Always been wary of adding that since other linked sites could come and go.

External videos are supported in gallery pro. Via the video sharing url.
Title: Re: SMF Gallery
Post by: efk on April 06, 2020, 11:46:45 AM
Yeah external. Maybe there is no need to have thumbnails at all. If you add ability/additional option for users to create a new album based on external links which will be a list displayed with external pictures inside and where each will have its name, but on click it will show us what is behind that name, something similar for visual display like this mod does with attachments https://custom.simplemachines.org/mods/index.php?mod=3303

If its hard to do something like that, then I have even easier idea, album, inside album is a name of picture and on click is form like:
<p> NAME </p>
[spoiler] [img] https LINK [/img] [/spoiler]

or
[spoiler=NAME] [img] https link [/img] [/spoiler]

So this could be much easier to make to just let user of your mod to click on spoiler which automatically takes that form for new entry for name and link, link which is in spoiler and img tag.

For gallery lite you could set limit to 15 or 20 entries, for gallery pro you could remove limit, or maybe not limiting entries per album but adding something more, like comments, likes, stars and similar for gallery pro.

So my suggestion is more like adding something like static bbc page which is album where you can add and remove entries, like its done when we manually add some logs for something, if there is entry it is displayed, if not field is hidden.
At least this sounds easy to me to do with SimplePortal, but it will be complicated because each time it will must to be created inside SimplePortal and with more lines inside more complicated will be. Theoretically sounds easy for few pictures, but in reality hard to track and edit.
Title: Re: SMF Gallery
Post by: minormike on October 15, 2020, 09:57:38 AM
How can I set Gallery to not show galleries to guests until they log in?
Title: Re: SMF Gallery
Post by: vbgamer45 on October 15, 2020, 10:26:19 AM
Admin -> Permissions -> modify guests

Then disable View Gallery permission for guest member group
Title: Re: SMF Gallery
Post by: minormike on October 15, 2020, 12:09:18 PM
Thank you - it's infuriating when you get an answer and then slap yourself in the forehead and mutter 'of course' under your breath...
Title: Re: SMF Gallery
Post by: vbgamer45 on October 15, 2020, 12:21:26 PM
Glad to help.
Title: Re: SMF Gallery
Post by: PoML on October 28, 2020, 07:32:56 PM
Norwegian translation.

Don't know where to add this (or the hack I did to make eventregistration mod to install) - but you are free to copy the Norwegian translation files enclosed as attachment.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 28, 2020, 07:43:47 PM
Thanks will include it in the release.
I am hoping one day the mod site will allow translations to be easily submitted.
Title: Re: SMF Gallery
Post by: SMFHacks.com Team on October 28, 2020, 08:53:10 PM
Added Norwegian translation to the release.
Title: Re: SMF Gallery
Post by: justinbowser on October 30, 2020, 01:12:13 PM
Is there a way to convert a Coppermine Gallery into this?  I didn't want to read through 200+ threads!  ::)
Title: Re: SMF Gallery
Post by: vbgamer45 on October 30, 2020, 01:20:33 PM
I made a basic convertor for coppermine for the pro edition of the gallery though.
Title: Re: SMF Gallery
Post by: justinbowser on October 30, 2020, 09:36:06 PM
Tell me more about this.  I need to get our old gallery ported over into something we can use and this sounds perfect.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 30, 2020, 11:49:57 PM
I have done a handful of Coppermine conversions mainly many years ago.
The converter will import albums, pictures, and comments

It attempts to match the picture owner from coppermine with the SMF username/id

For demo of SMF Gallery Pro check out  https://www.smfhacks.com/demos/index.php?action=gallery if you need an admin demo let me know
Title: Re: SMF Gallery
Post by: justinbowser on October 31, 2020, 11:11:54 AM
OK, I have purchased and installed the Pro Gallery now I need help with converting/porting the old Coppermine data into the SMF Gallery.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 31, 2020, 12:28:30 PM
Quote from: justinbowser on October 31, 2020, 11:11:54 AM
OK, I have purchased and installed the Pro Gallery now I need help with converting/porting the old Coppermine data into the SMF Gallery.
I just replied to your post on smfhacks.com please continue the discussion there.
Title: Re: SMF Gallery
Post by: justinbowser on November 01, 2020, 06:34:56 PM
Roger that...
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on December 28, 2020, 10:35:15 PM
Working on this forum (https://www.24thscalemodeltruckforum.co.uk/forum/), he's using Gallery Pro 8.0.6.  Gallery was working, did a clean install, reinstalled mod, getting this error from main menu Gallery button -

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'c24thsca_modelforum2.p.view' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /home/c24thsca/public_html/forum/Sources/Gallery2.php
Line: 668


All submenu links work.  Also have Gallery Pro SSI 3.0 installed.

Version Information:
Forum version: SMF 2.0.17 (more detailed)
Current SMF version: SMF 2.0.17
GD version: bundled (2.1.0 compatible)
Database server: MySQL
MySQL version: 5.7.32-cll-lve
PHP: 5.6.40
Server version: Apache
Title: Re: SMF Gallery
Post by: vbgamer45 on December 28, 2020, 11:06:17 PM
In the smf_settings table set
smfhacks_sqlmode = 1

Or insert a field and set it to one
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on December 28, 2020, 11:26:26 PM
Will have to try it tomorrow, can't get to database.  Another crappy host. >:(
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on December 29, 2020, 04:19:23 PM
 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fhairpull1.gif&hash=d1684c7b73ef4c7cc773994cfce0795f18f1c1d9)  smfhacks_sqlmode doesn't exist in smf_settings, this query gives me a duplicate primary error -



INSERT INTO `smf_settings` (`variable`, `value`) VALUES ('smfhacks_sqlmode', '1')


Title: Re: SMF Gallery
Post by: vbgamer45 on December 29, 2020, 05:46:35 PM
TRY

REPLACE INTO `smf_settings` (`variable`, `value`) VALUES ('smfhacks_sqlmode', '1')
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on December 29, 2020, 06:00:23 PM
Yep, that fixed it.  Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on December 29, 2020, 06:22:51 PM
Glad to help
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 20, 2021, 09:19:48 PM
smf 2.0.17 new installtiny portal 1.6.8PHP 7.3

I have this code that gives us an image in the side tiny portal block, at least it used to. can someone please tell me what to change to give us the image again.

///////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.8          //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 9/26/2008
// 1.8
//        - added display # of comments option
//
// Used in a TinyPortal phpblock or Article.
// This block displays random/most/least/newest/oldest picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 2;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 1;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 0;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 1;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 0;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 0;
// display dimensions?
$gal_dispDimensions = 0;
// display filesize?
$gal_dispSize = 0;
// display picture description?
$gal_dispDescription = 0;
// display # comments
$gal_dispNumComments = 0;

//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
    $modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
    $gal_showtype = 0;

// sort text
if (empty($gal_sort)){
    $gal_sort_text = 'DESC';
} else {
    $gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
    $gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
    $gal_query = '
            SELECT
                thumbfilename,
                ID_PICTURE,
                ID_MEMBER,
                date,
                title,
                description,
                views,
                filesize,
                height,
                width,
                commenttotal,
                ID_CAT
            FROM '.$db_prefix.'gallery_pic
            WHERE approved = 1
            '.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
            '.(empty($gal_disallowCats) ? "" : "    AND ID_CAT NOT IN ($gal_disallowCats)").'
            '.(empty($gal_allowCats) ? "" : "    AND ID_CAT IN ($gal_allowCats)").'
            GROUP BY thumbfilename ';

    switch ($gal_showtype){
        // most/least recent
        case 1:
            $gal_query .= '
                    ORDER BY date '.$gal_sort_text;
            break;

        // most/least viewed
        case 2:
            $gal_query .= '
                    ORDER BY views '.$gal_sort_text;
            break;

        // most/least commented
        case 3:
            $gal_query .= '
                    ORDER BY commenttotal '.$gal_sort_text;
            break;

        default:
            $gal_query .= '
                    ORDER BY rand() '.$gal_sort_text;
            break;
    }
    $gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
    $gal_result = mysql_query($gal_query);
    if (!$gal_result){
        // error retrieving information from database
        if (mysql_errno() == 1146){
            echo '<p />Error, no database found!<p />';
        } else {
            echo '<p />MySQL error:'.mysql_error().'<p />';
        }
    } else {
        echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";
   
        $gal_colcnt = 1;
        echo "    <tr>\n";
        while ($row = mysql_fetch_assoc($gal_result)){
            if ($gal_colcnt > $gal_columns){
                // close out the row and start a new row
                echo "    </tr>\n    <tr>\n".'        <td colspan="'.$gal_columns.'"><hr /></td>'."\n    </tr>\n    <tr>\n";
                // reset count to column 1
                $gal_colcnt = 1;
            }
            echo    '        <td class="'.$gal_textclass.'" align="center">'."\n";
            // display title if enabled, make edit link if viewing user is picture poster
            if (!empty($gal_dispTitle)){
                echo "            ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
            }
            // display the picture thumbnail and link it to gallery full picture
            echo    '            <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
            // display poster's name and posted date if enabled
            if (!empty($gal_dispMember) || !empty($gal_dispDate)){
                echo 'Posted';
                if (!empty($gal_dispMember)){
                    // display the membername who posted pic?  need to get name based on ID_MEMBER
                    $gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
                    echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
                }
                if (!empty($gal_dispDate)){
                    // display the date it was posted
                    echo ' on '.date("d M Y", $row['date']);
                }
                echo "<br />\n";
            }
            // display category if enabled
            if (!empty($gal_dispCategory)){
                // get category name based on category id
                $gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
                echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
            }
            // display number of views if enabled
            if (!empty($gal_dispViews)){
                echo "Viewed ".$row['views']." times<br />\n";
            }
            // display dimensions if enabled
            if (!empty($gal_dispDimensions)){
                echo $row['width']."w X ".$row['height']."h<br />\n";
            }
            // display filesize if enabled
            if (!empty($gal_dispSize)){
                echo $row['filesize']." bytes<br />\n";
            }
            // display description if enabled
            if (!empty($gal_dispDescription)){
                echo "<br />".$row['description']."<br />\n";
            }
            // display # of comments if enabled
            if (!empty($gal_dispNumComments)){
                echo '<br /><i><a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'">'.$row['commenttotal']."</a> comment(s)</i><br />\n";
            }
            echo    "        </td>\n";
            $gal_colcnt++;
        }
        mysql_free_result($gal_result);
        echo "    </tr>\n</table>\n";
        if (!empty($gal_member) && empty($_GET['gal_viewall']))
            echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
        if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
            // build the link
            $gal_querystring = $context['TPortal']['querystring'];
            $gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
            echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
        }
    }
} else {
    echo 'Sorry, you do not have permission to view pictures!';
}
Title: Re: SMF Gallery
Post by: vbgamer45 on January 20, 2021, 09:50:31 PM
Did you check on TinyPortal if they have updated 2.0.x block? If not I will update and post there.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:24:41 AM
Quote from: vbgamer45 on January 20, 2021, 09:50:31 PM
Did you check on TinyPortal if they have updated 2.0.x block? If not I will update and post there.

sorry about that, I didn't think of them at all. will go peek and ask.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:33:43 AM
Just took a look and after going to two other threads I see that the code I have worked in the block until this update no longer works.
Title: Re: SMF Gallery
Post by: lurkalot on January 21, 2021, 03:37:08 AM
Pretty sure this one works,  https://www.tinyportal.net/index.php?topic=32358.msg273522#msg273522
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:39:14 AM
I took a quick look and it is the same code I posted isn't it?
Title: Re: SMF Gallery
Post by: lurkalot on January 21, 2021, 03:40:09 AM
Quote from: DarkAngel612 on January 21, 2021, 03:39:14 AM
I took a quick look and it is the same code I posted isn't it?

No, don't think so.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:43:54 AM
You are correct, I missed a whole section...fried I am, sorry
added it to php block but can I get it to show the images in column not row
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:47:36 AM
I figured it out, I was hoping I did not butcher it and I didn't, thanks sweety.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 21, 2021, 09:57:31 AM
Glad you have it working!
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 21, 2021, 03:17:22 PM
Me tooooooo! Now if only I knew if there is a special way to import a gallery db into a forum db without screwing things up. my CPG  is updated and all and up until now it h as been in a separate db but now it won't let me access users from the bridged forum, everything else seems to be fine though.
This 2.0 portal is taking some getting used to  using but it do work great. love SMF/TP/CPG
Title: Re: SMF Gallery
Post by: vbgamer45 on January 21, 2021, 03:45:58 PM
I can convert a coppermine gallery to SMF Gallery if needed.
Title: Re: SMF Gallery
Post by: lurkalot on January 21, 2021, 03:53:18 PM
Quote from: DarkAngel612 on January 21, 2021, 03:17:22 PM
Me tooooooo! Now if only I knew if there is a special way to import a gallery db into a forum db without screwing things up. my CPG  is updated and all and up until now it h as been in a separate db but now it won't let me access users from the bridged forum, everything else seems to be fine though.
This 2.0 portal is taking some getting used to  using but it do work great. love SMF/TP/CPG

Export the Coppermine database in phpMyAdmin, and then import it into your SMF database.

Obviously make a keep a backup of your databases first just in case it goes T/U. 
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 22, 2021, 03:33:57 AM
Quote from: lurkalot on January 21, 2021, 03:53:18 PM
Quote from: DarkAngel612 on January 21, 2021, 03:17:22 PM
Me tooooooo! Now if only I knew if there is a special way to import a gallery db into a forum db without screwing things up. my CPG  is updated and all and up until now it h as been in a separate db but now it won't let me access users from the bridged forum, everything else seems to be fine though.
This 2.0 portal is taking some getting used to  using but it do work great. love SMF/TP/CPG

Export the Coppermine database in phpMyAdmin, and then import it into your SMF database.

Obviously make a keep a backup of your databases first just in case it goes T/U.
I was wondering if that was what I could do and not kill the forum and/or the gallery...LOL I did not even know if I was supposed to install it first into the forum db then empty the tables then import.
I will try it when there are not many online so they  won't be surprised...I should put it into maintenance mode too.
thanks and will let you know what happens.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 22, 2021, 03:37:33 AM
Quote from: vbgamer45 on January 21, 2021, 03:45:58 PM
I can convert a coppermine gallery to SMF Gallery if needed.
convert it? It is in a db of its own and the only thing is that it has cpg14x and 15x tables in it. That was long ago when I thought it meant everytime I upgraded it had to have a new set of tables. it seems to be same images in both table sets so could I back it up, remove the cpg14x tables and just keep the 15x for importing into the foruum db?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2021, 05:06:39 AM
It would pickup based on the coppermine settings the tables to use. But it would empty theexisting smf gallery of pictures/categories.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 22, 2021, 08:15:22 PM
Quote from: vbgamer45 on January 22, 2021, 05:06:39 AM
It would pickup based on the coppermine settings the tables to use. But it would empty theexisting smf gallery of pictures/categories.

I meant and remember have brain fried:
export the dbdelete everything leaving only the cpg15 tablessave as cpg15xtables (something like that)import into the forum db.
is that the right way?
Title: Re: SMF Gallery
Post by: vbgamer45 on January 22, 2021, 08:20:02 PM
I would backup everything but you don't have to delete anything.
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 27, 2021, 03:05:11 AM
ok please tell me what I might have done wrong.

put both attic and gallery into maint mode
backed up both db's
imported gallery db into attic db

then I edited the config file to the gallery with the db to use (the one for the forum) and I lost the gallery and got this error message  -- could not connect to database mysqli said ::

I thought then maybe the db's themselves needed to be edited to show the same db name

Well I ended up putting back the old db name everywhere and the gallery is operational again but now still get the error message when  hitting the user button in admin nav.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 27, 2021, 10:32:51 AM
Is that for coppermine? I am not too familiar with coppermine.  Were you trying to merge databases together?
Title: Re: SMF Gallery
Post by: DarkAngel612 on January 27, 2021, 05:55:02 PM
Yes I was told by them to just add the Coppermine tables (import) DB into my forum DB so the error would go away...this is with the latest 1.06 version of the gallery.

They said that it is required to have it in the forums DB for the bridge to work, but no response since then and I did ask how to do it for sure and what to do with the old DB, if it was safe to delete it.
I just want to get it right without killing the forum (someone had to come in and fix it  from the move of 5.6 PHP to 7+, it rioted LOL

Title: Re: SMF Gallery
Post by: landyvlad on April 13, 2021, 02:36:32 AM
As an admin, how do I add pictures to one of the members "mygallery" galleries please?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 13, 2021, 10:23:35 AM
If use gallery pro just switch to their gallery and then add a picture. You can also change the picture owner to that userr
Title: Re: SMF Gallery
Post by: landyvlad on April 13, 2021, 09:28:18 PM
Yep, Pro version - just wondering how I actually go about switching to their gallery?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 13, 2021, 09:31:50 PM
Go to the user gallery list then find their gallery from the list.
Title: Re: SMF Gallery If i install???????????
Post by: fishoaus on April 21, 2021, 09:26:55 AM
Hi if i install can i transfer my avea media gallery in to this as avea media is no more up date able???????, or would i have to save all images then re up load to this gallery mod
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2021, 10:15:54 AM
Yes it has a built in importer.
Title: Re: SMF Gallery
Post by: Mike66 on April 21, 2021, 04:46:25 PM
Hi folks

My SMF Gallery Pro has the JPEG Compression Percent set at 65. What is the best setting for displaying high quality photos without causing the loading time to be too slow, or be too much of a strain on resources?

Most images are currently about 80-150kB

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on April 21, 2021, 05:03:59 PM
You can increase it to 75 to 90.

PNG files are better though for quality. JPG there is always going to be some quality loss with resizing.
Title: Re: SMF Gallery
Post by: Mike66 on April 21, 2021, 05:10:29 PM
Thanks for the quick reply, I'll try 80 and see how it goes  8)

Best wishes
Mike
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2021, 04:20:17 AM
Couple of things that I'd like to be able to do if at all possible ( might need some CSS etc )

I'd like to be able to have different settings for each category, so I can have different thumbnail sizes in each category and number of rows.
I normally have thumbnails set at 300 and in rows of 4, but in one particular category I'd like it to be 1000 and in a single row.

I am basically trying to achieve that one of the categories looks as if you are viewing the thumbnails as full size images in a layout that you simply scroll down.

It would also be really great, if in that particular category, we could also display the description below the 'full size' thumbnail.

Best wishes
Mike
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2021, 07:17:27 AM
Forget the bit about displaying the description below the thumbnail, that wouldn't be necessary  ;)
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2021, 12:22:35 PM
Sorry, I maybe shouldn't have asked this here, as it's possibly more like a feature request.

I was just hoping that somebody might know a way to have different sized thumbnails in different categories.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 22, 2021, 01:57:33 PM
Not easy to do. Would have to hard code something on addpicture2  in sources folder to set limits for a certain category
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2021, 02:21:36 PM
Quote from: vbgamer45 on April 22, 2021, 01:57:33 PM
Not easy to do. Would have to hard code something on addpicture2  in sources folder to set limits for a certain category

Thanks, that's a good start for me to have a look at.
Title: Re: SMF Gallery
Post by: landyvlad on May 06, 2021, 08:15:25 PM
I have the pro version - is there a way to rotate image orientation for images already uploaded to the gallery?

If not may I suggest this is something worth implementing please.

I am trying to encourage our users to upload to the gallery rather than as image attachments.

One of our users stated the following.
QuoteI have uploaded pics to my gallery and they are going in on their side.
I have tried rotated 90, 120 etc when uploading, but they are going in every way but what I want.

Naturally I told them that
QuoteThe orientation of images uploaded to the gallery is controlled by the EXIF data of the image.
Depending which orientation the camera or phone was in when the photo was taken, the image will not always match the orientation of the subject of the photo.

There are, of course, complex ways around this in editing/stripping EXIF data from images in a program prior to uploading but that's not feasible for most people to understand or be bothered with. Obviously need to make it as easy for people as possible.

Title: Re: SMF Gallery
Post by: vbgamer45 on May 06, 2021, 11:16:59 PM
Yes, it attempts to auto rotate based on EXIF in some cases.

But, you can also edit the picture and enter the number of degrees to rotate the image by.
Title: Re: SMF Gallery
Post by: Mike66 on May 07, 2021, 06:26:57 PM
I find that members sometimes get confused because they don't refresh after rotating an image, so to them, it looks like it hasn't worked  ;)
Title: Re: SMF Gallery
Post by: vbgamer45 on May 07, 2021, 10:12:09 PM
Ah good point. Caching could cause an issue.
Title: Re: SMF Gallery
Post by: robgratt on June 06, 2021, 06:36:01 AM
Hi,

Did a quick search of this topic and found a post re AWS S3.  It lookef like vbgamer45 was going to take a look at seeing how complicated it would be to implement.

Are there any plans to integrate anything like this in the future?

Will probably still purchase this mod and if the AWS stuff happened it would br perfect!

I have the Lite version installed.  Do I need to uninstall before installing the Pro version?

Thanks in advance,

Rob
Title: Re: SMF Gallery
Post by: vbgamer45 on June 06, 2021, 06:56:12 AM
Never got around to the AWS S3 support. Plans right now no, mainly since became less of an issue since most hosts offer a lot of space nowadays.

Yes you would need to uninstall lite to have pro installed.  All data from lite is kept.


Demo of pro https://www.smfhacks.com/demos/index.php?action=gallery if you need an admin demo let me know.
Title: Re: SMF Gallery
Post by: Mike66 on June 09, 2021, 09:28:07 AM
Quote from: vbgamer45 on April 22, 2021, 01:57:33 PM
Not easy to do. Would have to hard code something on addpicture2  in sources folder to set limits for a certain category

Would it be easier, or even feasible, to install a second Gallery Pro? And call it something other than 'Gallery'?

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on June 09, 2021, 09:41:12 AM
Not on the same forum I think doing some code on addpicture function would be easist.

You can just do an if statement  basic workflow would be
if category equals this number then
Set the thumbnail width and height to this.

Title: Re: SMF Gallery
Post by: Mike66 on June 09, 2021, 09:59:26 AM
OK, thanks vbgamer45, I'll see if I can work out how to do that.
Title: Re: SMF Gallery
Post by: Mike66 on June 09, 2021, 10:19:04 AM
I can't find addpicture2 via FTP, where should I be looking?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 09, 2021, 10:26:04 AM
In should be in the Sources/Gallery2.php file

That is a function inside that file.
Title: Re: SMF Gallery
Post by: Mike66 on June 09, 2021, 06:02:02 PM
Quote from: vbgamer45 on June 09, 2021, 10:26:04 AM
In should be in the Sources/Gallery2.php file

That is a function inside that file.

Found it thanks. I've tried three or four things, but not managed to get them to work.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 09, 2021, 06:09:47 PM
What code did you add?
Title: Re: SMF Gallery
Post by: robgratt on June 09, 2021, 07:08:50 PM
Hi,
Came across this and thought it might give you some ideas:

https://code.tutsplus.com/tutorials/how-to-use-amazon-s3-php-to-dynamically-store-and-manage-files-with-ease--net-31

Rob
Title: Re: SMF Gallery
Post by: vbgamer45 on June 09, 2021, 07:13:33 PM
Nice, find code might old though from 2007 it looks like. so may not work or needs updating.
Title: Re: SMF Gallery
Post by: Mike66 on June 09, 2021, 07:30:07 PM
Quote from: vbgamer45 on June 09, 2021, 06:09:47 PM
What code did you add?

I was 'winging it' and trying things as I went ( keeping back ups of the original ) and haven't kept copies of what I've tried so far. Trying to achieve thumbnail of 1000px wide and one photo per row.

Have you any suggestions for me to try?
Title: Re: SMF Gallery
Post by: Mike66 on June 10, 2021, 05:15:00 AM
I've got to grips with html and css over the years, but php is still a bit of a mystery to me, so any help that you can offer would be very much appreciated.

I'm not scared of 'having a go' in php, but my lack of understanding means that I usually mess things up rather than fix anything!

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on June 13, 2021, 09:35:11 AM
Would the following be easier to add?
if cat=15 or cat=17 then thumbnail=full size image and display=one thumbnail per row.

If so, how should I write this and where should I insert it?

Any help very much appreciated.

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on June 13, 2021, 02:32:17 PM
For gallery Pro
Sources/Gallery2.php find

   $dbresult = $smcFunc['db_query']('', "
SELECT
p.id_picture, p.totalratings, p.rating, p.commenttotal, p.filesize, p.views,
p.thumbfilename, p.title, p.id_member, m.real_name, p.date, p.description,
p.mature, v.id_picture as unread, (p.rating / p.totalratings ) AS ratingaverage,
mg.online_color, p.totallikes
FROM {db_prefix}gallery_pic as p
LEFT JOIN {db_prefix}members AS m ON (p.id_member = m.id_member)
LEFT JOIN {db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))
LEFT JOIN {db_prefix}gallery_log_mark_view AS v ON (p.id_picture = v.id_picture AND v.id_member = " . $context['user']['id'] . " AND v.user_id_cat = p.USER_ID_CAT)
WHERE ( p.id_cat = $cat OR FIND_IN_SET(" . $cat   . ", p.additionalcats)) AND p.approved = 1 GROUP BY p.id_picture  ORDER BY $sortby $orderby
LIMIT $context[start]," . $modSettings['gallery_set_images_per_page']);

        $context['gallery_image_listing_data'] = array();
    while($row = $smcFunc['db_fetch_assoc']($dbresult))
    {
       $context['gallery_image_listing_data'][] = $row;

        }
        $smcFunc['db_free_result']($dbresult);

    $context['page_index'] = constructPageIndex($scripturl . '?action=gallery;cat=' . $cat . ';sortby=' . $sortby2 . ';orderby=' .$orderby2, $_REQUEST['start'], GetTotalByCATID($cat,$context['gallery_cat_total']), $modSettings['gallery_set_images_per_page']);


// Image Listing
$context['sub_template']  = 'image_listing';


Change to

         if ( $cat == 15  || $cat == 17)
           {
                $modSettings['gallery_set_images_per_page'] = 1;
            }

   $dbresult = $smcFunc['db_query']('', "
SELECT
p.id_picture, p.totalratings, p.rating, p.commenttotal, p.filesize, p.views,
p.thumbfilename, p.filename, p.title, p.id_member, m.real_name, p.date, p.description,
p.mature, v.id_picture as unread, (p.rating / p.totalratings ) AS ratingaverage,
mg.online_color, p.totallikes
FROM {db_prefix}gallery_pic as p
LEFT JOIN {db_prefix}members AS m ON (p.id_member = m.id_member)
LEFT JOIN {db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))
LEFT JOIN {db_prefix}gallery_log_mark_view AS v ON (p.id_picture = v.id_picture AND v.id_member = " . $context['user']['id'] . " AND v.user_id_cat = p.USER_ID_CAT)
WHERE ( p.id_cat = $cat OR FIND_IN_SET(" . $cat   . ", p.additionalcats)) AND p.approved = 1 GROUP BY p.id_picture  ORDER BY $sortby $orderby
LIMIT $context[start]," . $modSettings['gallery_set_images_per_page']);

        $context['gallery_image_listing_data'] = array();
    while($row = $smcFunc['db_fetch_assoc']($dbresult))
    {
       if ( $cat == 15 || $cat == 17)
           {
            $row['thumbfilename'] = $row['filename'];
           }
           
           
       $context['gallery_image_listing_data'][] = $row;

        }
        $smcFunc['db_free_result']($dbresult);

    $context['page_index'] = constructPageIndex($scripturl . '?action=gallery;cat=' . $cat . ';sortby=' . $sortby2 . ';orderby=' .$orderby2, $_REQUEST['start'], GetTotalByCATID($cat,$context['gallery_cat_total']), $modSettings['gallery_set_images_per_page']);


// Image Listing
$context['sub_template']  = 'image_listing';

Title: Re: SMF Gallery
Post by: Mike66 on June 13, 2021, 05:01:03 PM
Thanks very much for your help vbgamer45  8)

That almost works, the thumbnails are now the correct size in those two categories, but the one image per row is being treated like a page instead of a row.
So I'm only getting one image and have to click on 'page2' to see the next one.

Any adjustments I can make to fix this?

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on June 14, 2021, 10:12:30 AM
One tweak then
Change
$modSettings['gallery_set_images_per_page'] = 1;
In both spots to
$modSettings['gallery_set_images_per_row'] = 1;
Title: Re: SMF Gallery
Post by: Mike66 on June 14, 2021, 10:46:34 AM
Awesome .... thanks vbgamer45, you're a star!  8)

I only found one instance, but replacing that worked and it is now looking great  :)

The only other change that I'd like to make at some stage is to have both the 'Title' and the 'By' on top of the thumbnail, rather than the 'By' sitting below it.

Thank you so much for your patience and help!

Mike
Title: Re: SMF Gallery
Post by: Mike66 on June 15, 2021, 02:25:57 PM
I've had a good look and I can't find/see what sets the order in Gallery Pro  :-[

I only have 'Title' and 'By member' set to display with thumbnails.
The current display order is:
(1) Title
(2) Thumbnail
(3) By member

I would like to change the order to:
(1) Title
(2) By member
(3) Thumbnail

Cheers
Mike

Title: Re: SMF Gallery
Post by: vbgamer45 on June 15, 2021, 02:34:24 PM
There is no setting that controls the order of the items. Would require template edit in order to change the order.   check under template_image_listing function I believe.
Title: Re: SMF Gallery
Post by: Mike66 on June 16, 2021, 11:10:22 AM
Quote from: vbgamer45 on June 15, 2021, 02:34:24 PM
There is no setting that controls the order of the items. Would require template edit in order to change the order.   check under template_image_listing function I believe.

Thanks again for your help!
Can't see anything obvious there that controls it, but not a major problem, I'll revisit the templates every now and then and see if I can work something out.

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on July 27, 2021, 07:07:46 AM
Just a little niggle ......

When we tick 'Create a Default User Gallery Category' in Admin, the user gallery sets the category as 'Default my galllery category', with gallery spelt wrong.

Can I correct the spelling somewhere? I can't find it.

Best wishes
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on July 27, 2021, 09:04:02 AM
Hmm that must have been from an old version of the gallery.
That text is found in themes/default/langauges/gallery.english.php  and gallery.english-ut8.php
Title: Re: SMF Gallery
Post by: Mike66 on July 27, 2021, 11:17:18 AM
Thanks for the quick reply  :)

Package manager says I'm on Gallery Pro 7.0.8

I have changed the spelling in both those places, but it doesn't seem to update users galleries. Not to worry, it's not a major issue, just a niggle.

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on July 27, 2021, 11:30:39 AM
Yeah it was fixed in a later version. For existing ones would require an SQL query to find and replace. That change just fixes new ones going forward.
Title: Re: SMF Gallery
Post by: Mike66 on July 27, 2021, 08:00:40 PM
Quote from: vbgamer45 on July 27, 2021, 11:30:39 AM
Yeah it was fixed in a later version. For existing ones would require an SQL query to find and replace. That change just fixes new ones going forward.

That's OK, thanks once again for your help.

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on August 26, 2021, 05:33:54 AM
I've got the 'title' displaying above thumbnails and 'by' displaying below thumbnails, does anybody know how/where I can change this so that they both display above thumbnails?

So I'm looking for the order to be set as:
Title
By
Thumbnail

PS: These are the only two items that I have ticked to display.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 26, 2021, 09:57:27 AM
For gallery pro it is in sources/subs-gallery2.php
Find the function ShowImageItem
Title: Re: SMF Gallery
Post by: Mike66 on August 26, 2021, 02:05:58 PM
Quote from: vbgamer45 on August 26, 2021, 09:57:27 AMFor gallery pro it is in sources/subs-gallery2.php
Find the function ShowImageItem

Found it thanks, and I think I've now managed to set it up as I wanted.

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on August 26, 2021, 02:57:25 PM
Glad you were able to get modified to suit your needs!
Title: Re: SMF Gallery
Post by: vbgamer45 on September 05, 2021, 08:10:42 AM
Update!
7.0
+Top add picture button now detects if inside a category and will have that category preselected when adding a picture
!Fix undefined show_bbc in SMF 2.1
!Fixed who is viewing picture to handle ;pic too instead of just ;id=
!Raised memory limits when adding/editing pictures.
!Minor typo changes
Title: Re: SMF Gallery
Post by: Shambles on September 05, 2021, 08:29:42 AM
Hi, and thanks for the update. Can I update from v5.5.1 (on 2.0.18) by simply overwriting with the new scripts?
Title: Re: SMF Gallery
Post by: Fisch.666 on September 05, 2021, 09:01:43 AM
Thanks for the update to version 7.0. Noticed that the files like "smfgallery.xml", "smfgallery2.xml" and "smfgallerybeta21.xml" still contains the following 6.1 related string:

$txt['smfgallery_version'] = '6.1 Lite';
Title: Re: SMF Gallery
Post by: vbgamer45 on September 05, 2021, 09:05:26 AM
Quote from: Shambles on September 05, 2021, 08:29:42 AMHi, and thanks for the update. Can I update from v5.5.1 (on 2.0.18) by simply overwriting with the new scripts?
Yes you can.
Quote from: Fisch.666 on September 05, 2021, 09:01:43 AMThanks for the update to version 7.0. Noticed that the files like "smfgallery.xml", "smfgallery2.xml" and "smfgallerybeta21.xml" still contains the following 6.1 related string:

Noted. I don't think that string is actually used anywhere though!
$txt['smfgallery_version'] = '6.1 Lite';
Title: Re: SMF Gallery
Post by: Fisch.666 on September 05, 2021, 09:16:47 AM
Looks like there is also another minor problem in the smfgallery2.xml editions on $sourcedir/Admin.php:

        'layout' => array(
            'title' => $txt['layout_controls'],       

This adds two tabs after the "$txt['layout_controls']," which are normally not there and (at least for me) are causing a problem with the "Simple Audio Video Embedder" modification doing an own edit in this part:

Basically the "Simple Audio Video Embedder" mod is also adding a few tabs which are also not there and if one mod is uninstalled but the other is kept there are often uninstall failures.
Title: Re: SMF Gallery
Post by: Shambles on September 05, 2021, 10:04:16 AM
All looks fine here, thanks.

I did notice that occasionally a spider reports

(https://i.imgur.com/uD4fje9.jpg)


So, as before in Gallery2.php, I made the following change:

Code (find) Select
// Checked if they are allowed to view an unapproved picture.
if ($row['approved'] == 0 && $id_member != $row['id_member'])

Code (replace) Select
// Checked if they are allowed to view an unapproved picture.
if ((isset($row['approved']) && $row['approved'] == 0) && $id_member != $row['id_member'])
Title: Re: SMF Gallery
Post by: vbgamer45 on September 05, 2021, 10:24:34 AM
7.0a released
SMF 2.0.x moved to hooks for edits to fix Fisch.666 issue. Requires uninstall of old version then install new.
Fixed array offset issue in 7.4 Thanks Shambles for the report.
Title: Re: SMF Gallery
Post by: Fisch.666 on September 05, 2021, 11:34:03 AM
Thank you for this quick update. A short test showed that the uninstall of SMF Gallery and Simple Audio Video Embedder now works independent from each other and doesn't show any additional uninstall problems if one is kept  ;D 

Similar to the Simple Audio Video Embedder .xml install files there are still a few trailing / unnecessary tabs and/or spaces included in the .xml install files for SMF Gallery that doesn't look so important.
Title: Re: SMF Gallery
Post by: njtweb on September 05, 2021, 05:27:55 PM
Hello, I installed today and my photos are squeezed. Is there any way to set default settings so the image fits correctly on my site?

youthhockeyinfo.com/index.php?action=gallery;sa=view;pic=10
Photo sizes
Height: 1365 Width: 2048
Title: Re: SMF Gallery
Post by: vbgamer45 on September 05, 2021, 06:16:27 PM
Not in the light version of the mod. In the pro version I have a medium sized optin and resizing based on aspect ratio
Title: Re: SMF Gallery
Post by: njtweb on September 05, 2021, 08:19:21 PM
Quote from: vbgamer45 on September 05, 2021, 06:16:27 PMNot in the light version of the mod. In the pro version I have a medium sized optin and resizing based on aspect ratio
Ok, I will buy it tomorrow.
Title: Re: SMF Gallery
Post by: njtweb on September 06, 2021, 09:01:47 AM
Installed, now the medium photo looks fine but when clicked it's all wacky
Title: Re: SMF Gallery
Post by: vbgamer45 on September 06, 2021, 09:04:34 AM
Under gallery settings disable the highslide option or switch to another lightbox option in the dropdown menu
Title: Re: SMF Gallery
Post by: njtweb on September 06, 2021, 09:29:12 AM
Thank you, changed to lightbox and it works now. I put the copyright key into the copyright box and it's still there after saving.
Title: Re: SMF Gallery
Post by: vbgamer45 on September 06, 2021, 09:38:42 AM
What's your forum url?
Title: Re: SMF Gallery
Post by: njtweb on September 06, 2021, 09:52:21 AM
I sent to you in PM
Title: Re: SMF Gallery
Post by: vbgamer45 on September 06, 2021, 10:03:21 AM
Replied
Title: Re: SMF Gallery
Post by: landyvlad on September 12, 2021, 08:24:30 AM
Just installed newest version of SMF Gallery Pro !

I highly recommend it to others.  :)
Title: Re: SMF Gallery
Post by: mickjav on September 12, 2021, 08:47:54 AM
Quote from: landyvlad on September 12, 2021, 08:24:30 AMJust installed newest version of SMF Gallery Pro !

I highly recommend it to others.  :)

Ditto
Title: Re: SMF Gallery
Post by: Mike66 on September 12, 2021, 09:06:20 AM
Ditto  :)
Great support if required too!
Title: Re: SMF Gallery
Post by: vbgamer45 on September 12, 2021, 09:15:00 AM
Thanks all for the comments!
Title: Re: SMF Gallery
Post by: Dreadaxe on September 13, 2021, 03:00:08 PM
About compression/optimize ?
https://jpeg.rocks/
https://tinypng.com/third-party ?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 13, 2021, 03:23:12 PM
The gallery does not use either of those
Title: Re: SMF Gallery
Post by: njtweb on September 19, 2021, 05:45:19 PM
Wondering if there's any way to change from the next / back links to < > on either side of the clicked on photo so that the page doesn't have to refresh on every next or back click or tap?
Title: Re: SMF Gallery
Post by: vbgamer45 on September 19, 2021, 05:48:52 PM
Not easily, requires the whole page to load currently so it displays all the media's information,comments etc.
Title: Re: SMF Gallery
Post by: landyvlad on September 30, 2021, 11:26:23 PM
Quick Q re Gallery (Pro v 8.0).  Is it 2.1RC4 compatible? because when I go to install it, package manager suggests I emulate SMF 2.1 beta2 !  If I do that it SAYS it installs correctly but not only does it not work it produces a MASS of errors.
Title: Re: SMF Gallery
Post by: vbgamer45 on October 01, 2021, 12:00:04 AM
v8.0 no. We are currently on v9 if license expired you can renew for $25 to get latest update
Title: Re: SMF Gallery
Post by: landyvlad on October 01, 2021, 12:05:11 AM
Ah Ok ta I did renew obviously just have to download new one. Cheers
Title: Re: SMF Gallery
Post by: vbgamer45 on October 01, 2021, 12:38:04 AM
Always update for latest bug fixes and new features.
Title: Re: SMF Gallery
Post by: landyvlad on November 02, 2021, 10:43:46 PM
As a gallery pro user - I just want to confirm (for another site) what the feature set of the litre version is...
Title: Re: SMF Gallery
Post by: vbgamer45 on November 02, 2021, 10:46:53 PM
You can check the mod description. It is just the basics  categories, comments, adding pictures etc
No user galleries is the big thing.
Title: Re: SMF Gallery
Post by: landyvlad on November 03, 2021, 03:36:26 AM
Quote from: vbgamer45 on November 02, 2021, 10:46:53 PMYou can check the mod description. It is just the basics  categories, comments, adding pictures etc

Yep checked there, but was trying to figure out what it  didn't have and the following answers that well:

Quote from: vbgamer45 on November 02, 2021, 10:46:53 PMNo user galleries is the big thing.

as that was really what I needed to know!

So thanks :) 

Title: Re: SMF Gallery
Post by: Mike66 on November 15, 2021, 10:57:23 AM
Not responsive in 2.1, any solutions?
Title: Re: SMF Gallery
Post by: vbgamer45 on November 15, 2021, 11:04:55 AM
It's partially. But still uses tables in a lot of areas but the tables do have a max width so should adjust based on window size.
Title: Re: SMF Gallery
Post by: Mike66 on November 15, 2021, 11:10:05 AM
It's just the full size image that I'm having problems with.

I can get the full size image to be responsive in a post, but not in gallery view.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 15, 2021, 12:11:16 PM
What have you tried?
Title: Re: SMF Gallery
Post by: Mike66 on November 15, 2021, 03:57:26 PM
Quote from: vbgamer45 on November 15, 2021, 12:11:16 PMWhat have you tried?

The usual suspects:
img{
     max-width: 100%;
     height: auto;
}
Title: Re: SMF Gallery
Post by: vbgamer45 on November 17, 2021, 01:36:39 PM
Can you share link.
Do you enable medium image size display?  Or popups with highslide?
Title: Re: SMF Gallery
Post by: Mike66 on November 17, 2021, 01:56:14 PM
Quote from: vbgamer45 on November 17, 2021, 01:36:39 PMCan you share link.
Do you enable medium image size display?  Or popups with highslide?

Link shared via PM.

Settings currently set at 'Nothing/No Fullsize Image'
Title: Re: SMF Gallery
Post by: vbgamer45 on November 17, 2021, 02:05:29 PM
Thanks
Title: Re: SMF Gallery
Post by: Mike66 on November 17, 2021, 02:16:58 PM
Let me know if you'd like me to change it to the default theme?

The same things happen in default.
Title: Re: SMF Gallery
Post by: Mike66 on November 17, 2021, 02:25:52 PM
Think I've found the problem, it is the image linking code box not shrinking!
Title: Re: SMF Gallery
Post by: vbgamer45 on November 17, 2021, 02:30:40 PM
Quote from: Mike66 on November 17, 2021, 02:25:52 PMThink I've found the problem, it is the image linking code box not shrinking!
Good catch might be.
Title: Re: SMF Gallery
Post by: Mike66 on November 17, 2021, 02:35:57 PM
Quote from: Mike66 on November 17, 2021, 02:25:52 PMThink I've found the problem, it is the image linking code box not shrinking!

I'm sure I'll manage to fix that in CSS, come to think of it, I think I remember doing that for my gallery in 2.0.

Just need to find a way of getting some space in under the (Gallery Name/Total Images/Reorder/Options) menu bar now.

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on November 17, 2021, 04:33:24 PM
Fixed  8)
...................... I really don't get on with tables!  ;D
Title: Re: SMF Gallery
Post by: Mike66 on December 10, 2021, 09:25:40 AM
Here's another tricky one  ;D

When members use Post Image Upload, the photo in the post becomes a clickable link to the gallery photo, is there a way to disable that? So that the photo in the post is not a clickable link.

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on December 12, 2021, 02:40:42 PM
Failing that, I'll edit posts to simplified img tags for the time being, until I can find a solution.

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on December 12, 2021, 08:29:11 PM
For that addon you need to modify
Sources/Gallery2.php
in function Gallery_PostUpload2

function redirect_code()
{
document.location.href = \'' . $forumurl. '&smfgallery_id=0&smfgallery_text=%0A%5Burl%3D' . $pageurl . '%5D%5Bimg%5D' . $picurl . '%5B%2Fimg%5D%5B%2Furl%5D%0A\';
}
Title: Re: SMF Gallery
Post by: Mike66 on December 13, 2021, 04:49:49 AM
Thanks vbgamer45!

Should I simply remove that piece of code, or can you help me out with what to select/replace please?

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on December 13, 2021, 06:59:18 AM
Change to
function redirect_code()
{
document.location.href = \'' . $forumurl. '&smfgallery_id=0&smfgallery_text=%0A%5Bimg%5D' . $picurl . '%5B%2Fimg%5D0A\';
}
Title: Re: SMF Gallery
Post by: Mike66 on December 13, 2021, 07:13:39 AM
Thanks  8)

That almost works, but I'm getting "OA" after the image?

Result of an upload results in:

[img]https://www.mysite.co.uk/forum/gallery/2-131221121025.jpeg[/img]0A
Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on December 13, 2021, 07:20:37 AM
I have removed the "0A" from the code, so it now ends in "%5D\';"

This seems to work  :)  but I don't know what the implications of that are?

Thanks again for your help - awesome!
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on December 13, 2021, 08:44:19 AM
%OA I think is a new line.
Title: Re: SMF Gallery
Post by: Mike66 on December 13, 2021, 08:55:09 AM
Quote from: vbgamer45 on December 13, 2021, 08:44:19 AM%OA I think is a new line.

That's what I guessed it was.

Doesn't seem to have broken anything anyway  :) 

Thanks once again for your help, we have achieved exactly what I was looking for!
Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on December 13, 2021, 04:59:26 PM
Glad that helped!
Title: Re: SMF Gallery
Post by: kdmiller on January 16, 2022, 08:52:52 AM
Looks like great potential, one thing that would meet my needs exactly
is nested albums
ie:  Keith and Esther
        Our travels
        House remodel
        Wedding
        etc....
Title: Re: SMF Gallery
Post by: vbgamer45 on January 16, 2022, 10:00:35 AM
Subcategories are a feature in the pro edition of the mod.
Title: Re: SMF Gallery
Post by: txcas on January 23, 2022, 12:33:07 PM
I just installed this on SMF 2.1 RC4. When trying to upload pictures we get a "not a valid picture file" error. The SMF error log shows:
2: getimagesize(/home/creedmoo/public_html/gallery//img.tmp): failed to open stream: No such file or directory
Title: Re: SMF Gallery
Post by: vbgamer45 on January 23, 2022, 12:45:18 PM
Copy this file to your Sources folder and see if it helps made a change.
Title: Re: SMF Gallery
Post by: txcas on January 23, 2022, 12:56:01 PM
Quote from: vbgamer45 on January 23, 2022, 12:45:18 PMCopy this file to your Sources folder and see if it helps made a change.

I tested the new file and the SMF error is now:

2: getimagesize(/home/creedmoo/public_html/gallery/img.tmp): failed to open stream: No such file or directory
Title: Re: SMF Gallery
Post by: vbgamer45 on January 23, 2022, 01:04:17 PM
Is the gallery folder writable? And check that the path is write under gallery settings that it is /home/creedmoo/public_html/gallery/

If so can you also if you can upload an attachment to a post.
Title: Re: SMF Gallery
Post by: txcas on January 23, 2022, 05:26:28 PM
Quote from: vbgamer45 on January 23, 2022, 01:04:17 PMIs the gallery folder writable? And check that the path is write under gallery settings that it is /home/creedmoo/public_html/gallery/

If so can you also if you can upload an attachment to a post.
Yes the directory is writable. I just found that I have no problems uploading png files, but get the error with jpg files.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 23, 2022, 05:59:34 PM
Can you check your php settings/gd settings to see if jpg support is enabled.
Title: Re: SMF Gallery
Post by: Mick. on January 29, 2022, 11:12:51 AM
Let's make the images mobile friendly.

Out of the box, the images are stretched out on mobile view:

Screen Shot 2022-01-29 at 10.56.14.png

Let's create a class for the images. Open your theme's CSS file, at the bottom add:
.img_gallery {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  display: block;
}

Let's add the class to the template. Open Gallery2.1.template.php and find:
<td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" /></td>
Replace with:
<td align="center"><div class="img_gallery"><img src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" /></div></td>
Turn off linking codes in gallery admin.

Boom!
Screen Shot 2022-01-29 at 11.10.07.png


Title: Re: SMF Gallery
Post by: vbgamer45 on January 29, 2022, 11:15:14 AM
Can I use a variation of this Mick in the release here?
Title: Re: SMF Gallery
Post by: Mick. on January 29, 2022, 11:16:54 AM
Quote from: vbgamer45 on January 29, 2022, 11:15:14 AMCan I use a variation of this Mick in the release here?
Of course.

I started using SMF Gallery yesterday so I can host my images from within SMF instead of hosting them in a folder in my server every time I create a topic. Too much work. SMG Gallery just made my life much easier.  8)

I denied acces to Gallery to everyone. I use SMF Gallery to host all media like Wordpress lol. I now can go in, and select whatever images and create my blog post. Sweet.
Title: Re: SMF Gallery
Post by: Mick. on January 29, 2022, 11:21:14 AM
I'm now looking into how the images are displayed in columns. If I set it to 3 columns, it breaks the layout on mobile. Tables issue.  Imma try flexbox to tidy things up.
Title: Re: SMF Gallery
Post by: Mick. on January 30, 2022, 10:07:08 AM
vbgamer,
I loaded a webp image but is not showing. I figured is not available in the script even tho I added the allowed format in SMF attachment settings. Just a heads up for next release/update.  :P

Screen Shot 2022-01-30 at 10.07.59 AM.png
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2022, 11:25:25 AM
Does SMF support webp images with thumbnails in attachments? If it does I can enable it.
Title: Re: SMF Gallery
Post by: Mick. on January 30, 2022, 11:39:21 AM
Quote from: vbgamer45 on January 30, 2022, 11:25:25 AMDoes SMF support webp images with thumbnails in attachments? If it does I can enable it.
Yup.
Title: Re: SMF Gallery
Post by: Arantor on January 30, 2022, 11:41:45 AM
There was a PR for adding WebP support to 2.1 but it would require PHP 7.1 for the bundled GD to support it and not every server has it :( I didn't think it had actually been merged, I saw the debate and I thought Albert closed it.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 30, 2022, 02:46:56 PM
Update
7.1
!Make main image display mobile friendly for SMF 2.1.x Thanks to Mick idesignsmf.com
!Start support for webp
Title: Re: SMF Gallery
Post by: Mick. on January 30, 2022, 03:03:42 PM
14 instances in Gallery2.php. Anywhere else? I ask because it's already there. I didn't upgrade.
Title: Re: SMF Gallery
Post by: random539 on February 16, 2022, 02:06:46 PM
Thanks for the great mod!  It's working perfectly for me except on the add picture page the description text box is extremely wide, so much so that the Add Picture button isn't even displayed until I scroll quite a bit to the right.  Any ideas on how I could fix this?

Thanks!

edit - Perhaps I should include that I'm using SMF 2.0.19 and SMF Gallery Lite 7.1
Title: Re: SMF Gallery
Post by: vbgamer45 on February 16, 2022, 02:20:09 PM
Are you using any editor mods? It looks different
Title: Re: SMF Gallery
Post by: random539 on February 16, 2022, 03:07:08 PM
Thanks for the quick reply!  Not quite sure what you mean, but here's the mods I have installed:

SMF Versatile Post Reactions
unicode emoji for smf
Ohara YouTube Embed
@mention members
SMF Gallery Lite

I'm also using the Ant's Mutant Curve (https://custom.simplemachines.org/index.php?theme=2941) theme, maybe that has something to do with it?
Title: Re: SMF Gallery
Post by: vbgamer45 on February 16, 2022, 04:08:49 PM
It could be switch to the default theme and see if it happens there.
Title: Re: SMF Gallery
Post by: random539 on February 16, 2022, 06:03:21 PM
Turns out that was the problem, it works fine with the default theme.  Can't believe I didn't think of that earlier.  Thanks for your help!
Title: Re: SMF Gallery
Post by: vbgamer45 on February 18, 2022, 07:51:59 PM
Glad you were able to figure it out!
Title: Re: SMF Gallery
Post by: Mike66 on March 07, 2022, 11:07:27 AM
Is it possible to insert a 'slideshow' of a group of gallery images in a post?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 07, 2022, 12:20:51 PM
Not currently.
Title: Re: SMF Gallery
Post by: Mike66 on March 07, 2022, 01:29:41 PM
Quote from: vbgamer45 on March 07, 2022, 12:20:51 PMNot currently.

Thanks for the confirmation, I was going round in circles.
Title: Re: SMF Gallery
Post by: Mick. on March 08, 2022, 02:44:57 PM
Quote from: random539 on February 16, 2022, 02:06:46 PMThanks for the great mod!  It's working perfectly for me except on the add picture page the description text box is extremely wide, so much so that the Add Picture button isn't even displayed until I scroll quite a bit to the right.  Any ideas on how I could fix this?

Thanks!

edit - Perhaps I should include that I'm using SMF 2.0.19 and SMF Gallery Lite 7.1
Well, it looks like the gallery mod and whatever other mod you're using are not jigging. I've never seen that post display before. I'm willing to bet, it's an unclosed div.

What if you uninstall both mods and re install them. If it persists, try again but backwards.
Title: Re: SMF Gallery
Post by: Mick. on March 08, 2022, 02:46:05 PM
Oops, I just replied to an old comment. Lol dang phone.
Title: Re: SMF Gallery
Post by: Paulsa on March 31, 2022, 04:06:08 PM
I am disappointed that I cannot resize the images for mobile. The gallery function and layout is great.

I'm now looking for a way to add a top menu button to SMF 2.1.1 that links to a photo gallery on the server which resides separately from the SMF files. For example: Home  Search  Admin  Moderate  Gallery.
Your mod creates the button perfectly. I believe the menu button would need to link to the gallery through the site url/gallery. I only know enough to edit the code but don't know what files to edit or how to create a button/link for the top menu. Any help you could give me would be greatly appreciated.

Thank you..
Steve
Title: Re: SMF Gallery
Post by: vbgamer45 on March 31, 2022, 04:08:45 PM
You would need a menu editor mod or Edit the Sources/Subs.php and change the menu array. I think there is a guide somewhere on the forum but not sure if it is for 2.1
Title: Re: SMF Gallery
Post by: njtweb on April 05, 2022, 07:02:39 AM
Has there been any further development into making this mod responsive?
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on May 16, 2022, 11:46:41 PM
I've been running an old install of Gallery Lite 3.7 since 2014, which I modified.  The major change was assigning a separate category to each of a half dozen members, the members can only add pics to their own gallery.  There are some other things, main menu Gallery button lights up for 24 hours after new image is added to any gallery, new comments send email notification to gallery owner, comment count lights up for 24 hours after new comment is posted.  Those are what I remember, may be others.  There are currently four tables in database, smf_gallery_cat, smf_gallery_comment, smf_gallery_pic, smf_gallery_report (empty).  Are they compatible with 7.1?  Looks like the mod added only one file, Gallery2.php, that's where all the code edits are.  If at some point I upgrade the forum to 2.1 and install current version 7.1, what can I expect will happen?  There are approx. 1100 images in the galleries, it's a major feature of my family forum and we would not want to lose it.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 16, 2022, 11:55:21 PM
Yes, you can upgrade from any previous version to the latest version without issue.
I would make a backup of the changes you made.
But, all pictures and data will still be there.
Title: Re: SMF Gallery
Post by: Sir Osis of Liver on May 17, 2022, 07:52:33 PM
OK, will import those tables to 2.1 test forum, install current gallery mod, see if I can replicate the customizations.
Title: Re: SMF Gallery
Post by: Steve on June 05, 2022, 12:12:46 PM
How do I make the 'Gallery' button on the main index navigation bar open in a new page?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 05, 2022, 01:21:21 PM
Requires an Edit to Sources/GalleryHooks.php


In function gallery_menu_buttons
Find
    gallery_array_insert($menu_buttons, $button_insert,
     array(
                    'gallery' => array(
                    'title' => $txt['smfgallery_menu'],
                    'href' => $scripturl . '?action=gallery',
                    'icon' => 'gallery.png',
                                    'show' => allowedTo('smfgallery_view'),
                            'sub_buttons' => array(),
   
    )
    )
    ,$button_pos);

Change to

    gallery_array_insert($menu_buttons, $button_insert,
     array(
                    'gallery' => array(
                    'title' => $txt['smfgallery_menu'],
                    'href' => $scripturl . '?action=gallery',
                    'target' => '_blank',
                    'icon' => 'gallery.png',
                                    'show' => allowedTo('smfgallery_view'),
                            'sub_buttons' => array(),
   
    )
    )
    ,$button_pos);

Title: Re: SMF Gallery
Post by: Steve on June 05, 2022, 02:08:20 PM
Perfect! Thanks my friend.  :)
Title: Re: SMF Gallery
Post by: vbgamer45 on June 05, 2022, 02:15:08 PM
Glad to help.
Title: Re: SMF Gallery
Post by: Steve on June 06, 2022, 12:27:21 PM
I select a folder and then upload an image. Is there a setting to return to the folder I just uploaded a picture to instead of showing me all my images?
Title: Re: SMF Gallery
Post by: vbgamer45 on June 06, 2022, 12:49:11 PM
There is not a setting in the lite version for this.

My original thinking was to go to the user's images page. Since they can see unapproved picture under their profile area.

A gallery admin can set pictures require approval before the image is shown to all. So if the the user is redirected back to the category, there picture would not be shown if it was not approved.
Title: Re: SMF Gallery
Post by: Steve on June 06, 2022, 01:03:49 PM
Ah, makes sense.  :)
Title: Re: SMF Gallery
Post by: Mike66 on June 14, 2022, 05:10:36 AM
Can we do anything to style the Post Image Upload form pop up?

It is too small in mobile view. Might be better if it displayed as full page width?

I'm thinking some kind of CSS style rule ........
Title: Re: SMF Gallery
Post by: vbgamer45 on June 14, 2022, 05:25:19 AM
Probably have to see if I can redo it.
Title: Re: SMF Gallery
Post by: MrPython on June 20, 2022, 03:48:19 PM
Hi vbgamer45!
I need help...
I'm uploading an image to a gallery and I'm getting an error.
Undefined array key "show_bbc"/Themes/default/Gallery2.1.template.php on line 673

How can this be fixed?
673.png
Title: Re: SMF Gallery
Post by: vbgamer45 on June 20, 2022, 04:05:38 PM
What version of the gallery are you running?
Title: Re: SMF Gallery
Post by: MrPython on June 20, 2022, 04:11:58 PM
SMF Gallery Lite 6.0d  and SMF 2.1.2
Title: Re: SMF Gallery
Post by: vbgamer45 on June 20, 2022, 04:42:08 PM
You should upgrade to latest version has the fix in it.
Title: Re: SMF Gallery
Post by: MrPython on June 20, 2022, 05:18:47 PM
Quote from: vbgamer45 on June 20, 2022, 04:42:08 PMYou should upgrade to latest version has the fix in it.
I install  http://www.smfhacks.com/downloads/1_05_09_21_7_13_28
The package manager shows the installed version as N/A and offers to upgrade back to 6d. :)
The error does not appear.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 20, 2022, 05:20:10 PM
Grab from https://custom.simplemachines.org/index.php?mod=473
Title: Re: SMF Gallery
Post by: MrPython on June 20, 2022, 05:37:44 PM
I think I need to sleep, and then remove the excess :)
gallery-3.png
This looks like a bug, 3 versions instead of upgrading one to 7.1
Title: Re: SMF Gallery
Post by: vbgamer45 on June 20, 2022, 06:03:54 PM
You can delete the old packages if you uninstalled the old version.
Title: Re: SMF Gallery
Post by: MrPython on June 21, 2022, 02:32:29 AM
I removed all versions and packages and did a fresh install of the gallery. Thanks for the help!
Title: Re: SMF Gallery
Post by: Edwar Colt on March 03, 2023, 02:58:53 PM
I'm going to buy the Gallery Pro license, but first I would like to know if I can change the domain in the future?

 I still need to choose a definitive domain, what I'm using at the moment is my test space..
Title: Re: SMF Gallery
Post by: vbgamer45 on March 03, 2023, 04:19:58 PM
Yes, you can also change the domain just send me a message
Title: Re: SMF Gallery
Post by: Edwar Colt on March 03, 2023, 05:06:29 PM
Done. Gallery licensed from https://www.smfhacks.com/index.php?action=license

And now I take the opportunity to congratulate you for the excellent work.
tks
Title: Re: SMF Gallery
Post by: vbgamer45 on March 03, 2023, 05:35:45 PM
Thanks for your support!
Title: Re: SMF Gallery
Post by: DeadMan... on March 19, 2023, 08:35:42 PM
@vbgamer45
Is there a way to do batch uploads?
I have a lot of images I want to add to different albums.
Title: Re: SMF Gallery
Post by: vbgamer45 on March 19, 2023, 08:39:55 PM
Not in the lite version currently.
Title: Re: SMF Gallery
Post by: DeadMan... on March 19, 2023, 08:44:31 PM
And there's no way for me to afford the pro version, being on SSI and all that for bills...LOL
Oh well. Will have to try to figure out what to do now.
Thank you, my friend.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on April 02, 2023, 01:39:05 AM
Installing SMF gallery lite in my upgraded 2.1.3
And while trying to convert from aeva media, got this error.

Database Error
Incorrect integer value: '' for column 'totalratings' at row 1
File: /home/forum/public_html/Sources/Subs-ConvertAeva2.php
Line: 707

Guide me to any old post for resolution if any.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on April 02, 2023, 02:14:08 AM
Quote from: Sudhakar Arjunan on April 02, 2023, 01:39:05 AMInstalling SMF gallery lite in my upgraded 2.1.3
And while trying to convert from aeva media, got this error.

Database Error
Incorrect integer value: '' for column 'totalratings' at row 1
File: /home/forum/public_html/Sources/Subs-ConvertAeva2.php
Line: 707

Guide me to any old post for resolution if any.

Admin Error log - line 707

Database Error: Incorrect integer value: '' for column 'totalratings' at row 1

INSERT INTO smf_gallery_pic
 (id_picture,title,description,id_member,id_cat,
 views, filesize, height, width,
 filename, thumbfilename, mediumfilename,totalratings,rating,
 commenttotal, approved, date, keywords,allowcomments )
 VALUES ('1','Mega JOB FAIR - 19th and 20th',
 'Companies - HP, Unisys & More

Walkin Date Jan 19, 20, Bangalore', '1164', '1', '728',
 '347277', '1478', '943',
 'albums/JOB_Album/Dir_1/main_1.png', 'albums/JOB_Album/Dir_1/thumb_1.png','albums/JOB_Album/Dir_1/medium_1.png','','',
 '0',
 '1','1200572255'
 , 'hp, walk in, unisys, jobfair, hello, bpo, it, ites',1)
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2023, 12:00:43 PM
Try the latest version from the mod site and see if it helps
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on April 02, 2023, 12:13:39 PM
Quote from: vbgamer45 on April 02, 2023, 12:00:43 PMTry the latest version from the mod site and see if it helps
WoW working amazingly now, converter from aeva media to smf gallery lite processing like a pro. Thank you vbgamer45
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on April 02, 2023, 12:18:37 PM
While processing got one error

Processing: 8599
Processing: 8612
Processing: 15131

Database Error
Data too long for column 'keywords' at row 1
File: /home/forum/public_html/Sources/Subs-ConvertAeva2.php
Line: 734
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on April 02, 2023, 12:38:22 PM
Checked the db table for keyword length found its 248, so we got error, what to do now.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2023, 12:39:53 PM
Increase the length of the keywords item in smf_gallery_pic table change to 500
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2023, 06:31:16 PM
It's got me head scratching  ;D

I have moved my forum to a new server ( I'm still running 2.0 ) and everything is working fine apart from 'Post Image Upload'.

When we use Post Image Upload, it uploads the image to the gallery - but it doesn't insert the image linking text into the post and it displays an error in the Post Image Upload pop up box that says:
"Forbidden"
"You don't have permission to access this resource."

I have tried uninstalling Post Image Upload and installing it again, but that didn't work. I get the same error as Admin as the members do ....... so I'm guessing it is possibly a server permissions thing?

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on April 22, 2023, 06:50:05 PM
Try disabling mod_security if enabled.
Title: Re: SMF Gallery
Post by: Mike66 on April 22, 2023, 07:12:55 PM
Quote from: vbgamer45 on April 22, 2023, 06:50:05 PMTry disabling mod_security if enabled.

Can't find/see mod_security on the server control panel.

Might be best to discuss the problem with my host?

Cheers
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on April 22, 2023, 07:35:49 PM
yes
Title: Re: SMF Gallery
Post by: Mike66 on April 25, 2023, 03:35:44 PM
My hosting provider disabled mod_security and can't see any obvious issue at their end.

Have you got any other suggestions of things we could check for? This one has me stumped.

Have moved both my websites to the new server, one has a long term 2.0 forum and the other a test 2.1 forum to evaluate the possible upgrade of the long term one. The post image upload error is happening on both.

Thanks
Mike
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2023, 03:44:08 PM
Things I would do check forum error log when the error happens.
View the request in developer tools the error to see where the request is posted to.
Check php upload limits if image is a bigger file to see if you are not exceeding those.
Make sure on latest version of the gallery software.
Title: Re: SMF Gallery
Post by: Mike66 on April 25, 2023, 04:05:55 PM
Interestingly, the error doesn't produce a forum error log.

Max PHP upload size seems to be 128M, could that be it?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2023, 04:23:02 PM
I would make sure post_max_Size is also the same value.
Title: Re: SMF Gallery
Post by: Mike66 on April 25, 2023, 04:43:36 PM
Quote from: vbgamer45 on April 25, 2023, 04:23:02 PMI would make sure post_max_Size is also the same value.

Yes, both share the same value.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 25, 2023, 04:59:57 PM
I would need an account on the forum to check. not sure what else.
Title: Re: SMF Gallery
Post by: Mike66 on April 26, 2023, 01:08:41 PM
More head scratching ..... I uninstalled and removed Gallery Pro, then I downloaded the latest version of Gallery Pro.

When I tried to upload and install Gallery Pro 9.0.8 via Package manager (Add Packages) I got the same error as with Post Image Upload "Forbidden" "You don't have permission to access this resource."

After trying a couple of times, failing, and not seeing any logged errors, I decided to try uploading Gallery Pro 9.0.8 via FTP. This worked, I could then find it in Package Manager via Browse Packages, and was able to install it from there.

So, back to where I started really, Post Image Upload gives the same error in 9.0.8.
But I now have the latest gallery version, and I now know that trying to install something via Add Packages produces the same error.

Cheers
Mike
Title: Re: SMF Gallery
Post by: Mike66 on April 27, 2023, 01:45:07 PM
Quote from: vbgamer45 on April 25, 2023, 04:59:57 PMI would need an account on the forum to check. not sure what else.

Thanks for your help, I have sent you a PM.
Title: Re: SMF Gallery
Post by: Steve on April 27, 2023, 09:31:28 PM
Quote from: Mike66 on April 27, 2023, 01:45:07 PMThanks for your help, I have sent you a PM.
If you're going to discuss the Pro version it would be best if you signed up at his website and discuss it there.
Title: Re: SMF Gallery
Post by: Mike66 on April 28, 2023, 09:38:51 AM
Quote from: Steve on April 27, 2023, 09:31:28 PM
Quote from: Mike66 on April 27, 2023, 01:45:07 PMThanks for your help, I have sent you a PM.
If you're going to discuss the Pro version it would be best if you signed up at his website and discuss it there.

Done - already a member there  :)
Title: Re: SMF Gallery
Post by: Steve on April 28, 2023, 09:51:22 AM
(https://i.imgur.com/Wm1mvsd.gif)
Title: Re: SMF Gallery
Post by: Mike66 on April 29, 2023, 05:10:37 AM
No reply over there .....

The path that Post Image Upload is struggling to access is:

https://www.mysite.com/forum/index.php?action=post;topic=2.0;last_msg=15&smfgallery_id=0&smfgallery_text=%0A[url%3Dhttps%3A%2F%2Fwww.mysite.com%2Fforum%2Findex.php%3Faction%3Dgallery%3Bsa%3Dview%26id%3D18][img]https%3A%2F%2Fwww.mysite.com%2Fforum%2Fgallery%2F4-280423121915.jpeg[%2Fimg][%2Furl]%0A

I can get my head round most things, but I'm really struggling to understand why this is not working  :-\
Title: Re: SMF Gallery
Post by: Steve on April 29, 2023, 07:24:00 AM
Again, Pro discussions will have to be held at his website. You will get an answer soon. vbgamer is a busy man and will get to your problem when he can. :)
Title: Re: SMF Gallery
Post by: Mike66 on April 29, 2023, 08:10:10 AM
Thanks Steve, I fully understand that  :)
Title: Re: SMF Gallery
Post by: landyvlad on May 01, 2023, 10:05:32 PM
I have an SMF Gallery problem, affecting all members.

https://gsx1400owners.org/forum/index.php?action=gallery
QuoteThis page isn't working gsx1400owners.org is currently unable to handle this request.
HTTP ERROR 500

The forum error log states:
QuoteGuest
 (IP address)
 d62cd46c0b4c4ffa6255407149e35b63
 https://gsx1400owners.org/forum/index.php?action=gallery;sa=view;id=135
 /home/gsxowner/public_html/forum/index.php (Line 455)  Backtrace information

Type of error: General
Error messageSelect
2: require_once(/home/gsxowner/public_html/forum/Sources/Gallery2.php): Failed to open stream: No such file or directory

One of my admins, better with coding etc than me, states
Quotethere is a file  called Gallery2.php keeps deleting itself, I have no idea why ???

I keep putting it back, and they gallery works again. but it just goes again.

As I'm posting this from work I can't access the SMFHacks website (blocked probably dur to the name LOL) but if course I'll also post there when I can.

Any and all possible assistance and advice is welcome :)
Title: Re: SMF Gallery
Post by: landyvlad on May 09, 2023, 07:58:05 PM
Has anyone had the same errors as above?
The problem persists for me and I'd love to find a solution.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 09, 2023, 08:29:04 PM
Probably a godaddy or poor hosting company that is flagging something in the file. And their antivirus is deleting it.
Title: Re: SMF Gallery
Post by: Steve on May 10, 2023, 08:25:52 AM
You can ask them to 'whitelist' it ....
Title: Re: SMF Gallery
Post by: landyvlad on May 12, 2023, 04:06:08 AM
Quote from: vbgamer45 on May 09, 2023, 08:29:04 PMProbably a godaddy or poor hosting company that is flagging something in the file. And their antivirus is deleting it.

If that's in regard to me - nope, I'm not a tightarese. I use a  very reliable reputable company. :)

( GoDaddy hell no!   :laugh: )

I've had no dramas previously with SMF Gallery.


What is the Gallery2.php file anyway?  Is it a new file not used by previous versions of the gallery?
Title: Re: SMF Gallery
Post by: landyvlad on May 12, 2023, 04:23:24 AM
OK this is SOLVED by the simple (and obvious d'oh) upgrading to the latest software version.  I think I must have inadvertently previously updated to an interim version or something.
Anyway sorted, thanks.
Title: Re: SMF Gallery
Post by: landyvlad on May 21, 2023, 11:30:16 PM
Hmm so I updated to latest version and it was working but the same error as above had now started again.

Très frustrating.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 22, 2023, 12:01:34 AM
Who is your webhost? I would contact them to see why the file is getting deleted
Title: Re: SMF Gallery
Post by: landyvlad on May 23, 2023, 07:00:32 AM
OK so my host has said:

CPGuard is detecting Gallery2.php as possibly malicious because of some base64 string manipulations.

The match is: {HEX}Malware.Expert.php.ini.ini.ini.ini.ini.ini.chmod.base64.decode.base64.decode.php

I can't really comment any more on why the definition is being flagged but I have set the filter so it won't remove this file anymore.

I highly recommend investigating the file to make sure it's okay.




Any ideas how/why CPGUARD would have a problem with the file?
Title: Re: SMF Gallery
Post by: vbgamer45 on May 23, 2023, 09:04:21 AM
Probably because there is a base64 line in that file.
Title: Re: SMF Gallery
Post by: landyvlad on May 31, 2023, 08:00:32 PM
Excuse my ignorance.

What's a base64 line?

Should it be in that file?

Where does the gallery 2 file come from? Is it a unique file to each installation or a general file the same for everyone?

The host did say they took action to white list it but... whatever they did evidently didn't work.

Obviously I've raised it with them again but I need to get an understanding of this so  discuss it with them from a more knowledgeable perspective.

Thanks.
Title: Re: SMF Gallery
Post by: vbgamer45 on May 31, 2023, 08:11:48 PM
Try removing this line in SMF Gallery lite
in gallery2.php around line 384
die(base64_decode('UG93ZXJlZCBieSBHYWxsZXJ5IEZvciBTTUYgIG1hZGUgYnkgdmJnYW1lcjQ1IGh0dHA6Ly93d3cuc21maGFja3MuY29t'));
And see if that helps.
Title: Re: SMF Gallery
Post by: landyvlad on June 01, 2023, 01:58:57 AM
I'm using SMF Gallery pro, not sure if its the same - nor what that line is/should do.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 01, 2023, 02:04:23 AM
Look for a similar line in that file that starts with die(base64_decode(
Also SMF Gallery Pro support should be on smfhacks.com so people don't get confused.
Title: Re: SMF Gallery
Post by: landyvlad on June 07, 2023, 02:18:19 AM
Hmm continuing issues - if I remember I'll post on your forum from home when I get there.
"SMFHacks" is flagged as a dangerous website and blocked by the work firewall.
Probably just the name I suspect.  ::)

Or maybe the IT people are vbulletin fans.  :laugh:  :laugh:  :laugh:  :laugh:  :laugh:
Title: Re: SMF Gallery
Post by: vbgamer45 on June 07, 2023, 11:07:47 PM
What company firewall? Product probably because of the name of the site just doing if off of keywords.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on June 14, 2023, 06:40:02 PM
Quote from: vbgamer45 on April 02, 2023, 12:39:53 PMIncrease the length of the keywords item in smf_gallery_pic table change to 500
Quite away sorry vbgamer45
Yes increased keywords to 500 and got some error at title. So increased title to 500 length.
Completed the importing after few hours.

====
Aeva Media information Imported!
Visit imported Gallery https://forum link /index.php?action=gallery

Special Offering for SMF Gallery Pro for Aeva Media Converts!

Visit this site for details: http://www.smfhacks.com/promos/aevamediaconvert.php
====

Some help needed as,
1) After importing done.Could not see images in the gallery, images not loading with error.
2) Also it shows Warning Gallery path is not writable! /home/forum/public_html/forumfolder/gallery which is 755 only.

Site link in my signature. Please help.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 14, 2023, 06:42:46 PM
Change to
/home/forum/public_html/forumfolder/gallery/

Add / at end


Check your gallery path and url are set right
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on June 18, 2023, 11:25:47 PM
Yes "/" trailing slash is there.
Sent screenshot in personal message.
Title: Re: SMF Gallery
Post by: vbgamer45 on June 18, 2023, 11:31:17 PM
From your screenshot make sure the gallery folder and path is writeable.
And confirm that the directory is correct.
Doing those two things should fix it.

Title: Re: SMF Gallery
Post by: vbgamer45 on July 04, 2023, 09:28:34 PM
SMF 2.1 version is now fully hooks.
Moved the language files to hooks.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on July 06, 2023, 01:31:54 PM
Quote from: vbgamer45 on June 18, 2023, 11:31:17 PMFrom your screenshot make sure the gallery folder and path is writeable.
And confirm that the directory is correct.
Doing those two things should fix it.

Issue 1 -
Yes folder is writable, correct directory. Still error persist.

Issue 2 -
While am trying to attach a file to the post, it throws an error. Do you recommend uninstalling and reinstalling smf gallery as recommended in this post.
https://www.simplemachines.org/community/index.php?msg=4153530
Title: Re: SMF Gallery
Post by: vbgamer45 on July 06, 2023, 01:34:26 PM
Issue 2 not related to the gallery we do not touch file  attachments with SMF Gallery


Issue 1 some webhosting issue. I would check with your hosting provider.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on July 06, 2023, 04:15:22 PM
Quote from: vbgamer45 on June 18, 2023, 11:31:17 PMFrom your screenshot make sure the gallery folder and path is writeable.
And confirm that the directory is correct.
Doing those two things should fix it.


Fixed gallery writeable folder issue issue

Now could we generate thumbnail now as I came from aeva media used converter

System looking for website.com/gallery/albums/Tech_Gadgets/Dir_3/main_16084.jpeg

file manager has public_html/gallery/albums/Tech_Gadgets/Dir_3/
8371_5233_08_10_08_2_35_55_jpg9f912add558d7eaec6a5a4d07b0d75ad_extjpg
8383_thumb_5233_08_10_08_7_56_44_jpge6d26c6fef5ed7ad2b120cd694b77a76_extjpg
Title: Re: SMF Gallery
Post by: Looking on August 11, 2023, 08:42:35 AM
Greets. Did some testing. For the Aeva converter on large sites where there are hundreds of albums and thousands of pics it always gives duplicate entry errors. When I try to add "Ignore" to the insert it continues but in the end it only converts one album thus thousands of pics are missing. I have tested this on both regular and pro version.
Title: Re: SMF Gallery
Post by: vbgamer45 on August 11, 2023, 12:22:37 PM
Yes there can be issues with the conversion. Aeva had an odd format of storing files/albums
I would try to convert the rest manually.
Title: Re: SMF Gallery
Post by: Looking on August 12, 2023, 11:26:40 AM
Thanks for the reply. I edited the converter to work properly so it pulled in all correctly now.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on September 18, 2023, 12:51:45 PM
Quote from: Looking on August 12, 2023, 11:26:40 AMThanks for the reply. I edited the converter to work properly so it pulled in all correctly now.
My aeva to smf gallery cracked. Check my forum in signature.
Could you share the updated aeva mod converter for smf gallery.
So I will use to transfer smoothly from aeva gallery to smf gallery please.
Title: Re: SMF Gallery
Post by: Sudhakar Arjunan on October 23, 2023, 03:59:51 AM
Quote from: Looking on August 12, 2023, 11:26:40 AMThanks for the reply. I edited the converter to work properly so it pulled in all correctly now.
Could you share me the updated aeva convertor here. My smf gallery not showing images for last 1 years almost now.
Title: Re: SMF Gallery
Post by: CraftyLion on November 25, 2023, 03:40:59 PM
Is it possible to have a link to members media posts in their profile? I believe it would make it easier to keep track of (and moderate) what they have posted there.
Title: Re: SMF Gallery
Post by: mickjav on November 25, 2023, 05:02:58 PM
Have a look here:

https://www.smfhacks.com/index.php/board,18.0.html

I use this one on my site
https://www.smfhacks.com/index.php/topic,162.0.html

You can see it here: look in the member info

https://www.databasedreams.co.uk/charts/chart-analysis/missing-position/
Title: Re: SMF Gallery
Post by: CraftyLion on November 25, 2023, 05:58:11 PM
Unfortunately, the forum thread appears to be off-limits to me.
Title: Re: SMF Gallery
Post by: vbgamer45 on November 26, 2023, 12:52:27 AM
The thread is currently only SMF Gallery Pro subscribers if you have an active license you can enter in the license area.
Title: Re: SMF Gallery
Post by: Diego Andrés on December 05, 2023, 07:52:49 PM
[Gallery Addon] Post Image Upload
This gallery addon/mini-MOD will allow users to quickly upload pictures to the gallery, directly from the posting screen or quick reply.

Features

*NOTE: For the free version you'll need to add these strings to your languages/Gallery.english.php file
$txt['gallery_txt_imagepost'] = 'Add image to post and upload to gallery';
$txt['gallery_text_choose_cat'] =    'Select Category';
$txt['gallery_txt_multi_imageuploaded'] = 'Image was uploaded:';
Title: Re: SMF Gallery
Post by: mickjav on December 06, 2023, 01:36:10 AM
Thanks, @Diego Andrés Could be a very useful mode.

Hope it's not a silly question, but as a pro user do I need to set the below true?

private bool $_gallery_pro = false;
Title: Re: SMF Gallery
Post by: Diego Andrés on December 06, 2023, 01:41:01 AM
No it's just the default value, nothing to do manually it's just install to use, uninstall to remove.
Title: Re: SMF Gallery
Post by: mickjav on December 06, 2023, 02:02:39 PM
Tried Installing on test site but will have to wait for php 8  :'(
Title: Re: SMF Gallery
Post by: Diego Andrés on December 06, 2023, 02:16:13 PM
Should be safe to switch to PHP 8, unless you have some other MOD not supporting it
Title: Re: SMF Gallery
Post by: jsx on December 07, 2023, 03:32:48 PM
Diego, I noticed the following errors in the log:

2: Undefined array key "gallery_path"

(https://i.imgur.com/d1XMyn6.png)

(https://i.imgur.com/0UtA4Di.png)
Title: Re: SMF Gallery
Post by: Diego Andrés on December 08, 2023, 10:13:53 PM
Quote from: jsx on December 07, 2023, 03:32:48 PM2: Undefined array key "gallery_path"
Try with the attached file. Removed.

The attachment was updated.
Title: Re: SMF Gallery
Post by: jsx on December 25, 2023, 05:17:58 AM
I forgot to let you know, but when I uploaded this fix from you and this error no longer occurs. Now I have reinstalled this add-on because I see that you have updated the package. Thanks Diego!

Title: Re: SMF Gallery
Post by: Mike66 on December 28, 2023, 07:54:02 AM
Post Image Upload for SMF Gallery:

Where can I find the files for 'Post Image Upload' within the gallery files, or the changes that the install makes?

I want to style the Post Image Upload form to make it responsive.

The form currently only displays in the top left hand 1/4 of a mobile screen.

So I'm basically looking for something to identify the form to be able to apply CSS rules.

Cheers
Mike

PS: I managed to make the gallery 'Add Picture' form responsive a few years ago with the following on SMF 2.0.17


<style>
tr.windowbg2 input[type="text"][value*="gallery"] {
    width: 100%;
}
Title: Re: SMF Gallery
Post by: mickjav on December 28, 2023, 10:17:16 AM
Gallery2.1.template

template_add_picture
template_edit_picture
Title: Re: SMF Gallery
Post by: Mike66 on December 28, 2023, 11:15:47 AM
Quote from: mickjav on December 28, 2023, 10:17:16 AMGallery2.1.template

template_add_picture
template_edit_picture

Thanks mickjav  :)

But is that for the 'Post Image Upload' additional mod pop up form, or the standard 'Add picture' form?

Cheers
Mike
Title: Re: SMF Gallery
Post by: mickjav on December 28, 2023, 11:18:22 AM
Quote from: Mike66 on December 28, 2023, 11:15:47 AMthe standard 'Add picture' form?

Not sure what you mean there?
'Post Image Upload' additional mod pop up form
Title: Re: SMF Gallery
Post by: Mike66 on December 28, 2023, 11:58:55 AM
Post Image Upload is an add on mod for SMF gallery pro, it is used in the text editor and combines adding an image to the gallery with adding an image link to your post, so that the image displays in your post.

Hope that makes sense.
Title: Re: SMF Gallery
Post by: Diego Andrés on December 28, 2023, 01:01:25 PM
Quote from: Mike66 on December 28, 2023, 11:58:55 AMPost Image Upload is an add on mod for SMF gallery pro, it is used in the text editor and combines adding an image to the gallery with adding an image link to your post, so that the image displays in your post.

I made an updated version it works for Pro and Free
Attached here
https://www.simplemachines.org/community/index.php?topic=114291.msg4164713#msg4164713

Gallery-Post-Image-Upload.zip
Title: Re: SMF Gallery
Post by: Mike66 on December 28, 2023, 01:29:44 PM
Thanks, sounds good Diego Andres.

Does your updated version work on SMF 2.0.17 and php 7.2.0?
Title: Re: SMF Gallery
Post by: Diego Andrés on December 28, 2023, 01:34:00 PM
No, only SMF 2.1
Title: Re: SMF Gallery
Post by: Mike66 on December 28, 2023, 01:39:34 PM
Quote from: Diego Andrés on December 28, 2023, 01:34:00 PMNo, only SMF 2.1

Thanks for the quick reply.

I'm not on SMF 2.1, so I can't use your updated version I'm afraid. (maybe in the future)

I will just have to try and style the pop up in the old version to be more responsive.

Title: Re: SMF Gallery
Post by: Steve on December 29, 2023, 08:14:02 AM
Quote from: Diego Andrés on December 28, 2023, 01:01:25 PMI made an updated version it works for Pro and Free
Where in the gallery is the image uploaded to? Can you designate a specific folder for these images?
Title: Re: SMF Gallery
Post by: Diego Andrés on December 29, 2023, 08:52:53 AM
Quote from: Steve on December 29, 2023, 08:14:02 AMWhere in the gallery is the image uploaded to? Can you designate a specific folder for these images?

It's uploaded to the selected category, using the same paths.
It has no settings.
Title: Re: SMF Gallery
Post by: Mike66 on December 29, 2023, 01:44:00 PM
Quote from: Mike66 on December 28, 2023, 01:39:34 PM
Quote from: Diego Andrés on December 28, 2023, 01:34:00 PMNo, only SMF 2.1

Thanks for the quick reply.

I'm not on SMF 2.1, so I can't use your updated version I'm afraid. (maybe in the future)

I will just have to try and style the pop up in the old version to be more responsive.



That's me finished, I've managed to make it responsive  :)
And I've simplified the form by removing the Description box and Choose Category.

Cheers
Mike


Title: Re: SMF Gallery
Post by: Steve on December 30, 2023, 07:47:39 AM
Quote from: Diego Andrés on December 29, 2023, 08:52:53 AMIt's uploaded to the selected category, using the same paths.
It has no settings.
Thanks Diego.  :)  If I had clicked on the link in your post above I would have had my answer.  *smacks forehead*
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 05:33:26 AM
Quote from: Diego Andrés on December 28, 2023, 01:01:25 PM
Quote from: Mike66 on December 28, 2023, 11:58:55 AMPost Image Upload is an add on mod for SMF gallery pro, it is used in the text editor and combines adding an image to the gallery with adding an image link to your post, so that the image displays in your post.

I made an updated version it works for Pro and Free
Attached here
https://www.simplemachines.org/community/index.php?topic=114291.msg4164713#msg4164713

Gallery-Post-Image-Upload.zip

Just checked my PHP Version in myphp is saying my version is "PHP version: 8.1.26" but still telling me I need version 8

All the best mick
Title: Re: SMF Gallery
Post by: Diego Andrés on January 27, 2024, 03:06:55 PM
Quote from: mickjav on January 27, 2024, 05:33:26 AMJust checked my PHP Version in myphp is saying my version is "PHP version: 8.1.26" but still telling me I need version 8

All the best mick

Perhaps your sites have a different version each?
In the admin you can check for it, go to Admin > Maintenance > Server settings > PHP info.

It's where it says 'Core'.
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 03:23:34 PM
Quote from: Diego Andrés on January 27, 2024, 03:06:55 PM
Quote from: mickjav on January 27, 2024, 05:33:26 AMJust checked my PHP Version in myphp is saying my version is "PHP version: 8.1.26" but still telling me I need version 8

All the best mick

Perhaps your sites have a different version each?
In the admin you can check for it, go to Admin > Maintenance > Server settings > PHP info.

It's where it says 'Core'.

Thanks They all say 7.4.33

But Myphpadmin says
2024-01-27 (1).png

It's not important as prob wont be using it just wanted to look lol
Title: Re: SMF Gallery
Post by: Arantor on January 27, 2024, 04:31:23 PM
It's quite possible for phpMyAdmin to be running its own version of PHP especially if you're on hosting with a PHP version switcher...
Title: Re: SMF Gallery
Post by: vbgamer45 on January 27, 2024, 04:48:21 PM
You can check in SMF your php version under Admin -> Support and Credits
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 04:59:23 PM
Quote from: vbgamer45 on January 27, 2024, 04:48:21 PMYou can check in SMF your php version under Admin -> Support and Credits

7.4.33 As said it's not important at the moment but if more mods require 8 then I'll have to talk to my host? lol
Title: Re: SMF Gallery
Post by: vbgamer45 on January 27, 2024, 05:03:44 PM
In cpanel there is a php version area you can change the PHP version of your site. MultiPHP manager I believe.
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 05:15:55 PM
Quote from: vbgamer45 on January 27, 2024, 05:03:44 PMIn cpanel there is a php version area you can change the PHP version of your site. MultiPHP manager I believe.

Sorry, can't find anything like that.
Title: Re: SMF Gallery
Post by: vbgamer45 on January 27, 2024, 05:21:30 PM
I changed your site to PHP 8.1 it's under software in cpanel admin area.
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 05:32:33 PM
Quote from: vbgamer45 on January 27, 2024, 05:21:30 PMI changed your site to PHP 8.1 it's under software in cpanel admin area.

Thanks just found cPanel, Never noticed it before, Always thought my client area was it lol
Title: Re: SMF Gallery
Post by: mickjav on January 27, 2024, 05:50:57 PM
Had one issue in my pledges mod it didn't like "cannot be called statically"

So I changed the problem function from

public function PledgesToBeConfirmed()

To

public static function PledgesToBeConfirmed()

to be honest not 100% sure what I'm doing there.

last of topic from me lol
Title: Re: SMF Gallery
Post by: vbgamer45 on March 25, 2024, 01:24:36 AM
Added some built in translations for German, Spanish-es, and French. Just note these are AI assisted translations and should give a good start for most users.
Title: Re: SMF Gallery
Post by: ColinJM on March 28, 2024, 03:13:48 AM
I've just installed this on my development SMF forum and am receiving a Warning Gallery path is not writable! /xxxxxxxxxx.com/gallery/

The sub directory exists in the public.html folder on the server

Any ideas?
Title: Re: SMF Gallery
Post by: vbgamer45 on March 28, 2024, 09:39:30 AM
Is it writable? Check the directory permissions
Title: Re: SMF Gallery
Post by: ColinJM on March 29, 2024, 02:53:38 AM
Quote from: vbgamer45 on March 28, 2024, 09:39:30 AMIs it writable? Check the directory permissions

That's now fixed - came down to pathing and permissions.
But I have another problem - when you click on the TNs the image blows out the View Ports on mobiles and squashes in horizontally

(https://www.edenlifecommunityforum.com/gallery/Screenshot_20240329-145557_Chrome.jpg)
Title: Re: SMF Gallery
Post by: vbgamer45 on March 29, 2024, 03:09:36 PM
What device are you using?
Interested to know on the image size width/height.
And if possible can you pme me a link or the image
Title: Re: SMF Gallery
Post by: ColinJM on March 29, 2024, 08:15:55 PM
I'm using a SamsungS7 with Chrome.
The original image is 1040 x 726
When I screenshot it and download it it goes to 1080x1920
original and downloaded images sent vb

MSG sent
Title: Re: SMF Gallery
Post by: ColinJM on March 29, 2024, 09:33:52 PM
@vbgamer45 - The Image doesn't retain aspect ratio as I shrink threw view ports in a browser. Thumbnails are ok, its the non TN image the TN is tapped. Otherwise awesome plug in.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 02, 2024, 08:41:48 PM
Haven't forgot have to see if I have fix in pro edition/compare code.
There is still some unresolved responsive in the gallery, css is not my strong point/using divs instead of tables.
Title: Re: SMF Gallery
Post by: fmofmpls on April 15, 2024, 05:40:39 PM
I recently upgraded my forum to 2.1.4 and my SMF Gallery Pro gallery isn't showing any longer. I found the lite version at SMF mods section, but I purchased the Pro version years ago. Is it still possible to download that package again to my forum somehow? Thanks!
Title: Re: SMF Gallery
Post by: Steve on April 15, 2024, 06:59:38 PM
You will have to go here: https://www.smfhacks.com/index.php/board,15.0.html

And discuss with them about updating your version. I suspect you'll have to re-purchase the product again.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 15, 2024, 11:19:04 PM
You can go to https://www.smfhacks.com/index.php?action=license and renew for a lower rate  to get the latest updates!
Title: Re: SMF Gallery
Post by: fmofmpls on April 16, 2024, 05:01:10 PM
I successfully uploaded the recent version of SMF Gallery Pro back into my forum after a recent upgrade to SMF 2.1.4. What I noticed after renewing SMF Gallery Pro was that all of the previous photo albums titles and folders text showed up but the images themselves are not showing. All of the original gallery albums and content are still inside a folder located inside my file manager in a folder named - forum/mgal_data/albums/ folder

How do I successfully migrate all of those pics back into to their respective folders within the updated SMF Gallery Pro?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2024, 05:38:37 PM
Check your gallery url settings.
Get image link location of the broken image. Check what folder it goes to/url
That should give some clues on next step.
Title: Re: SMF Gallery
Post by: fmofmpls on April 16, 2024, 05:56:44 PM
Here's a screen shot of this strange folder named mgal_data that contains all the previous images from my earlier and older version of Gallery Pro. They been switched to some type of text file but still contain the original image name? At a total loss as to how to properly migrate them back to the Gallery?   
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2024, 06:12:22 PM
Albums is where the actual pictures.
 Verify your gallery url should be https://www.yoursite.com/gallery/

Title: Re: SMF Gallery
Post by: fmofmpls on April 16, 2024, 06:28:43 PM
Quote from: vbgamer45 on April 16, 2024, 06:12:22 PMAlbums is where the actual pictures.
 Verify your gallery url should be https://www.yoursite.com/gallery/



Yes, my Gallery url is https://www.yoursite.com/forum/gallery/

And all the pics inside the albums are  text/x-generic files  Is that normal?
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2024, 06:30:25 PM
I would need to see a broken image url. Could be a permission problem.
Could be files don't exist in the path.
Title: Re: SMF Gallery
Post by: fmofmpls on April 16, 2024, 06:43:14 PM
When I try and use the direct link url in my browser I get the following error:  Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Gallery
Post by: vbgamer45 on April 16, 2024, 08:09:10 PM
Does that file exist in the path in the gallery folder