Jump to content

Tech Support

Administrators
  • Posts

    1,815
  • Joined

  • Days Won

    339

Posts posted by Tech Support

  1. In your .htaccess file inside a www root you need to find this rule:

    RewriteRule ^videos/([^/]+)/$               view_video.php?dir=$1 [L,QSA]

    and change it like this

    RewriteRule ^video/([^/]+)/$               view_video.php?id=$1 [L,QSA]

    Then you can go to Settings -> Website settings and change Video page URL pattern option to video/%ID%/

    For SEO effect we don't know.

    • Thanks 1
  2. There is no easy way to do that... First of all KVS default theme should automatically add Page number, for example like here:

    https://www.kvs-demo.com/latest-updates/2/

    This is done by the following code in each page where applicable:

    {{if $storage.list_albums_common_albums_list.page_now>1}}
    	{{if $page_title!=''}}
    		{{assign var="page_title" value=$lang.html.default_paginated_title|replace:"%1%":$page_title|replace:"%2%":$storage.list_albums_common_albums_list.page_now}}
    	{{/if}}
    	{{if $page_description!=''}}
    		{{assign var="page_description" value=$lang.html.default_paginated_description|replace:"%1%":$page_description|replace:"%2%":$storage.list_albums_common_albums_list.page_now}}
    	{{/if}}
    {{/if}}

    The code is different for every page, but looks very similar. You can find all such places by going to Website UI -> Search in theme and searching for $lang.html.default_paginated_title in templates.

    This will give a list of page templates with similar code blocks. Now for adding noindex, you need to put the following line inside the first {{if}} condition:

    {{assign var="page_noindex" value="true"}}

    E.g. for the above example of code it should become like this:

    {{if $storage.list_albums_common_albums_list.page_now>1}}
    	{{assign var="page_noindex" value="true"}}
    	{{if $page_title!=''}}
    		{{assign var="page_title" value=$lang.html.default_paginated_title|replace:"%1%":$page_title|replace:"%2%":$storage.list_albums_common_albums_list.page_now}}
    	{{/if}}
    	{{if $page_description!=''}}
    		{{assign var="page_description" value=$lang.html.default_paginated_description|replace:"%1%":$page_description|replace:"%2%":$storage.list_albums_common_albums_list.page_now}}
    	{{/if}}
    {{/if}}

    Then you need to go to Website UI -> Page components -> include_header_general.tpl and add this block anywhere inside <head> section:

    {{if $page_noindex=='true'}}
        <meta name="robots" content="noindex" />
    {{/if}} 

     

  3. 22 minutes ago, naughtyking said:

    or just you did the step 1?

    Step 2 should be done as well, otherwise URLs will not be changed. I guess he was trying to say he didn't add "Video" to the H1, which is step #3 in this guide:

    Quote

    3) In KVS admin panel go to Website UI -> Pages -> Video View block under View Video page and in template code modify this line:

     

    • Like 1
  4. 1) Go to Paypal admin into Pay & Get Paid -> Accept Payments -> Paypal Buttons menu. In the appeared list of button types choose "Subscribe" (not Smart Subscribe). For each of your access option (e.g. 30 days access for $19.95) you will need to create this type of button. Each button may be one-time purchase (e.g. subscription for 1 year, or pack of KVS tokens), or may be recurring purchase if you need this payment to be automatically repeated each period. For one-time purchase choose "Buy Now" as a button type, for subscription choose "Subscriptions".

    Please note that when setting a payment button in Paypal, you should not use multiple prices for the same button, which Paypal allows. If you want to allow user to use multiple payment options (e.g. 30 days access for $19.95, 90 days for 39.95$), please create individual payment button for each option.

    For subscription button types you can also activate a separate trial option if needed.

    After creating a payment button in Paypal admin it will present you with HTML code to insert this button to your site. Please copy the ID of this button (the value of "hosted_button_id" parameter) from the given code, as you will need it for further KVS configuration. If you are not able to identify the button ID, please create support ticket for us and paste the button HTML code provided by Paypal.

    2) Next Go to KVS admin panel -> Memberzone -> Billings -> Paypal. In Paypal settings add access packages as many as needed, they should be set accordingly to payment buttons you've created in Paypal: for each Paypal payment button you should add one access package in KVS admin panel.

    In each access package you should specify its title, duration and rebill duration if needed for expirable access packages, or number of tokens for token access packages; and finally these 2 fields:
    - External package ID: specify payment button ID that you've copied from button HTML code in Paypal.
    - Payment page URL: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXXXXXXXXXXXX (replace XXXXXXXXXXXXX with the same payment button ID that you've copied from button HTML code in Paypal).

    When all access packages are configured, you can activate Paypal billing in KVS admin panel.

    3) Now return back to Paypal customer zone and follow this guide to enable IPN (Instant Payment Notification):
    https://developer.paypal.com/docs/api-basics/notifications/ipn/IPNSetup/#setting-up-ipn-notifications-on-paypal

    As a Notification URL you should used the Postback URL that you can copy in KVS admin panel in Paypal billing page (KVS admin panel -> Memberzone -> Billings -> Paypal).

    • Thanks 1
  5. The import allows you to modify data of any video queried by ID. Your import data should be like this:

    123|new-directory-value
    124|new-directory-value2

     

    Then choose these options in import settings:

    import_update_mode.thumb.png.30981559f8908b8a4d02e2da08a365d2.png

     

    Other options do not matter, keep them as default. Then it will update directories as you specified in import data for the specified videos.

    • Like 1
  6. 4 hours ago, viper said:

    Why no icon for Apple?

    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    

     

    Is it a question to KVS? Why don't we use Apple icon in our themes? But we can't provide any icons, as they are custom made for every site. You need to add this yourself. We are putting default favicon.ico when empty space only to get rid of 404 error, because many browsers will query favicon.ico file automatically, regardless of it being specified in HTML or not.

    • Thanks 1
  7. 12 hours ago, Avtar said:

    How can I move video into remote storage and this script support cloudflare storage?

    You need to set up subdomain on local server and switch KVS to using subdomain for storing videos. But first you need to check if switching off Cloudflare for your project will work.

  8. Some positive news. We got effect after renaming video URL pattern to contain "video" instead of "videos" and adding "Video" word after every video title in H1 tag. Looks like this tricks Google AI to believe that this is a main video content:

    google_video_indexing.thumb.png.2276bd1801c6e78208215bc8a17a45d5.png

     

    What are the steps:

    1) In ./htaccess file in your www root directory (can be edited via FTP or server File Manager) locate these 2 lines going together:

    RewriteRule ^videos/([0-9]+)/([^/]+)/$      view_video.php?id=$1&dir=$2 [L,QSA]
    RewriteRule ^videos/([^/]+)/$               view_video.php?dir=$1 [L,QSA]

    and change ^videos/ to ^video/ in URL pattern (beginning of the line):

    RewriteRule ^video/([0-9]+)/([^/]+)/$      view_video.php?id=$1&dir=$2 [L,QSA]
    RewriteRule ^video/([^/]+)/$               view_video.php?dir=$1 [L,QSA]

    If you don't have these lines, likely your theme is customized to use some other video page URLs, this guide provides only information about default KVS theme URL pattern.

    Also in the upper section of this same file named "# seo redirect rules" add these lines to redirect old video URLs to new:

    RewriteRule ^videos/([0-9]+)/([^/]+)/$  /video/$1/$2/ [R=301,L,QSA]
    RewriteRule ^videos/([^/]+)/$  /video/$1/ [R=301,L,QSA]

     

    2) In KVS admin panel go to Settings -> Website settings and modify Video page URL pattern to "video" instead of "videos". Now all your video pages should be using the new URL pattern.

     

    This was done based on this info and it looks to align with their findings:

    On 1/13/2024 at 5:29 PM, Egg said:

     

    • Thanks 2
×
×
  • Create New...