Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
Ok, I have IIP6.5 running under Threads 6.5 and so far most things seem to be working with one possibility:
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?

Thanks,
Basil

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
see if in your recommendedpal.php file you have the following

// load variables
require("../includes/main.inc.php");
require("$thispath/pals/languages/{$myprefs['language']}/genericpal.php");
require("$thispath/includes/configpal.inc.php");
$html = new html;



if so remove those lines and retry it.. then tell me if on front page or sidebar

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
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:

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 />  


Now what? (And thanks!)
Basil

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
whats your line 100 of the recommenduspal.php say?

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
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.

// if (!$config['disablerefer']) {
// $html -> check_refer($Cat);
// }

Sponsored Links
Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
[]scroungr said:
whats your line 100 of the recommenduspal.php say? [/]

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:

99>> if (!$config['disablerefer']) {
100>> $html -> check_refer($Cat);
101>> }

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
try what medar stated.. comment out the referer check

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
Not too deep into this, I can only access certain stuff from work.

However, I received a blank email when I tested this out just now. Will see if I can tinker tonight a bit.

And scroungr - if I have not said it before, I totally dig the IIP Control Panel integration!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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...
Attachments
120876-recommenduspal.txt (0 Bytes, 288 downloads)

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
[]scroungr said:
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... [/]

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 [][email protected][/]

Basil

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
it works, but not perfect to me. The generated eMail looks like this (I work on german translation for IIP):

Hallo <<FRIENDNAMES>>,

Zarzal will Dir unsere Webseite gerne empfehlen:
http://www.dragonclan-forum.de

zusätzliche Nachricht:
blubb blubb

mit freundlichen Grüßen,
[][email protected][/]

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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...

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually it gets sent out from the admin but the message should include thesenders email in the body?

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
found my bug in the translation. My fault. I is not FRIENDNAMEs, should be FRIENDNAME and now this work. Sorry.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)