Gossamer Forum
Home : Products : Links 2.0 : Customization :

"what's new" help, please help me

Quote Reply
"what's new" help, please help me
In what's new page, when there is a new link, it's catagory something like this "Internet : WWW" and catagory's url is "http://mysite.com/internet/www/index.html". But I want the catagory split in two parts, "Internet" has a url "http://mysite.com/internet/index.html" and "WWW" has a url "http://mysite.com/internet/www.index.html". How to do this? Please help me. I have searched the forum but can't find something. I think I should modify "sub build_new_page" in nph-build.cgi, but I can't do it. Please help me.
My poor English.
Quote Reply
Re: "what's new" help, please help me In reply to
Change the following codes in the sub build_new_page routine in the nph-build.cgi file:

Code:
$category_clean = &build_clean ($category);
$link_results .= qq|<A HREF="$build_root_url/$category/$build_index">$category_clean</A>\n|;
$link_results .= ${$link_output{$date}}{$category};

TO THE FOLLOWING

Code:
$category_clean = &build_clean($category);
$title_linked = &build_main_linked_title ($link_output);
$link_results .= qq|$title_linked\n|;
$link_results .= ${$link_output{$date}}{$category};

Hope this works and helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




Quote Reply
Re: "what's new" help, please help me In reply to
i've the same request, so i've typed your code but... nothing happen

:(

should i change something else!?!?

thx!

Quote Reply
Re: "what's new" help, please help me In reply to
You have to re-build your index to see changes you make in the nph-build.cgi file.

Regards,

Eliot Lee

Quote Reply
Re: "what's new" help, please help me In reply to
i mean... when i rebuild the site nothing happen... noticed that you call a sub routine named "&build_main_linked_title"... that i haven't in my nph-build.cgi... need i to add a new sub routine?!?!?

angel eliot, thanks for your effort, glad to see you here...

:)

Quote Reply
Re: "what's new" help, please help me In reply to
That sub should be in your db_utils.pl file, which is required in the nph-build.cgi file. Wink

Regards,

Eliot Lee