Previous Thread
Next Thread
Print Thread
Rate Thread
#243882 04/23/2003 10:12 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I'm using 6.3br1. Here's the situation:

I click on "Browse" and choose the file to attach. The path to the file shows in the little input box. I click on "Continue", the path disappears, and nothing else happens. I've compared my addpost.php file to a stock (unhacked) addpost.php file from 6.3br1 and the only differences are I have these two lines under "Get the input"

[] // strip off the URL
$Icon = basename($Icon);
[/]

I also have another $Icon = just above that, which is

[] $Icon = get_input("Icon","post");
[/]

I guess the prior is from a hack - can't remember which one though. I commented out the extra one though, and attachments still did not work.

I also have the spoiler tag installed:

[]// -----------------------------------------------
// If spoiler tag is used, make sure it was closed (preview)
$spoiler_open = substr_count($PrintBody, "
");
$spoiler_close = substr_count($PrintBody, "
");
if ($spoiler_open > $spoiler_close) {
for ($i = 1; $i <= $spoiler_open - $spoiler_close; $i++) {
$PrintBody = $PrintBody . "[/spoiler]";
}
}
[/]

I have this in two places. Besides those, everything else is the same. I also compared my addpost_preview.tmpl files and they are exact matches. What other files should I look at?

Sponsored Links
eslmix #243883 04/23/2003 10:16 PM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Hmm not sure. My guess was the basename removal should have fixed it...

I'll install spoiler on my fresh br1 forum to see if this occurs, and if so I'll release a new version for 6.3.

beatdown #243884 04/23/2003 10:21 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I took out the basename and the spoiler hack code, still did not fix it. Looks like I'm barking up the wrong tree with addpost.php.

eslmix #243885 04/23/2003 10:26 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
So you can't even post.. like the continue button in addpost isn't working?

That's odd. Has anything potentially got put into safe mode in PHP or turned off attachments?

Daine #243886 04/23/2003 10:31 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
The first click wipes the box of the path. The second click does nothing. The third click submits the post.

I don't know about safe mode since I'm on a shared server. And yes, attachments are turned on.

Sponsored Links
eslmix #243887 04/23/2003 10:37 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'm trying to remember once... I had trouble on a server way back when. They enabled some security lock down, and I couldn't post anything until I turned the attachments off.
But it doesn't sound related.

You said you tried with a clean addpost.php script. Did you also try with the appropriate addpost_preview.tmpl (I think it's called).

If you've done any hacking, my guess might be a misaligned </form> tag.

But this does sound peculiar. I can't think of what it could be.

eslmix #243888 04/23/2003 10:40 PM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Not sure what it is. Just installed Spoiler hack on a test forum of 6.3 br1 without problem.

Maybe check for a misaligned form tag as Josh suggested.

beatdown #243889 04/23/2003 10:46 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I've uploaded a clean addpost.php and that did not fix it, and my addpost_preview.tmpl is identical to the stock 6.3br1 file. Sorry to cause so much brain racking late at night.

If you want to go give it a try, to show you I'm not making this up!

http://www.drumlines.org/threads/ubbthreads.php

Login: test
Pass: threadsdev

Last edited by AKD96; 04/23/2003 10:48 PM.
eslmix #243890 04/23/2003 10:51 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I wonder if anyone has tested attachments with the beta.... or if it's just you. :shrug:

Go here http://www.joshuapettit.com

That's beta 2 which isn't public yet. But quickly register a name and see if you can attach a file there. I'm going to do the same right now.

Also... is is just a particular file, or any file? If it's just a particular file, is there anything odd about the file name.

Daine #243891 04/23/2003 10:54 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Whoa, it just worked at my site. Stand by....

Jeez oh flip. It's working now. WTF? Ghosts in the machine or something...

One thing though, the inline attachment isn't resizing the pics. No biggie. At least attachments work now. Thanks for the support!

Last edited by AKD96; 04/23/2003 10:56 PM.
Sponsored Links
eslmix #243892 04/23/2003 10:56 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'm wondering if you host was monkeying with the PHP settings or something?

Daine #243893 04/23/2003 10:57 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I don't know. They've been moving over their support stuff to their parent company. Communitech.net --> Interland. Stuff has been really slow lately with lots of "max connections" errors. Bastards. Thanks again!

Well, I'm outta here. Time ta go home!

Last edited by AKD96; 04/23/2003 11:00 PM.

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)