Personnal Plugins problems
- scors294
- OFFLINE
- Posts: 8
- Thanks: 0
- Karma: 0
11 years 7 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) :
Thanks in advance for your response.
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
- OFFLINE
- Posts: 8
- Thanks: 0
- Karma: 0
11 years 7 months ago - 11 years 7 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
Thanks
Last edit: 11 years 7 months ago by scors294.
Please Log in or Create an account to join the conversation.
- nant
- OFFLINE
- Posts: 25532
- Thanks: 1834
- Karma: 877
11 years 7 months ago #211626
by nant
$return .= include 'moffers.plugin.php';
this looks very wrong - no idea what you are trying to do.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
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.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
Please Log in or Create an account to join the conversation.
- scors294
- OFFLINE
- Posts: 8
- Thanks: 0
- Karma: 0
11 years 7 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 or Create an account to join the conversation.
- nant
- OFFLINE
- Posts: 25532
- Thanks: 1834
- Karma: 877
11 years 7 months ago #211637
by nant
I have no idea what that statement will do.
Test it in a normal PHP script and see.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
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.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
Please Log in or Create an account to join the conversation.
Moderators: beat, nant, krileon