News:

Join the Facebook Fan Page.

Main Menu

SMF Gallery

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

Previous topic - Next topic

warhonowicz

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
Tell me and I will forget
Show me and I might remember
But involve me and I will understand

SMF 2.0.11 with TP 1.2

Fisch.666

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

vbgamer45

Yes make sure all your Modifications.*.php files has the gallery 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

Siirist

Hi,

I have two issues.

1) While the button (with the word "Gallery") appears and functions, the icon () 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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

vbgamer45

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

Siirist

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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

vbgamer45

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

Siirist

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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

vbgamer45

Glad you have it working!
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

Siirist

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.

Regards,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

vbgamer45

Max Filesize is 1.95kB
You have a setting in the admin of the gallery too small. Make it 50000000
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

Siirist

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
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

vbgamer45

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

phpshiva

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?

muskrat_skull

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? 

vbgamer45

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

Jade Elizabeth

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.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

vbgamer45

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

Jade Elizabeth

How am I going to know if they're shop settings? There has to be a better way than this?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: