Advertisement:

Author Topic: SMF Gallery  (Read 1199326 times)

Offline Cloudmaster

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF Gallery
« Reply #3940 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

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,190
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Gallery
« Reply #3941 on: May 07, 2019, 03:28:46 PM »
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

Offline Cloudmaster

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF Gallery
« Reply #3942 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

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,190
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Gallery
« Reply #3943 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.
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

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3944 on: May 18, 2019, 02:14:30 PM »
How can I manually remove this block from the admin area?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,190
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Gallery
« Reply #3945 on: May 18, 2019, 04:11:41 PM »
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

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3946 on: May 18, 2019, 06:05:04 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' => '',
         ),

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,972
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Gallery
« Reply #3947 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

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3948 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

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,972
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Gallery
« Reply #3949 on: May 18, 2019, 07:56:37 PM »
Look on them hooks.php. should show where it is

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3950 on: May 18, 2019, 10:40:16 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?

Online SychO

  • Lead Customizer
  • Sophist Member
  • *
  • Posts: 1,196
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SMF Gallery
« Reply #3951 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

Imazighen

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,976
    • StoryBB/StoryBB on GitHub
Re: SMF Gallery
« Reply #3952 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,972
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Gallery
« Reply #3953 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.

Code: [Select]
'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.

Code: [Select]
'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']),

),
),),
),

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,972
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Gallery
« Reply #3954 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,976
    • StoryBB/StoryBB on GitHub
Re: SMF Gallery
« Reply #3955 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3956 on: May 19, 2019, 11:10:01 AM »
Thanks fellas... I can't believe I missed the admin.php edit.

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

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 773
Re: SMF Gallery
« Reply #3957 on: May 19, 2019, 11:58:14 AM »
Thanks fellas... I can't believe I missed the admin.php edit.

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?

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,587
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Gallery
« Reply #3958 on: May 20, 2019, 10:05:17 AM »
No, it's just for one of my sites.