Gossamer Forum
Home : Products : Links 2.0 : Customization :

Help on Customizing New Template Code Hack

Quote Reply
Help on Customizing New Template Code Hack
Hello everyone!

I installed the "Add a New Template" code hack by AthroRules (thank you very much) and it works very well. What I want to do, though it have it build the file and name is whatever.snp, not index.shtml. I look at the code and it looks like just deleting a $build_index statement but I didn't want to mess up anything. Thanks and God bless!



<><-----------------><>
Daniel
AKA Dan the Great
<><-----------------><>
Quote Reply
Re: Help on Customizing New Template Code Hack In reply to
Very simple....

1) Add the following variable in your links.cfg file:

Code:

$build_special_index = "whatever.snp";


2) Then in the sub-routine you added in the nph-build.cgi file, replace the following codes:

Code:

open (NEWHTML, ">$build_newhtml_path/$build_index") or cgierr ("unable to open Review page: $build_review_path/$build_index. Reason: $!");


with the following codes:

Code:

open (NEWHTML, ">$build_newhtml_path/$build_special_index") or cgierr ("unable to open Review page: $build_review_path/$build_index. Reason: $!");


Notice the bolded codes.

Regards,

Eliot Lee
Quote Reply
Re: Help on Customizing New Template Code Hack In reply to
Thank you Eliot!

It works like a charm. God bless!



<><-----------------><>
Daniel
AKA Dan the Great
<><-----------------><>
Quote Reply
Re: Help on Customizing New Template Code Hack In reply to
You're welcome.

Regards,

Eliot Lee