It is currently Tue Dec 12, 2017 3:54 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: nest {} in {AC}{/AC}
PostPosted: Thu Mar 27, 2014 1:53 pm 
Offline

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

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

thx 4 help


Top
 Profile  
 
 Post subject: nest {} in {AC}{/AC}
PostPosted: Thu Mar 27, 2014 1:53 pm 
Top  
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Mon Mar 31, 2014 4:55 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
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


Top
 Profile  
 
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Tue Apr 01, 2014 8:56 am 
Offline

Joined: Fri Jan 31, 2014 11:59 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Tue Apr 01, 2014 11:07 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
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


Top
 Profile  
 
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Wed Apr 02, 2014 8:15 am 
Offline

Joined: Fri Jan 31, 2014 11:59 am
Posts: 3
thx a lot


Top
 Profile  
 
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Wed Apr 02, 2014 8:15 am 
Top  
 Post subject: Re: nest {} in {AC}{/AC}
PostPosted: Wed Jun 24, 2015 2:26 pm 
Offline
Komusubi
Komusubi

Joined: Tue Jun 23, 2015 4:34 pm
Posts: 34
Location: The Netherlands
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);
            }


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group