Jump to content

Download: (SOS31) Easy Topic Moderation v1.0.1


Adriano Faria

Recommended Posts

Posted

Sorry, I can't get it to work with 3.1.4 completely.


`


Change author: works fine


Copy topic: works fine


Move topic: Seems to work, but clicking th eMove thsi topic button results in: Fatal error: Call to a member function topicMove() on a non-object in /home/fpnadmin/public_html/forum/admin/applications/forums/modules_public/moderate/moderate.php on line 2518


Delete topic: doesn't work, results in an error screen with the message: [#4030] You appear to have submitted an invalid forum.


Rename topic: seems to work, but the fields aren't all displayed properly. When trying to edit, however, I do get a database error (driver error).


Set invisible: generates a driver error straight away.


Pin topic: Fatal error: Call to a member function topicPin() on a non-object in /home/fpnadmin/public_html/forum/admin/applications/forums/modules_public/moderate/moderate.php on line 885


Close topic:Fatal error: Call to a member function topicClose() on a non-object in /home/fpnadmin/public_html/forum/admin/applications/forums/modules_public/moderate/moderate.php on line 1966



Any ideas, tips or suggestions?



Thank you in advance!



Kindest regards,


Wim



Great stuff, got it to work now. I had to disable One-click Ban, and now everything is fine.

Thank you very much for sharing this great add-on!

Kindest regards, Wim
  • 3 weeks later...
  • Replies 97
  • Created
  • Last Reply
Posted

Hook updated to fix the bug when changing topic author. If you use another APP as first page (such as portal or IP.Content), you were redirected to the first page and the author wasn't changed.

  • 2 weeks later...
  • 2 weeks later...
Posted

In adminapplicationsforumsmodules_publicadvancedmanage.php, methods _showChangeAuthorForm and _saveNewAuthor, find:

		if ( !$this->memberData['g_access_cp'] )

		{

			$this->registry->getClass( 'output' )->showError( 'no_permission' );

		}

Change to:

		if ( !$this->memberData['g_is_supmod'] )

		{

			$this->registry->getClass( 'output' )->showError( 'no_permission' );

		}

Posted

One more edit! Open the XML for this hook and find:

	<if test="$this->memberData['g_access_cp']">

		<li><a href='{parse  url="app=forums&amp;module=advanced&amp;section=manage&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;auth_key={$this->member->form_hash}"  base="public"}'  title='{$this->lang->words['mudar_autor_title']}'><img  src='{$this->settings['img_url']}/user.png'  alt='{$this->lang->words['mudar_autor_title']}'  title='{$this->lang->words['mudar_autor_title']}'  />&nbsp;{$this->lang->words['mudar_autor_title']}</a></li>

	</if>

Change to:

	<if test="$this->memberData['g_is_supmod']">

		<li><a href='{parse  url="app=forums&amp;module=advanced&amp;section=manage&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;auth_key={$this->member->form_hash}"  base="public"}'  title='{$this->lang->words['mudar_autor_title']}'><img  src='{$this->settings['img_url']}/user.png'  alt='{$this->lang->words['mudar_autor_title']}'  title='{$this->lang->words['mudar_autor_title']}'  />&nbsp;{$this->lang->words['mudar_autor_title']}</a></li>

	</if>

  • 4 months later...
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...