Forum Open Notice
Forum Open Notice
  1. Forum
  2. Profile for

Lenny

Offline @yts
Posts
12
Rank
New Member
Register Date
20 Mar 2014

Posts

Je pense que cette réponse doit fonctionner : getk2.org/community/English-K2-Community/190565-override-the-administrator-edit-page où il est dit qu'il faut placer le fichier modifié dans...

Communauté française K2 Lenny, 12 years 6 months ago 1 replies

Bonjour, je souhaite modifier l'onglet K2Plugins qui apparaît lorsqu'on installe un plugin K2 qui rajoute des champs à l'intérieur (ou en général qui déclare en avoir besoin). Si je sais : - ajouter des champs avec le fichier .xml...

Communauté française K2 Lenny, 12 years 6 months ago 1 replies

And BTW for filetype you have to rely on PHP mimetypes function or on (better) FIDO python script to find the filetype. lenny

English K2 Community Lenny, 12 years 6 months ago 6 replies

Hi, I don't think you can use "$attachment->filesize" (I did not see it available anywhere in the code), but you can achieve this with something like : <?php $filetotest = JPATH_SITE.'/media/k2/attachments/'.$attachment->filename;...

English K2 Community Lenny, 12 years 6 months ago 6 replies

Works like a charm :-) Thanks a lot !

English K2 Community Lenny, 12 years 7 months ago 6 replies

Hello, since I am in the backend, will return the item id correctly ? I am planning to append it to savepath, such as : in the third occurences found in the item.php file. Thanks a lot.

English K2 Community Lenny, 12 years 7 months ago 6 replies

Thanks, I will try again and I'll post results.

English K2 Community Lenny, 12 years 7 months ago 6 replies

Hello, I am using K2 2.6.8, Joomla 3.2.3 and PHP 5.4.4-14+deb7u7.5 Since, it happens only on .csv files, thats just, .csv are textfiles so k2 is adding the proper extension. I merged mimetype and usage, but it is different things... lenny

English K2 Community Lenny, 12 years 7 months ago 3 replies

Hello, I'm looking to override the administrator/components/com_k2/models/item.php file to add a specific attachement directory per item (having everything in the same directory is not right for what I'm doing). I think I should modify...

English K2 Community Lenny, 12 years 7 months ago 6 replies

Hello, when I upload some .csv files as attachments for an item, a .txt extension is added to the filename. Resulting in some "foobar.csv.txt" Any idea how can I avoid this ? Thanks a lot

English K2 Community Lenny, 12 years 7 months ago 3 replies

More