Anyone else have this issue?
My videos don't have a uri so boonex defaults to the first video.
Grr, more hacking todo
Anyone else have this issue?
|
The issue here comes from /flash/modules/videos/inc/functions.php Essentially the uploadVideo function DOES NOT set a Uri. The cron is then suppose to set the Uri. However even with the cron running it wasnt creating the Uri but was setting videos to approved. To fix this I change uploadVideo to this: [code]function uploadVideo($sFilePath, $sUserId, $isMoveUploadedFile, $sImageFilePath = '', $sFileName = '') [/code] |
Just to note, this is essentially a backup way of doing things, incase the cron failed for some reason. Which it occasionally did. Or if the user made the title just a space. |
Just to note, this is essentially a backup way of doing things, incase the cron failed for some reason. Which it occasionally did. Or if the user made the title just a space. May be you can write function to translate russian letters in URL for all type of uploading media, name of categories, albums, etc.? Because Dolphin doesnt understand russian title at for example uploading video, and replace all russian letters just by "-", and doesntadd ( .html ) at the end of URL.
|
Hello everybody! We already improved some points of video upload - it will be available in 7.0.1. uploadVideo now has uri generate (like in lightfarm fix) but it helps in cases when user didn't press submit after uploading (ticket 1750) - in other parts uri was generating every time. About non-latin symbols: yes, by default uri from title with non-latin sysmobols will be converted to '-', then if such uri already exists to '-' with adding current date, then - adding order numbers from 0 to 9, then - random number from 0 to 999. Regard |
Hello everybody! We already improved some points of video upload - it will be available in 7.0.1. uploadVideo now has uri generate (like in lightfarm fix) but it helps in cases when user didn't press submit after uploading (ticket 1750) - in other parts uri was generating every time. About non-latin symbols: yes, by default uri from title with non-latin sysmobols will be converted to '-', then if such uri already exists to '-' with adding current date, then - adding order numbers from 0 to 9, then - random number from 0 to 999. Regard Please make function that transform ALL listed problems of non-latin symbols in title categories, albums, video, audio ... into simply ID. It's a solution of any non-latin symbols in URL, see: - http://www.go2life.net/m/videos/browse/album/ ID of category /owner/Pavel2010 - because russian title of category will be just "-" or - http://www.go2life.net/m/videos/view/ ID of video .html - please note that ( .html ) at the end MUST be, this is call Friendly Permalinks! or - http://www.go2life.net/m/articles/category/ ID / ... and so on, etc... Method of ID instead of translit is better and real solution of that old language problems! |
Hello kab!
$s = get_mb_replace ('/([^\d^\w]+)/', '-', $s); // latin characters only and uncomment this one: //$s = get_mb_replace ('/[^\pL^\pN]+/u', '-', $s); // unicode characters In this case this function (all our uri generations work through it) will convert all symbols fine. Regard |
Hello kab!
$s = get_mb_replace ('/([^\d^\w]+)/', '-', $s); // latin characters only and uncomment this one: //$s = get_mb_replace ('/[^\pL^\pN]+/u', '-', $s); // unicode characters In this case this function (all our uri generations work through it) will convert all symbols fine. Regard This method is not enought. Please make function that transform ALL listed problems of non-latin symbols in title categories, albums, video, audio ... into simply ID. It's a solution of any non-latin symbols in URL, see: - http://www.go2life.net/m/videos/browse/album/ ID of category /owner/Pavel2010 - because russian title of category will be just "-" or - http://www.go2life.net/m/videos/view/ ID of video .html - please note that ( .html ) at the end MUST be, this is call Friendly Permalinks! or - http://www.go2life.net/m/articles/category/ ID / ... and so on, etc... Method of ID instead of translit is better and real solution of that old language problems! |
Hello Kab! In current system it's impossible - need to apply too many changes. Also permalinks with ID haven't big sence, that's why we added "uri evolution" from 6.1 version. Regards |