Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Minimize redirects

Quote Reply
Minimize redirects
I decided to devote more attention to Google Page Speed. Among other things, I have this example:

Quote:
Minimize redirects

Remove the following redirect chain if possible:

* http://www.katakombe.com/cgi-bin/directory/jump.cgi?Detailed=1724
* http://www.katakombe.com/directory/Detailed/avivadirectory_1724.html

Script is configured for detailed pages through jump.cgi. In the above example the external link goes through <%URL%> so that jump.cgi is irrelevant there.

Now, I am interested in the following:

How to measure the number of views for detailed pages but not use jump.cgi?

Thanks in advance.

Last edited by:

katakombe: Jan 2, 2010, 12:17 AM
Quote Reply
Re: [katakombe] Minimize redirects In reply to
Are you using static pages, or detailed? (for showing detailed pages)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Minimize redirects In reply to
Hi Andy!

Static and detailed Smile
Quote Reply
Re: [katakombe] Minimize redirects In reply to
Sorry, meant to say "are you using static or dynamic pages" Whistle

Anyway, if you are using static pages I guess you could still track the hits.

Make a new page called track_hits.html .. and put the following content in it: <%track_detailed_hits($ID)%>

Then, add this global:

track_detailed_hits
Code:
sub {
$DB->table('Links')->update( { Hits => \"Hits" } , { ID => $_[0] } );
return;
}

Then, on detailed.html try putting something like:

Code:
<iframe src="<%config.db_cgi_url%>/page.cgi?p=track_hits;ID=<%ID%>" frameborder="0" width="1" height="1"></iframe>

This *should* then track the hits for you, without the need to go through jump.cgi.

Still early morning over here - so apologies if there are any mistakes =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Minimize redirects In reply to
OK Andy, I did as you said, and "error" is gone. I hope the script will continue to monitor the number of load otherwise there is little benefit from the "Cool" pages.

Thanks again Andy and have a nice day.
Quote Reply
Re: [Andy] Minimize redirects In reply to
One more thing Andy, just to be sure:

If you look in the browser for example http://www.katakombe.com/cgi-bin/directory/page.cgi?p=track_hits;ID=3505 the following message appears:

Quote:
Error

Oops, we had the following problem:

Invalid SiteHTML method: site_html_track_hits (track_hits.html). The template does not exist in 'luna'.

Is that OK?
Quote Reply
Re: [katakombe] Minimize redirects In reply to
katakombe wrote:
One more thing Andy, just to be sure:

If you look in the browser for example http://www.katakombe.com/cgi-bin/directory/page.cgi?p=track_hits;ID=3505 the following message appears:

Quote:
Error

Oops, we had the following problem:

Invalid SiteHTML method: site_html_track_hits (track_hits.html). The template does not exist in 'luna'.

Is that OK?

Erm, did you make the new page called trackl_hits.html, and call the global from it like I said ? =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Minimize redirects In reply to
Uuuuppps ... I made track_hits.htm not track_hits.html

Everything is fine now BlushCool
Quote Reply
Re: [Andy] Minimize redirects In reply to
Hi again Andy!

I checked the whole thing again - everything works but clicks are not counted Frown

Any idea?

Many thanks in advance.
Quote Reply
Re: [katakombe] Minimize redirects In reply to
Ooops. this:

Code:
$DB->table('Links')->update( { Hits => \"Hits" } , { ID => $_[0] } );

Should be:

Code:
$DB->table('Links')->update( { Hits => \"Hits + 1" } , { ID => $_[0] } );

Sorry about that!

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Minimize redirects In reply to
He he .. Many thanks Andy SmileWink