Gossamer Forum
Home : Products : Gossamer Links : Discussions :

jump.cgi and detailed pages hit counts

Quote Reply
jump.cgi and detailed pages hit counts
Hi,

I have searched the forum trying to find out information about the jump.cgi relation to the hits counted. On this new development I am using detailed pages and using the <%detailed_url%> tag. I found one thread that said to use <%db_cgi_url%>/jump.cgi?Detailed=<%ID%> instead which would force the viewer through the jump.cgi but when I use that code I get a 404.

The site is completely dynamic.

What my goal is with this is to count the amount of times a viewer presses the link.html link that takes them to the detailed page. Once they are there I am not worried about counts out to the detail pages represented site.

Any ideas?

Thank you in advance
Quote Reply
Re: [Teambldr] jump.cgi and detailed pages hit counts In reply to
If you get a 404, the situation is simple:
1) the jump.cgi script isn't there
2) the <%db_cgi_url%> path is bad
3) the page where jump.cgi is redirects doesn't exists (which means the Detailed path may be invalid, or static Detailed page is not built)
4) try to use the <%db_cgi_url%>/jump.cgi?Detailed=<%ID%>&d=1 style
Check it. Wink

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] jump.cgi and detailed pages hit counts In reply to
HI and thanks.

I tried quite a few things but what it came down to was this:

I wanted to maintain dynamic with no static builds
I wanted to count hits from the links.html to the detailed page
I wanted to pass all the data through such as review_count, etc to the detail page

The only way to address all these was a hack on the jump.pm

Changing one line of code made it work

FROM
$goto = $CFG->{build_detail_url} . '/' . $id . $CFG->{build_extension};
TO
$goto = $CFG->{db_cgi_url} . '/page.cgi?g=Detailed/' . $id . $CFG->{build_extension};

Then using the <%db_cgi_url%>/jump.cgi?Detailed=<%ID%> tag in the links.html template.

Thanks for the assistance
Quote Reply
Re: [Teambldr] jump.cgi and detailed pages hit counts In reply to
Erm, mod_rewrite? That makes it look like its static pages.. but they are still processed in real time via page.cgi. Should save you hours in the long run, as you won't need to go through and re-make any changes after each upgrade :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump.cgi and detailed pages hit counts In reply to
So far I had to hard code the menu items...It was sending a viewer home to a non-dynamic home page.

Other than that I am still testing the counting of hits. It seems to not be counting them up correctly as of yet but that could be relative to the IP sensitivity (which I am also trying to address).

As well, I am sure that with any upgrade to the jump.pm I will need to reinsert that line change. But it will be a very small price to pay if it does what I need it to do.

Thanks

:)
Quote Reply
Re: [Teambldr] jump.cgi and detailed pages hit counts In reply to
Actually, these issues (hopefully I found them all), have been resolved in 2.99.0.

Adrian
Quote Reply
Re: [brewt] jump.cgi and detailed pages hit counts In reply to
I have a week old install and I was given 2.2.1. Is 2.99.0 the current build?
Quote Reply
Re: [Teambldr] jump.cgi and detailed pages hit counts In reply to
Scratch that....I see that it is the Beta release of the new Links.
Quote Reply
Re: [Teambldr] jump.cgi and detailed pages hit counts In reply to
FYI:

If you use

In Reply To:
>> hen using the <%db_cgi_url%>/jump.cgi?Detailed=<%ID%> tag in the links.html template.


When using a site crawler to build sitemaps you will have to do extensive include/exclude tags and still have all kinds of problems trying to get the detailed pages without all the other stuff in your cgi-bin links.

To crawl a non-dynamic site - I have to change to normal detail - rebuild the site, crawl for a site map and change back to get the detail hits count.

If anyone has a better solution I sure would appreciate it.


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] jump.cgi and detailed pages hit counts In reply to
Can you explain a bit more about the site map? Do you need to crawl the site - couldn't you build it using globals?

Have you tried using mod_rewrite - then the links to the detailed pages can just be http://www.yoursite.com/Title_L23.html
or something similar which maps to
http://www.yoursite.com/...jump.cgi?Detailed=23

Or you could use static pages and use my SiteStats plugin to count detail page hits :-)
Laura.
The UK High Street
Quote Reply
Re: [afinlr] jump.cgi and detailed pages hit counts In reply to
Hello afinlr,

Site maps are utilized for inclusion to major engines such as google and yahoo. They assist the engines in adding all the pages a site contains.

This is the sitemap I use presently:
http://gsitecrawler.com/

At present I am excluding in the below manner:
http://my_domain.com/cgi-bin/add.cgi
http://my_domain.com/cgi-bin/bnbform.cgi
http://my_domain.com/cgi-bin/bookmark.cgi
http://my_domain.com/cgi-bin/browser.cgi
http://my_domain.com/cgi-bin/contact.cgi
http://my_domain.com/cgi-bin/contact_form.cgi
http://my_domain.com/cgi-bin/del_link.cgi
http://my_domain.com/cgi-bin/modify.cgi
http://my_domain.com/cgi-bin/page.php
http://my_domain.com/cgi-bin/postback.cgi
http://my_domain.com/cgi-bin/rate.cgi
http://my_domain.com/cgi-bin/recommend_it.cgi
http://my_domain.com/cgi-bin/review.cgi
http://my_domain.com/cgi-bin/search.cgi
http://my_domain.com/cgi-bin/subscribe.cgi
http://my_domain.com/cgi-bin/user.cgi
http://my_domain.com/cgi-bin/detail_page.cgi
http://my_domain.com/cgi-bin/jump.cgi


Grabbing the detailed pages are the problem when your using jump.cgi to count the clicks to a detailed page.

Hope that makes it clearer for you.


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] jump.cgi and detailed pages hit counts In reply to
OK - I understand.

I build my google sitemaps using globals but I suppose that if you have a lot of extra pages from pagebuilder or similar then it might be easier to crawl your site.
Quote Reply
Re: [SandraR] jump.cgi and detailed pages hit counts In reply to
If the site map is just a list of URL's, rather than the page data itself, why not simply create a script that would write out all the detailed pages on your site?

It would simply be selecting all the ID's that exist in your links table, and then writing out a list of the urls to them. It would be faster, and more efficient.

In fact, simply hijacking the "build" process would give you a list of all the URL's that were built/callable on your system, if they went through the Links SQL system. The only pages that wouldn't get called were pages that were not standard, or were outside the GLinks system.

Rather than calling siteHTML to write out the page, you simply write the target path as a URL to a file.

The time to write this script would pay off in spades if all you needed was the list of valid URL's on your site.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] jump.cgi and detailed pages hit counts In reply to
Excellent idea PUGDOG for the basic URL sitemap list, which works great for MSN and Yahoo.

Of course Google is a different breed, and to get better results from your sitemap google requires the below additions to a URL.

Code:
<url><loc>http://www.mydomain.net/pages/blah_Items/index.html</loc><lastmod>2006-07-20T18:27:44+00:00</lastmod><changefreq>daily</changefreq><priority>0.50</priority></url>

I know we do not speak about SEO here at Gossamer, but there are tricks to creating and crawling a good sitemap. Other than just crawling your pages, graphics and reviews are GOLD for the sitemaps and fodder for google.

Hence the use of an automated system such as the above mentioned crawler or another way to peel this apple would be benificial.

I go through the tedium of swapping from detailed to jump, until my brain can do a work around -- or until one of you guys wants to make some more money from a plug-in Wink


Sandra Roussel
Chonsa Group Design - Fresh Start Housing