Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter rascalsailor

    (@rascalsailor)

    Hi, thanks for that
    regards
    Russell

    Thread Starter rascalsailor

    (@rascalsailor)

    HI thanks for reply.
    Ok so I think the issue is I need the PDA gold version in order to be able to allow the logged in clients to download the protected files?
    My html form looks like this:

    <label for="DS_files">Report form:</label>
    <form id="msform2" onsubmit="this.action = document.getElementById('report').value">
        <select id="report">
            <option value="https://sherver.co.za/funtronics/wp-content/uploads/_pda/lm_uploads/2022/11/ER02-Day-Skipper-Exam-Report-Form-v2.0.pdf">Report Form</option>
    
        </select>
        <input type="submit" value="Download" class="grey-btn">
    </form>

    I can download the file only if I am logged is as admin.
    Is that correct?
    Russel

    • This reply was modified 3 years, 5 months ago by rascalsailor.
    • This reply was modified 3 years, 5 months ago by rascalsailor.
    Thread Starter rascalsailor

    (@rascalsailor)

    Hi, thanks for the reply.
    I can’t download the file when logged in as admin.
    It may just be my misunderstanding of the use of the plugin:
    I have downloads available on a page. Only registered client users can reach the page and download files. I wanted to prevent the files from being accessed by someone managing to copy the URL and pasting into a browser, by using the generated link.
    Possibly this is not the correct use of the plugin as the logged in user isn’t admin

    Regards
    Russell

    Thread Starter rascalsailor

    (@rascalsailor)

    Hi Thanks for reply.
    htacces contains:

    
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Further: I cleared the browser cache: and I can’t access the files (just get my 404 page)
    the Protected link is:
    https://sherver.co.za/funtronics/wp-content/uploads/_pda/lm_uploads/2022/11/ER02-Day-Skipper-Exam-Report-Form-v2.0.pdf
    Private download link is:
    https://sherver.co.za/funtronics/private/63661babebe42
    Thanks Russell

    Thread Starter rascalsailor

    (@rascalsailor)

    Hi and thanks again. I will have a look
    Edit: I tired the Prevent Direct Access plugin, but it doesn’t appear to prevent me from using the generated protected URL to obtain direct access to a file. I’ve asked on the appropriate forum. (It doesn’t give any obvious conflict with the membership plugin that I can see)
    Regards
    Russell

    • This reply was modified 3 years, 5 months ago by rascalsailor.
    Thread Starter rascalsailor

    (@rascalsailor)

    Hi , thanks for the reply.
    There will be maybe three levels of permissions.
    I have used the Simple WordPress Membership plugin to allow a particular page to be accessible for a particular level user. (So level 1 can access page 1, level 2 can access page 2, etc.)
    So at a page level once that user has logged in and has accessed that page, they can download any file on that page.

    A list would be fine too. Any secure means of presenting the files on the page would be fine.
    The only thing then would be to make the download links secure so that
    they can’t be viewed by inspecting the page HTML .
    (My clumsy workaround at the moment is to add a (identical) password for each file to download, just to prevent direct downloading from outside.)
    Thanks and regards
    Russell

    Thread Starter rascalsailor

    (@rascalsailor)

    Follow up:
    I used debug mode and can see the following was the issue:
    [15-Oct-2022 20:21:31 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 131072 bytes) in /home/sheradmin/public_html/funtronics/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php on line 1279
    I’ll see if I can edit the appropriate config file

    Thread Starter rascalsailor

    (@rascalsailor)

    Thanks for the reply – any idea if there’s a different form plugin (or different smtp plugin) that may work together.
    Otherwise will try make contact.
    Thanks
    Russell

    Thread Starter rascalsailor

    (@rascalsailor)

    Hi and thanks for the reply. That’s interesting – do you think is it something I caused by incorrect use of placing blocks? (Have others not experienced this)
    Is there a suggestion for preventing this in future I wonder?
    You mention:

    You should be able to drag and drop your blocks into the section “Post Content”.

    Do you mean in order to solve the issue that I should drag any blocks to be below Post Content? And/Or ensure when adding new blocks that they are inside Post Content?
    In the case of the page: Blog Page, I can’t even see anything as Post Content in list view (just see a paragraph in list view) and I can’t reach this page for editing any other way (I don’t think), so I may have to redo that one.
    Edit: Post Content is only visible in List View if I select Edit Site to edit the home page, I don’t see Post content in any other page’s list view
    Thanks again
    Russell

    • This reply was modified 3 years, 5 months ago by rascalsailor.
Viewing 9 replies - 1 through 9 (of 9 total)