Previous Thread
Next Thread
Print Thread
Rate Thread
#208017 02/02/2001 8:28 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I just downloaded 5.1.6 today and there is an error in addpost.php, on line 149 it says:
badnames = file ("$config[phpurl]/filters/badnames");
this needs to be
badnames = file ("$config[path]/filters/badnames");





Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
that not all of the changes....

also need to make changes in lines 124,517 and 645


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Was this not working for you. In php you can specify a path or an url to grab a file, so phpurl should work. The reason this was changed is path was causing some problems on some servers with the fileopen because their doc root was already getting prepended to the front of the path.


UBB.threads Developer
Sally #208020 02/02/2001 9:36 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
it was sensoring everything....every word was causing a [censored]

i installed it by copying only the files in 5.1.6 that had changed after i had done a fresh install of 5.1.5 two weeks ago.


Sally #208021 02/02/2001 12:31 PM
Joined: May 2000
Posts: 125
Member
Member
Offline
Joined: May 2000
Posts: 125
Just for information, the 5.1.6 PHP version (so => phpurl) works fine on my server (Platform: MacOS X Server).


Sponsored Links
tym #208022 02/04/2001 12:19 AM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
I've used the new changed version with phpurl on both types of configurations:

1) autoprepend the path
2) no autoprepend of the path

and in both instances phpurl works. I would suggest you check your config file to make sure your path to wwwthreads is set correctly. An incorrect path would result in the behavior you're seeing.

// Url to the main WWWThreads php install
$config['phpurl'] = "http://www.yourdomain.com/path/to/wwwthreads";

And be sure to see whether or not your path has a trailing slash, that too could be a problem.

---------
Shalazar
www.charisma-carpenter.com

G5 #208023 02/04/2001 7:08 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I get :
Warning: file("http://www.mydomain.com/php/filters/badnames") - Success in /home/httpd/html/php/addpost.php on line 149

Warning: Variable passed to each() is not an array or object in /home/httpd/html/php/addpost.php on line 150

when I preview my new post, and then if I go ahead and continue, I get teh censor tags everywhere.


Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Just to add to what Zoran said, and to comment on the post before him, our url is exactly the way it should be, and the way you have said it should be.

We can't open our php forum until we know a fix for this! :(

Deejay


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Ok, it looks like I may have to revert to the old way of doing this, or make a config option or something. What you can do for the meantime is edit your addpost.php, lines 124, 149, 517 and 645 you will see where it says $config[phpurl]. Change these to $config[path] and you should be ok.


UBB.threads Developer
Sally #208026 02/05/2001 11:24 PM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
I would vote for a config option. It would be best for cross-compatability between various systems.

---------
Shalazar
www.charisma-carpenter.com

Sponsored Links

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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
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 20240506)