plFileHandler Not showing new files

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

plFileHandler Not showing new files

Post by andrewvideo »

Hi

Has anyone having the same problem as me. When you upload new files by whatever ftp. Neo upload or even plFileHandler. They are not been shown. but if you empty the browser cache, clear cookies and then relog in.. Then you can see the new uploads (updated dir listings).

I have to go though this every time - empty the browser cache etc to see new files been upload. When I delete the files by ftp, the file manger in plFileHandler still thinks that the old files are there which they are not there anymore until you empty the browser cache then file manger in plFileHandler well see the new updated dir.

Can anyone help. :'(

Cheers.

Andrew

I am using :

CMSMS 1.9.4.3 and tried CMSMS 1.10.2
CTLModuleMaker 2.0.3
plFileHandler 0.6

Here my Blueprint

Code: Select all

<?php
$blueprint = array(
"videos" => array(
	'fields' => array(
		'0' => array(
			'name' => 'Category',
			'friendlyname' => 'Category',
			'type' => 'dropdown',
			'params' => array(
				'indexed' => '',
				'options_table' => 'module_MediaCenter_category'
			)
		),
		'1' => array(
			'name' => 'VideoSummary',
			'friendlyname' => 'Summary',
			'type' => 'textarea',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'wysiwyg' => '1'
			)
		),
		'2' => array(
			'name' => 'VideoDescription',
			'friendlyname' => 'Description',
			'type' => 'textarea',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '',
				'wysiwyg' => '1'
			)
		),
		'3' => array(
			'name' => 'madeby',
			'friendlyname' => 'Made By',
			'type' => 'text',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'maxchar' => '50'
			)
		),
		'4' => array(
			'name' => 'VideoTags',
			'friendlyname' => 'Video Tags',
			'type' => 'text',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'maxchar' => '40'
			)
		),
		'5' => array(
			'name' => 'VideoFile',
			'friendlyname' => 'Video File',
			'type' => 'file',
			'params' => array(
				'indexed' => '',
				'allowedext' => 'mp4,flv',
				'startdir' => '/Videos'
			)
		),
		'6' => array(
			'name' => 'VideoThumbnail',
			'friendlyname' => 'VideoThumbnail',
			'type' => 'image',
			'params' => array(
				'indexed' => '',
				'allowedext' => 'jpg,jpeg,gif,png',
				'startdir' => '/VideoThumbnails',
				'resize' => '1280x720',
				'crop' => '1',
				'thumbsize' => '120x90',
				'thumbcrop' => '1'
			)
		),
		'7' => array(
			'name' => 'Genres',
			'friendlyname' => 'Video / Film Genres',
			'type' => 'dropdown',
			'params' => array(
				'indexed' => '',
				'options_table' => 'module_MediaCenter_genres'
			)
		)
	),
	'lvlid' => 'lvl1',
	'name' => 'videos',
	'name_singular' => 'Video',
	'name_plural' => 'Videos',
	'femode' => 'open',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => '1',
	'adminfields' => array(
		'0' => 'id',
		'1' => 'VideoThumbnail',
		'2' => 'name',
		'3' => 'Category',
		'4' => 'modified',
		'5' => 'active'
	)
),"Category" => array(
	'fields' => array(

	),
	'lvlid' => 'lvl2',
	'name' => 'Category',
	'name_singular' => 'Category',
	'name_plural' => 'Categories',
	'femode' => 'closed',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => ''
),"Genres" => array(
	'fields' => array(

	),
	'lvlid' => 'lvl3',
	'name' => 'Genres',
	'name_singular' => 'Video / Film Genres',
	'name_plural' => 'Genres',
	'femode' => 'closed',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => '',
	'adminfields' => array(
		'0' => 'id',
		'1' => 'name',
		'2' => 'modified',
		'3' => 'active'
	)
));


User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: plFileHandler Not showing new files

Post by Dr.CSS »

By chance do you have the time zone set for this site?...
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

Do you mean in the config file?. That's is already there.

$config['timezone'] = 'Europe/London';

Cheers

Andrew
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

Can anyone help and I am bang my head. lol

Cheers

Andrew
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: plFileHandler Not showing new files

Post by mw »

just a shot in the dark but perhaps change:

'allowedext' => 'jpg,jpeg,gif,png',

to

'allowedext' => 'jpg', 'jpeg' , 'gif' ,'png',
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

that dint work :(

One thing its work great when you disabled Cache in firefox.

I even try adding this the header no luck

Code: Select all

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="-1">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">';
Can anyone can help.

Cheers

Andrew
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: plFileHandler Not showing new files

Post by mw »

that is odd...
well if you need to force it you could try call : clearstatcache();
after your done with your file stuff...
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

I tried that as well. Not really the sever side is having that problem. Its browser side. when you disabled Cache in browser works find. But I dont really want people have to install firebug so they can disabled Cache in there browser.

anyone ??? :'(

Cheers

Andrew
gianpiero
Forum Members
Forum Members
Posts: 221
Joined: Sun Jan 07, 2007 4:32 pm

Re: plFileHandler Not showing new files

Post by gianpiero »

is it only a firefox issue ?
I'm interested in it, may be you ask your editors using Chrome ?

Unfortunatly Firefox need CTRL+F5 for reloading cache completely.
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

I tried in Safari and its same. :(
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: plFileHandler Not showing new files

Post by andrewvideo »

The only work around Posted By: Bernd Klenk (klenkes)

As a workaround klenkes now use this button on top of the template select_image:
<input type="button" value="Refresh window" onClick="location.reload(true)" />


But has anyone know how to fix this problem


Cheers

Andrew
User avatar
Freud
Forum Members
Forum Members
Posts: 53
Joined: Fri Jun 12, 2009 6:45 pm

Re: plFileHandler Not showing new files

Post by Freud »

Same problem here.
I've added another workaroud:

In the plFileHandler 'select-image'-template add </__body onLoad="javascript: window.location.reload();"> instead of the normal </__body>-tag.

The select-image-window refreshes each time it's opened and the uploaded files are visible.

EDIT:
Not realy a solution: select-image-window will keep on refreshing wich makes it hard to select an image.
Post Reply

Return to “Modules/Add-Ons”