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.
As always, love the product and I'm really looking forward to version 2.
Responses (41)
-
Accepted Answer
-
Accepted Answer
0Hi, 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
(2 occurrance) and change with$this->artist->review
$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? -
Accepted Answer
0I 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. -
Accepted Answer
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!
-
Accepted Answer
-
Accepted Answer
0to 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] -
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0urban 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. -
Accepted Answer
0Germi,
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! -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0anyway, 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 ;
-
Accepted Answer
0Thank 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. -
Accepted Answer
0Support 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 -
Accepted Answer
0Thank 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? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Version 2.2
See the changed file [file name=common-20110519.zip size=2644]http://www.joomlamusicsolutions.com/images/fbfiles/files/common-20110519.zip[/file] -
Accepted Answer
0Good 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] -
Accepted Answer
0What 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. -
Accepted Answer
-
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »