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 27. Nov 2024, 23:59

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  [ 10 posts ] 
Author Message
 Post subject: video support
PostPosted: 28. Feb 2006, 17:59 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
i uploaded a video but it dosent apperas. how about no image files? what are image file supported extensions? i want to offer videos to my users :( can i change the script to support them?


Top
 Profile  
 
 Post subject:
PostPosted: 28. Feb 2006, 18:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

in 1.4 you can offer a download for any filetype you like ;).
1.4 is basically done :)

I'm working on the new website right now and setting up some demos
you can take a look at:
http://www.tinywebgallery.com/demo
If you would click on the image you would get the avi,pdf ...
I don't have real avi's ... in the background yet ;) - if you click on the image you most likly get an error. But if you see the link you see that it it liked to the e.g. .avi

If you like a copy in advance please send me an email.


/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 28. Feb 2006, 18:28 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
are you working in create thumbnails from the videos?? i was looking info about it and its dificult to do and i must to have more than imagemagick installed :(

that demo looks great!! your script is one of most interesting script i saw in long time ;) you are a great coder! :D

can i turn off the rotate option?

i sent you an email to try the new beta ;)


Top
 Profile  
 
 Post subject:
PostPosted: 28. Feb 2006, 18:54 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
other new option would be rewirte urls to make simpliear to the search engines spider the site ;)and a google site map! (sorry when i start to think... i cant stop...)


Top
 Profile  
 
 Post subject:
PostPosted: 1. Mar 2006, 01:53 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

No - you have to provide the thumbs ;).

url rewrite is not that easy anymore - lot of work - I generate really many links on the fly on many different places ;) ......

What would help if I make a google sitemap ? Everyone would have a different one ....

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 1. Mar 2006, 11:12 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
oh! nono!

here is an example for url rewrite .htaccess file:

Options All -Indexes
IndexIgnore *
RewriteEngine On
RewriteRule ^dir\.(.*)\.html$ /YOURDIRECTORY/index.php?twg_album=$1
RewriteRule ^dir\.(.*)\.(.*)\.html$ /YOURDIRECTORY/index.php?twg_album=$1&twg_show=$2
RewriteRule ^file\.(.*)\.(.*)\.html$ /YOURDIRECTORY/image.php?twg_album=$1&twg_show=$2

When you write:

www.yoursite.com/dir.directory_20with_2 ... 0directory

you will obtain :

www.yoursite.com/YOURDIRECTORY/index.ph ... 0directory

with this variables:

twg_album = directory_20with_20spaces_2Fother_20directory
twg_show = file_20in_20the_20directory

you only must to change them with:

$_GET['twg_album']=str_replace("_","%",$_GET['twg_album']);
$_GET['twg_show']=str_replace("_","%",$_GET['twg_show']);
$_GET['twg_album']=urldecode($_GET['twg_album']);
$_GET['twg_show']=urldecode($_GET['twg_show']);

You just get the true variables and all the special characters too

to do the script for the site you only must to write the links with the rewrite style. You can do two functions to code and decode the variables to urls:

// functions to make able have special characters in the url with some help from http://www.w3schools.com/tags/ref_urlencode.asp

function ConverT($var) {
$var = urlencode($var);
$var = str_replace(' ', '%20', $var);
$var = str_replace('+', '%20', $var);
$var = str_replace('?', '%3F', $var);
$var = str_replace('=', '%3D', $var);
$var = str_replace('@', '%40', $var);
$var = str_replace('(', '%28', $var);
$var = str_replace(')', '%29', $var);
$var = str_replace('_', '%5F', $var);
$var = str_replace('%', '_', $var);
return $var;
}

function DeConverT($var) {
$var = str_replace("_","%",$var);
$var = urldecode($var);
return $var;
}

// example of link

echo 'index.php?twg_album='.ConverT($twg_album).'&twg_show='.ConverT($twg_show);

// example decode

$_GET['twg_album'] = DeConverT($_GET['twg_album']);
$_GET['twg_show'] = DeConverT($_GET['twg_show']);

That's all folks!

i used it that to do a gallery like this but when the system goes very slow i did must to create it again in mysql :( i dont worry about this with your gallery because i dont think to get 3 thousand ip visits a day with my gallery... its only for a few freaks hahahahahah and i think that you are not doing ls's with exec to show the content :o)

The google sitemap. Will be extracted by the xml files (i dont know how it works) or doing a recursive ls and posting the links ;) but dont worry that properties are not so important for now...


Top
 Profile  
 
 Post subject:
PostPosted: 1. Mar 2006, 13:33 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
but... i must to do an image to download the avi files??? :( i dont want to do them... i have thousand of files! :cry:

and how about to add a xupload or jupload (java upload script) ? i want my users to contribute the gallery


Top
 Profile  
 
 Post subject:
PostPosted: 1. Mar 2006, 14:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

About the rewrite.

you only have 2 url parameters covered!
TWg uses about 25!
And i would have to change ALL link i create as well!

Or does the mod_rewrite rewrite the urls from my response too?
Like the one below a thumbnail... ?
I have seen this :
echo 'index.php?twg_album='.ConverT($twg_album).'&twg_show='.ConverT($twg_show);
I haven't done anything with the rewrite yet ...


and does the rewrite work on every system? I would have to provide two different solutions for this ;).

TWG 1.4 does have a admin backend where you can upload files too - its based on the joomlaXplorer.


For the avi - yes - right now you have to provide thim image -
I plan the automatic creation for a future version in the admin backend!
Adding the files another way would be a lot of work ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 1. Mar 2006, 19:29 
Offline

Joined: 28. Feb 2006, 17:49
Posts: 7
25??? WOOFFF you will obtain an huge url!

bah! rewrite will not have sense with 25 vars... i think that google is spidering the sites with lots of vars in the google site maps...

you can do a rewrite for 25 vars but they must to have the same position in all 25 vars... its... no way!!! dont worry, forget it for now ¬¬ or you can think about groups of vars and do diferent rules for the same php

the rewrite is found in basic install from apache and it must to be conected (it usually do). its the mod_rewrite module.

about the thumbnails from videos. i'm investigating about the Thumbs.db file from windows. it have all thumbs from the folder in jpg format but i dont know how to know what thumb is from what file... i'm working on it now. it would be nice to do a free script for it ;) i'm going to play with php and that file a bit now... i will show you the results ;)

about the uploading. its better in java or ftp because them have file's resume. when you upload a big file apache or php stop the uploading showing an error. usually put a 20mb limit i think...

i'm thinkig to install a xupload (i dont know if it need something special) to create a "temp" folder with a text file with comments/folder and create an admin to accept the files because its not so many job to do ;) you can do it with the admin panel easily

:D


Top
 Profile  
 
 Post subject:
PostPosted: 2. Mar 2006, 18:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
25 different - not at the same time :)

maybe i'll to it got album and image - that are the ones where are always there :).

about upload.
are they free ? if you have it working - send me the example - i can integrate it in 1.0 of twg admin.

about video - i'll add the thumbcreation in 1.0 of the admin - not sure how ... - if you have any sucess: let me know

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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:
powered by phpbb | Datenschutz/ Privacy policy