Thread Rating:
  • 44 Vote(s) - 3.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Plugin Changes coming in 1.6.5
#51
Not Solved
It's pretty simple AFAICS.

PHP Code:
$plugins->add_hook("datahandler_user_update ""do_something");

function 
do_something($data) {

    
//do something here



becomes:


PHP Code:
$plugins->add_hook("datahandler_user_update ""do_something");

function 
do_something(&$data) {

    
//do something here



and:

PHP Code:
$plugins->add_hook("showthread_start""do_something");

function 
do_something($showthread) {

    
//do something here



becomes:

PHP Code:
$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)
#52
Not Solved
I am curious on not sure on code modicatoin plugin ? I figure out!
i wonder on 1.6.4 update?
#53
Not Solved
(10-30-2011, 03:58 PM)Malcolm. Wrote:  It's pretty simple AFAICS.

PHP Code:
$plugins->add_hook("datahandler_user_update ""do_something");

function 
do_something($data) {

    
//do something here



becomes:


PHP Code:
$plugins->add_hook("datahandler_user_update ""do_something");

function 
do_something(&$data) {

    
//do something here



and:

PHP Code:
$plugins->add_hook("showthread_start""do_something");

function 
do_something($showthread) {

    
//do something here



becomes:

PHP Code:
$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
Personal site: CommunityPlugins.com

Please do not PM me for MyBB support here. Use the forums, they are here for a reason. Thanks.
#54
Not Solved
(10-29-2011, 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.
#55
Not Solved
(10-30-2011, 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.
#56
Not Solved
(10-30-2011, 06:46 PM)Dylan M. Wrote:  
(10-30-2011, 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
#57
Not Solved
Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....
[Image: 1zsw1z.png]
#58
Not Solved
(11-01-2011, 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.
#59
Not Solved
(11-01-2011, 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.
#60
Not Solved
(11-01-2011, 07:48 PM)Malcolm. Wrote:  
(11-01-2011, 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?
[Image: 1zsw1z.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)