MyBB Community Forums
Plugin Changes coming in 1.6.5 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Plugin Changes coming in 1.6.5 (/thread-106729.html)

Pages: 1 2 3 4 5 6 7


RE: Plugin Changes coming in 1.6.5 - Nathan Malcolm - 2011-10-30

It's pretty simple AFAICS.


$plugins->add_hook("datahandler_user_update ", "do_something");

function do_something($data) {

    //do something here

}


becomes:



$plugins->add_hook("datahandler_user_update ", "do_something");

function do_something(&$data) {

    //do something here

}


and:


$plugins->add_hook("showthread_start", "do_something");

function do_something($showthread) {

    //do something here

}


becomes:


$plugins->add_hook("showthread_start", "do_something");

function do_something($showthread) {

    //do something here

    return $showthread;

}


(At least that is what I've gathered from the information provided)


RE: Plugin Changes coming in 1.6.5 - Dragonzsoul - 2011-10-30

I am curious on not sure on code modicatoin plugin ? I figure out!
i wonder on 1.6.4 update?


RE: Plugin Changes coming in 1.6.5 - pavemen - 2011-10-30

(2011-10-30, 03:58 PM)Malcolm. Wrote: It's pretty simple AFAICS.


$plugins->add_hook("datahandler_user_update ", "do_something");

function do_something($data) {

    //do something here

}


becomes:



$plugins->add_hook("datahandler_user_update ", "do_something");

function do_something(&$data) {

    //do something here

}


and:


$plugins->add_hook("showthread_start", "do_something");

function do_something($showthread) {

    //do something here

}


becomes:


$plugins->add_hook("showthread_start", "do_something");

function do_something($showthread) {

    //do something here

    return $showthread;

}


(At least that is what I've gathered from the information provided)

exactly what I posted several times previously in this thread


RE: Plugin Changes coming in 1.6.5 - Alan S. - 2011-10-30

(2011-10-29, 05:04 PM)Solidus Wrote: So what changes are needed to this file to make it work?

Part of that plugin will become pointless with 1.6.5 - making signature links nofollow will become a core feature.


RE: Plugin Changes coming in 1.6.5 - Dylan M. - 2011-10-30

(2011-10-30, 02:51 PM)FBI Wrote: dang... updating 1.6.5 will takes about 2-3 nights for newbie Wink

Thats part of why we've got this information out there now. Hopefully plugin authors will get updates rolled out for their plugins before the actual release.


RE: Plugin Changes coming in 1.6.5 - Hay_Den - 2011-10-31

(2011-10-30, 06:46 PM)Dylan M. Wrote:
(2011-10-30, 02:51 PM)FBI Wrote: dang... updating 1.6.5 will takes about 2-3 nights for newbie Wink

Thats part of why we've got this information out there now. Hopefully plugin authors will get updates rolled out for their plugins before the actual release.

I hope too.. Wink


RE: Plugin Changes coming in 1.6.5 - qwertyx - 2011-11-01

Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....


RE: Plugin Changes coming in 1.6.5 - Nathan Malcolm - 2011-11-01

(2011-11-01, 07:43 PM)qwertyx Wrote: Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....

Combine the examples from my post and pavemen's script, and you've got everything you need to update them yourself. It doesn't take an expert programmer to copy and paste some variables.


RE: Plugin Changes coming in 1.6.5 - Dylan M. - 2011-11-01

(2011-11-01, 07:43 PM)qwertyx Wrote: Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....

You really shouldn't be using unmaintained plugins anyways. Eventually you will run into problems.


RE: Plugin Changes coming in 1.6.5 - qwertyx - 2011-11-01

(2011-11-01, 07:48 PM)Malcolm. Wrote:
(2011-11-01, 07:43 PM)qwertyx Wrote: Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....

Combine the examples from my posts and pavemen's script, and you've got everything you need to update them yourself. It doesn't take an expert programmer to copy and paste some variables.


Look for this, it is good?
before
Quote:function profilecomments_edit_group_do()
{
global $updated_group, $mybb;

$updated_group['canmanagecomments'] = $mybb->input['canmanagecomments'];
$updated_group['cansendcomments'] = $mybb->input['cansendcomments'];
$updated_group['caneditselfcomments'] = $mybb->input['caneditselfcomments'];
$updated_group['candeleteselfcomments'] = $mybb->input['candeleteselfcomments'];
}

after
Quote:function profilecomments_edit_group_do(&)
{
global $updated_group, $mybb;

$updated_group['canmanagecomments'] = $mybb->input['canmanagecomments'];
$updated_group['cansendcomments'] = $mybb->input['cansendcomments'];
$updated_group['caneditselfcomments'] = $mybb->input['caneditselfcomments'];
$updated_group['candeleteselfcomments'] = $mybb->input['candeleteselfcomments'];
}

It's ok?