Author |
Message |
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Wed Dec 05, 2012 4:15 am Post subject: Attachments problem |
|
|
Just wondering if anyone knows of a solution to this problem that I have faced quite a few times.
There have been occasions when I have wanted to copy a post to another topic or forum.
The text copies just fine as do any images that make use of the [img] tags but images that are attachments do not copy.
Does anyone know of a mod that will make the attachments copy as well?
Jim |
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Thu Dec 06, 2012 4:57 pm Post subject: Re: Attachments problem |
|
|
You want to copy or move?
Attachments are keyed by post_id, so you can't have the same attachment on more than one post. But you could split the post out of one topic, and then merge it in to the other topic (assuming you have a merge MOD installed). The attachments should go along for the ride in that case. _________________ phpBBDoctor Blog |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Thu Dec 06, 2012 5:12 pm Post subject: Re: Attachments problem |
|
|
Yes Dave I can move a topic and merge topics and the attachments stay with the post. There have been instances were I have wanted to copy a post to another location and then it does not work. Sometimes a member has produced a real good build tutorial of a model plane and to stop it being spoilt by irrelevant following ones we start a second topic which is a discussion of that build, locking the original.
We have done this by copying the post and then image locations with [img] tags in order to reinsert the images.
As we encourage loads of photographs then it can be very time consuming.
Jim |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
Posted: Thu Dec 06, 2012 7:36 pm Post subject: Re: Attachments problem |
|
|
If attachments are bound to one specific post id, I suppose modifying the MOD's behaviour to allow more wouldn't be viable.
Maybe add a line that would automatically make a copy of the attachment (physical file) and bind it to the new id when you copy a post elsewhere? |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Fri Dec 07, 2012 4:48 am Post subject: Re: Attachments problem |
|
|
I am afraid that PHP coding is beyond me. I did buy a book on PHP but gave up on it very quickly as I could not find the time needed to learn it.
Now that I am retired I seem to have even less free time.
Jim |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
Posted: Sat Dec 08, 2012 2:05 am Post subject: Re: Attachments problem |
|
|
In addition to having never used the mod, I'm also out of time at the moment so I can't really help more. But if no one else can, try to bump this in a while and I'll see what I can do. |
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Sat Dec 08, 2012 4:42 pm Post subject: Re: Attachments problem |
|
|
Adjusting attachments so that they could be attached to more than one post would not be trivial. It would require a new database table and updates to the attachment MOD itself. _________________ phpBBDoctor Blog |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
Posted: Sun Dec 09, 2012 1:27 am Post subject: Re: Attachments problem |
|
|
What about the other option I offered above? |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Sun Dec 09, 2012 4:13 am Post subject: Re: Attachments problem |
|
|
Thanks for all the replies guys. I have decided that the possible work involved in getting the attachments to copy is not worth it.
We shall continue to copy the post and then edit it to include image locations and [img] tags.
Thanks again
Jim |
|
Back to top |
|
|
drathbun Board Member
Joined: 24 Jul 2008
Posts: 729 Location: Texas
|
Posted: Sun Dec 09, 2012 10:59 pm Post subject: Re: Attachments problem |
|
|
Salvatos wrote: | What about the other option I offered above? |
You mean this?
Salvatos wrote: | Maybe add a line that would automatically make a copy of the attachment (physical file) and bind it to the new id when you copy a post elsewhere? |
The best solution would be to allow attachments to be linked to more than one post. Wordpress, for example, allows you to do this by uploading content not to a post but to a media library. Then you can use the library items on any post by creating a link. That way if the media item is ever updated, then all posts that reference that item automatically get the updated content as well.
Making a physical copy of the item is feasible but not desirable, primarily because of the update issue. _________________ phpBBDoctor Blog |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Mon Dec 10, 2012 5:15 am Post subject: Re: Attachments problem |
|
|
I also have the Userupload by Starfoxtj which I much prefer my users to use for the stated reason.
However a lot find the Attachment mod easier to use.
Jim |
|
Back to top |
|
|
Holger Board Member
Joined: 19 Jan 2009
Posts: 509 Location: Hanover
|
Posted: Tue Jan 01, 2013 10:48 am Post subject: Re: Attachments problem |
|
|
I am using UploadPic for over 7 years now, it is really good! _________________ Love your data! Back it up! |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Tue Jan 01, 2013 11:59 am Post subject: Re: Attachments problem |
|
|
Holger wrote: | I am using UploadPic for over 7 years now, it is really good! |
Does that place the photograph into the post automatically or just give users a repository for the images?
Jim |
|
Back to top |
|
|
Holger Board Member
Joined: 19 Jan 2009
Posts: 509 Location: Hanover
|
Posted: Tue Jan 01, 2013 1:41 pm Post subject: Re: Attachments problem |
|
|
UploadPic stores the images on your server, in a folder that you set up.
It is fully integrated into phpBB2 and the images are inserted into the posts with the img-tag. _________________ Love your data! Back it up! |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Tue Jan 01, 2013 2:16 pm Post subject: Re: Attachments problem |
|
|
Thanks Holger.
That does sound very similar to the "User upload toolkit" by Starfoxtj.
That is integrated into phpBB2 in that it uses the same log in username as phpBB2. It creates a folder into which it the creates individual folders as and when a user accesses the upload. It gives you the facility to specify a global total plus be able to set individual limits on a user by user basis plus a maximum file size on an individual basis.
For example I can set a global total of say 10GB for images plus an individual total of say 50Mb and a max file size of 200KB for ordinary users but should a user be a prolific poster of images I can change just that individuals total.
I might also want to be able to allow moderators the ability to upload larger files and that is easily done.
As with your "mod" this gives you a direct url to copy and paste into a post either as html or with image tags or just a direct link.
No editing of files to do - just a simple link in your navigation.
I would prefer my users to use this all the time instead of the attachment mod as you can insert images as and where you want instead of them all being at the end of a post BUT as you know some folks are not very computer savy and need things to be simple and that is what the attachment mod is.
Jim |
|
Back to top |
|
|
|