Page 1 of 1

Email to a friend script...

Posted: Sun 29. Feb 2004, 15:56
by sporto
I adapted this from someone else. Feel free to give it a try...

You can see it in action here:

http://www.animalsense.com

Download here:

http://www.mlbmarketing.com/wcms/

Please post question, comments or errors.

Thanks.

Posted: Wed 2. Jun 2004, 19:50
by eglwolf
This was recommended to me to install on my site, and I have been trying to get it to work, however I am having problems.

When I change:

Code: Select all

$scripturl = "http://www.animalsense.com/phpincludes/rgnrecommend.php";
// this is the location of this script
and enter my URL to the script I get an error in the pop up message that says:
"Error loading up link for recommendation."

I have tried everything and can;t seem to get this to work. Any ideas?

Posted: Sat 5. Jun 2004, 08:22
by DrubusCulubus
Same problem here. I have tried everything! As soon as you figure what the prob is please let me know. :)

Posted: Sat 5. Jun 2004, 08:59
by DeXXus
So does his site:
http://www.animalsense.com/phpincludes/rgnrecommend.php
Error loading up link for recommendation.
Perhaps this would help? Just a wild guess...
http://www.phpwcms.de/forum/viewtopic.php?p=14023#14023
line 45 in the conf.inc.php

Code: Select all

$phpwcms["allow_remote_URL"]  = 1;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed 

Posted: Sat 5. Jun 2004, 20:54
by eglwolf
DeXXus - I do not have that line of code in my conf file.. Is that new?

I still have RC3 (didn't plan to update until I got closer to going live or final release came out)

Posted: Sat 5. Jun 2004, 21:55
by DeXXus
It ~WAS~ NEW w/ latest release(s) :roll:
But an even NEWER update can now be downloaded that has support for a new replacment tag:
http://www.phpwcms.de/forum/viewtopic.php?p=14061#14061

Posted: Sun 6. Jun 2004, 02:12
by Pappnase
DeXXus wrote:It ~WAS~ NEW w/ latest release(s) :roll:
But an even NEWER update can now be downloaded that has support for a new replacment tag:
http://www.phpwcms.de/forum/viewtopic.php?p=14061#14061
hello dexxus

the question is if this patch will works withe rc3 together! i don't believe this! :wink:

Posted: Wed 16. Jun 2004, 15:44
by sporto
I'm using this in RC3 here and it's working:

http://www.healthyschoolscampaign.org/index.php

I'll take a look and see if I see any errors.
So does his site:
http://www.animalsense.com/phpincludes/rgnrecommend.php
Quote:
Error loading up link for recommendation.
You can't link directly to this script because if you do you will not correctly pass the page variable to the script to process. To use it you need to include a PHP include on your page. You'll need to input this somewhere (I placed it in my footer in the template)

{PHP:phpincludes/rec_link.php}

and you can edit rec_link.php and format it as you need. This way the rec_link.php file will pass the page variable to the recomemend script and it should work. (I hope)

Email or post if you have questions.

Posted: Wed 16. Jun 2004, 15:45
by sporto
I hope that helps. :)

Posted: Sat 24. Jul 2004, 03:02
by Stephan
The latest versions have #php_flag register_globals Off
in the .htaccess and that is what kills this script... so I guess a person needs to find out if why and if they can be turned on...

I commented out this line and the error goes away "Error loading up link for recommendation."

And the script works.

Comments from the Gurus on this... I am just a hack

Stephan

Posted: Sun 31. Jul 2005, 16:05
by Apollo2000
hi,

the script is working so far on my website, but there is one problem:

The recommended site is always the URL which is set in the phpwcms/config.php:

$phpwcms["site"] = "http://www.myhomepage.com/";

So when I get the recommend message it always links to the same URL and not directly to the site from where the recommendation was sent.
Looks like this in the mail header:

>>>>>>>>>>>>>>

I found this web page you should check out! Go ahead and click the link below.
This person has recommended:
=> http://www.myhomepage.de/
on [phpwcms-DEMO]

>>>>>>>>>>>>>>

What am I doing wrong? :?