![]() |
If you want to include some PHP code, then you do need to have a look at that thread I referenced above. Forget about the fact that that particular example is for headers and footers on your customized template. That type of coding is good for any sort of include file which must be parsed. The code that utilizes it can be placed anywhere inside that template file.
Tell me what you want in your custom template and where you want it to go, and I'll write the code for you to show you what I'm talking about. |
Thx A LOT in advance !!
Here's the inital page , the one I have to use to keep the same layout Quote:
In the middle , I'll insert the HTML code of the template file I posted just above. You'll see that there are many includes in the page I just posted. Just in case , here's the code of the files to include : HEADER.INC.PHP Quote:
MENU.INC.PHP Quote:
|
NAVER.INC.PHP
Quote:
OK , it was very long , sorry ...but I hope you'll get the picture |
OK, here's one way of doing this.
In search_function.php, add the following code right after the function statement: Code:
ob_start(); Code:
$t_mstrings = compact('js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links'); Code:
$t_mstrings = compact('my_header_file ','my_menu_file ','my_nav_file ','my_naver_file ','js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links'); Code:
<?include("inc/header.inc.php");?> Code:
<phpdig:my_header_file/> Code:
"<?include("inc/menu.inc.php");?> Code:
<phpdig:my_menu_file/> Code:
"<?include("inc/nav.inc.php");?> Code:
<phpdig:my_nav_file/> Code:
"<?include("inc/naver.inc.php");?> Code:
<phpdig:my_naver_file/> |
So far it seems to work the way I wanted , thx a lot :banana:
Right now , I'm looking for the place I can customize the text message displayed when using the tag <phpdig:result_message/> and <phpdig:nav_bar/> |
The code for both those things is in search_function.php. What exactly do you want to do?
|
Thx a lot , I managed to find the stuffs I wanted to change :yes:
|
All times are GMT -8. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.