Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
I am having a difficulty in getting the attachment feature to work properly. My forum works properly just the attachment part.

I had followed the instruction on http://www.infopop.com/support/ubbthreads/UBBthreads_attachment.html

And somehow when i attach a gif or jpeg file, nothing will show up. I did the chmod for the new directory to 777 (Unix server).
And on the admin control panel, I am had set the path, url for the attachment, the file type and the file size.

However, after i did the attachment and nothing shows up, i went to that url, and there isn't any image being uploaded there.

does anyone knows the solution?


Thanks,
RudyTan

My UBB threads is 5.5.1 version.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
make sure uploads are enabled in your php.ini file too.

Honor The Victims

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you do not have access to your php.ini on that server upload a php script that contains the following:

<pre>
<?
phpinfo();
?>
</pre>

Then call it from a browser and look for

file_uploads 1 is ON, 0 is Off
also look for
upload_max_filesize it might be too low. Default is 2M

Honor The Victims

Anonymous
Unregistered
Anonymous
Unregistered
I was wondering about the php.ini .
Is it included in the ubb threads software? Where can i find that file? Is this something that i have to discuss with my webhost?

And when you mention about uploading a php script, i am not too familiar with php programming. and where to upload that php scrip to?

Thanks

Anonymous
Unregistered
Anonymous
Unregistered
That script can be uploaded to any directory from which you can run PHP scripts. But phpinfo() provides information that could be useful to people trying to hack your site, so you should delete that script as soon as you've gotten the output from it.

php.ini is the primary PHP configuration file. It's not specific to UBB.threads. If you don't operate your own server, you probably don't have access to change that file yourself, and would have to contact your web host.

However, in the PHP manual (available from php.net), the description for the function ini_set() says that the file_uploads and upload_max_filesize parameters are among those that can be set in an .htaccess file, as well as in php.ini, so that's an alternative. I don't know the syntax for setting those within an .htaccess file, though.

Anonymous
Unregistered
Anonymous
Unregistered
Finally, when i type to the url of the attachment, i can view the attachment. However; i can't see the attachment itself on the forum.

What did i do wrong?
I had set the path and url already.

File size= 200000 (that's 2M right?)
File type=.gif,.jpg,.bmp

thank you

Anonymous
Unregistered
Anonymous
Unregistered
So at the top of the post.... when you click on the "attachment" link..... what URL does it take you to? You said you can view the uploaded images via the URL.... but what URL is the link from the post taking you to?
Are you getting a 404 error?

Anonymous
Unregistered
Anonymous
Unregistered
Not when I clicked.

What i meant is when i typed the url that point to that attachment folder, I can see the attachments in there.
So, the php.ini is working because i can upload the attachments.

The question is: how come it didn't display on the forum itself? What should i do? or didn't do?

Anonymous
Unregistered
Anonymous
Unregistered
Do you see an attachment link next to the subject when viewing the post? Some people have missed it when setting them up for the first time.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
In the subject line... you need to click on this link to view or download the attachment.

<img src="http://www.measurection.com/jtt/attachmentlink.gif" alt=" - " />

Anonymous
Unregistered
Anonymous
Unregistered
Nope, I don't have that.

When you first, attach an image, you should be able to preview it online, right? In my case, I can't even preview it.

But when i press continue to post my post, and i went to the url of the attachment folder, i am able to see that the attachment is uploaded.

But why can't display? Any setting in the admin that need to be change?

Anonymous
Unregistered
Anonymous
Unregistered
Nothing displays. If you attach an image it will NOT appear in the post. There is a hack at ThreadsDev.com to get that done..... but otherwise all you get is the link to the Attachment. Just like my image shows.

Do you have a URL to a post that you've attached something to so that we can see what might be wrong?

Anonymous
Unregistered
Anonymous
Unregistered

Anonymous
Unregistered
Anonymous
Unregistered
OK

I just checked out your board. It's working fine.

You are on an old version. In 5.5.1 the Attachment link is in a slightly different place.

In this thread of yours note that the attachment link is just above the users face pic/below their username.

<img src="http://www.measurection.com/jtt/attachment2.gif" alt=" - " />

Just click on the "Attachment" link, then you can view the photo or whatever file you've attached to the post.

Anonymous
Unregistered
Anonymous
Unregistered
Thanks Josh,

I Appreciate it very much.


Thank you,
RudyTan


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 764 guests, and 261 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)