Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: Projects in Progress

Quote Reply
Re: Projects in Progress In reply to
PugdogŪ:

Regarding # 7...

I made a similar mod a while back- at least i THINK i did. Since I am so poor at coding, anything I do tends to be coping and modding existing codes. In any case, i never posted it because I figured it was so trivial.

I just took the static pages (typically, the privacy notice (privacy.html) and the link-to-us kind of pages) and put masters of them all in the templetes dir. Then- the nasty part!- was coding each one into links.pm...

In Reply To:


# The path and URL for the Add Rate page.
$LINKS{build_addrate_path} = "$LINKS{build_root_path}/privacy";
$LINKS{build_addrate_url} = "$LINKS{build_root_url}/privacy";


# The path and URL for the Add Link page.
$LINKS{build_link2us_path} = "$LINKS{build_root_path}/link2";
$LINKS{build_link2us_url} = "$LINKS{build_root_url}/link2";
then I had to mod HTML-Templetes.... that was nasty!

But I just took the existing model for building a page and "adapted it" for what was needed in each existing static page... here is an example for the link to us page referenced above in links.pm (this code in my HTML_Templetes):

In Reply To:

sub site_html_link_2_us {
# --------------------------------------------------------
# This routine will build a add link page.
#
my ($tags, $dynamic) = @_;
my $random2;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";


$random2 = int(rand (8999999)) + 1000000;

defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ('link_2_us.html', {
random2 => $random2,
%$tags,
%GLOBALS
}, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
return $output;
}
That- I think- was all I did. A hassle to go through a bunch of pages to get started, but once it's done, you never do it again! (Oh, BTW, those random number statements are for banner ads.... )

Now, I figure I tyotally missed what you are asking for... cuz if I can figure it out, it is not too hard to do. Thus, you must be asking for something else.... but on the off chance this does it, here ya go!





Subject Author Views Date
Thread Projects in Progress pugdog 4152 Oct 23, 2000, 7:54 AM
Thread Re: Projects in Progress
mdj1 4081 Oct 23, 2000, 4:24 PM
Thread Re: Projects in Progress
pugdog 4070 Oct 23, 2000, 6:00 PM
Post Re: Projects in Progress
carfac 4050 Oct 23, 2000, 8:28 PM
Thread shopping cart
el noe 4042 Oct 23, 2000, 11:51 PM
Thread Re: Plugins
qango 4033 Oct 24, 2000, 2:19 AM
Post Re: Plugins
startpoint 4018 Oct 24, 2000, 3:50 AM
Post Re: shopping cart
startpoint 4051 Oct 24, 2000, 3:52 AM
Post Re: Projects in Progress
startpoint 4007 Oct 25, 2000, 2:53 AM