Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorphpgirl
    • CommentTimeJan 13th 2008
     # 1
    I'm new to Vanilla (less than a day of experience) so pardon my noobishness if it seems apparent.

    I've successfully integrated Drupal/Vanilla and now I want to start creating some Drupal blocks which display Vanilla data. For example, on my front page I want to display a list of the most popular discussions or most recent posts. If you aren't familiar with a Drupal block, its basically putting code inside of a "div" and Drupal places the div wherever you configure it...pretty simple.

    I'm guessing the block should contains stuff like:

    include settings.php, init_vanilla.php
    a DB query to access the data (or use the ObjectFactory to create a control or something?)
    display the data

    Is this all there is to it? Is there some kind of "template" out there that does what I am looking for?
    •  
      CommentAuthorphpgirl
    • CommentTimeJan 14th 2008
     # 2
    No one can help me out?

    It seems like a pretty simple thing to do...I just can't find the documentation I'm looking for.
    •  
      CommentAuthorjimw
    • CommentTimeJan 14th 2008
     # 3
    There is information in the documentation for integration of Vanilla with WordPress, Drupal, TextPattern and MediaWiki. That would be the place I would look.
    •  
      CommentAuthorphpgirl
    • CommentTimeJan 14th 2008
     # 4
    jimw,

    Those are just for getting the login/authentication playing nice together for both applications.

    I'm looking for a way to access the forum data without writing SQL queries and accessing the database directly, via some kind of API.
    •  
      CommentAuthorjimw
    • CommentTimeJan 15th 2008
     # 5
    Maybe looking at the LatestPostsIntegration add-on will help you.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 15th 2008
     # 6
    The only 'API' for accessing the Vanilla database is the Database object. Otherwise you're gonna have to access the data directly via SQL queries. That would be the method I'd use, what's the reason for your reluctance to use it?
Add your comments
    Username Password
  • Format comments as