Gossamer Forum
Home : Products : Links 2.0 : Customization :

New links in the first page

Quote Reply
New links in the first page
Hey guys,

I want the new links added to be shown on the first page of my LINKS 2 . let's say in a separate table column. And I need the names of the links along with there dates (the last ten days). Can any one do this for me? P.S. I am using the non-english MOD, so I need the non-english names of the links to be shown.
Quote Reply
Re: New links in the first page In reply to
Use the LastLink mod, found in the resource center Smile
Quote Reply
Re: New links in the first page In reply to
Did not work!! It said LastLink tag is unknown!!
Quote Reply
Re: New links in the first page In reply to
You have to define the LastLink tag in the sub site_html_home routine in the site_html_templates.pl file, like the following:

Code:
LastLink => $lastlink,

Make sure you use the appropriate case settings for this tag definition.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: New links in the first page In reply to
Hi,

No success.. I've tried the whole thing again.. but no luck.. it keeps saying lastlink is unknown!! I've tried Lastlink and lastlink .. the same result :-(
Quote Reply
Re: New links in the first page In reply to
And you installed the other Last Link codes in the sub build_home_page in the nph-build.cgi file???

If so, and you are using the tag definition I gave you with the <%LastLink%> tag in your home.html, I don't know what to tell you.

Best of luck!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: New links in the first page In reply to
HI,

I did.. I did!! .. do you want to give it a try yourself?! :-)
Quote Reply
Re: New links in the first page In reply to
No...I do not want to try editing your files for you!

Here is a checklist, which is an abbreviated version of the Mods Instructions....

1) Make sure that you have added the following codes in the sub build_home_page routine in the nph-build.cgi file:

Code:
my $LASTX = 6;
open (DB, "<$db_file_name") or &cgierr("unable to open database:$db_file_name.\nReason: $!");
my @lines = <DB>;
close DB;
for ($i=$#lines; $i>=$#lines - $LASTX; $i--) {
chomp $lines[$i];
@tmp = &split_decode ($lines[$i]);
%tmp = &array_to_hash (0, @tmp);
$lastlink .= &site_html_link (%tmp);
}

AFTER the following line of codes:

Code:
print "\tOpening page: $build_root_path/$build_index\n";

2) Then in your site_html_templates.pl file in the sub site_html_home routine add the following tag definition:

Code:
LastLink => $lastlink,

3) Then in your home.html, make sure that you have the following tag:

Code:
<%LastLink%>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: New links in the first page In reply to
Hi AnthroRules,

I have tried what you say above here,
But i see nothing on my page..

http://www.weblinkplaza.com

Can you help my.????

------------------
Quote Reply
Re: New links in the first page In reply to
It's works,,,,,,,

YEs
Quote Reply
Re: New links in the first page In reply to
Looks like you spoke too soon...glad you figured it out.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums