Gossamer Forum
Home : Products : Links 2.0 : Customization :

Recommendation redirection

Quote Reply
Recommendation redirection
I'm using the birdcast recommendation mod with links 2.0 and am using it in a pop up window. When someone clicks on recommend this link, a small window pops up, they enter the email address and click submit...

What I want help on is how do i redirect them to a custom page that allows them to close the window with a "close this window" link instead of having birdcast redirect to the page that the recommend link was clicked from.

I hope i'm not being too confusing.
Quote Reply
Re: Recommendation redirection In reply to
Never mind guys...

I figured out how to do it.
Quote Reply
Re: Recommendation redirection In reply to
Hi, dieeznuts

How'd you set this up? I like the idea of a popup with Birdcast.

Thanks.
Quote Reply
Re: Recommendation redirection In reply to
Go to his or her site and look at the Source Code. All he or she is using is Javascript for the pop-up window.

There are tons of pop-up window codes located at the top javascript sites.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Recommendation redirection In reply to
add this to the head of your category.html or the category subroutine in site_html:

Code:
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers

function recommend(id) {
url = 'http://yoursite.com/cgi-bin/admin/recommend.cgi?ID=' + id;
OpenWin = this.open(url, "recommend",
"width=450,height=300,toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes");
}
// done hiding -->
</script>


then in your link.html if you're using templates just add a javascript call:

Code:
<a href="javascript:recommend(linkIDgoeshere);">Recommend</a>
Quote Reply
Re: Recommendation redirection In reply to
I would recommend linking the site that is in the pop-up window of the Recommend page outside of the pop-up window. May be targeting the link to the _parent window.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Recommendation redirection In reply to
Thank you, both. I'd like to try this with a few things.

Happy Y2K Smile
Quote Reply
Re: Recommendation redirection In reply to
For the redirect

was it just a matter of setting $JUMP_TO or was ther more to it?

I like the look with the window and might change mine later donw the road.
Quote Reply
Re: Recommendation redirection In reply to
Change both $JUMP_TO 's in the sub decode_vars

------------------
Duc Nguyen
duc@html-coder.com
www.html-coder.com/
Webmaster resources!
-------------------------
-------------------------


Quote Reply
Re: Recommendation redirection In reply to
Thanx
Quote Reply
Re: [dieeznuts] Recommendation redirection In reply to
Hi,

Does anybody know how to change the JUMP_TO to a page I want?

Thanks,
Ron