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.
Using comments outside of vanilla.............
Hey guys, Does anyone know of a way how i can use a php code snippet to insert comments on a page outside vanilla, and that page will also allow people to comment too...
Thanks,
wayne
0
This discussion has been closed.
Comments
I think that starting a discussion would be easy without the Vanilla framework. But if you want to add comments, you'll have to use the framework (eg: there's a field that counts comments in a discussion, and I guess you want it to be updated too).
I could give a more precise answer if I knew what you have to see around the comments grid, but I guess you can tweak the head and foot templates for them to include you php or html code.
Note that my trick is rather including your 'outside Vanilla' code in Vanilla, but it should have the same results.
yes, we're more on the same page now ... Basically my problem is vanilla's layout doesn't work for me everywhere on my site. But if i could use the framework to "Display comments in places and the form for adding comments" and Maybe also Display Topics for certain categories this would be great. There's got to be some type of code snippet i can come up with, i just need some help with a push in the right direction. I'm still new to coding in php, but learning alot Any suggestions on how to go about solving these two problems. Also for the two mentioned above, this will be all that is shown, i wont need the panel to be displayed or header in these circumstances. "I guess i'm just trying to use vanilla, for pages that are outside vanilla as a commenting system too" ;0)
So here's how it should at least be setup. I will want to include a specific Category along with a specific topic within that category only displaying the comments from Category->Topic on a page outside vanilla also allowing one that's logged in to comment
Since these comments will be on my custom pages, i'll probably want to hide the category from the actual "forum" to prevent duplicate content.
I hope this is clearer to what i'm trying to accomplish.
Thanks, Wayne
I just think that inclusion this way it's kind of tricky, I still don't get why you cannot include your code in the header or footer templates...