Personnal Plugins problems

11 years 6 months ago #211329 by scors294
Personnal Plugins problems was created by scors294
Hello,

I wanted to add some new plugin in community builder to add some contents. Everything is fine, i create my plugin and tab. The content appears, but... outside the tab ! Here's my code (very simple) :
<?php

defined('JPATH_BASE') or die();


class myofferstab extends cbTabHandler {

	function myofferstab() {
		$this->cbTabHandler();
	}

  function getDisplayTab($tab,$user,$ui) {	
      	$return							.=	null;
  
		
		$params = $this->params; // get parameters (plugin and related tab)
		
	  
		
    $return .= include 'moffers.plugin.php';
		
			
		
		return $return;

        } }

 ?>

Thanks in advance for your response.

Please Log in to join the conversation.

11 years 6 months ago - 11 years 6 months ago #211621 by scors294
Replied by scors294 on topic Re: Personnal Plugins problems
I know my code is bad, but somebody can say to me where is my error ? As i said, the elements (a table of content) is showing, but on the top, outside the tab...


Thanks

Please Log in to join the conversation.

11 years 6 months ago #211626 by nant
Replied by nant on topic Re: Personnal Plugins problems

scors294 wrote: I know my code is bad, but somebody can say to me where is my error ? As i said, the elements (a table of content) is showing, but on the top, outside the tab...


Thanks


$return .= include 'moffers.plugin.php';

this looks very wrong - no idea what you are trying to do.

Please Log in to join the conversation.

11 years 6 months ago #211628 by scors294
Replied by scors294 on topic Re: Personnal Plugins problems
I Wanted to include a php files with all the contents in the tab. I must write the php directly in my first file, without include ?

Please Log in to join the conversation.

11 years 6 months ago #211637 by nant
Replied by nant on topic Re: Personnal Plugins problems

scors294 wrote: I Wanted to include a php files with all the contents in the tab. I must write the php directly in my first file, without include ?


I have no idea what that statement will do.
Test it in a normal PHP script and see.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.256 seconds

Facebook Twitter LinkedIn