Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 16:31

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 29. Nov 2006, 01:30 
Offline

Joined: 29. Nov 2006, 01:22
Posts: 1
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 ;)


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 02:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy