Jump to content
bbh_blocked_dnftl
Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Tiberium Technology® Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

  • entries
    7
  • comments
    0
  • views
    7800

From: Download: Bottom Bar (Beta 2) - Adding the Bottom Bar UserCP Form to the Settings Tab


Should we install IP.Shoutbox?  

4 members have voted

  1. 1. Should we install IP.Shoutbox?

    • Yes
    • No
      0
    • Maybe...
      0

Go to FTP, open /admin/applications/core/extenstions/usercpForms.php,

Find:

	if ( $this->memberData['g_attach_max'] != -1 )
	{
		$array[] = array(
						'url'    => 'area=attachments',
						'title'  => ipsRegistry::instance()->getClass('class_localization')->words['m_attach'],
						'active' => $this->request['tab'] == 'core' && $this->request['area'] == 'attachments' ? 1 : 0,
						'area'   => 'attachments'
						);
	}

 

Add BELOW:

               if ( IPSLib::appIsInstalled('bottombar') )
               {
                       $array[] = array( 'url'    => 'area=bottombar',
                                                         'area'   => 'bottombar',
                                                         'title'  => 'Bottom Bar Configuration',
                                                         'active' => $this->request['tab'] == 'core' && $this->request['area'] == 'bottombar' ? 1 : 0 );
               }

 

Find:

		case 'notes':
			return $this->showFormNotes();
		break;

 

Add BELOW:

		case 'bottombar':
			return $this->showFormBottomBar();
		break;

 

Find:

		case 'notes':
			return $this->saveFormNotes();
		break;

 

Add BELOW:

		case 'bottombar':
			return $this->saveFormBottomBar();
		break;

 

Find:

/**
 * UserCP Save Form: Password
 *
 * @access	public
 * @param	array	Array of member / core_sys_login information (if we're editing)
 * @return	mixed	Array of errors / boolean true
 */
public function saveFormPassword( $member=array() )
{

 

Add ABOVE:

/**
 * UserCP Save Form: Bottom Bar
 *
 * @access	public
 * @author	Brandon Farber
 * @return	boolean		Successful
 */
       public function saveFormBottomBar( $current_area )
       {
               $_hide        = $this->request['hide_bottombar'] ? 1 : 0;

               IPSMember::packMemberCache( $this->memberData['member_id'], array( 'hide_bottombar' => $_hide ), $this->memberData['_cache'] );
       }

 

Find:

/**
 * UserCP Form Check
 *
 * @access	public
 * @author	Matt Mecham
 * @param	string		Current area as defined by 'get_links'
 * @return	string		Processed HTML
 */
public function saveForm( $current_area )
{

 

Add ABOVE:

/**
 * Show the Bottom Bar form
 *
 * @access	public
 * @author	Brandon Farber
 * @return	string		Processed HTML
 */
       public function showFormBottomBar()
       {
               return $this->registry->output->getTemplate('bottombar')->usercpSettings();
       }

 

Good Luck!

 

Donald :)

 

Source: Download: Bottom Bar (Beta 2)

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, & Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.