• Resolved kskerp

    (@kskerp)


    I was curious if you could email me a change in the “certificates.php” file that when Namaste is updated it uses this view (if it is saved in the Namaste folder inside the root theme).

    I am trying to understand why my views changes are still requiring me to manually go in and change them inside the Namaste folder. I think perhaps I changed too much php code even though no syntactical errors are made?

    -Kevin

    https://wordpress.org/plugins/namaste-lms/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kskerp

    (@kskerp)

    [ redacted, support is not offered via email ] is my email (not sure if you see that information from my wp profile or not)

    Plugin Author Bob

    (@prasunsen)

    See how the certificate view is called:

    if(@file_exists(get_stylesheet_directory().'/namaste/certificates.php')) require get_stylesheet_directory().'/namaste/certificates.php';
    				else require(NAMASTE_PATH."/views/certificates.php");

    If the file is inside the folder, it should be used, no matter how much code is in it.

    Thread Starter kskerp

    (@kskerp)

    Okay, thank you. I will find out if this is working properly for me on the next update.

    Thread Starter kskerp

    (@kskerp)

    For this new Namaste update, everything worked smoothly. I must have had a typo in the file path or something.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizing the Views Question’ is closed to new replies.