Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter caydel

    (@caydel)

    moshu – for now. The software I am using dumps them to these files.

    Ideally, I want something that will create a IRCLogs->Year->Month->Day structure by automatically creating a new page in the database, and directly adding the information…

    Algorithm something like

    begin:

    If page.thisyear does not exist
    create page.thisyear
    if page.thismonth does not exist
    create page.thismonth
    If page.today does not exist
    create page.today

    while (notEnding){
    page.today.append(latestmessage)
    }

    I have a library to connect to and monitor the chatroom. So, I want to write a program which will use this library, and dump each line directly onto the end of the page for the day, and creating the heirarchy of pages as it needs to…

    I guess I will need to start looking into how to create pages via database manipulation…

    Does WP have an API?

    Thread Starter caydel

    (@caydel)

    ok, but I am not looking to redirect to an external page. I want to import this constantly changing dynamic directory so that they act exactly like part of wordpress.

    I can easily do what I need for the index.html file by using a custom page template and <?php include(‘irclogs/index.html’)?> or whatever in place of the blog post.

    The problem lies in that a new file for this is created daily. Perhaps even more often. And I can’t create a new page template with an include for every generated HTML dump.

    This doesn’t even get into the fact that I would be forced then to create a new page for every page template/html dump…

    Ideally, what I want to do is create a single page template which will pull in the index.html file. What I can’t figure out is where to go from there. I need it to work so that every link I click on in the index.html file opens the next file, again included into a WordPress page template again.

    This way, I don’t have to worry about updating these etc. across thousands of manual pages every time I make a minor update…

    Thread Starter caydel

    (@caydel)

    yes, I alreaady have

    Thread Starter caydel

    (@caydel)

    Moshu – it was not meant as an intentional bump – rather, I saw a few things about templates, and decided to rephrase my question in light of what I had just learned.

    Thread Starter caydel

    (@caydel)

    Ok, let me rephrase:

    I want to create a page template that reads in content from an external HTML file… ok, I can do that.

    Is there any way I can set it so that any links contained within the read in HTML file will also open in the same page template?

    ie, so I have a page template which reads in the index.php. I want to be able to click on a link to go to the previous month, and have that as well open within the page template… is this making any better sense?

Viewing 5 replies - 1 through 5 (of 5 total)