NP_AutoJoinBlog.php

original source: in the Nucleus Forum at this forum thread (Author: TrenT)

This plugin was developed by Andrew Black to have new users that register automatically be added to all blogs that you specify in the plugin options. Works with normal Nucleus forms and with NP_phpBB

This plugin only works if you change globalfunctions.php from:

include($DIR_LIBS . 'PARSER.php');
include($DIR_LIBS . 'SKIN.php');
include($DIR_LIBS . 'TEMPLATE.php');
include($DIR_LIBS . 'BLOG.php');
include($DIR_LIBS . 'COMMENTS.php');
include($DIR_LIBS . 'COMMENT.php');
//include($DIR_LIBS . 'ITEM.php');
include($DIR_LIBS . 'NOTIFICATION.php');
include($DIR_LIBS . 'BAN.php');
include($DIR_LIBS . 'PAGEFACTORY.php');
include($DIR_LIBS . 'SEARCH.php');

to this:

include_once($DIR_LIBS . 'PARSER.php');
include_once($DIR_LIBS . 'SKIN.php');
include_once($DIR_LIBS . 'TEMPLATE.php');
include_once($DIR_LIBS . 'BLOG.php');
include_once($DIR_LIBS . 'COMMENTS.php');
include_once($DIR_LIBS . 'COMMENT.php');
//include_once($DIR_LIBS . 'ITEM.php');
include_once($DIR_LIBS . 'NOTIFICATION.php');
include_once($DIR_LIBS . 'BAN.php');
include_once($DIR_LIBS . 'PAGEFACTORY.php');
include_once($DIR_LIBS . 'SEARCH.php');

A core change might be coming to not have to make this modification to the core file globalfunctions.php located in your /nucleus/libs/ folder.

Installing

  1. Copy and paste the code from the nucleus forum at http://forum.nucleuscms.org/viewtopic.php?t=5715 into a file called NP_AutoJoinBlog.php.
  2. Upload the file into the nucleus plugin directory, than install or update the subscription list.
  3. Edit the plugin options to add the blogs that you want the new members to be added to.

Version History

Version 1 is the original code.

TrenT

:: Back to Plugins Overview ::

autojoinblog.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki