Gossamer Forum
Home : Products : Links 2.0 : Customization :

Send A Link To A Friend

(Page 1 of 2)
> >
Quote Reply
Send A Link To A Friend
Hello, I have a program that I want to use with Links 2.0. The program allow me to send a link to a friend. The problem is, the program only record the link title. I read the script copy right notice. Which allow me to modify it as long as the copy right remain intact. My biggest problem is .. I don't know anything about cgi scripts Frown. Please help! I can email the script to anyone that's willing to take the time out to look at it and help me modify it. PLEASE! I want users to sent the link of choice to a friend. Respectful

A damsel in distress Sly
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
My mod at http://www.ace-installer.com/...Pages&file=links allows you to sent the Title, URL, ID and Description Tongue

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: [AndyNewby] Send A Link To A Friend In reply to
Yipee Woohoo!! .. Thanks Andy Wink
Quote Reply
Re: [AndyNewby] Send A Link To A Friend In reply to
Hey Andy,

One itty bitty question. How can I use this mod to work with my templates? Tongue
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
How do you mean, give it your design?

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: [AndyNewby] Send A Link To A Friend In reply to
Yes. When I click on (send this link); the page doesn't match my website. I'd love to use my template to work with the script. Oh, one more small thing, this part of the script:

<td width="50%">Link You Are Referring to them :</td>
<td width="50%"><a href="$url" target="_blank">$title</a></td>

The $url doesn't work. The title is there although, the link point to my "link directory", not the Title Url. Crazy
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
Where is this happening? Maybe a URL to see?

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: [AndyNewby] Send A Link To A Friend In reply to
Hi Andy, you can try this link. This is what shows up in my browser when I click on the "send this link"

http://rainbow-links.netfirms.com/cgi-bin/links/acereferer.php?id=310&title=LuvlyNspiration's%20World&description=LuvlyNspiration's%20personal%20website.%20%20Just%20chilling%20on%20the%20internet.%20%20Check%20out%20my%20website.&$url=http://luvlynspiration.netfirms.com

Or you can try any link within my directory: http://rainbow-links.netfirms.com
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
The URL one is simple. You are using $url=http://www.pistolandenema.com. When refering them be sure to have it set to &url=<%URL%>, not &$url=<%URL%> Wink As for the looking like your site, thats not quite so easy. I'll post this, and work on a way for you to design your own look in a min Wink

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: [luvlynspiration] Send A Link To A Friend In reply to
Doh, forgot I already made it template based Wink Find;

Code:
// the header that will be shown at the top of the page...
$header = <<<HEADER

header part here <BR><BR>

HEADER;

// the footer that will be shown at the bottom of the page...
$footer = <<<FOOTER

<BR><BR> footer stuff here..

FOOTER;

Just put what you want in the appropriate places to make it look like your site Smile

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: [AndyNewby] Send A Link To A Friend In reply to
Thanks Andy, It's perfect! Smile
Quote Reply
Re: [AndyNewby] Send A Link To A Friend In reply to
Hello Andy, It's me again Tongue. The script is running perfect, although I notice something that puzzle me. I have the script set where a user can send the link to at least 5 people (if perferred). I test the script myself, although I sent the link to only one person. Why did I receive this error message?

There was an error. It was;

A name was not specified for person 2

Is there anyway you can do the "if this than that?" to remove the error message? Since there was no person 2-5.
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
Try finding;

Code:
for ($counting=0; $counting <= $count - 1; $counting++) {

and adding this after it;

Code:
if (!$person9[$counting]) { exit; }

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!

Last edited by:

AndyNewby: Jan 31, 2002, 4:28 AM
Quote Reply
Re: [AndyNewby] Send A Link To A Friend In reply to
You don't want exit.

Use last or next depending on what you want.

Last edited by:

RedRum: Jan 31, 2002, 2:14 AM
Quote Reply
Re: [RedRum] Send A Link To A Friend In reply to
Spose you could you 'last' actually...although exit does just as good job IMO Wink

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: [AndyNewby] Send A Link To A Friend In reply to
exit and last are totally different.
Quote Reply
Re: [RedRum] Send A Link To A Friend In reply to
I know they are! I'm just saying that as it has got to the end of what it needs to do there is no reason for it to carry on! So either last or exit will give the desired effect!

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: [AndyNewby] Send A Link To A Friend In reply to
You should only use exits when you really need to and even then you should use:

exit 0

or

exit 1

Last edited by:

RedRum: Jan 31, 2002, 4:57 AM
Quote Reply
Re: [AndyNewby] Send A Link To A Friend In reply to
Thanks guys. The script work perfect. I had to replace the "exit" command with "last". The exit command froze my browser.
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
Glad to hear it. Paul, don't say a word Wink

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: [AndyNewby] Send A Link To A Friend In reply to
Hello Andy,

Uh oh. According to my browser everything is perfect. I went to check my mail (where I sent the link) to no avail. There wasn't any mail concerning the link I sent. I took a close look at the script to make sure I did everything accordingly. Well, I notice something that was missing in your script that I see alot in other scripts. The sendmail thingy.

There was nothing there that locate my sendmail bin (example: this is set to "/usr/sbin/sendmail", but on many Unix systems, it is located at "/usr/lib/sendmail)

Could that be the problem? If so, how can I add that to the script? Tongue
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
Thats not the problem. If you look I use the mail() feature, which doesn't require Sendmail to be set in the script. Mmm..could you post what you got as an attachment here please?

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: [AndyNewby] Send A Link To A Friend In reply to
Okay, here you go.
Quote Reply
Re: [luvlynspiration] Send A Link To A Friend In reply to
Find;

if (!$person9[$counting]) { last; }

and replace with

if (!$person[$counting]) { last; }

I made a typo in the first edit I told you to do Tongue

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: [AndyNewby] Send A Link To A Friend In reply to
Hi Andy,

It still doesn't work. Could you test it for me? Please. You know, send a link to yourself, just to see if you receive the mail. It not working for me. I'm receiving no mail. Thanks
> >