Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4287
Latest: ArromGomwef
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43770
Total Topics: 7598
Most Online Today: 96
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 45
Total: 46

Author Topic: Error Trying to Re-Order Categories  (Read 8276 times)

0 Members and 1 Guest are viewing this topic.

Offline MatthewSchenker

  • Member
  • *
  • Posts: 6
    • View Profile
    • Festool Owners Group
Error Trying to Re-Order Categories
« on: May 30, 2007, 08:10:42 am »
Hello,
I have been using SMF Gallery for a while and it's a great little application.  But the other day, I was trying to put my categories in alphabetical order.  Mostly, I can shoft my categories up and down with no problems.

However, any time I tried to shift a category up or down past a particular spot I get this error:

There is no category above the current one.

Can someone tell me how to fix this?  I've attached a screen shot to help diagnose the issue.

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16664
    • View Profile
Re: Error Trying to Re-Order Categories
« Reply #1 on: May 30, 2007, 06:26:47 pm »
I haven't yet fixed for it the Lite version on my todo list.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16664
    • View Profile
Re: Error Trying to Re-Order Categories
« Reply #2 on: May 30, 2007, 10:26:04 pm »
Fix released for SMF Gallery Lite.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline MatthewSchenker

  • Member
  • *
  • Posts: 6
    • View Profile
    • Festool Owners Group
Re: Error Trying to Re-Order Categories
« Reply #3 on: May 31, 2007, 07:34:57 am »
Excellent!  How do I apply the fix?  Do I need to uninstall my gallery and re-install the new one?  Or is there a way to change a few lines of code?

That was fast!

Offline Minno

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 1
    • View Profile
Re: Error Trying to Re-Order Categories
« Reply #4 on: May 31, 2007, 11:03:51 am »
A similar issue for me, however, when I click the "up" or "down" in order to change the order, I get the following error message:

Unknown column 'ID_PARENT' in 'field list'
File: D:\...\Sources\Gallery.php
Line: 1603

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16664
    • View Profile
Re: Error Trying to Re-Order Categories
« Reply #5 on: May 31, 2007, 07:17:48 pm »
Excellent!  How do I apply the fix?  Do I need to uninstall my gallery and re-install the new one?  Or is there a way to change a few lines of code?

That was fast!
Yes unistall and reinstall the gallery. The category reordering was only a couple of code changes. But version 1.7.3 adds some SMF Shop settings to customize as well.

A similar issue for me, however, when I click the "up" or "down" in order to change the order, I get the following error message:

Unknown column 'ID_PARENT' in 'field list'
File: D:\...\Sources\Gallery.php
Line: 1603
Fixed forgot that the lite does not have sub categories.

Version 1.7.3 released
Fixed category reordering
Added SMF Shop settings to add points if a user uploads a picture or posts a comment
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline MatthewSchenker

  • Member
  • *
  • Posts: 6
    • View Profile
    • Festool Owners Group
Re: Error Trying to Re-Order Categories
« Reply #6 on: May 31, 2007, 08:11:16 pm »
I uninstalled the previous version, and then installed the new version.

But I'm still getting the same error.  Even worse, now I can't move any category in any direction!

Also, now I have two entries for the Gallery in my main menu.

Please help!

Screen shot attached.
« Last Edit: May 31, 2007, 08:13:04 pm by MatthewSchenker »

Offline MatthewSchenker

  • Member
  • *
  • Posts: 6
    • View Profile
    • Festool Owners Group
Re: Error Trying to Re-Order Categories
« Reply #7 on: May 31, 2007, 08:28:45 pm »
I just noticed something else...
It is reordering the categories every time I open the Gallery window.
Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16664
    • View Profile
Re: Error Trying to Re-Order Categories
« Reply #8 on: May 31, 2007, 08:31:56 pm »
Updated downloads try it from
http://www.smfhacks.com/hacks/SMF-Gallery-Lite.html

The two menu tabs seems that code was added twice look inside index.template.php and inside the menu function and remove the second entry for the gallery.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline MatthewSchenker

  • Member
  • *
  • Posts: 6
    • View Profile
    • Festool Owners Group
Re: Error Trying to Re-Order Categories
« Reply #9 on: May 31, 2007, 08:50:44 pm »
Everything works fine now.  Thank you!

I uninstalled it and then re-installed it using the one you mention (instead of the one from the SMF site).

I also located the duplicate code, which was located in the Themes/default/index.template.php file:

// the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '[/url]
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4862 Views
Last post January 18, 2007, 05:41:51 pm
by SMFHacks
4 Replies
6762 Views
Last post June 16, 2007, 02:58:22 pm
by dklassen
1 Replies
5246 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
1 Replies
2303 Views
Last post March 04, 2010, 11:30:44 pm
by SMFHacks
1 Replies
11366 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks

+- Recent Topics

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Trying to access array offset on null by SMFHacks
April 09, 2025, 07:39:10 am

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

How does a member add a Classified Listing? by SMFHacks
March 28, 2025, 08:05:50 pm

Auto converting to webp or AVIF by [chrisB]
March 28, 2025, 01:46:00 pm

Thumbnail creation settings by SMFHacks
March 28, 2025, 12:42:51 pm

Cookie consent banner? by SMFHacks
March 26, 2025, 02:19:49 pm

Bulk Upload Frozen by SMFHacks
March 26, 2025, 07:58:13 am

Community suite buying question by SMFHacks
March 25, 2025, 11:26:20 am

Downloading with Zero Credits? by SMFHacks
March 23, 2025, 01:40:50 pm

Powered by EzPortal