Can I use Wordpress APIs without coding my entire site using wordpress?

Discussion in 'WordPress' started by Imozeb, Jun 18, 2010.

  1. #1
    This is probably a stupid question but I couldn't find the answer else where.

    Can I use Wordpress APIs without coding my entire site using wordpress? (Site is coded with php, html, javascript...)
     
    Imozeb, Jun 18, 2010 IP
  2. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could someone answer please? One of the word press APIs is very useful for my site and I would like to use it. But it seems that wordpress has alot of its own coding language. Am I able to join wordpress APIs and my own php,html and javascript code or do I have to code everything mostly in wordpress to use thier APIs? And is wordpress free?
     
    Last edited: Jun 19, 2010
    Imozeb, Jun 19, 2010 IP
  3. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #3
    I don't think that is going to work. Wordpress needs all of it's files and a database for it's functions to work properly. everything works together.
    What specifically are you trying to accomplish?
     
    hmansfield, Jun 19, 2010 IP
  4. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm trying to create an ad revenue sharing function for my site and I searched the internet for an API to install and I came up with a wordpress API. I read most of the description and it seems to do what I need.

    This is the page: http://adsense.ayanev.com/


    Basicaly I created my site already using normal coding languages and now I need an API which will share ad revenue with the content creators of my site.

    I do have a MySQL database I could use completely for Wordpress data.

    Any idea on what I can do. Thank you.
     
    Imozeb, Jun 19, 2010 IP
  5. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Well I can almost say for certain that you cannot use a Wordpress Plug in outside of Wordpress. If you need to use this exact plug in, I would say that you need to take it apart and and reconfigure the functions to be compatible with your platfrom.

    Unless you are a good php programmer I would think it would be easier to find something else to use.

    Another option would be to install wordpress on a folder of your main site (something like mysitecom/revshare, or revshare.mysite.com) and use it to set up the entire ad rev sharing program with all of the rules, terms or service, log in etc. It would add extra functionality to your existing site, you would have blog capabilities if you need them and be able to run that plug in and any others that would compliment it and expand your program.

    It's done all of the time for people who have static websites and want to add Wordpress capabilities like a blog without having to redesign everything. Just match the colors and basic layout and it can integrate seamlessly with what you already have.

    That's the best, and the easiest, suggestion I have if you really want to use this particular script.
     
    hmansfield, Jun 19, 2010 IP
  6. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    So what you are saying here is that I can install wordpress and the plugin in a folder off my main site. And I can use the plugin on my pages which I have already designed (not using wordpress) without having to redesign the pages which are using the plugin in wordpress? So that I have pages completely designed without wordpress, yet they still contain this one wordpress plugin?
     
    Imozeb, Jun 19, 2010 IP
  7. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #7
    No. The plug in will not work outside of wordpress. What I am saying is to run your rev share program from the Wordpress installation. That is the only way that you can use it. You have to run wordpress. It's a wordpress plug in.
    You can link to it from your main pages, no problem. But if your main site is not Worpdress, merely installing Wordpress next to it wont make it work by osmosis.
    I'm saying to use both or redesign the plug and make it a script that can be used anywhere.
     
    hmansfield, Jun 19, 2010 IP
  8. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    When you say I can link to it does that mean that the pages that are using the wordpress plugin must be made completely in wordpress; I cannot use any of my own code and I cannot integrate my code into the wordpress page at all?

    Thank you for helping. As you can tell by my posts I have no clue how wordpress works with other web programming languages like whether it can be used to complement a site or whether it is a stand alone language like a WYSIWYG.
     
    Imozeb, Jun 19, 2010 IP
  9. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #9
    No you are pretty free. You can make custom pages in Wordpress. You can create pages in HTML. You can also create custom page templates. There are also other plug ins that you can use to do things like execute php in pages.
    I have pages with all kinds of stuff in them, js, php, XML feeds...Wordpress plays pretty well with others.

    If you work well in other languages, the learning curve should be minimal for you.
     
    hmansfield, Jun 19, 2010 IP
  10. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Okay. I'll go and see if I can implement the Wordpress plugin and Wordpress into my site. Thanks for all the help.
     
    Imozeb, Jun 19, 2010 IP
  11. bvraghav

    bvraghav Member

    Messages:
    123
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #11
    In case there is a rigid rule that you DONT WANT TO MOVE to wordpress... you can use wordpress side by side and use ajax to import wordpress generated content :) cheers

    however, I feel replacing the current site with wordpress would be feasible, and a better solution.
     
    bvraghav, Jun 19, 2010 IP
  12. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #12
    Yes, that is important to note. My suggestion is to merely use Wordpress WITH your existing site. You site shouldn't be affected at all, you will be just creating a new area (on a folder or subdomain) in which to run your rev share program that is run on wordpress.

    I'm sure that you have seen this before. Many company websites have their main site and then have added wordpress on a folder to run their blog...you see a lot of URL's such as thecompanycom/blog. The "/blog" part, is the Wordpress installation.
     
    hmansfield, Jun 20, 2010 IP