Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Problem with TWG-UL configuration https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=654 |
Page 1 of 1 |
Author: | Krueger [ 29. Nov 2006, 01:30 ] |
Post subject: | Problem with TWG-UL configuration |
Hey guys, I got the gorgeous script and it works, BUT: I want to use it, when the upload-script is in another folder. For example, the including file is in /html/../stuff/ and the TWG - Flash - Uploader is in the subfolder /upload/ (so the absolute path is: /html/../stuff/upload/). I includet the file like this: Code: <script type="text/javascript" src="/upload/swfobject.js"></script>
<div id="flashcontent"><div class="noflash">TWG Flash Uploader requires at least Flash 8.<br>Please update your browser.</div></div> <script type="text/javascript"> var so = new SWFObject("upload/twg_flash_uploader.swf?lang=de", "mymovie", "500", "340", "8", "#ffffff"); so.write("flashcontent"); </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="650" height="340" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/upload/twg_flash_uploader.swf?lang=de" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="/upload/twg_flash_uploader.swf?lang=de" quality="high" bgcolor="#ffffff" width="650" height="340" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> so far it works, but i get the error-message, that the login failed, OR the konfiguration-file is not reachable. I changet everything in the config, so that it is working when i to start it form the same folder, .. made i any mistake, or is it not supportet, to start this script from another folder? HF, THX Krueger PS: my english is not verry great, so keep the mistakes you found |
Author: | TinyWebGallery [ 29. Nov 2006, 02:36 ] |
Post subject: | |
HI 1.st - have you send me an email about a source code license? o.k. 2nd- of couse it works . In TWG is use it this way. Problem ist that the tfu_config.php has to be in the directory where you include the flash into. I have hardcoded this because of security reasons - maybe in the next version I allow maybe to add a relative path . but for now this is the restriction! put the tfu_config in the directory where you have your calling page. Then open tfu_config.php and adopt the path to the tfu_helper.php! in the tfu_config then you have to change the path to the other files except tfu_upload.php. If you need a working example - download TWG and take a look! /Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |