Thread Rating:
  • 5 Vote(s) - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] ModNotice Plus 1.5.5
#90
Reply to my own question, tried to see if i could get it working myself;

changed compatibility line, check, installs, puts global templates in fine.
One template it inserts needs to be modified.

postbit_moderator_edit needs to be changed from


<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_edit.gif" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" /></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit({$post['pid']});" class="popup_item">{$lang->postbit_quick_edit}</a></div>
<div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div>
<div class="popup_item_container"><a href="modnotice.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_post_moderate}</a></div></div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		new PopupMenu("edit_post_{$post['pid']}");
	}
// -->
</script>

to


<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}" title="{$lang->postbit_edit}" class="postbit_edit"><span>{$lang->postbit_button_edit}</span></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="javascript:;" class="popup_item quick_edit_button" id="quick_edit_post_{$post['pid']}">{$lang->postbit_quick_edit}</a></div>
<div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div>
<div class="popup_item_container"><a href="modnotice.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_post_moderate}</a></div></div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		$("#edit_post_{$post['pid']}").popupMenu();
	}
// -->
</script>

^that is for the default/global theme, some other themes you'll have to make add a  postbit_moderator_edit template in your current themes template set different class for the button, etc, you get the gist though.

The new template works for the popup button, and it directs to a moderate page but when actually submitting a moderation edit I get this.

( ! ) Fatal error: Call to undefined method pluginSystem::run_hooks_by_ref() in C:\wamp\www\inc\datahandlers\moderate.php on line 386
Call Stack
#	Time	Memory	Function	Location
1	0.0010	392072	{main}( )	..\modnotice.php:0
2	0.0840	8966952	PostDataHandler->validate_post( )	..\modnotice.php:201


and when trying to preview the moderation i get this

( ! ) Fatal error: Call to undefined method pluginSystem::run_hooks_by_ref() in C:\wamp\www\inc\datahandlers\moderate.php on line 386
Call Stack
#	Time	Memory	Function	Location
1	0.0020	392424	{main}( )	..\modnotice.php:0
2	0.1010	8977208	PostDataHandler->validate_post( )	..\modnotice.php:448

So looking at inc/datahandlers/moderate.php on line 386 I see

$plugins->run_hooks_by_ref("datahandler_moderate_validate_post", $this);

aaaaaand i lost myself and gave up for now
Reply


Messages In This Thread
ModNotice Plus 1.5.5 - by Prtik - 2011-09-18, 04:17 PM
RE: ModNotice Plus 1.5 - by Odin A. - 2011-09-21, 08:48 PM
RE: ModNotice Plus 1.5 - by Prtik - 2011-09-22, 07:25 AM
RE: ModNotice Plus 1.5 - by Odin A. - 2011-09-23, 12:47 AM
RE: ModNotice Plus 1.5.1 - by lexy - 2011-09-22, 01:09 PM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-09-22, 02:24 PM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-09-23, 06:31 AM
RE: ModNotice Plus 1.5.1 - by hamada27588 - 2011-09-29, 06:03 PM
RE: ModNotice Plus 1.5.1 - by Robbert - 2011-10-04, 02:30 PM
RE: ModNotice Plus 1.5.1 - by Omar G. - 2011-10-05, 07:21 AM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-10-05, 09:41 PM
RE: ModNotice Plus 1.5.1 - by Odin A. - 2011-10-05, 11:47 PM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-10-06, 05:17 AM
RE: ModNotice Plus 1.5.1 - by BeeJayZZR - 2011-11-25, 03:53 PM
RE: ModNotice Plus 1.5.1 - by townsbg - 2011-12-14, 06:32 AM
RE: ModNotice Plus 1.5.1 - by Divertino - 2011-11-28, 03:30 PM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-11-30, 06:22 PM
RE: ModNotice Plus 1.5.1 - by Prtik - 2011-11-28, 04:39 PM
RE: ModNotice Plus 1.5.1 - by BeeJayZZR - 2011-11-28, 04:46 PM
RE: ModNotice Plus 1.5.1 - by Omar G. - 2011-11-28, 08:33 PM
RE: ModNotice Plus 1.5.1 - by Divertino - 2011-11-28, 11:53 PM
RE: ModNotice Plus 1.5.1 - by Omar G. - 2011-11-29, 01:41 AM
RE: ModNotice Plus 1.5.1 - by BleepyEvans - 2011-11-29, 03:07 AM
RE: ModNotice Plus 1.5.2 - by Prtik - 2011-11-29, 09:59 PM
RE: ModNotice Plus 1.5.2 - by BleepyEvans - 2011-11-29, 10:33 PM
RE: ModNotice Plus 1.5.2 - by Divertino - 2011-11-30, 03:19 PM
RE: ModNotice Plus 1.5.2 - by alv4 - 2011-11-30, 04:53 PM
RE: ModNotice Plus 1.5.2 - by Divertino - 2011-11-30, 09:19 PM
RE: ModNotice Plus 1.5.2 - by Prtik - 2011-12-14, 12:51 PM
RE: ModNotice Plus 1.5.2 - by townsbg - 2011-12-15, 05:45 AM
RE: ModNotice Plus 1.5.2 - by Alexander_A - 2012-01-04, 05:48 PM
RE: ModNotice Plus 1.5.2 - by Prtik - 2012-01-04, 08:09 PM
RE: ModNotice Plus 1.5.2 - by thexinfo - 2012-01-26, 03:42 AM
RE: ModNotice Plus 1.5.2 - by Prtik - 2012-01-26, 06:54 AM
RE: ModNotice Plus 1.5.2 - by GunnerAIO - 2012-04-23, 08:37 AM
RE: ModNotice Plus 1.5.2 - by Prtik - 2012-04-23, 09:18 AM
RE: ModNotice Plus 1.5.2 - by bogdan - 2012-06-12, 09:08 PM
RE: ModNotice Plus 1.5.2 - by VaiN474 - 2012-08-03, 11:32 AM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-21, 08:06 AM
RE: ModNotice Plus 1.5.2 - by Omar G. - 2012-09-24, 06:50 PM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-25, 05:12 PM
RE: ModNotice Plus 1.5.2 - by RocketFoot - 2012-09-21, 12:48 PM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-21, 01:43 PM
RE: ModNotice Plus 1.5.2 - by RocketFoot - 2012-09-21, 02:35 PM
RE: ModNotice Plus 1.5.2 - by Omar G. - 2012-09-21, 05:50 PM
RE: ModNotice Plus 1.5.2 - by enoz - 2012-09-21, 05:55 PM
RE: ModNotice Plus 1.5.2 - by RocketFoot - 2012-09-21, 06:13 PM
RE: ModNotice Plus 1.5.2 - by crazy4cs - 2012-09-21, 06:45 PM
RE: ModNotice Plus 1.5.2 - by Omar G. - 2012-09-21, 06:51 PM
RE: ModNotice Plus 1.5.2 - by RocketFoot - 2012-09-21, 07:01 PM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-22, 08:11 PM
RE: ModNotice Plus 1.5.2 - by Omar G. - 2012-09-24, 09:28 AM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-24, 06:19 PM
RE: ModNotice Plus 1.5.2 - by Omar G. - 2012-09-25, 06:08 PM
RE: ModNotice Plus 1.5.2 - by ESForum - 2012-09-27, 08:49 AM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-03-20, 03:36 PM
RE: ModNotice Plus 1.5.3 - by Omar G. - 2013-03-21, 12:40 AM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-03-21, 08:55 AM
RE: ModNotice Plus 1.5.3 - by Omar G. - 2013-03-21, 10:54 PM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-03-22, 06:41 AM
RE: ModNotice Plus 1.5.3 - by Omar G. - 2013-03-23, 03:30 AM
RE: ModNotice Plus 1.5.3 - by ESForum - 2013-03-26, 01:59 PM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-03-26, 02:55 PM
RE: ModNotice Plus 1.5.3 - by CptChaosNL - 2013-03-30, 10:30 PM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-04-01, 01:45 PM
RE: ModNotice Plus 1.5.3 - by MSeven - 2013-05-12, 04:50 PM
RE: ModNotice Plus 1.5.3 - by SLAVOO - 2013-06-10, 04:24 PM
RE: ModNotice Plus 1.5.3 - by Prtik - 2013-06-10, 04:47 PM
RE: ModNotice Plus 1.5.3 - by Supryk - 2014-01-07, 03:56 PM
RE: ModNotice Plus 1.5.4 - by Prtik - 2014-01-09, 01:12 PM
RE: ModNotice Plus 1.5.4 - by Supryk - 2014-01-09, 05:11 PM
RE: ModNotice Plus 1.5.4 - by Supryk - 2014-01-12, 08:28 PM
RE: ModNotice Plus 1.5.4 - by Prtik - 2014-01-13, 08:06 AM
RE: ModNotice Plus 1.5.5 - by XgamingX2013 - 2014-03-12, 06:11 PM
RE: ModNotice Plus 1.5.5 - by Whiteneo - 2014-03-12, 06:17 PM
RE: ModNotice Plus 1.5.5 - by XgamingX2013 - 2014-03-12, 07:15 PM
RE: ModNotice Plus 1.5.5 - by Prtik - 2014-03-13, 06:58 AM
RE: ModNotice Plus 1.5.5 - by wallet - 2014-03-13, 08:56 AM
RE: ModNotice Plus 1.5.5 - by Wildcard - 2014-03-13, 04:22 PM
RE: ModNotice Plus 1.5.5 - by wallet - 2014-03-13, 11:27 PM
RE: ModNotice Plus 1.5.5 - by SAEED.M - 2014-03-13, 09:57 PM
RE: ModNotice Plus 1.5.5 - by Cameron:D - 2014-03-14, 12:51 AM
RE: ModNotice Plus 1.5.5 - by XgamingX2013 - 2014-03-14, 08:40 PM
RE: ModNotice Plus 1.5.5 - by Supryk - 2014-07-09, 01:29 PM
RE: ModNotice Plus 1.5.5 - by tomhillepille - 2014-08-28, 04:50 PM
RE: ModNotice Plus 1.5.5 - by p00lz - 2014-10-24, 02:06 PM
RE: ModNotice Plus 1.5.5 - by p00lz - 2014-10-26, 09:40 PM
RE: ModNotice Plus 1.5.5 - by p00lz - 2014-11-08, 04:26 PM
RE: ModNotice Plus 1.5.5 - by Supryk - 2014-11-09, 01:15 PM
RE: ModNotice Plus 1.5.5 - by buzzer - 2015-02-17, 02:43 PM
RE: ModNotice Plus 1.5.5 - by Eldenroot - 2014-11-09, 05:10 PM
RE: ModNotice Plus 1.5.5 - by Supryk - 2014-11-09, 05:18 PM
RE: ModNotice Plus 1.5.5 - by buzzer - 2015-02-22, 12:57 PM
RE: ModNotice Plus 1.5.5 - by zorro100100 - 2019-01-15, 10:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)