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.
recent discussions-How to
hi everyone!
new to vanilla!
i have a question.
is there a way to put a block of the recent discusions into my home page?which is wordpress.
like http://www.cssbeauty.com/ has at the bottom and other sites.and how.
thanks a lot
0
This discussion has been closed.
Comments
Updated the first post, try it now, and make sure it's include()ed before any of the page is outputted.
Open up wp-blog-header.php and find this conditional block: Then insert somewhere within that conditional the include() code (assuming you've called the file getdiscussions.php): Then go into wp-content/themes/[your theme]/sidebar.php and add in the unorded list, wherever you feel the discussion list should go:
<li>Lastest Discussions<?php GetRecentDiscussions(); ?></li>
But, assuming you just want the list on the front page, add this right after the call to gzip_compression() in wp_blog_header.php: Then you'd want to modify what you put in the theme file, changing it to this: Sorry for all the confusion.
getdiscussions.php is in /forum
your include_path is "." which equates to "/" for the wp-blog-header script.
so no, it's not going to find it because it's not looking in /forum for it
either change your include path to have ":/forum" in it, or change the script to include forum/getdiscussions.php.
include('getdiscussions.php');
change that to
include('forum/getdiscussions.php');
and see where that gets you.
when SirNot said
define('VANILLA_DIR', '[vanilla_dir]');
he didn't mean it literally. at least i hope not. he meant for you to replace [vanilla_dir] with your actual vanilla dir. like so:
define('VANILLA_DIR', '/forum/');
like i said,
define('VANILLA_DIR', '/forum/');
not
define('VANILLA_DIR', '[/forum/]');