Admiror Joomla! Community
http://www.vasiljevski.com/forum/

nest {} in {AC}{/AC}
http://www.vasiljevski.com/forum/viewtopic.php?f=32&t=1225
Page 1 of 1

Author:  wisma [ Thu Mar 27, 2014 1:53 pm ]
Post subject:  nest {} in {AC}{/AC}

hi

how can i nest an {mp3}title{/mp3} in a column {AC}{/AC}.

thx 4 help

Author:  Vasiljevski [ Mon Mar 31, 2014 4:55 pm ]
Post subject:  Re: nest {} in {AC}{/AC}

Do you need to nest some other plugin?

I don't see that nesting {} in {AC} should be a problem.

Did you get any error when you tried it?

Author:  wisma [ Tue Apr 01, 2014 8:56 am ]
Post subject:  Re: nest {} in {AC}{/AC}

i try to place an mp3 with "all videos" into a column>
{AC}{mp3}title{/mp3}{/AC}

error:
[Log] There was an error while handling a listener: TypeError: 'undefined' is not an object (evaluating 'f.modes[n].type') function e() {if(j.getStatus()==c.loaderstatus.COMPLETE){for(var n=0;n<f.modes.length;n++){if(f.modes[n].type&&a.embed[f.modes[n].type]){var p=f.modes[n].config;var t=f;if(p){t=c.extend(c.clone(f),p);var s=["file","levels","playlist"];for(var m=0;m<s.length;m++){var q=s[m];if(c.exists(p[q])){for(var l=0;l<s.length;l++){if(l!=m){var o=s[l];if(c.exists(t[o])&&!c.exists(p[o])){delete t[o]}}}}}}var r=new a.embed[f.modes[n].type](document.getElementById(h.id),f.modes[n],t,j,h);if(r.supportsConfig()){r.embed();d(h,f.events);return h}}}c.log("No suitable players found");new a.embed.logo(c.extend({hide:true},f.components.logo),"none",h.id)}} (jwplayer.min.js, line 1)

thx 4 help

Author:  Vasiljevski [ Tue Apr 01, 2014 11:07 pm ]
Post subject:  Re: nest {} in {AC}{/AC}

As I see the All Video has problems when it is nested in {AC} :)

I need to check this combination, and let you know if and how to fix it.

Author:  wisma [ Wed Apr 02, 2014 8:15 am ]
Post subject:  Re: nest {} in {AC}{/AC}

thx a lot

Author:  Bluefox [ Wed Jun 24, 2015 2:26 pm ]
Post subject:  Re: nest {} in {AC}{/AC}

The problem is located within admirorcolumnizer, around line 58 there is a preg_replace and that one is removing the {}.

Code:
  foreach ($matches[0] as $matchKey => $matchValue) {
                $html = $AC->AC_createColumns(preg_replace("/{.+?}/", "", $matchValue), $matchValue, $matchKey . "_" . rand(0, 1000000), $doc->direction);
                $text = str_replace($matchValue, $html, $text);
            }


you can change the pattern or remove it
Code:
  foreach ($matches[0] as $matchKey => $matchValue) {
                $html = $AC->AC_createColumns($matchValue, $matchValue, $matchKey . "_" . rand(0, 1000000), $doc->direction);
                $text = str_replace($matchValue, $html, $text);
            }

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/