Posts: 10
Threads: 1
Joined: Dec 2010
2010-12-24, 20:54:49
(This post was last modified: 2010-12-25, 23:50:41 by masud.)
Task
I want to make plugin that will upload files to subfolders from administator's panel without using ftp-clients.
Is there any working solution to upload files not only to /data/upload, but in to different subfolders? For example /data/upload/folder1, /data/upload/folder2.
What i did?
I replaced $targetPath in upload-ajax.php with the constant that dynamically creats before uploading, but i think that this constant works only on that page and i couldn't pass it to upload-ajax.php. So in this case $targetPath is empty and files uploading to the /admin folder.
Next i tried to get a folder name via $_GET array, so it looks like $targetPath=GSDATAUPLOADPATH.$_GET['folder'];
in this case $_GET part didn't get any thing, so files was placed in default upload folder.
Also i tried to write folder path to the file on disk and in upload-ajax read it to get folder path. And to check $targetPath variable after reading file with folder path i rewrite it with $targetPath value. In this case when i writed folder path to file it is OK. But when i write back value of $targetPath file was empty. I think that $targetPath was empty to and uploaded files was saved to /admin folder.
Can anybody help with this problem. How to pass dynamically folder path to upload function or it couldn't be done and better way is to upload files to default upload folder and then replace it in the needing folder.
Posts: 10
Threads: 1
Joined: Dec 2010
i solve my problem in another way.
i uploading my files via default Files-page with its own uploadify field. Then in my plugin i open directory that i need and import files from uploads folder to folder that i need. it is longer but working. Soon i'll post my extension to extension library ))
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 10
Threads: 1
Joined: Dec 2010
Posts: 1,928
Threads: 88
Joined: Apr 2010
Your plugin conflicts with other plugins
Posts: 10
Threads: 1
Joined: Dec 2010
2010-12-27, 03:36:09
(This post was last modified: 2010-12-27, 03:41:03 by masud.)
can you write about problems? what plugins have you installed?!
Posts: 1,928
Threads: 88
Joined: Apr 2010
Code: Notice: Use of undefined constant photo - assumed 'photo' in /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php on line 37
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php:37) in /home/cp068800/public_html/neowebtime.ru/0/plugins/squareit-gallery.php on line 14
Warning: Cannot modify header information - headers already sent by (output started at /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php:37) in /home/cp068800/public_html/neowebtime.ru/0/admin/inc/cookie_functions.php on line 26
Posts: 10
Threads: 1
Joined: Dec 2010
Oleg06, thx for your feedback. Corrected plugin and reload it to extesion library. If the problem will still occur, please write about it.
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-12-27, 05:49:15
(This post was last modified: 2010-12-27, 05:53:31 by jhondavis.)
Code: Notice: Undefined variable: date in /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php on line 108
Code: Warning: rmdir(/home/cp068800/public_html/neowebtime.ru/0/data/photo/ss) [function.rmdir]: Directory not empty in /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php on line 235
ÃÂõ ÿþûучðõтÑÂѠуôðûøть. ßðÿúð ss ýõ ÿуÑÂтðÑÂ.
òтþрðѠÿðÿúð ÑÂþ÷ôðûðÑÂь ÿуÑÂтðѠø úðú туôð чтþ-тþ ÷ðóру÷øть?
Posts: 10
Threads: 1
Joined: Dec 2010
ÿðÿúð ÑÂþ÷ôðûðÑÂь ÑÂðüð øûø òы õõ ÑÂþ÷ôðûø?! Ѡу ÑÂõñѠÑÂþ÷ôðòðû üýþóþ ÿðÿþú ø ýøúðúøх þшøñþú ÿрø уôðûõýøø. ßþÑÂüþтрøтõ ftp-úûøõýтþü Ѡòúûючõýýыüø ÑÂúрытыüø фðùûðüø, üþöõт ÑÂтþ рð÷ъÑÂÑÂýøт ÑÂøтуðцøю.
ÚÑÂтðтø, úðú òы òúûючøûø тðúøõ ÿþôрþñýыõ þшøñúø?!
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-12-27, 06:27:57
(This post was last modified: 2010-12-27, 06:35:55 by jhondavis.)
ÿðÿúу Ñ ÑÂþ÷ôðòðû ÑÂðü õщõ Ѡÿõрòþù òõрÑÂøõù ÿûðóøýð
ò gsconfig.php рðÑÂúþüõýтøрþòðû ÑÂтрþúу 19 define('GSDEBUG', TRUE);
ò þñщõü-тþ òÑÂõ рðñþтðõт, тþûьúþ ÑÂтð ýðôÿøÑÂь òÑÂõ-рðòýþ ÿþÑÂòÃȄÂõтÑÂÑÂ
Code: Notice: Undefined variable: date in /home/cp068800/public_html/neowebtime.ru/0/plugins/portfolio.php on line 108
ôðту ÿþчõüу-тþ ýõ ÿøшõт
Posts: 10
Threads: 1
Joined: Dec 2010
2010-12-27, 07:15:35
(This post was last modified: 2010-12-27, 07:28:58 by masud.)
ÿðÿúу ÑÂþ÷ôðòðть ýõ ýðôþ ÿûðóøý ÑÂðü òÑÂõ ÑÂþ÷ôðõт. Ã’øôøüþ ø÷-÷ð тþóþ чтþ òы руúðüø ÿðÿúу ÑÂþ÷ôðûø þý ýõ ôðõт ø÷ ÿûðóøýð уôðûøть, тðú úðú ÿрðò òøôøüþ ýõт. ï ÑÂÿõцøðûьýþ ÿþ ýþòþù òÑÂõ уÑÂтðýþòøû, òÑÂõ ÿðÿúø уôðÃȄÂютÑÂÑÂ/ôþñðòÃȄÂютÑÂѠñõ÷ ÿрþñûõü.
Ôðту þÑÂтðòøû, ÿрþÑÂтþ чтþñы ýõ ÷ðñыть úуôð ôþñðòÃȄÂть. áôõûðю чтþñы úþóôð ÑÂÿøÑÂþú ÿðÿþú ÑÂüþтрøшь ÿþúð÷ыòðûþ úþûøчõÑÂтòþ фðùûþò òýутрø. ÃÂу тøÿð рюшõчúð ÿрøúþûьýðѠ))
úðú ò цõûþü ÿþ уôþñÑÂтòу?! ôõûðû ÿþ ÑÂõñÑÂ, тðú чт þøýтõрõÑÂýþ úðú ôруóøü ñуôõт ÿþûь÷þòðтьÑÂÑ ))
Posts: 1
Threads: 0
Joined: Oct 2010
ßûðóøý тþ чтþ ýуöýþ. áðü ÑÂøôõû ýðô ÑÂþ÷ôðýøõü тðúþóþ öõ. àüþöýþ ÑÂôõûðть тðú чтþñы фþтúø ýõ øüÿþртøрþòðть ø÷ ÿðÿúø upload ð ÷ðóруöðть ÿрÑÂüþ ò ÑÂþ÷ôðýýыõ ÿðÿúу.
Ø õщõ... ÿрø øüÿþртõ фþтþú ÿõрõýþÑÂøт тþûьúþ Ã’áÕ фðùûы. ßрø ÿþÿытúõ уôðûøть ø÷ ÑÂÿøÑÂúð òþ÷üþöýых ú øüÿþрту хþтѠñы þôýþóþ òыôðõт þшøñúу (((
Posts: 10
Threads: 1
Joined: Dec 2010
Ѡ÷ðóру÷úþù ÿрÑÂü ò ÿðÿúу ÿрþñûõüð, Ѡò ÿõрòþü ÿþÑÂтõ ÿøÑÂðû чтþ ýøфøóð ýõ ÿþûучøûþÑÂь, тðú чтþ ÑÂôõûðû тðú, õÑÂûø ñуôõт òþ÷üþöýþÑÂть ÑÂрð÷у ýð ÿрÑÂüую ò ÿðÿúø ÷ðûøòðть, тþ ÿõрõôõûðю.
ßрþ øüÿþрт ÑÂôõûðю чтþñы üþöýþ ñыûþ òыñøрðть ýуöýыõ ú øüÿþрту ø тþûьúþ øх øüÿþртøрþòðть.
àðô чтþ ÿûðóøý ÿþûõ÷õý ))
Öôøтõ ôðûьýõùшøх ôþрðñþтþú ø þñýþòûõýøù ))
Posts: 5
Threads: 1
Joined: Jan 2011
Ø÷òøýøтõ, ýþ Ѡтðú ø ýõ ÿþýÑÂû, úðú òыòõÑÂтø ÑÂту óðûõрõю ýð ÑÂтрðýøцðх ÑÂðùтð?
Úðúую фуýúцøю ÿрþÿøÑÂðть ò шðñûþý øûø ÿрÑÂüþ ò рõôðúтøрþòðýøø ÑÂþþтòõтÑÂтòующõù ÑÂтрðýøцы?
Posts: 10
Threads: 1
Joined: Dec 2010
ò ûюñþü üõÑÂтõ ò тõüõ òÑÂтðòьтõ ÑÂтрþчúу <?php portfolio_site_view(); ?>, ð ò ÿþÑÂтþÑÂýýую ÑÂÑÂыûúу òÿøшøтõ øüѠÿðÿúø óôõ фþтþóрðфøø ýðхþôÑÂтÑÂÑÂ
Posts: 54
Threads: 3
Joined: Nov 2010
This plugin does not work properly
It moves all the files in upload directory when I create a gallery with it.
And, could you step back to english, so we can follow you ?
Posts: 10
Threads: 1
Joined: Dec 2010
tazmandev, why doesn't it work properly? it moves all the files to folders that you create under data/photo. i did this to make more understandable file organization.
any more questions?
Posts: 2,928
Threads: 195
Joined: Feb 2011
privet! ya ochin lublu russkaja jazik a ya ni ponimaio kak rabotet etot plugin ...
I love Russia and russian language but I do not understand how this plugin works
1) maybe russian and english language files?
2) maybe a step by step instruction how to use these files?
3) does this work with actual version of getsimple?
4) how to integrate this into pages?
I feel frustrated... ;=(
Posts: 1,848
Threads: 86
Joined: Aug 2009
this should be a feature that is part of the core in 3.0 Connie. Big things are coming with 3.0 soon....
- Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 3
Threads: 0
Joined: Apr 2013
I am no developer and I do not how to create a template file but I want to make this gallery work on my site. Please can you tell me how to make a gallery appear on a page. If I enter the folder URL I get just get the folder and index of page without the site theme
Posts: 9
Threads: 1
Joined: Sep 2013
2013-09-15, 21:54:30
(This post was last modified: 2013-09-15, 21:55:39 by infografik.)
hello
first: why the heck this plugin is in plugin secition? im hiding plugin section from my clients so they cant break page functionality
second:
what is this?
Портфолио
Новая галерея
0 галерей
english please (at least)
Posts: 423
Threads: 15
Joined: Mar 2011
@infografik: This thread is more than two years old and is not relevant for current versions of GS.
--
Nick.
Posts: 1,247
Threads: 82
Joined: Feb 2011
|