dracoblue.net

Quick-Edit button broken in Simple Machines Forum

Thanks to Korl for pointing out, that the QuickEdit-Button in SMF won't work in locked topics, even if the user has rights to do so.

I took some minutes and found out what the reason was, the [em]$moderate_boards[/em] variable is not set properly and not even loaded.

Quickfix:

Open

Sources/Post.php

Replace line 2050f (containing the following):

(!isset($_REQUEST['modify']) || (!empty($moderate_boards) && $moderate_boards[0] == 0) ? '' : '
AND (t.locked = 0' . (empty($moderate_boards) ? '' : ' OR b.ID_BOARD IN (' . implode(', ', $moderate_boards)) . ')')

And replace it with:

""

Now put right after the

        mysql_free_result($request);

in line 2059 the following:

        if (!empty($row['locked'])) isAllowedTo('moderate_board');

Thats it, have fun! Bugreport with Fix has been

posted at official SMF-Site.

In open source, php, smf by
@ 28 Oct 2007, Comments at Reddit & Hackernews

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About