Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Request: Content Above Discussion Grid?

edited July 2006 in Vanilla 1.0 Help
I was wondering if there was away (without TOO much trouble) to add content above the discussions list. I want to include a PHP file above it. something like a <?php include("content.php"); ?> is this possible, and how would i go about it.

Comments

  • Options
    You might want to check out this thread: http://lussumo.com/community/discussion/2715/

    Which also links to another. Both I think are relavent to what you are after.
  • Options
    And yes, it should support php includes as well.
  • Options
    Go to this link and use that code as an extension:

    http://lussumo.com/community/discussion/2715/advert-addon/#Item_4

    Just replace the javascript code there to put whatever html code or text you'd like to appear above the discussion list. Hope that helps you.
  • Options
    Thanks, the text works great, but I am still having troubles with including a PHP file. To help illustrate my problem, I want to include my wordpress posts above the grid. I am using the K2 theme which isolates the posts from the rest of the index via 'theloop.php' Vanilla and Wordpress share the same root directory on my server. I tried the following without any luck: <?php include("http://.../wp-content/themes/k2/theloop.php"); ?> Any ideas?
  • Options
    nevermind, i decided to just make a CuteNews extension instead
This discussion has been closed.