Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 161
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 143
Total: 143

Author Topic: Error Trying to Re-Order Categories  (Read 7654 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: 16452
    • 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: 16452
    • 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

  • 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: 16452
    • 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: 16452
    • 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
4584 Views
Last post January 18, 2007, 05:41:51 pm
by SMFHacks
4 Replies
6360 Views
Last post June 16, 2007, 02:58:22 pm
by dklassen
1 Replies
4945 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
1 Replies
2191 Views
Last post March 04, 2010, 11:30:44 pm
by SMFHacks
1 Replies
11066 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal