Keyword

BUG: Custom folder doesn't work

  • Enrico Ardito
  • Enrico Ardito's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago #16044 by Enrico Ardito
BUG: Custom folder doesn't work was created by Enrico Ardito
After trying many times I've realized that if you set custom names for audio and video folders, videos don't got displayed 'cause plugin always looks for 'audio' and 'videos' folder!

So you have to edit jw_allvideos.php:
// video
	$vfolder 				= $pluginParams->def('video_folder','images/stories/CUSTOMVIDEOFOLDER');
	$vwidth 				= $pluginParams->def('vwidth',400);
	$vheight 				= $pluginParams->def('vheight',300);
	// audio
	$afolder 				= $pluginParams->def('audio_folder','images/stories/CUSTOMAUDIOFOLDER');

Can anyone else confirm this bug?

My config:
Joomla 1.0.15

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #16045 by JoomlaWorks
Replied by JoomlaWorks on topic Re: BUG: Custom folder doesn't work
Thanks for noting that.

It's actually a parameter mistype, there is no need to hardcode your custom folder.

So in order to fix this you should replace:
	// video
	$vfolder 				= $pluginParams->def('video_folder','images/stories/videos');
	$vwidth 				= $pluginParams->def('vwidth',400);
	$vheight 				= $pluginParams->def('vheight',300);
	// audio
	$afolder 				= $pluginParams->def('audio_folder','images/stories/audio');
	$awidth 				= $pluginParams->def('awidth',300);
	$aheight 				= $pluginParams->def('aheight',20);

with this
	// video
	$vfolder 				= $pluginParams->def('vfolder','images/stories/videos');
	$vwidth 				= $pluginParams->def('vwidth',400);
	$vheight 				= $pluginParams->def('vheight',300);
	// audio
	$afolder 				= $pluginParams->def('afolder','images/stories/audio');
	$awidth 				= $pluginParams->def('awidth',300);
	$aheight 				= $pluginParams->def('aheight',20);

I'm releasing v2.5.3 tomorrow to fix this.

Agaian thanks to SuperStitch for noting. ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Enrico Ardito
  • Enrico Ardito's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago #16046 by Enrico Ardito
Replied by Enrico Ardito on topic Re: BUG: Custom folder doesn't work
Thank you, Fotis!  :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum