Play mp3 in a category page

GK User
Tue Feb 21, 2017 9:09 pm
I want to play an mp3 (using AllVideos plugin) in the category description text. As you can see at the webpage :
http://digital-in.info/nigdi/index.php/ ... kappadokia
the player-bar does not appear, only the code that calls the allvideo. When I switch to an other template (for example beez3 template) everything works fine, so there must be some king of conflict between AllVideos and Steak House Template.
Any help will be highly appreciated.
User avatar
Fresh Boarder

teitbite
Sat Feb 25, 2017 11:55 am
Hi

I can see You've been able to put a player using Custom HTML module at the bottom of the page. I believe if You are using it with K2 introtext than in category options You just need to set to parse plugins and also make sure Your infro text does not reach the maximum chars value, becuase it will be cutting HTML in half and resulting in validation errors.
User avatar
Moderator

GK User
Tue Feb 28, 2017 3:59 pm
Thanks for your help TEITBITE, but when you saw the page I was refering, I was just trying to find a workaround.
Let me illustrate my problem clearly:

When I am using the beez3 template everything works fine (example : www.digital-in.info/nigdi/index.php/art ... kappadokia ).

BUT when I am using the Gavick Steakhouse template, it is not (example: www.digital-in.info/nigdi/index.php/art ... eis/pontos ).

Instead of the mp3 control bar, I get the following text :
jwplayer('avID_AVPlayerID_0_d2fb9d9b86612f4023c8aa01109082d1').setup({ 'file': '/nigdi/images/audio/pontiaco2-fadeinout.mp3', 'image': '', 'height': '24', 'width': '480', 'autostart': 'true', 'repeat': 'false', 'controls': '1' });

It seems there is some kind of conflict.
User avatar
Fresh Boarder

teitbite
Wed Mar 01, 2017 1:26 pm
Hi

Och, now I see :). Template is stripping any html to avoid a problem with cutting the content in half an result in validation error. All You need to do is to edit file /html/com_k2/templates/default/category.php and in line 36:

Code: Select all
                                 <small><?php echo strip_tags($this->category->description); ?></small>


make a change to:

Code: Select all
                                 <small><?php echo $this->category->description; ?></small>
User avatar
Moderator

GK User
Sun Mar 05, 2017 10:49 pm
Wonderful! Thanks a lot teitbite!!!
User avatar
Fresh Boarder

teitbite
Wed Mar 08, 2017 12:34 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron