[SOLVED] Display JHTML::_('content.prepare', $show)

12 years 11 months ago - 12 years 3 months ago #163715 by some1new
Hi,

is it possible to display any kind of Code like

JHTML::_('content.prepare', $to_be_displayed) in a tab.

I would like to call a plugin (flashchart) in a tab with "{flashchart.......}Testchart{/flashchart}.

Could this be called within tab?

EDIT: Just found out that "{loadposition xy}" is working within a tab of CB but not the plugin flashchart. Is there any filter that can be deactivated?

Regards
Some1new

Please Log in to join the conversation.

12 years 11 months ago - 12 years 11 months ago #163802 by some1new
Awesome,

really nice feature to display flashcharts as user content related within a tab at the profile.

Found the solution with help of the developer from Flashchart Plugin.

Within the flashchart Plugin the flashchart.php has to be changed on line 67

Change
if (JString::strpos($row->text, 'flashchart') === false || JRequest::getVar('view') == '')

to
if (JString::strpos($row->text, 'flashchart') === false)

than you can implement this feature working in a tab of CB.

Maybe this helps if someone else wants to use it.

Regards
Some1new

Please Log in to join the conversation.

12 years 3 months ago #187685 by apessoa
Hi Some1new

I'm trying to also use flashcharts inside CB (1.7.1, J!1.7.3), but can't get it to work.

I am able to display content inside the CB profile using a "Delimiter" field type and pasting the flashchart plugin code (without any wysiwyg editor) but can only see the code and not the chart itself.

Flashchart works OK outside CB (using a custom html module).
I've tried the change in flashchart.php you suggest, but makes no difference.

Can you post here a more detailed explanation of what has to be done to be able to render this (and maybe others) content plugin/modules inside the CB profile?

Thanks in advance and best regards,
Alex

Please Log in to join the conversation.

12 years 3 months ago #187942 by some1new
Well, thanks for your request.

I made an own cb_plugin to display the flashchart in a tab.


File Attachment:

File Name: plug_flash...ugin.zip
File Size:2 KB



You have to add it as a CB extension through the CB backend.

By now it´s only possible to change the flashchart chart hardcoding a file of the plugin, not as a parameter.

So please use a editor of your choice and go to components/com_comprofiler/plugin/user/plug_flashtotabplugin/flashtotab.php

You have to change the $showthis to your choice as explained on the flashchart website.

Don´t forget to publish the tab in cb.

Have fun
Some1new
Attachments:
The following user(s) said Thank You: krileon, apessoa

Please Log in to join the conversation.

12 years 3 months ago #187957 by apessoa
Hi Oliver

Thank you very much. It works like a charm :woohoo: :laugh: :cheer:


Thanks again and best regards,
Alex

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.374 seconds

Facebook Twitter LinkedIn