phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

[RC] Simple Subforums - Categories Move Fix 1.0.0

Goto page 1, 2  Next
 
Search this topic... | Search MOD Development... | Search Box
Register or Login to Post    Index » MOD Development  Previous TopicPrint TopicNext Topic
Author Message
ABDev
Board Member



Joined: 01 Jun 2009

Posts: 38


flag
PostPosted: Mon Aug 10, 2009 1:04 am 
Post subject: Simple Subforums - Categories Move Fix 1.0.0

MOD Name : Simple Subforums - Categories Move Fix
MOD Author : ABDev
MOD Description : When you try to change the categories order, these ones don't move.

MOD Version : 1.0.0

MOD Restriction : This fix is only for Simple Subforums MOD.



fix-ss_100.zip
 Description:
Simple Subforums - Categories Move Fix 1.0.0

Download
 Filename:  fix-ss_100.zip
 Filesize:  1.15 KB
 Downloaded:  973 Time(s)

Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Mon Aug 10, 2009 6:47 am 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Very very nice!
Thank you very much!
Back to top
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Tue Aug 11, 2009 2:02 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Nice! icon_biggrin.gif
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Fri Sep 11, 2009 2:34 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Abdev,
can you please check that I did not make anything wrong? These are the parts I modified in my admin_forums.php... the parts to find were slightly different so I guess I have still to add something... in your modified part... please help.

Code:
//-- mod : simple subforums - 'move' fix ---------------------------------------
//-- delete
/*-MOD
            if( $move > 0 )
            {
               $sql = "SELECT forum_id, forum_order FROM " . FORUMS_TABLE . " WHERE cat_id = '$cat_id' AND forum_parent = '0' AND forum_order > '" . $forum_info['forum_order'] . "' ORDER BY forum_order ASC";
            }
            
            else
            {
               $sql = "SELECT forum_id, forum_order FROM " . FORUMS_TABLE . " WHERE cat_id = '$cat_id' AND forum_parent = '0' AND forum_order < '" . $forum_info['forum_order'] . "' ORDER BY forum_order DESC";
            }
MOD-*/
//-- add
            $move_order = ($move > 0) ? '> ' : '< ';
            $sql = 'SELECT forum_id, forum_order FROM ' . FORUMS_TABLE . '
               WHERE cat_id = ' . $cat_id . '
                  AND forum_parent = 0
                  AND forum_order ' . $move_order . $forum_info['forum_order'] . '
               ORDER BY forum_order ASC';
//-- fin mod : simple subforums - 'move' fix -----------------------------------
            if( !($result = $db->sql_query($sql)) )


Code:
               // Swap forum orders
//-- mod : simple subforums - 'move' fix ---------------------------------------
//-- delete
/*-MOD
               $sql = "UPDATE " . FORUMS_TABLE . " SET forum_order = '" . $row['forum_order'] . "' WHERE forum_id = '$forum_id'";
               $db->sql_query($sql);
               
               $sql = "UPDATE " . FORUMS_TABLE . " SET forum_order = '" . $forum_info['forum_order'] . "' WHERE forum_id = " . $row['forum_id'];
               $db->sql_query($sql);
MOD-*/
//-- add
               $sql = 'UPDATE ' . FORUMS_TABLE . ' SET forum_order = ' . $row['forum_order'] . '
                  WHERE forum_id = ' . $forum_id;
               $db->sql_query($sql);

               $sql = 'UPDATE ' . FORUMS_TABLE . ' SET forum_order = ' . $forum_info['forum_order'] . '
                  WHERE forum_id = ' . $row['forum_id'];
               $db->sql_query($sql);
//-- fin mod : simple subforums - 'move' fix -----------------------------------
            }
         }
         
         else
         {
         // End Simple Subforums MOD
Back to top
ABDev
Board Member



Joined: 01 Jun 2009

Posts: 38


flag
PostPosted: Wed Sep 23, 2009 11:58 am 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Give me your file, it'll be faster icon_smile.gif.
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Wed Sep 23, 2009 9:51 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

ABDev wrote:
Give me your file, it'll be faster icon_smile.gif.


Thanks ABDev, I attach here my original file, unmodified!



admin_forums.zip
 Description:
To be modified accordingly... by ABDev.

Download
 Filename:  admin_forums.zip
 Filesize:  9.73 KB
 Downloaded:  1081 Time(s)

Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Fri Oct 23, 2009 5:26 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

I now have a modified Simple Subforums, thanks to ABDev.
It is possible to move the forums.
BUT: when moving forums UP, they are moved to the absolute TOP of the category.
The I can move them down step by step.
Is it supposed to be like that?

/Holger
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Sat Oct 31, 2009 3:03 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

hey Holger,
do you know where may I contact ABDev? I am still waiting for the modification above...
From this forum is not possible to send private messages... so I don't have a clue on how to contact him directly icon_sad.gif
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Sat Oct 31, 2009 4:25 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Sorry, no idea! icon_redface.gif
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Wed Nov 04, 2009 9:41 am 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Holger wrote:
I now have a modified Simple Subforums, thanks to ABDev.
It is possible to move the forums.
BUT: when moving forums UP, they are moved to the absolute TOP of the category.
The I can move them down step by step.
Is it supposed to be like that?

/Holger

ABDev, do you think you can have a look at this issue?
The sorting of the forums is feeling random when moving up.
I had to re-order the forums in a category when moved one forum up.
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Thu Nov 05, 2009 4:12 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

Holger,
we need to join our forces to contact ABDev in some other way as it seems he's not watching over here anymore...
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Thu Nov 12, 2009 3:33 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

A little update: I have tried to contact our friend ABDev in some other way... Hopefully he will come back...soon icon_rolleyes.gif
Back to top
ABDev
Board Member



Joined: 01 Jun 2009

Posts: 38


flag
PostPosted: Wed Nov 18, 2009 12:45 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

I'm back icon_smile.gif.
I look at this tomorrow icon_wink.gif.
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Wed Nov 18, 2009 12:56 pm 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

GREAT! icon_biggrin.gif
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Sun Nov 22, 2009 9:26 am 
Post subject: Re: Simple Subforums - Categories Move Fix 1.0.0

ABDev wrote:
I'm back icon_smile.gif.
I look at this tomorrow icon_wink.gif.


ABDev..... but....

http://www.phpbb2refugees.com/viewtopic.php?p=4259#4259

icon_redface.gif
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Development  Previous TopicPrint TopicNext Topic
Page 1 of 2 All times are GMT
Goto page 1, 2  Next
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0313 seconds using 17 queries. (SQL 0.0029 Parse 0.0025 Other 0.0259)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo