News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Gallery

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

Previous topic - Next topic

mickjav

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;

Diego Andrés

No it's just the default value, nothing to do manually it's just install to use, uninstall to remove.

SMF Tricks - Free & Premium Responsive Themes for SMF.

mickjav

Tried Installing on test site but will have to wait for php 8  :'(

Diego Andrés

Should be safe to switch to PHP 8, unless you have some other MOD not supporting it

SMF Tricks - Free & Premium Responsive Themes for SMF.

jsx

Diego, I noticed the following errors in the log:

2: Undefined array key "gallery_path"




Diego Andrés

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

SMF Tricks - Free & Premium Responsive Themes for SMF.

jsx

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!


Mike66

#4287
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%;
}

mickjav

Gallery2.1.template

template_add_picture
template_edit_picture

Mike66

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

mickjav

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

Mike66

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.

Diego Andrés

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

You cannot view this attachment.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mike66

Thanks, sounds good Diego Andres.

Does your updated version work on SMF 2.0.17 and php 7.2.0?

Diego Andrés

No, only SMF 2.1

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mike66

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.


Steve

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?
My pet rock is not feeling well. I think it's stoned.

Diego Andrés

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.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mike66

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



Steve

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*
My pet rock is not feeling well. I think it's stoned.

Advertisement: