#280339 - 10/03/0408:05 PMIIP6.5 "Recommend Us" not working
Basil Fawlty
Journeyman
Registered: 10/30/01
Posts: 135
Loc: New Mexico
Ok, I have IIP6.5 running under Threads 6.5 and so far most things seem to be working with one possibility:<br />When I click the "Recommend Us" link in the Menu Box, my index page just refreshes and only shows the Pal boxes on the left side. No pop up or anything else where I would put in an email address to send to someone. I'm sure its some small thing I overlooked, but darned if I can figure out what. Any ideas?<br /><br />Thanks,<br />Basil
#280340 - 10/03/0408:20 PMRe: IIP6.5 "Recommend Us" not working
[Re: BBCG]
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
see if in your recommendedpal.php file you have the following <br /><br /> // load variables<br /> require("../includes/main.inc.php");<br /> require("$thispath/pals/languages/{$myprefs['language']}/genericpal.php");<br /> require("$thispath/includes/configpal.inc.php");<br /> $html = new html;<br /><br /><br /><br />if so remove those lines and retry it.. then tell me if on front page or sidebar
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
#280341 - 10/03/0408:31 PMRe: IIP6.5 "Recommend Us" not working
[Re: 234234]
Basil Fawlty
Journeyman
Registered: 10/30/01
Posts: 135
Loc: New Mexico
We're getting close. This time the recommend box came up in the center (above all other PAL boxes). I filled it out with a test (one of my alternate email addys) and clicked send and got this:<br /><br />
Code:
Fatal error: Call to a member function on a non-object in<br /> /home/webadmin/www.myforum.com/ubbthreads/pals/recommenduspal.php on line 100<br />
#280342 - 10/04/0412:01 AMRe: IIP6.5 "Recommend Us" not working
[Re: BBCG]
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
whats your line 100 of the recommenduspal.php say?
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
I just commented out the referrer check (these were the lines causing the break), and am waiting to see if I get my own email back.<br /><br />// if (!$config['disablerefer']) {<br />// $html -> check_refer($Cat);<br />// }
#280344 - 10/04/0408:57 AMRe: IIP6.5 "Recommend Us" not working
[Re: 234234]
Basil Fawlty
Journeyman
Registered: 10/30/01
Posts: 135
Loc: New Mexico
[]scroungr said:<br />whats your line 100 of the recommenduspal.php say? [/]<br /><br />I could have sworn I already posted a reply to your question, but I guess I didn't so I will now. Lines 99,100 and 101 are:<br /><br />99>> if (!$config['disablerefer']) {<br />100>> $html -> check_refer($Cat);<br />101>> }
#280345 - 10/04/0409:25 AMRe: IIP6.5 "Recommend Us" not working
[Re: BBCG]
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
try what medar stated.. comment out the referer check
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
Not too deep into this, I can only access certain stuff from work.<br /><br />However, I received a blank email when I tested this out just now. Will see if I can tinker tonight a bit.<br /><br />And scroungr - if I have not said it before, I totally dig the IIP Control Panel integration!
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
#280348 - 10/04/0410:56 PMRe: IIP6.5 "Recommend Us" not working
[Re: 234234]
Basil Fawlty
Journeyman
Registered: 10/30/01
Posts: 135
Loc: New Mexico
[]scroungr said:<br />Okay I "think" I have this fixed and need some testers.. can someone test the recommenduspal.php script here for IIP 6.5.. much appreciated... [/]<br /><br />That works! One small nit though. On the form it asks for "Your Email" (I presume th eemail of the person sending the recommendation goes here) but it doesn't seem to do anything with that field? I entered a bogus email as "Your Email" and then sent it to myself but when I received the recommend email from the system it did not include what I had put in the "Your Email" field. Instead, it put in the email address I use for []webmaster@mysite.com[/]<br /><br />Basil
it works, but not perfect to me. The generated eMail looks like this (I work on german translation for IIP):<br /><br />Hallo <<FRIENDNAMES>>,<br /><br />Zarzal will Dir unsere Webseite gerne empfehlen:<br />http://www.dragonclan-forum.de <br /><br />zusätzliche Nachricht:<br />blubb blubb <br /><br />mit freundlichen Grüßen,<br />[]admin@dragon-clan.de[/]
#280350 - 10/05/0406:41 AMRe: IIP6.5 "Recommend Us" not working
[Re: landyphil]
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
you may need to fix the other language genricpal.php copy the english one to the selected language and change the values. I don;t know any other languages than American so thats the one I made sure is updated...
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.
#280351 - 10/05/0406:42 AMRe: IIP6.5 "Recommend Us" not working
[Re: BBCG]
scroungr
Old Hand
Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
actually it gets sent out from the admin but the message should include thesenders email in the body?
_________________________
Couchtomatoe - www.couch-tomatoe.cc My abilities are for hire for installs, upgrades, custom themes and custom modifications.