|
09-26-2003, 01:39 PM | #1 |
Green Mole
Join Date: Sep 2003
Posts: 10
|
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 Last edited by jirving; 09-26-2003 at 01:42 PM. |
09-26-2003, 02:28 PM | #2 |
Purple Mole
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
|
Change in congig.php:
//template file and style $template = "$relative_script_path/templates/phpdig.html"; - All templates must in Folder templates - After submit a search you see template which is use in Browser-Adress like: ....php?template_demo=.%2Ftemplates%2Fphpdig.html&site...
__________________
-Roland- :: Test PhpDig 1.6.2 here :: - :: Test-Search for (little) Intelligent Php-Dig Fuzzy :: |
09-26-2003, 08:21 PM | #3 |
Green Mole
Join Date: Sep 2003
Posts: 10
|
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. |
09-26-2003, 09:05 PM | #4 |
Orange Mole
Join Date: Sep 2003
Location: Corbin KY
Posts: 45
|
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 |
09-27-2003, 03:14 AM | #5 | |
Purple Mole
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
|
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.....
__________________
-Roland- :: Test PhpDig 1.6.2 here :: - :: Test-Search for (little) Intelligent Php-Dig Fuzzy :: |
|
09-27-2003, 05:03 AM | #6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
09-27-2003, 07:13 AM | #7 | |
Purple Mole
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
|
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 ::
__________________
-Roland- :: Test PhpDig 1.6.2 here :: - :: Test-Search for (little) Intelligent Php-Dig Fuzzy :: |
|
09-27-2003, 07:37 AM | #8 |
Green Mole
Join Date: Sep 2003
Posts: 10
|
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 . |
09-27-2003, 08:45 AM | #9 | |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Quote:
PHP Code:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
09-29-2003, 06:57 AM | #10 |
Green Mole
Join Date: Sep 2003
Posts: 10
|
Got it all working! Thanks Everyone for your help!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
index.php | brainz | How-to Forum | 1 | 07-10-2006 09:53 AM |
PHP includes in templates | gman | How-to Forum | 14 | 12-03-2004 11:02 PM |
Problems with PHP in templates with version 1.8.3 | guynemer | How-to Forum | 21 | 09-23-2004 01:02 AM |
PHP eval support in templates | joeboe | How-to Forum | 3 | 12-08-2003 11:37 PM |
Using PHP include in templates | sid | How-to Forum | 3 | 11-23-2003 07:06 AM |