SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

chrishoggy

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

vbgamer45

#41
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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

chrishoggy

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

?>

vbgamer45

Yeah, I would just copy and past that code near the bottom before the ?>
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

chrishoggy

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

bayfresh

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.

chrishoggy

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

vbgamer45

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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bayfresh

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

vbgamer45

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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bayfresh

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 ?

vbgamer45

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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

steve in houston

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.

houston

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



Little15

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

Vinspire

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

steve in houston

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

chrishoggy

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?

Skipdawg

Dose not uninstall very good at all either. Stuff left all over the place.  :o
Skipdawg's Community

Powered by SMF 1.1.3

Hack

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

Advertisement: