Forums

[resolved] How to use WordPress functions outside of the blog (7 posts)

  1. promovareseo
    Member
    Posted 2 years ago #

    Hello guys! I have developed an free video script called Zubee Tube and I wanna use WordPress functions in it.

    My question is : What do I need to call in my script to use user related functions from WordPress in my script?

    Like if user is logged in show comment form.

    I need to pull the session and I don't think that

    equire('blog/wp-config.php');
    $wp->init();
    $wp->parse_request();
    $wp->query_posts();
    $wp->register_globals();

    it's enought!

    Anybody can give me some tips or some links to some articles that could help? I got more than 500 persons waiting for an user system, and I think wordpress is the coolest cms to use, also using P2 theme they could make a small social network inside the video website. This could be great dont you think?

    Thank you for your time in helping out!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. promovareseo
    Member
    Posted 2 years ago #

    Thank you! I have read it before, and I know all of thouse, but for user system with cookies and everything, I don't think that is enought.

  4. MichaelH
    Volunteer
    Posted 2 years ago #

  5. promovareseo
    Member
    Posted 2 years ago #

    Thank you! After 1 day of googleing I found some informations, but I didn't get to no specific tutorial or trial, I'm very slow at first, I need an example, but I'll look around and I'm sure I'll do it and share it.

  6. mrmist
    Forum Janitor
    Posted 2 years ago #

    require_once('./blog/wp-blog-header.php');

    Should be all you need to access the functions. (Obviously change the .blog/ relative path to wherever your wp-blog-header is.)

  7. promovareseo
    Member
    Posted 2 years ago #

    Thank you! We'll be back with info on my adventure to wp coding land :)

Topic Closed

This topic has been closed to new replies.

About this Topic