MyBB Community Forums

Full Version: Plugin Changes coming in 1.6.5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
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)
I am curious on not sure on code modicatoin plugin ? I figure out!
i wonder on 1.6.4 update?
(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
(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.
(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.
(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
Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....
(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.
(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.
(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?
Pages: 1 2 3 4 5 6 7