Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to: Pre-Link Page?

Quote Reply
How to: Pre-Link Page?
Hi!

I'd like to have a page displayed before someone is going to the direct link.

For example:

There's a link to www.link.com
Someone clicks in my list the link to the page
An advertising site should come up with and ad and at the bottom should be written "Continue the "variable of original link title" embedded in an "a href"
The advertising page will be the same for each link

Can this be done? If yes, how?

Thanks in advance,
sun112
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
Hi,

Are you using detailed pages? If not, then you could just turn on detailed pages and make that your gateway.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How to: Pre-Link Page? In reply to
Uh, sorry, haven't had a deeper look at the script for about a year. If you could give me a quick hint about detailed pages, I'd be very happy.

Version: 2.1.2 of Links

Thanks,
sun112

Last edited by:

sun112: Jul 15, 2005, 3:34 PM
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
Found it out by myself Angelic
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
I've set up the script (without Detailed on) to build in
/www/html/links/pages
but the script is running in
/www/cgi-bin/links/pages

which was working fine.


now, whith detailed pages on, Links tries to build Detailed pages in
/www/cgi-bin/links/pages/Detailed
but it has to be
/www/html/links/pages/Detailed

what do I have to change?

Last edited by:

sun112: Jul 15, 2005, 4:20 PM
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
Greetings:

You need to change your options in 'Setup', 'Paths and URLs'. Just change the build detailed path to what you want.

Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] How to: Pre-Link Page? In reply to
Hi!

In setup / path and urls I don't have a field where I can change the path for Detailed.
admin_root_path, db_cgi_url, db_cgi_url, build_root_url, build_root_path, fileman_root_dir, child_path and path_to_perl
Is what I have there.
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
Hi,

You need to tick the "update others" tickbox, which updates the Cool/New/Detailed paths/URL's, based off build_root_path.

Hope that helps.

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] How to: Pre-Link Page? In reply to
Thanks a lot!

Is it possible to have only the Detailed pages be .php ones?

Greetings,
sun
Quote Reply
Re: [sun112] How to: Pre-Link Page? In reply to
Hi,

Unfortunatly not. You need to run all the pages as one type. i.e

Setup > Build Options
build_index => index.html
build_extension => .html

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: [sun112] How to: Pre-Link Page? In reply to
>> Is it possible to have only the Detailed pages be .php ones?

Something I've seen done, and I'm trying to fix <G> is that they added a handler to make .html parsed by the .php parser as well. This created some security (and other) issues on the site I was working on, but it might be a solution if you need to have the detail pages parsed as if they were .php.

You can set a new handler in the .htaccess file of that directory:

AddType application/x-httpd-php .php .html .htm

This allows any .html or .htm file to be parsed as if it ended in .php *DANGEROUS* from a security point of view on any general server, or server where security is not TIGHT.

DISCLAIMER: this is something I've seen done, and I'm coding it _out_ of the site I found it on. I consider PHP to be a virus, or at best, a security hole (9 out of 10 security holes/breaches of any site I've worked on have been due to PHP -- either PHP itself, or specific php scripts). If you *need* to do it, it's a suggetion, and is offered here to remind people of the power and flexibility of the Apache server :) (not to promote PHP!)



PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.