Templates - cannot get index.php to display different one
HI I just downloaded and installed PhpDig, and the spidering worked great. However, I am trying to get index.php(from a virgin install) to show a different template other than the default one.
I've tried sending requests to the page ie. index.php?template=corporate.html and index.php?template_demo=corporate.html I've also tried changing the $template value in index.php. No go. config.php has an entry for $template, but changing it has no effect. I'm not even sure what $template_demo does. it doesn't get passed to a function, yet it is in the extract() array. The What am I doing wrong. I see that the demo you have running on the site seems to work fine. Pls advise |
Change in congig.php:
//template file and style $template = "$relative_script_path/templates/phpdig.html"; - All templates must in Folder templates :D - After submit a search you see template which is use in Browser-Adress like: ....php?template_demo=.%2Ftemplates%2Fphpdig.html&site... |
I have made that change and it doesn't seem to impact anything. Is there any configuration that says to ignore custom templates?
How is it done in the demo? The links at the top of the page uses the query string to send what template to use. |
Hey hate to but in...
I just done that, I'm using Dreamweaver (I know its not the perfect php editor but it works) and change newspaper.html around getting what I want. Plus I tested it and it looks just like what I want. well mostly I don't see the problem, if Rolandks can help you I would like to find out, maybe I'll learn something David J Harmon Cappuccino David |
Quote:
What is in your Browser-Adress show as template ? Perhaps can you start from beginning, delete all phpdig-tables, and delete all files, extract all new from zip and install again..... |
Hi. I think jirving means that the below link doesn't work, as it still gives the phpdig.html template.
.....%2Ftemplates%2Fgreen.html &site=0&path=&result_page=index.php&query_string=test&limite=10&option=star t Here's how I did it in the demo, although TIMTOWTDI (there is more than one way to do it) ;) In config.php: PHP Code:
PHP Code:
Code:
<phpdig:templates_links/> PHP Code:
|
Quote:
This is a DEMO for little Intelligent Php-Dig Fuzzy NOT Template-DEMO. Works only phpdig.html ! TEMPLATE DEMO are HERE :: Test PhpDig 1.6.2 here :: :mad: |
So the template line in config.php is what changes the template?
ie. //template file and style $template = "$relative_script_path/templates/phpdig.html"; It seems to me I changed that value, but I will try again. (i forgot the uname and password to our server :( ) Thank you for providing the source for the demo. Helped alot. I will post with the results . |
Quote:
PHP Code:
|
Got it all working! Thanks Everyone for your help!
:) |
All times are GMT -8. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.