Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 28
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 34
Total: 34

Author Topic: Error Trying to Re-Order Categories  (Read 7951 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: 16524
    • 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: 16524
    • 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: 16524
    • 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: 16524
    • 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
4749 Views
Last post January 18, 2007, 05:41:51 pm
by SMFHacks
4 Replies
6552 Views
Last post June 16, 2007, 02:58:22 pm
by dklassen
1 Replies
5081 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
1 Replies
2241 Views
Last post March 04, 2010, 11:30:44 pm
by SMFHacks
1 Replies
11176 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal