Skip to:

[Resolved] PHP includes in Buddypress pages.

  • Hello guys,

    I’m trying to write the code for a website and to be honest I’m finding the Buddypress code a step up from WordPress. I’m trying to write php includes into a childpress theme, specifically in Buddypress pages for Activity, Blogs, Forums, Groups and Members.

    I’m hoping to add a second sidebar to every page of the site. I’ve managed to achieve this in all of the standard ‘wordpress’ style template files by using php include(“sidebar2.php”); I’ve defined a function in functions.php that achieves this.

    My problem is, if I try to reference sidebar2.php from the Buddypress specific index files I receive :

    Warning: include(../wp-content/themes/panda/sidebar2.php) [function.include]: failed to open stream: No such file or directory in /home/content/96/7255496/html/mybeautifulbump/wp-content/themes/panda/activity/index.php on line 13

    Warning: include() [function.include]: Failed opening ‘../wp-content/themes/panda/sidebar2.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/96/7255496/html/mybeautifulbump/wp-content/themes/panda/activity/index.php on line 13
    I’ve tried many addresses for the include, but none seem to work. I notice that for all the other functions the files simply reference ‘buddypress’.

    Any ideas please?

    Thank you kindly in advance :)


    P.S. One of the affected pages is: ‘

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] PHP includes in Buddypress pages.’ is closed to new replies.
Skip to toolbar