Keyword

Community Builder Hack Allowing AllVideos!

  • Andrew Restivo
  • Andrew Restivo's Avatar Topic Author
  • Offline
  • New Member
More
17 years 6 days ago #13092 by Andrew Restivo
Community Builder Hack Allowing AllVideos! was created by Andrew Restivo
I searched for hours looking for something that allowed me to use this awesome extension in Community Builder (CB) user profiles, but all efforts lead to nowhere! However, I finally found the solution and thought I would share it here.

In your file directory, find this file: "comprofiler.html.php" you can find it by following this path: /www/yoursite/components/com_comprofiler/

Find this line of code:

$userViewTabs = $tabs->getViewTabs($user); // this loads, registers menu and user status and renders the tabs

Place this directly underneath the code above:
// CB AUTOHACK enable_mambots1 START
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$tmp_row = new stdClass();
$tmp_params = new mosParameters('');
foreach($userViewTabs as $key=>$text){
$tmp_row->text = $text;
$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
$userViewTabs[$key]=$tmp_row->text;
}

// CB AUTOHACK enable_mambots1 END

Then find this line of code:
$calendars = new cbCalendars( 1 );

$tabs = new cbTabs( 0, 1, $calendars );

$tabcontent = $tabs->getEditTabs( $user );

Then add this directly below the code above:
// CB AUTOHACK enable_mambots2 START
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$tmp_row = new stdClass();
$tmp_params = new mosParameters('');
$tmp_row->text = $tabcontent;
$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
$tabcontent=$tmp_row->text;

// CB AUTOHACK enable_mambots2 END

After the code has been inserted and saved, your videos should now work in Community Builder! Thanks to www.mikkosoft.fi

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #13093 by jbennert
Replied by jbennert on topic Re: Community Builder Hack Allowing AllVideos!
Hi this is a great hack,

I have the problem that the email adress field in profile is getting spoiled(lost), e.g. beeing overwritten by some code that is html. Something like <img size=40  don't know anymore.

I got cb1.1 and just want to know; is this hack meant to be for cb1.0, 1.1 or 1.2?

I really appreciate this work and would be happy to have it on my site.

Regards - Jan

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum