Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

Loading info into panel using php include?

edited May 2006 in Vanilla 1.0 Help
Hi all im a new Vanilla user and am setting up a new site running Vanilla. Its all going well except for this one problem, in the side panel I would like to use a PHP include to display text from a PHP file. I figured the easiest way to do this would be to add the following: <? include (\"http://domain.com/languages/quotes.php\"); ?> Into the languages/english.php file but the text doesn't show up? How can I go about adding somthing other than plain text into the sidebar, I would like it to be a php include so I can add the google adsense code at a later date if required or run a randon quotes script. Thanks, Mike.

Comments

  • There's an example of how to add to the sidebar panel in the vanilla documentation. I expect the mini-search example is closest to what you're trying to achieve. You should be able to put your equivalent string to $searchform from that example in a separate document and then include it at the beginning of your extension.

    (the above applies to v1.0)
This discussion has been closed.