php - Application inside a template inside a theme -


so have files build seo application (mysql, php, js, images, etc… (‘a mini site’)) , in folder called ‘body_call’. inside there body.php, index.php, css/style.css etc.

i working locally on xampp , have buddypress on site theme bought buddyboss.

i made template called keywords.php has header , footer of buddyboss theme body / content left blank , i’m trying call index.php application inside theme.

i tried 2 ways: putting application inside theme (parallel template keywords). , didn’t show images, , when clicked in link went localhost/’folder’/keywords/index.php (page not found). never work since index folder main one, , besides there problem url having …/keywords/… in it.

the second way putting application in root folder, same problem. maybe i’m calling files wrong way.

so how include index.php folder application inside keywords template , make images appear forms, links work , rest?

can help?

thank much. :) best, miguel

so...

here goes part 2

hello. effort i’ll try explain situation: have “mini site” (a folder) body.php, css/style.css, images folder, , on. it’s inside theme bought called “buddyboss” in folder “body_call”… include body.php inside keywords.php (a template made center empty). template inside buddyboss. so… buddyboss-(has inside…) keywords.php , body_call folder… , boddy_call has inside body.php… called keywords.php (the template). include body.php inside keywords.php follows:

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

pastateste folder inside htdocs xampp has site. code images (called inside body.php) follows, body.php calls images 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. variables use in php inserting respective gif images. don’t show on keywords.php! body file shows more or less ok, images missing , css file not working. so… must path wrong, tried sorts of paths , can’t make work. tried lot of different paths…

another problem have page called “keywords” (from template keywords.php) , when click on of buttons on body.php, goes domain/keywords domain/ keywords/index.php “page not found”. can help? miguel ps: haven’t uploaded files live server. have been working locally on xampp.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -