Current time: 04-17-2014, 06:40 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 44 Votes - 3.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin Changes coming in 1.6.5
10-30-2011, 03:58 PM (This post was last modified: 10-30-2011 03:58 PM by Nathan Malcolm.)
Post: #51
Not Solved RE: Plugin Changes coming in 1.6.5
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)

Nathan Malcolm
MyBB Core Developer

Fighting the spam: Core settings and tricks
Visit this user's website Find all posts by this user
10-30-2011, 04:55 PM
Post: #52
Not Solved RE: Plugin Changes coming in 1.6.5
I am curious on not sure on code modicatoin plugin ? I figure out!
i wonder on 1.6.4 update?
Find all posts by this user
10-30-2011, 04:57 PM
Post: #53
Not Solved RE: Plugin Changes coming in 1.6.5
(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.
Visit this user's website Find all posts by this user
10-30-2011, 06:18 PM
Post: #54
Not Solved RE: Plugin Changes coming in 1.6.5
(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.
Find all posts by this user
10-30-2011, 06:46 PM
Post: #55
Not Solved RE: Plugin Changes coming in 1.6.5
(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.

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
10-31-2011, 01:40 AM
Post: #56
Not Solved RE: Plugin Changes coming in 1.6.5
(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
Find all posts by this user
11-01-2011, 07:43 PM
Post: #57
Not Solved RE: Plugin Changes coming in 1.6.5
Unfortunately, most of plugins no longer supported by their authors, eg: ChangUonDyU - Extra File Chatbox, Profile Comments....

[Image: 1zsw1z.png]
Find all posts by this user
11-01-2011, 07:48 PM (This post was last modified: 11-01-2011 07:57 PM by Nathan Malcolm.)
Post: #58
Not Solved RE: Plugin Changes coming in 1.6.5
(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.

Nathan Malcolm
MyBB Core Developer

Fighting the spam: Core settings and tricks
Visit this user's website Find all posts by this user
11-01-2011, 07:56 PM
Post: #59
Not Solved RE: Plugin Changes coming in 1.6.5
(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.

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
11-01-2011, 08:00 PM
Post: #60
Not Solved RE: Plugin Changes coming in 1.6.5
(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]
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread:

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication