nest {} in {AC}{/AC}

Joomla! - Admiror Columnizer is based on great jQuery library developed by Adam Wulf. More about Adam's Columnizer library you can find at Columnizer jQuery Plugin webpage.
It comes in All-in-One installer for Joomla! 1.5, Joomla! 1.6, Joomla! 1.7, Joomla! 2.5 and Joomla! 3.x
Post Reply
Message
Author
wisma
Posts: 3
Joined: Fri Jan 31, 2014 11:59 am

nest {} in {AC}{/AC}

#1 Post by wisma »

hi

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

thx 4 help

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: nest {} in {AC}{/AC}

#2 Post by Vasiljevski »

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?
Help Admiror Gallery become even better,
give us a review on JED

wisma
Posts: 3
Joined: Fri Jan 31, 2014 11:59 am

Re: nest {} in {AC}{/AC}

#3 Post by wisma »

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

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: nest {} in {AC}{/AC}

#4 Post by Vasiljevski »

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.
Help Admiror Gallery become even better,
give us a review on JED

wisma
Posts: 3
Joined: Fri Jan 31, 2014 11:59 am

Re: nest {} in {AC}{/AC}

#5 Post by wisma »

thx a lot

Admiror Gallery 5 - Fundraising Campaign

Bluefox
Komusubi
Komusubi
Posts: 34
Joined: Tue Jun 23, 2015 4:34 pm
Location: The Netherlands

Re: nest {} in {AC}{/AC}

#6 Post by Bluefox »

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

Code: Select all

  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: Select all

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

Post Reply