2014-10-26, 09:40 PM
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
to
^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.
and when trying to preview the moderation i get this
So looking at inc/datahandlers/moderate.php on line 386 I see
aaaaaand i lost myself and gave up for now
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