Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Featured Links

Quote Reply
Featured Links
I am having some what of a problem using the Featured Sites Mod. When I have set up the modification of the scripts and I am using the templates version and I wish for the featured links to be displayed on the main page, and as a result I put a <%featured_r%> on the main page and it tells me "Unkown Tag: featured_r". Can someone please help me with this?

It would be much appriciated.

Regards

quixotic
Quote Reply
Re: Featured Links In reply to
That tag needs to be defined within the sub build_home_page routine in the nph-build.cgi script.

BTW: ALL Links SQL versions use templates. Wink

Regards,

Eliot Lee

Quote Reply
Re: Featured Links In reply to
Thanks for the quick response.

Ahh I See. Please forgive me, I am new to this links SQL and how would one define this tag within the subroutine?

Thanks in advance!

regards,

quixotic
Quote Reply
Re: Featured Links In reply to
... they all use templates, but the subcategory.html was added in one of the betas.... so _that_ is not in 1.0 versions, I'm _pretty_ sure.

http://www.gossamer-threads.com/...ew=&sb=&vc=1


http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Featured Links In reply to
Hello Again,

I do believe you all have me a bit confused, when I said that I am using the templates version I meant i was using the templates version of the modification.

And I am asking now how to define the tag in the the subroutine of the home page.

Thanks in advance

regards,

quixotic
Quote Reply
Re: Featured Links In reply to
Ok, Can you point me to the mod, and tell me what file you are modifying?

The <%featured_r%> tag can only be used, if it is put into the $in->{featured_r} tag somewhere -- usually in the nph-build.cgi routine as mentioned above.

You need to do that before you pass the hashes to the &site_html_build_home (or whatever the subroutine in the HTML_Templates.pm file is called).

If you don't, the tag is not defined, and you get the "Unknown Tag" error.

To use the tag on the category pages, you'd have to do the same thing in the "build_category_page" subroutine.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Featured Links In reply to
Okay,

What I am attempting to do is set up run-down's featured links modification. However I am trying to have the featured links show up on the main page (home.html) . Unfortunatley, whenever I try to place the <%featured_r%> tag on the main page (home.html) I recieve an unknown tag error which I am currently trying to get around. I am, as of late, highly confused and requesting help! : )

Thanks again in advance!

Regards,

quixotic
Quote Reply
Re: Featured Links In reply to
Just catching up on old reading... Sorry it's been so long since you posted this. When in doubt, email me...

Here is the mod being referred to:

http://run-down.com/...s_sql_featured.shtml

However, the server is down for a few hours while everything is being moved to a new NOC.

I haven't tried setting up the featured_r tag to build in an existing template, but I don't see any reason why it wouldn't work. In nph-build.cgi, uncomment this section of the mod:

###### This section for optionally printing via a template file ###########
#
# open (FEATURED, ">$LINKS{build_root_path}/$file") or die ("unable to open featured page: $LINKS{build_root_path}/$file . Reason: $!");
# print "\tFeatured Links: $total\n";
# print FEATURED &site_featured_template ( { featured_r => $featured_r } );
# close(FEATURED);


Then, in HTML_Templates.pm, change this line of the mod to the name of the template file (home.html?) that you want to build it into:

my $output = &load_template ('featured_sites.html', {

I did just notice an error on the page for the mod. I wrote "Column Name: Priority" in step 1 (must've accidentally copied it from the Priority mod). It should be "Column Name: isFeatured". Just thought I'd mention it in case someone runs across it before I update it in the morning after the server is back up...

Dan