Email to a friend script...

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

Email to a friend script...

Post 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.
eglwolf
Posts: 70
Joined: Mon 12. Apr 2004, 01:23

Post 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?
DrubusCulubus
Posts: 47
Joined: Sat 10. Apr 2004, 12:53
Location: NL

Post by DrubusCulubus »

Same problem here. I have tried everything! As soon as you figure what the prob is please let me know. :)
http://qoala.nl - Nieuws om op te reageren!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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 
eglwolf
Posts: 70
Joined: Mon 12. Apr 2004, 01:23

Post 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)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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
Pappnase

Post 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:
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

Post 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.
Last edited by sporto on Wed 16. Jun 2004, 16:28, edited 1 time in total.
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

Post by sporto »

I hope that helps. :)
Stephan
Posts: 17
Joined: Sat 17. Apr 2004, 01:38
Contact:

Post 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
Apollo2000
Posts: 56
Joined: Thu 7. Jul 2005, 16:05

Post 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? :?
Post Reply