Support for Joomla Plugins

Jesse Mair
Jesse Mair
Offline
0
The subject may be misleading. But when creating an Artist, in the Review, I would love to be able to use plugins that support {gallery}path_to_image{/gallery} so I can add photos, flv, pdf, php scripts, etc. I've only noticed that I can't do this with Simple Image Gallery .

As always, love the product and I'm really looking forward to version 2.
Responses (41)
  • Accepted Answer

    Thursday, January 28 2010, 10:44 AM - #Permalink
    0
    I hope we can add this into future version. I'll let you know
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Friday, October 15 2010, 10:20 PM - #Permalink
    0
    Hi, I worked a bit on the code for the integration of joomla plugin.

    follow me:
    1.open the file component/com_muscol/views/artist/view.html.php

    add this code from line 80 to line 100
    		//urbanspaceman mod
    /*
    * Process the prepare content plugins
    */
    if($params->get('processcontentplugins')){
    $intro->text = $artist->review;

    if($params->get('processcontentplugins')){

    $dispatcher =& JDispatcher::getInstance();
    $plug_params = new JParameter('');

    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onPrepareContent', array (& $intro, & $plug_params, 0));

    }

    $this->assignRef('areview', $intro);

    }
    //urbanspaceman mod


    2.open the file component/com_muscol/views/artist/tmpl/default.php (if you use the default template)

    around the line 60 find
    $this->artist->review
    (2 occurrance) and change with
    $this->areview->text;


    that's all folks!

    it works but I'm a bit of time trying to improve the code. I'm not a good programmer, I think we can make a plugin .... germi wath do you think?
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Monday, October 18 2010, 01:56 AM - #Permalink
    0
    I would LOVE to be able to see the ability to use other joomla modules in the review field. One module I always wished I could use with MC is Custom Properties located at: http://extensions.joomla.org/extensions/search-a-indexing/tags-a-clouds/4240

    Using this module with joomla would rock as it would allow one to add their own custom tags/types/keywords/etc to the review text. I would also highly suggest not only adding the ability to use modules in the artist review/bio, but also the album review area as well. Pretty much any of the main areas where you have large text boxes that can take paragraphs.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 18 2010, 05:34 PM - #Permalink
    0
    @urban

    good job

    @greengeek

    well, if you do what @urban says, then you'll be able to load modules here, using the {loadposition} joomla plugin...

    there's also another way to include modules directly on artist page.

    I can tell you if you want... but... you may want to wait to MC 2.1... which is just around the corner... ;) and it has some of these features! ;)
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Tuesday, October 19 2010, 02:12 AM - #Permalink
    0
    Good to hear. I will wait until after the next release before I make any changes.
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Tuesday, October 26 2010, 01:51 PM - #Permalink
    0
    to add this function to the new MC 2.1

    Note: I can not write the code here, the forum cut it.
    I attaching the file.

    change the file
    \\components\\com_muscol\\views\\artist\\tmpl\\common.php [file name=common.zip size=2861]http://www.joomlamusicsolutions.com/images/fbfiles/files/common.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Wednesday, October 27 2010, 03:06 AM - #Permalink
    0
    @urban Thanks for the plugin.

    @germi I noticed you made mention of repackaging the download to include this feature, http://www.joomlamusicsolutions.com/en/forum/pre-buy-questions/congratulations-for-new-2-1-version.html#8015 Is this feature available in the latest release. or would I need to use urban's mod?

    Thanks.
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Saturday, October 30 2010, 07:46 PM - #Permalink
    0
    Has this been added to MC, or does this need to be installed separately?
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Thursday, November 11 2010, 03:48 AM - #Permalink
    0
    Any idea?
    The reply is currently minimized Show
  • Accepted Answer

    Ljupco
    Ljupco
    Offline
    Thursday, November 11 2010, 07:05 AM - #Permalink
    0
    This future is not integrated in MC. I have tested solution proposed by urban ... it is easy to implement and work fine
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 13 2010, 10:26 AM - #Permalink
    0
    @greengeek, yes I mentioned that, but havent done it yet. not included yet. use urbans solution meanwhile, its a good solution :)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 15 2011, 06:07 PM - #Permalink
    0
    urban wrote:
    to add this function to the new MC 2.1

    Note: I can not write the code here, the forum cut it.
    I attaching the file.

    change the file
    \\components\\com_muscol\\views\\artist\\tmpl\\common.php [file name=common.zip size=2861]http://www.joomlamusicsolutions.com/images/fbfiles/files/common.zip[/file]


    Good job! A very useful feature. Can you do support plugins for pages of albums and songs? Thank you.
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Friday, March 18 2011, 10:09 AM - #Permalink
    0
    Germi,

    Will this feature be added to the next release? I like urban's idea for artist view but I can not get it to work with the readmore feature of the joomla built in editor. It also doesn't support album view or song view. You mentioned previously that you were adding it to 2.1 but it looks like it did not quite make it into that release. I really hope you consider adding it to this upcoming release.

    Thank you!
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Thursday, March 24 2011, 12:35 AM - #Permalink
    0
    Germi any update on this?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 10 2011, 06:31 AM - #Permalink
    0
    How can we achieve this for Version 2.2? I've tried replacing the common.php file with Urbans, however, it did not have an affect.

    Thank you for your help!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 16 2011, 05:24 PM - #Permalink
    0
    Any ideas? It's always so frustrating when you upgrade and loose such a useful feature.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 17 2011, 10:17 AM - #Permalink
    0
    did you have this modification and loose it? :S

    I think there's a thread on the forum on how to add this... I'll try to find it.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 17 2011, 10:20 AM - #Permalink
    0
    anyway, you can try this:
    add this code in line 86 approx, file components/com_muscol/views/artist/view.html.php

    (this is for Joomla 1.5)

    $intro->text = $artist->review;

    $dispatcher =& JDispatcher::getInstance();
    $plug_params = new JParameter('');

    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onPrepareContent', array (& $intro, & $plug_params, 0));

    $artist->review = $intro->text ;
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2011, 04:56 AM - #Permalink
    0
    Thank you so much for your response,

    I did not have the modification in place yet, I have been holding off on going live with my site waiting for 2.2 to be released so I could improve the player. Just figured this would still be possible and had previously read about it and was excited about the possibility.

    I added that code to components/com_muscol/views/artist/view.html.php but unfortunately the plugins are not working in the album review field still. Do I have to overwrite the common.php as well? Any other steps? I am using Joomla 1.5

    Your help is greatly appreciated.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2011, 07:17 AM - #Permalink
    0
    Support of plug-ins works for me on artists, albums and songs pages.

    Sequence of actions:

    1. ADD this code

    //urbanspaceman mod
    /*
    * Process the prepare content plugins
    */
    if($params->get('processcontentplugins')){
    $intro->text = $artist->review;

    if($params->get('processcontentplugins')){

    $dispatcher =& JDispatcher::getInstance();
    $plug_params = new JParameter('');

    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onPrepareContent', array (& $intro, & $plug_params, 0));

    }

    $this->assignRef('areview', $intro);

    }
    //urbanspaceman mod


    to code of next files:

    1.1.component/com_muscol/views/artist/view.html.php

    After string

    $this->assignRef('genres',$genres);
    }


    (approximately 86 line)

    1.2. component/com_muscol/views/album/view.html.php

    After string

    else $player = "";
    }


    (approximately 99 line)

    1.3. component/com_muscol/views/song/view.html.php

    After string

    $document->addStyleSheet( $uri->base() . 'components/com_muscol/assets/form.css');
    }


    (approximately 102 line)

    2. In com_muscol/views/artist/tmpl/common.php (approximately 95 line)

    Code:
    $this->artist->review

    (2 occurrance) change with

    Code:
    $this->areview->text

    2.1 In com_muscol/views/album/tmpl/default.php (approximately 212 line)

    Code:
    $this->album->review;

    change with

    Code:
    $this->areview->text;

    2.2. In com_muscol/views/song/tmpl/default.php (approximately 142 line)

    Code:
    $this->song->review

    (2 occurrance) change with

    Code:
    $this->areview->text


    Thanks Urban for the decision
    The reply is currently minimized Show
  • Accepted Answer

    urban
    urban
    Offline
    Wednesday, May 18 2011, 01:12 PM - #Permalink
    0
    good works! ;-)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2011, 07:54 PM - #Permalink
    0
    Thank you so much for your helop with this!

    I followed the steps exactly. There seems to be one error in it


    2. In com_muscol/views/artist/tmpl/common.php (approximately 95 line)

    $this->artist->review


    (2 occurrance) change with

    $this->areview->text;


    It gave a PHP error, I removed the ";" and it worked fine.

    However, with this fix in place, my review fields showed no text at all. They were all completely empty. No plugins, not even plain text.

    Seems like we're close but no cigar. Must be one small thing wrong here. Any ideas as to what that may be?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2011, 11:10 PM - #Permalink
    0
    Wait, I might have messed up, does (2 occurrance) mean to change it twice? Or just once?

    Either way, I've tried it both ways, same results, no text shows in the review are with this fix in place.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 19 2011, 02:19 AM - #Permalink
    0
    The piece of a code from common.php after replacement should look so:

    areview->text ): ?>
    areview->text; ?>

    Try at first :(
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 19 2011, 09:12 AM - #Permalink
    0
    Thanks again for all your help with this. I'm unfortunately having no luck with it. Tried and tried again. Is it working for you in Version 2.2?

    common.php now has this lines 94-97



    areview->text ): ?>
    areview->text; ?>



    Sigh... the forum is editing out text...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 19 2011, 02:18 PM - #Permalink
    0
    Version 2.2
    See the changed file [file name=common-20110519.zip size=2644]http://www.joomlamusicsolutions.com/images/fbfiles/files/common-20110519.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 20 2011, 05:49 AM - #Permalink
    0
    Good idea with the attachment. My common file is exactly the same, but does not seem to work. With this fix in place no text shows up in the Reviews section, nor plugins.

    Attached is the all the files in the views/ folder with the fix in place. Is this working for anyone else? [file name=views.zip size=121558]http://www.joomlamusicsolutions.com/images/fbfiles/files/views.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Friday, May 20 2011, 07:09 AM - #Permalink
    0
    What I am wondering is why isn't this just part of MC by default? MC is required to run on joomla, it only makes sense that it integrates more fully with jooomla as most other components do. That at least would make it so one wouldn't have to hack the code together and then worry about it not working on future updates. Plus it is not something that would break or be obtrusive on sites that choose not to use it.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 20 2011, 08:23 AM - #Permalink
    0
    So true @Greengeek. Seems like something Muscol has all figured out too, but for some elusive reason, doesn't include in the component. Makes no sense.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 04 2011, 06:47 AM - #Permalink
    0
    Anyone have any luck with this yet? I've tried so many times, no deal.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 04 2011, 07:06 AM - #Permalink
    0
    codeless wrote:
    Anyone have any luck with this yet? I've tried so many times, no deal.


    Strange. What plug-ins don't work? They work in other places of a site, for example in articles?

    For example: Phoca plugin insert following code {phocagallery view=category|categoryid=317|limitstart=0|limitcount=0|type=1|imageordering=9}

    If support of plug-ins doesn't work in MC тhen this code will be displayed on front-end of side.

    If support works тhen photos will be displayed
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 05 2011, 12:32 AM - #Permalink
    0
    Hey Stepan, thanks for your response.

    I'm trying to use a Soundcloud plugin.

    http://extensions.joomla.org/extensions/social-web/multimedia-channels/audio-a-radio-channels/16874?qh=ytoxontpoja7czoxmdoic291bmrjbg91zci7fq%3d%3d

    It is working in articles. Whenever I implement the fix suggested here, my review section has no text whatsoever.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 05 2011, 06:17 AM - #Permalink
    0
    Has tried Soundcloud plugin - it`s works!

    I do not know that to you still to advise.

    In attach my changed files. Are copied with replacement in a root folder of a site.

    To use at own risk!

    Good luck! [file name=my_plugin_support_files.zip size=17280]http://www.joomlamusicsolutions.com/images/fbfiles/files/my_plugin_support_files.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 05 2011, 05:59 PM - #Permalink
    0
    @codeless: are you using Joomla 1.5 or 1.6?

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 06 2011, 12:51 AM - #Permalink
    0
    @Stepan thank you very much for the files. I will give them a try.

    @germi I am using Joomla 1.5
    The reply is currently minimized Show
  • Accepted Answer

    Jason
    Jason
    Offline
    Monday, June 20 2011, 08:55 PM - #Permalink
    0
    joomla 1.6 I just did this to add an image gallery to my review section using simple image gallery plugin. [file name=joomla16plugin.txt size=320]http://www.joomlamusicsolutions.com/images/fbfiles/files/joomla16plugin.txt[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Giuseppe
    Giuseppe
    Offline
    Thursday, September 22 2011, 06:14 AM - #Permalink
    0
    Hi!
    Is this feature already integrated in latest version?
    I think no, why I tried to put a module in the review field (using the {loadposition} tag) but not works.
    I also tried to do the hack suggested on this topic: no result (by do this the entire review disappear...)

    Is possible to put a plugin or a module in the review field in another way?

    Thanks!!!
    The reply is currently minimized Show
  • Accepted Answer

    Giuseppe
    Giuseppe
    Offline
    Thursday, September 22 2011, 06:25 AM - #Permalink
    0
    @stepan
    When I try your edited files I display this:
    Fatal error: Class 'JParameter' not found in /web/htdocs/www.eleproject.com/home/onlythebest/components/com_muscol/views/artist/view.html.php on line 96
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 22 2011, 11:05 AM - #Permalink
    0
    no, it's not integrated yet.

    just a tip: in joomla 1.6 or 1.7, JParameter must be replaced for JRegistry
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Sunday, December 25 2011, 01:11 PM - #Permalink
    0
    Does anyone have any working code to get plugins to work with 1.7 for artist, album, and song?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 20 2012, 04:36 PM - #Permalink
    0
    Hi there,

    I've been experiencing the same kind of problem when trying to initialise a gallery plugin inside of the song review area and fortunately, I've spotted an error that can be fixed by changing one variable.

    As per tutorial, I added the
    		//urbanspaceman mod 
    /*
    * Process the prepare content plugins
    */
    if($params->get('processcontentplugins')){
    $intro->text = $song->review;

    if($params->get('processcontentplugins')){

    $dispatcher =& JDispatcher::getInstance();
    $plug_params = new JParameter('');

    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onPrepareContent', array (&$intro, &$plug_params, 0));

    }

    $this->assignRef('areview', $intro);

    }
    //urbanspaceman mod

    to the view.html.php file in the relevant view (song) then proceeded to change the code in default.php.

    When using urbansapceman's mod, none of my content would appear. I then tried
    var_dump($this->areview->text)


    This revealed that it was infact completely empty.

    When I took a look at the code, I noticed one thing out of place - after the first line of code...


    if($params->get('processcontentplugins')){
    $intro->text = $artist->review; // CHANGE $artist to the view you're in

    // I.E. IF YOU ARE TRYING TO ADD IN SONG VIEW
    $intro->text = $song->review;

    // ALSO IF FOR ALBUM
    $intro->text = $album->review;


    Naturally, these slight ammendments need to be added to the view.html.php files that correspond with the view in which you wish to add plugins.

    Hope this is helpful!

    Gez
    The reply is currently minimized Show
Your Reply