Thread Rating:
  • 44 Vote(s) - 3.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Plugin Changes coming in 1.6.5
#41
Not Solved
(2011-10-29, 02:42 PM)Dylan M. Wrote:
(2011-10-29, 10:54 AM)crazy4cs Wrote: Dang, gotta do long off changes. Oh boy, this is gonna pretty sum up my work.

I did all of my plugins in under 5 minutes. It isn't really that hard man.

It is? So what changes are needed to this file to make it work?

$plugins->add_hook('postbit', 'nfsigs_postbit');
$plugins->add_hook('member_profile_end', 'nfsigs_profile');

function nfsigs_info()
{
    return array(
        'name'          => 'Nofollow Signatures & Member Websites',
        'description'   => 'Makes signatures and members website link nofollow in both threads and member profiles.',
		'website'		=> 'http://petforums.biz',
		'author'		=> 'AJS',
		'authorsite'	=> 'http://petforums.biz',
		'version'		=> '1.1',
		'compatibility'	=> '16*',
		'guid'			=> '3d389cf01bb56abab0715c72b5a64aee'
	);
}

function nfsigs_postbit($post)
{
	$post['signature'] = str_replace('<a href="', '<a rel="nofollow" href="', $post['signature']);
	$post['button_www'] = str_replace('<a href="', '<a rel="nofollow" href="', $post['button_www']);
}

function nfsigs_profile()
{
	global $db, $mybb, $website, $signature;
	$website = str_replace('<a href="', '<a rel="nofollow" href="', $website);
	$signature = str_replace('<a href="', '<a rel="nofollow" href="', $signature);
}

?>

Issue Type: Return Code
Hook Name: postbit
Function Called: nfsigs_postbit

If I see one example, it may be easier to do the rest.
[Image: hdoE.png]
m1ne.net - coming soon


Messages In This Thread
Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-27, 06:36 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-27, 08:21 PM
RE: Plugin Changes coming in 1.6.5 - by labrocca - 2011-10-27, 08:25 PM
RE: Plugin Changes coming in 1.6.5 - by Jaketfg - 2011-10-27, 11:51 PM
RE: Plugin Changes coming in 1.6.5 - by enhu - 2011-10-28, 03:47 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 02:28 AM
RE: Plugin Changes coming in 1.6.5 - by Rukbat - 2011-10-28, 03:09 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:33 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 04:08 AM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 06:40 AM
RE: Plugin Changes coming in 1.6.5 - by Euan T - 2011-10-28, 09:12 AM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-28, 04:11 PM
RE: Plugin Changes coming in 1.6.5 - by Tomm M - 2011-10-28, 07:45 AM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 02:23 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:28 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 03:29 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 04:23 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-28, 04:29 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 06:03 PM
RE: Plugin Changes coming in 1.6.5 - by sunjava1 - 2011-10-28, 06:44 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 06:46 PM
RE: Plugin Changes coming in 1.6.5 - by sunjava1 - 2011-10-28, 06:58 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 07:13 PM
RE: Plugin Changes coming in 1.6.5 - by adbrad - 2011-10-28, 07:37 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-28, 07:38 PM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-28, 10:56 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-28, 11:14 PM
RE: Plugin Changes coming in 1.6.5 - by Maj - 2011-10-29, 12:00 AM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-29, 12:30 AM
RE: Plugin Changes coming in 1.6.5 - by Maj - 2011-10-29, 05:15 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-29, 06:00 AM
RE: Plugin Changes coming in 1.6.5 - by crazy4cs - 2011-10-29, 10:54 AM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-29, 02:42 PM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-29, 05:04 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-29, 10:41 PM
RE: Plugin Changes coming in 1.6.5 - by Alan S. - 2011-10-30, 06:18 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-29, 04:56 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-30, 04:05 AM
RE: Plugin Changes coming in 1.6.5 - by Solidus - 2011-10-30, 02:13 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 02:37 PM
RE: Plugin Changes coming in 1.6.5 - by pdtrx - 2011-10-30, 02:22 PM
RE: Plugin Changes coming in 1.6.5 - by FBI - 2011-10-30, 02:51 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-30, 03:11 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 03:23 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-30, 03:28 PM
RE: Plugin Changes coming in 1.6.5 - by pavemen - 2011-10-30, 04:57 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-10-30, 06:46 PM
RE: Plugin Changes coming in 1.6.5 - by Hay_Den - 2011-10-31, 01:40 AM
RE: Plugin Changes coming in 1.6.5 - by qwertyx - 2011-11-01, 07:43 PM
RE: Plugin Changes coming in 1.6.5 - by qwertyx - 2011-11-01, 08:00 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 07:56 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 08:01 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-01, 08:03 PM
RE: Plugin Changes coming in 1.6.5 - by Dylan M. - 2011-11-02, 04:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)