Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

All Video Share Shortcode | Zero App Field Embed Video

1 year 6 months ago #1

  • BiLe's Avatar
  • BiLe
  • Posts: 323
Hello,

I would like to embed a video using just a shortcode: {avsplayer videoid=1}

The third party extension I would like to use is called All Video Share.

With Zero App Field, I have tried Text and Textarea, but the shortcode is not being processed. Output is just plain text. Is there any way to support such shortcodes (prepare content => YES), just as if I would place the shortcode in a regular Joomla 4 article?

Thank you.

1 year 6 months ago #2

  • BiLe's Avatar
  • BiLe
  • Posts: 323
For example, regularlabs sourcerer shortcode does work with field text or textarea, which is nice:
{source}<?php echo 'Hello World'; ?>{/source}

1 year 6 months ago #3

  • BiLe's Avatar
  • BiLe
  • Posts: 323

1 year 6 months ago #4

  • BiLe's Avatar
  • BiLe
  • Posts: 323
Using regularlabs sourcerer I have tried the following with zero app => textarea field => code editor:
{source}
<?php
$videotext = '{avsplayer videoid=1}';
$videotext = JHtml::_('content.prepare', $videotext);
echo $videotext;
?>
{/source}

This will crash the single post layout site.

Any way I can make this work for now?
Otherwise, my projekt is doomed :)

Maybe add new field type "content"?

Or would it work if I add code at the file: packages/site/helpers/fields.php

Line 646
$value= JHtml::_('content.prepare', $value);
$html .= $this->renderTextarea($field, $options, $value);

Thank you.

1 year 6 months ago #5

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
Hello,
Thank you for contacting us

You need in the file gridbox.php(/components/com_gridbox/helpers/gridbox.php)
Line 7084
find the code
$str = $value->value;
replace with this code
$str = JHtml::_('content.prepare', $value->value);

Regards,
Vyacheslav, Balbooa.com

1 year 6 months ago #6

  • BiLe's Avatar
  • BiLe
  • Posts: 323
Craaaazy...it's working.

Now we can actually use third party shortcodes and e.g. use a zero app text field to display third party extension with single zero app items. This is what I call flexibility :)

You might want to consider making this an option (prepare content) with text/textarea or add additional zero app field (content).

Happy. Thank you.
                } else if ($value->field_type == 'text') {
                    //$str = htmlspecialchars($value->value);
                    $str = JHtml::_('content.prepare', $value->value);
                }

1 year 6 months ago #7

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
We will add this in the future.

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #8

  • BiLe's Avatar
  • BiLe
  • Posts: 323
Please allow me to add the following suggestions:

Additional Zero App fields...

1. load gallery (specific id as number)
2. load forms (specific id as number)
3. load module (specific id as number)

This way we could use Balbooa Forms and PHP (frontend) to place user specific e.g. gallery or form (poll) with Zero App field for a single record.

1 year 6 months ago #9

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
Hello,
Thank you for contacting us

We will consider your offer

Regards,
Vyacheslav, Balbooa.com

1 year 6 months ago #10

  • Adam's Avatar
  • Adam
  • Posts: 38
Hello,

Do you have a similar solution for blog pages?

Best Regards,
Adam
Vyacheslav wrote:
Hello,
Thank you for contacting us

You need in the file gridbox.php(/components/com_gridbox/helpers/gridbox.php)
Line 7084
find the code
$str = $value->value;
replace with this code
$str = JHtml::_('content.prepare', $value->value);

Regards,
Vyacheslav, Balbooa.com

1 year 6 months ago #11

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
Hello,
Thank you for contacting us

To use short codes you need to use the html Joomla module.

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #12

  • Adam's Avatar
  • Adam
  • Posts: 38
It's not about short codes. I want to force the SEO Glossary component to work (it automatically shows tooltips with dictionary definitions) - and with your solution above it works well in ZERO APP. It would be nice if it worked with the blog as well.

1 year 6 months ago #13

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
Describe in more detail how you add it to zero up.
this works with fields, the blog has no fields.

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #14

  • Adam's Avatar
  • Adam
  • Posts: 38
The glossary component searches the page for specific phrases and automatically adds a tooltips to them.
Now the phrases will only display tooltips in custom field with the text editor - as in this example (the words Lorem, Ipsum and Pellentesque have a tooltip):
easyblog.pl/index.php/zero
In a blog, the glossary component will obviously not find these phrases:
easyblog.pl/index.php/magazine/sales/8-s...-everyone-should-try
Is it possible to do the same in the blog as the custom fields in ZeroApp?

1 year 6 months ago #15

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
You need in the file gridbox.php(/components/com_gridbox/helpers/gridbox.php)
after line (7774)
$str = $dom->htmlOuter();
add this code
if ($view != 'gridbox') {
            $str = JHtml::_('content.prepare', $str);
        }

After the update, the changes will be lost

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #16

  • Adam's Avatar
  • Adam
  • Posts: 38
Awesome! Thanks so much for your quick and helpful reply - as always, you guys can be counted on :)

Best Regards,
Adam

1 year 6 months ago #17

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
You are welcome ;)
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 5 months ago #18

  • Dave's Avatar
  • Dave
  • Posts: 1338
You have added the ability to use shortcode from other extensions now?

1 year 3 months ago #19

  • Dave's Avatar
  • Dave
  • Posts: 1338
Hello, I am able to use shortcode for my gallery plugin in a Zero App field, but not in a Page Text Plugin. Is this going to be updated so it works too?

I was very happy to see the Zero App field working.

Thank you

1 year 3 months ago #20

  • Dave's Avatar
  • Dave
  • Posts: 1338
Could you please elaborate on this? It works in Zero App now? But not in the Page App?

Thank you

1 year 3 months ago #21

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
Your question is not clear, please describe in more detail with screenshots

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 3 months ago #22

  • Dave's Avatar
  • Dave
  • Posts: 1338
When I first started using Gridbox I was trying to add existing photo galleries from my Ignite Gallery into Zero App custom field text with editor, with shortcode using their content plugin. It did not work in Gridbox Zero App. All I got was the shortcode text, the prepare content did not work in Zero App. Then about a year later I tried it again on a Joomla 4 and the shortcode worked.

I just tried adding shortcode to a Joomla 3 website on a Page from the Page App in Gridbox in a Text Plugin and it's not working. The prepare content is not enabled or something.

So either you updated this to work or Joomla 4 is the solution. I am just trying to find out how this is working and if you updated something?

Do you need a video of this?

1 year 3 months ago #23

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
We generate the content.prepare event for the text-area field
and for the Joomla custom html module.
Will not work in other places

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 3 months ago #24

  • Dave's Avatar
  • Dave
  • Posts: 1338
The text area field in Zero App custom fields works now. It did not when I started.

The Text Plugin when working in the Gridbox editor does not. Can this be updated to work as it's a text area as well?

bit.ly/3uAchRN

bit.ly/3JepIuO

1 year 3 months ago #25

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
You need use Joomla custom html module, and add
and add it to the page using the plugin Joomla module

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 3 months ago #26

  • Dave's Avatar
  • Dave
  • Posts: 1338
Can you please add this to pages as well as Zero App's text field?

Thank you

1 year 3 months ago #27

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 27057
We will consider your offer
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum