News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Gallery

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

Previous topic - Next topic

Cloudmaster

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

vbgamer45

Copy this file to your sources folder and try conversion again
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

Cloudmaster

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

vbgamer45

Glad that helped. Yeah aeva has some odd cases where it gets tricky to import some of the data.
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

Biology Forums

How can I manually remove this block from the admin area?

vbgamer45

It's in your Sources/Subs.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

Biology Forums

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' => '',
         ),

Mick.

@sf, I would think it's on admin template file.?? Perhaps pull the file and search for gallery on there

Biology Forums

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

Mick.

Look on them hooks.php. should show where it is

Biology Forums

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?

SychO

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
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Arantor

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.

Mick.

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']),

),
),),
),

Mick.

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.

Arantor

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.

Biology Forums

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

njtweb

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?

Biology Forums

No, it's just for one of my sites.

Hatshepsut

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

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

Advertisement: