Jump to content

Tanjiro

Members
  • Posts

    81
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Tanjiro

  1. Hi again, sorry bother you this but I don't understand how it works Let's say my default language is Polish, and I have this category, and when other people switch to English language, how can I translate "surowy film" to English word ? I tried to fill "Title for Polish" box and Description for Polish" box but it didn't translate at all, when I switch to English it still shows "surowy film"
  2. Looks like no one care but I do care, thank you for the tutorial
  3. Oh nevermind, I just checked, I can't see it in view sources to uncheck hidden 😅
  4. If someone view sources code they can still uncheck hidden (which is display:none) and the Display name box will appears again, can I comment {**} (or remove) this div?
  5. So I would like to disable Display name in Edit Profile, so member will only need Username when register, how can I disable "Display name", could you please guide me
  6. Lots of work to do for KVS team🙏 Btw, because I want to watermark text to video like "Uploaded by (user)" so I think the display name must be restricted at certain level, like number of character allowed, must be in symbols/characters allowed like 0-9, A-Z, a-z, '_', '-', '@' and '.' is this possible ? I really need this, at the moment, user can put any characters or symbols (like chinese words or ☺☻♥♦♣♠•◘) in display name option in Profile, they can change to anything they want, I need to restrict that because their name will be in watermark text, it would be a joke if people can put any display name in videos
  7. Update: I did it, but like I said above, I only set watermark in 480p video format but it also watermark-ed in preview mode and other videos format even though I didn't set anything at all (attached picture above) Another (small) issue is the scrolling text is not smooth in 480p mode, it's like running at 10-15 fps (nothing wrong with video), is this fixable ?
  8. I tried, I can't make it work I did set "Customize watermark for content sources" for both of it Watermark (1) I chose my logo image, watermark2 I leave it empty because (I think) it generates text (uploaded by {{user}}) from kvs_watermark_video.php And I copied 2 files like this to /admin/include/ Its code like yours above <?php function kvs_watermark_video($format_postfix, $video_data) { global $config; // here you should create and return image path with your custom watermark text // this file will be deleted, so you need to create it each time // check $format_postfix if you need watermark to be limited to specific formats only, e.g. // if ($format_postfix == '.mp4' || $format_postfix == 'trailer.mp4') // for example you can query user data and render "uploaded by <username>" watermark $user_data = mr2array_single(sql_pr("select * from $config[tables_prefix]users where user_id=?", $video_data['user_id'])); if ($user_data['user_id'] > 0) { $watermark_file = "$config[temporary_path]/custom_watermark.png"; // settings: text, font, size and offset $watermark_text = "This video was uploaded by $user_data[display_name] to XaTinh.com"; $font = "$config[project_path]/admin/data/system/verdanab.ttf"; $font_size = 10; $offset = 20; // rendering logic $box = imagettfbbox($font_size, 0, $font, $watermark_text); $im = imagecreatetruecolor(abs($box[2] - $box[0]) + 2 * $offset, abs($box[7] - $box[1]) + 2 * $offset); imagealphablending($im, false); imagefilledrectangle($im, 0, 0, abs($box[2] - $box[0]) + 2 * $offset, abs($box[7] - $box[1]) + 2 * $offset, imagecolorallocatealpha($im, 0, 0, 0, 127)); imagealphablending($im, true); imagettftext($im, $font_size, 0, abs($box[0]) + $offset, abs($box[5]) + $offset, imagecolorallocate($im, 255, 255, 255), $font, $watermark_text); // save image to temp file imagesavealpha($im, true); imagepng($im, $watermark_file); imagedestroy($im); // return temp file back to KVS engine return $watermark_file; } return null; } Second kvs_watermark2_video.php <?php function kvs_watermark2_video($format_postfix, $video_data) { global $config; // here you should create and return image path with your custom watermark text // this file will be deleted, so you need to create it each time // check $format_postfix if you need watermark to be limited to specific formats only, e.g. // if ($format_postfix == '.mp4' || $format_postfix == 'trailer.mp4') // for example you can query user data and render "uploaded by <username>" watermark $user_data = mr2array_single(sql_pr("select * from $config[tables_prefix]users where user_id=?", $video_data['user_id'])); if ($user_data['user_id'] > 0) { $watermark_file = "$config[temporary_path]/custom_watermark.png"; // settings: text, font, size and offset $watermark_text = "This video was uploaded by $user_data[display_name] to xatinh.com"; $font = "$config[project_path]/admin/data/system/verdanab.ttf"; $font_size = 10; $offset = 20; // rendering logic $box = imagettfbbox($font_size, 0, $font, $watermark_text); $im = imagecreatetruecolor(abs($box[2] - $box[0]) + 2 * $offset, abs($box[7] - $box[1]) + 2 * $offset); imagealphablending($im, false); imagefilledrectangle($im, 0, 0, abs($box[2] - $box[0]) + 2 * $offset, abs($box[7] - $box[1]) + 2 * $offset, imagecolorallocatealpha($im, 0, 0, 0, 127)); imagealphablending($im, true); imagettftext($im, $font_size, 0, abs($box[0]) + $offset, abs($box[5]) + $offset, imagecolorallocate($im, 255, 255, 255), $font, $watermark_text); // save image to temp file imagesavealpha($im, true); imagepng($im, $watermark_file); imagedestroy($im); // return temp file back to KVS engine return $watermark_file; } return null; } I only set watermark in 480p video format but it also watermark-ed in preview mode and other videos format even though I didn't set anything at all Could you please specific more how to do it? I'm appreciate your time and your support
  9. I found out why, it's my fault when copy original data folder system (/admin/data/system/) to restore /admin/data/system/verdanaz.ttf file, I'm an idiot :( But error from table ktvs_friends is gone even though I didn't nothing, I really don't know why?
  10. What if I want to use both watermark image and text watermark scrolling (uploaded by) ? Is it possible ? I can't do that by following this tutorial, there is no option like position, offset, width for vertical and horizontal
  11. Plus, I checked System log and found this Why it got this error? How can I fix it? Please help me KVS :(
  12. This is really weird, I'm thinking I got hacked, I only do few things and I got logout, but I login again it said incorrect password (No user found with such data) I've recovered through this guide: The only thing I did change before I cannot login was relate to this topic I did replace font verdanaz.tff but I'm not sure it cause this or not, after that I restored by copy original verdanaz file from kvs zip file After recovered my admincp, I checked activity log in Administration tab but I didn't see any strange IP, what is the cause for this? I also check Audit and it shows this Right after I cannot login to admincp, the sidebar also not working, it closed by default instead open even though I tried to checked and unchecked it many times I need a big help please :( Does anyone experienced this? I tried to search but found nothing
  13. Same, I also need this, not only hide fading effect but also Subscribe button or Unsubscribe button after click on it, it didn't change its value, like from "Subscribe" to "Subscribed" or "Unsubscribe" to "Subscribe" value after user clicked
  14. Is this available yet ? Ability to reply comments (e.g. hierarchical comments) User notification system, ability for users to get notifications about some events (new comments for their videos for example) Besides, it would be great if this could implemented Right now user won't know if there is any notification or not when they visit site until they hover or click to "hello, user" bar What if there's some notification and there's a sign for it ? Like this, user instantly know there's something for them. The (*) can be a number notification, but it should be red color or highlight color instead normal color And when they click to it, it will be like this Or a notification bell like facebook/youtube would be perfect, a small bell icon next to "Hello, user" bar
  15. How about change recaptcha language? How can I change it ?
  16. May I ask what's the difference between: {{if $smarty.session.user_id>0}}href="{{$item.file_url}}"{{else}}href="{{$lang.urls.login_required}}" data-fancybox="ajax"{{/if}} And <a {{if $smarty.session.user_id>0}}href="{{$item.file_url}}&download_filename=mysite_{{$data.dir}}{{$item.postfix}}"{{else}}href="{{$lang.urls.login_required}}" data-fancybox="ajax"{{/if}} data-attach-session="{{$session_name}}">{{$lang.videos.video_details_label_download_format[$format_lang_key]|default:"%1%, %2%"|replace:"%1%":"`$item.title`"|replace:"%2%":$item.file_size_string}}</a> Which one should I use or is it the same?
  17. Luckily I found this topic, I was intend to create a new topic to ask exactly like this topic, how to enable download to only logged in members, thank you
  18. There is a (maybe small) issue in the process of user uploading video and lack of change file after chose First Second And thirdly is lack of change file feature, like this I hope KVS team can fix and add this feature
  19. I'm facing a problem with uploading video files based on member positions. I've already tried adjusting the post_max_size and upload_max_file_ize settings in PHP, both in the PHP configuration and in the content settings of the KVS setup. However, members are still able to upload video files larger than the specified limits. Surprisingly, I haven't encountered any errors even when attempting to upload video files as large as 10 or 100GB. What could be the reason for this? Another issue I'm dealing with is limiting the character length during user registration. Is there a way to restrict the character count to a specific length? For example, if a user tries to register with a character count exceeding the limit, they should receive a message like "You have exceeded the allowed character limit. Please ensure it is below xx characters.", the registration process should prevent users from completing their registration until they shorten the number of characters. Is implementing this feature possible?
  20. Thank you, I got it Also please help my ticket
  21. I see there is amount number of people subscribe when I visit to another user, but when I go to my own Profile (or user go to their own), there is no amount of user subscribed to them Like this: But when go to my own Profile, nothing shows about how many user subscribed Is this because KVS hasn't updated yet ?
  22. Oh, I don't know why but after I reboot the Storage ftp server, it's working again, really didn't know what was the reason, but thank you for your support
  23. In Storage servers it has an error: Content path is not writable What does this mean, I can manually upload and create files with ftp credentials, and I did not change login or password, I didn't change anything literally, it still working a week ago
  24. I have this error also related to video uploading Could you please check it [2023-05-25 22:35:06] INFO Preparing task for conversion server [PH-P-2] [2023-05-25 22:35:06] INFO Conversion priority level is set to 0 [2023-05-25 22:35:06] INFO Video formats will be created: "MP4 480p", "MP4 720p", "MP4 1080p", "MP4 4k", "MP4 Preview" [2023-05-25 22:35:06] INFO Video files will be post-processed: none [2023-05-25 22:35:06] INFO Timeline screenshots will be created for video formats: "MP4 480p" [2023-05-25 22:35:06] INFO Video main screenshot has been uploaded: 640x360 [2023-05-25 22:35:06] INFO Sources for overview screenshots will be created [2023-05-25 22:35:06] WARN Failed to connect to storage server "Storage Frankfurt", skipping this task There have been hundreds of previous videos that were successfully uploaded, but as time went on, this error started to occur to a lot of videos, I use grabber to make it download to ftp server and system processing it from main server, I did check ftp server and I can still login in with ftp credentials and I can manually upload or create files.
  25. In /var/log/nginx/error.log I don't see any error relate to email While in /var/log/mail.log it has: May 12 14:05:01 domain postfix/qmgr[870355]: 69C10182B: from=<www-data@domain.com>, size=506, nrcpt=1 (queue active) May 12 14:05:32 domain postfix/smtp[897271]: connect to reception.mail-tester.com[94.23.206.89]:25: Connection timed out May 12 14:05:32 domain postfix/smtp[897271]: 69C10182B: to=<test-qyyv5rg5s@srv1.mail-tester.com>, relay=none, delay=8958, delays=8927/0.02/31/0, dsn=4.4.1, status=deferred (connect to reception.mail-tester.com[94.23.206.89]:25: Connection timed out) Could you please guide me how to fix it Thank you
×
×
  • Create New...