应用程序在主题内的模板内

So I have some files that build up an SEO application (MySQL, PHP, JS, Images, etc… (‘a mini site’)) and they are in a folder called ‘body_call’. Inside there are the body.php, index.php, css/style.css etc.

I am working locally on XAMPP and I have buddypress on my site with a theme I bought BuddyBoss.

I made a template called keywords.php that has the header and the footer of the BuddyBoss theme but the body / content I left blank and I’m trying to call the index.php from the application inside the theme.

I tried 2 ways: Putting the Application inside the theme (parallel with the template keywords). And it didn’t show the images, and when I clicked in any link it went to localhost/’folder’/keywords/index.php (page not found). This would never work since the index folder is the main one, and besides that there is the problem about the URL having the …/keywords/… in it.

The second way was putting the application in the root folder, the same problem. Maybe I’m calling the files the wrong way.

So basically how do I include the index.php folder from the application inside the keywords template and make the images appear with the forms, the links to work and all the rest?

Can anyone help?

Thank you so much. :) Best, Miguel

SO...

Here goes part 2

Hello. Thanks for your effort to help I’ll try to explain the situation: So I have a “mini site” (a folder) with the body.php, the css/style.css, the images folder, and so on. It’s inside the theme that I bought called “buddyboss” in the folder “body_call”… I include the body.php inside keywords.php (a template that I made with the center empty). This template is inside Buddyboss. So… Buddyboss-(has inside…) keywords.php and body_call folder… and boddy_call has inside body.php… that is called by keywords.php (The Template). I include the body.php inside keywords.php as follows:

include ('../pastateste/wp-content/themes/buddyboss/body_call/body.php');

pastateste is the folder inside htdocs from XAMPP that has the site. The code for the images (called from inside body.php) is as follows, the body.php calls the images like this:

$botao_verde = "<img src='body_call/imagens/botaoverde.gif' width='20px' height='20px' >";
$botao_laranja = "<img src='body_call/imagens/botaolaranja.gif' width='20px' height='20px'>";
$botao_vermelho = "<img src='body_call/imagens/botaovermelho.gif' width='20px' height='20px'>";
Etc.

The $botao_verde, etc. are variables that I use in the php for inserting the respective gif images. BUT THEY DON’T SHOW on keywords.php! The body file shows more or less ok, but the images are missing and the css file is not working. So… It must be the path that is wrong, but I tried all sorts of paths and can’t make it work. I really tried a lot of different paths…

Another problem is that I have the page that I called “keywords” (from the template keywords.php) and when I click on any of the buttons on the body.php, it goes from domain/keywords to domain/ keywords/index.php “Page not found”. Can you help? Miguel PS: I haven’t uploaded the files to the live server. I have been working locally on XAMPP.