Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #31  
Old 07-19-2012, 07:01 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simon, true. I had another look at htaccess. There isn't any rewrite for images and there's no blocking of hotlinking of images, nothing except a www canonical rewrite.

Quote:
Originally Posted by kh99 View Post
I think Lynne was hinting at this before, but anyway - the cleanup2 scheduled task removes any entries from the attachment table that are older than 1 hour and have contentid = 0. So the fact that you saw the record had contentid=0 seems to be the problem...
That makes sense. It appears that the contentid shouldn't be equal to 0 and I don't know what's causing it to default to zero.

I've opened the class_dm_threadpost.php file and the code you posted is in there starting exactly at 526. I wouldn't know how to go about the debugging though and I hate to impose any further.
Reply With Quote
  #32  
Old 09-20-2012, 09:27 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I've stated before, I'm not alone and this is a problem that keeps coming up. Today I found the below explanation from this webmaster forum (reproduced here via the Creative Commons permission they have given on this page). The problem seems to be how images are attached. Using the WYSIWYG interface in vB is what seems to cause the problem and the advice is to avoid it.


Quote:
vB provides two methods for attaching a file to a post (through three different actions). Please be aware that one method works consistently, and the other has had ongoing problems (causing vB boards to purge attachments).

In brief, if you are adding an attachment to a post, click on the Go Advanced button shown under the Quick Reply post entry area. Do not use the Insert Image icon shown at the top of the Quick Reply area, also shown at the top of the post area when clicking on Edit Post.

If your attachment is a graphic and is displayed in your post as a graphic, you have added it correctly. If you have attached another files type, such as a spreadsheet or Zip file, the name of the file should be shown.

If your attachment appears as text, such as:

Attachment 403

you will need to edit your post. Any attachments displayed in a post with the word, attachment, followed by a number, have not been added to a post.

Attachments not used in a post are purged by vB after one hour; Your attachment must be displayed within your post to prevent vB from removing it.

This is all the information needed (if you are familiar with vB use). Greater detail is below.

The correct button to use when adding attachments in vB is below the post entry area (for both the Go Advanced entry screen and the Edit Post entry page), and is named Manage Attachments.

There are two ways to access this tool when making posts to vB. Clicking on 'Go Advanced' to make a post will enable access to the tool. After a post has been made, clicking on Edit Post will also give you access to the tool.

To add a file:
1. Click on Manage Attachments.
2. Click on +Add Files (in the upper right). A dialog allowing you to Select Files is shown.
3. Clicking on Select Files to show files on your computer.
3a. Clicking on Basic Uploader, then Browse, will also allow selection of a file from your computer.
4. Navigate to the directory holding the file you wish to attach
5. Click once to highlight and then click on Open (or double-click the file).
5a. This will show the file name in your Upload Files dialog.
6. Click on Upload Files to add the file to your File Upload manager under Attachments.
7. In the lower attachments area, the file should be accompanied by a tick in a box. If not, click on Insert Inline.
8. Click on Done to complete the process, and close the tool.

Your attachment will be placed wherever your cursor was placed (in your post) when you entered this Manage Attachments tool. (Position can be changed by moving the vB ATTACH code.)

(Please also be aware that this tool does not allow files to be stored for future use. Uploads not utilized within one hour will be deleted. Uploads that are not stored properly are also deleted within an hour.)
Reply With Quote
  #33  
Old 09-20-2012, 02:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I add attachments all the time just using the image button in the Quick Editor and my attachments are still around.
Reply With Quote
  #34  
Old 09-20-2012, 05:26 PM
ICC FORUM's Avatar
ICC FORUM ICC FORUM is offline
 
Join Date: Jun 2011
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I add attachments all the time just using the image button in the Quick Editor and my attachments are still around.
As of Yesterday my members can no longer use the Image Button to add Images, I was previously doing it this way also. The Only way i can use the Quick Editor function is to then click on the Basic upload function..
This is Very Annoying , Is there a Quick Fix for this as i am getting asked by my Members OR is this a VB Gremlin that they are looking in to..

All Images remain once Added , They Never disappear
Reply With Quote
  #35  
Old 09-20-2012, 10:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please start your own thread since your issue isn't covered in this thread at all and it will only get confusing discussing two different issues in the same thread.
Reply With Quote
  #36  
Old 02-16-2013, 07:50 PM
mrfarmdog mrfarmdog is offline
 
Join Date: Jul 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rodeojones View Post
I have the same problem. I have a certain usergroup that can access a CMS page that has a link to an attachment. When I am logged in as administrator I can download the attachment just fine so I know the attachment is there. But when I log in as the other usergroup that can access the file I get the error "Invalid Attachment specified..."

I have verified the permission settings. Any help would be greatly appreciated. Thanks

EDIT: Ok, so I figured out my problem. I had added the attachment to a forum that my usergroup couldn't access and then used that URL for the attachment to the link on my CMS page. When I went in and posted the attachment in a thread my usergroup could access and then used that URL for the attachment, the link it worked just fine. As usual, user operated error Hope this helps anyone with a similar problem though.
Thank you for posting this. I was having the same issue and you helped me solve it!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03961 seconds
  • Memory Usage 2,215KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete