Skip to Content Skip to Menu

Personnal Plugins problems

  • scors294
  • scors294
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
12 years 1 month 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) :
Code:
<?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 or Create an account to join the conversation.

  • scors294
  • scors294
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
12 years 1 month ago - 12 years 1 month 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
Last edit: 12 years 1 month ago by scors294.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 1 month 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 or Create an account to join the conversation.

  • scors294
  • scors294
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
12 years 1 month 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 or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 1 month 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum