Donwload Mod Tag BBCode

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
Antworten
giardiniere
Beiträge: 11
Registriert: Mi 22. Jun 2011, 19:55

Donwload Mod Tag BBCode

Beitrag von giardiniere »

Is it possible to have a tag bbcode that allows you to link a file uploaded via the Mod Download?
So every user can upload document and embed it in a post ;)
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Donwload Mod Tag BBCode

Beitrag von oxpus »

You mean like the attachment function?
Yes, this may be possible, but this is currently not implemented in the MOD itself.
The MOD integrates just a converter for links to download details which will replace the viewable url with the download name.
Like this:

Hotschi's Download MOD (phpBB 3.0.x MOD's)

The link I've posted is (here in a code box to avoid the replacement):

Code: Alles auswählen

Hotschi's Download MOD (phpBB 3.0.x MOD's)
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
giardiniere
Beiträge: 11
Registriert: Mi 22. Jun 2011, 19:55

Re: Donwload Mod Tag BBCode

Beitrag von giardiniere »

On my forum I added some custom tagBBcode that allow me to embed videos, audio files, pdf documents, not just as attachments, but as objects embedded in the text: between the tags is sufficient to indicate the name of the file that was loaded into a dedicated folder.
eg. with this bbcode you can see a pdf file embed in the post:
[pdfsito]{SIMPLETEXT}[/pdfsito]
<iframe src="http://docs.google.com/gview?url=http:/ ... edded=true" style="width:580px; height:500px;" frameborder="0"></iframe>
[pdfsito]filename.pdf[/pdfsito]
The problem is that just me, not the other forum members, can upload files in that folder.
So, if it were possible, every time you load a file via the Download mod, have a bbcode tag that points directly to that file, as eg. Gallery Mod that allows, through tagbbcode [album], to incorporate images uploaded by mod.

http://www.flying-bits.org/viewtopic.php?f=38&t=1624
"BBcode to use images in the gallery postings"

I hope I was clear: I used google translator :oops:
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Donwload Mod Tag BBCode

Beitrag von oxpus »

Sorry, but short: No.

The download mod should control the downloads, the user permissions and as one of the basic functions the traffic on the server itself for each file which is added to the download index.
So your request will be contrary to the basics of the mod.

In addition the files are not usable to embedd them directly in a forum post, because they will be saved on the server with a hash filename and not with the real filename.
To change this the mods needs to be changed in many functions to enable your requested function.
So I've just code and provide the existing file converter, but not more...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
giardiniere
Beiträge: 11
Registriert: Mi 22. Jun 2011, 19:55

Re: Donwload Mod Tag BBCode

Beitrag von giardiniere »

oxpus hat geschrieben:Sorry, but short: No.
:(
oxpus hat geschrieben:The download mod should control the downloads, the user permissions and as one of the basic functions the traffic on the server itself for each file which is added to the download index.
So your request will be contrary to the basics of the mod.
Sorry if I insist. You did a great mod and you updating and improving costantly. Thank you :)
I do not know if I understand correctly. On my forum I did some testing: in Download Mod I created a folder for the upload of documents to be incorporated by setting the permissions for who can use it.
Then I copy the file loaded with the mod download to another folder and rename it (I have to orient myself with the date of the file because the name is changed by the mods ...)
oxpus hat geschrieben:In addition the files are not usable to embedd them directly in a forum post, because they will be saved on the server with a hash filename and not with the real filename.
Would it be possible to make sure that the new name of the file is visible to those who did the upload (or all)?
So to use a tagbbcode enough to use the new name ... Eg. Mod Gallery assigns a sequence number to each photo is loaded and then put that number which is using the tag [album] ...
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Donwload Mod Tag BBCode

Beitrag von oxpus »

Please do not compare the Gallery Mod with the Download Mod. Both mods are completely different and manage all files in completely different methods.
The Gallery create Thumbnails and saves them on the server as an additional file. To add them in posts with Bbcode function the Galley uses GD functions which comes with PHP to manipulate and display the images.
When you copy files with the Download Mod to get the real filenames, you will also use additional space on server, but the same size as the original files haves but not less as the Gallery uses for the thumbs!

So again:
Embedding a download into posts needs more code changes and file handlings as the Gallery needs for simply images, because images can be handled with existing PHP functions but for managing embedded downloads there are no PHP functions to enable this.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
giardiniere
Beiträge: 11
Registriert: Mi 22. Jun 2011, 19:55

Re: Donwload Mod Tag BBCode

Beitrag von giardiniere »

Ok. Thanks for the explanation (which I have not the skills to fully understand :oops: ).
I thought it could be an additional useful feature, but if it is so complicated ... You are the coach :-)
Antworten