View Full Version : what's this code's purpose
05-29-2004, 04:29 PM
Originally posted by vinyl-junkie
<input type='hidden' name='template_demo' value='/path/to/templates/template.php'/>
I'm really new to php and phpdig but I was looking through your sample code and was wondering what the above code's purpose serves. I have the sample code running and it works really well. Under examination, however, I noticed that I did not have a template.php and so does nothing.
Am I just missing a file or is the script submitting information to a nonexistant file?
05-29-2004, 05:47 PM
Welcome to the forum, compdude! :D
I apologize if I confused you with my template filename in my sample code. That's a custom template that I made myself to match my site's look and feel, not something that came with phpdig.
The default template that phpdig uses is called phpdig.html. It's definition can be found in includes/config.php in the following statement:$template = "$relative_script_path/templates/phpdig.html"; //Template file path
If you'd like a quick and easy way to view all the different templates that phpdig comes with, click Go in the PhpDig Demo search box off the home page, then click on each of the "Choose a template" links at the top of that screen.
Hope this helps. :)
05-29-2004, 07:32 PM
I see. Thank you for the quick reply and yes it did help. Before finally getting php on my own server I had tried running lucene- a apache/jakarta project app that I had the worst time with. But I did get php so now I'm finding out all the nice applications and uses of php.
Thank you for your help
05-29-2004, 11:03 PM
Originally posted by compdude
-----BEGIN GEEK CODE BLOCK-----
GCS/GG/GIT d+(-) s++: a17 C+++ UL++++>$ P+ L++ E W+++>$ N o? K? w++++>$ O M V? PS@ PE+ Y? PGP+ t+ 5 X- R tw-- b++ DI++ D+ G++ e- h-- r-- z-
------END GEEK CODE BLOCK------
I checked out your geek code and the referenced website in your sig. Interesting stuff. Spent a little time this evening trying to decipher it, and figure out where I would put myself.
I have entirely too much time on my hands today. ;)
05-30-2004, 12:08 AM
Glad to have helped relieve just that much boredom you might have otherwise experienced
vBulletin® v3.7.3, Copyright ©2000-2015, Jelsoft Enterprises Ltd.