Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

General Discussions


You are currently viewing our General Discussions as a guest. Please register to participate.
Login



Reply
Anyone good with PHP?
Old 07-10-2006, 10:17 PM Anyone good with PHP?
Junior Talker

Posts: 1
Trades: 1
I've downloaded a link directory script called Free PHP Directory Script and Im having trouble finding the right files to edit to customize the look of the directory.

In Its feature list is says...
Quote:
Completely template-driven: change the directory appearance by modifying just the template files.
The script is very small (much smaller then PHPLD) and won't take anyone more then five minutes to setup. Could anyone install It and point me in the right direction?

Website: http://www.freephpdirectoryscript.com/
Download: http://www.freephpdirectoryscript.com/script.zip

inch:
jSonic is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2006, 11:53 PM
obenix's Avatar
Skilled Talker

Posts: 76
Location: CyberSpace
Trades: 1
What are you trying to customize? The entire look? The logo?

Take a look at the readme file:
Quote:
Customization

The script is totally template-based. All code returned is editable through the template files: /template_index.php for index and categories, /template_search.php for search results and /template_add_url.php for the submission forms.

Each template block is saved in a PHP variable, for instance: $TEMPLATE["HEADING"] = <<<EOF Here the editable text! EOF;

Within these variables you can use any HTML code, besides "labels" that will allow you to use dynamic content generated by the script. This labels are presented within brackets, for instance [CATEGORY_NAME].

Read the template files and look the returned code for better understanding.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Submit your site(s) to our PR5
Please login or register to view this content. Registration is FREE
for free
obenix is offline
Reply With Quote
View Public Profile
 
Old 07-11-2006, 12:57 AM
Junior Talker

Posts: 1
Trades: 1
Thanks for your help.
Quote:
Each template block is saved in a PHP variable, for instance: $TEMPLATE["HEADING"] = <<<EOF Here the editable text! EOF;
I read It but I was confused by this. What does It mean?

I've only ever delt with scripts that have header and footer files included.
jSonic is offline
Reply With Quote
View Public Profile
 
Old 07-11-2006, 01:59 AM
ForgottenCreature
Guest

Posts: n/a
Trades:
I just downloaded it and took a look. The file you need to modify is template_index.php. You modify it simply by doing the following (here is an example).


This is what they give you:
PHP Code:
$TEMPLATE["PATH"]["FOOTER"] = <<<EOF

EOF; 
Heres what you can do:
PHP Code:
$TEMPLATE["PATH"]["FOOTER"] = <<<EOF
<a href=#>link 1</a> - <a href=#>link 2</a> - <a href=#>link 3</a> 
EOF; 
So, basically what I am saying is you can edit whats between the "<<<EOF" and the "EOF;". Anything between those will appear in the template you modified.

I hope that makes sense, I'm 95% sure I'm right.
Reply With Quote
 
Old 07-11-2006, 11:43 AM
Junior Talker

Posts: 1
Trades: 1
Ok thanks Pat, I'll have a go at It soon.
jSonic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Anyone good with PHP?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42799 seconds with 12 queries