WordPress.org

Ready to get started?Download WordPress

Forums

How to manage/files ->my-template.php (9 posts)

  1. DDT
    Member
    Posted 9 years ago #

    Hi all,

    Trying to make a plugin and I am stuck with the online editor. I want it to be able to edit my-template.php. I chmod it 666 but I get
    Oops, no such file exists! Double check the name and try again, merci.

    Any pointers??

  2. MichaelH
    Member
    Posted 9 years ago #

  3. DDT
    Member
    Posted 9 years ago #

    tx for your answer.

    I check it out and saw that you need //www.mysite.com/wordpress/filename.php

    But even then I get
    Oops, no such file exists! Double check the name and try again, merci.

    I know for sure chmod is correct and the file comes up when I point the browser to the specific URL.

    Any other suggestions?

  4. DDT
    Member
    Posted 9 years ago #

    btw how does /templates.php?file=...
    in general work?

    get_file_open, maybe??? And can you give a place to look for...

  5. MichaelH
    Member
    Posted 9 years ago #

    If the file doesn't exist that may be why you can't chmod it.

    If you're starting your own Plugin then you'll want to check here:
    http://codex.wordpress.org/Writing_a_Plugin

  6. DDT
    Member
    Posted 9 years ago #

    Tx, for the Writing a Plugin link.

    My plugin does work, but I want the ability to use the online editor for another part of the plugin. I know for sure the file exists and I already manual chmod it 666.

  7. MichaelH
    Member
    Posted 9 years ago #

    Is the file in your wp-contents/plugin directory?

  8. DDT
    Member
    Posted 9 years ago #

    yep, so I already tried //www.mysite.com/wordpress/wp-contents/plugin/my-template.php

    For testing purpose I have put in wordpress/my-template and tried
    //www.mysite.com/wordpress/my-template.php
    I also tried with http:

  9. DDT
    Member
    Posted 9 years ago #

    Wow

    found it, but I have put my-template.php in a lot of folders :(

    I think it should exists in your wordpress "root" folder

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.