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 15. Nov 2024, 14:38

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  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 4. Mar 2009, 14:47 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Hi,

I would like to have a public photogallery. For that, my users should tag, comment and upload pictures without any login. (Security is done otherwise)

Is that possible?

Greetz


Top
 Profile  
 
 Post subject:
PostPosted: 4. Mar 2009, 15:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to fake the login.

open inc/mysession.inc.php

search for
// login part
There you can set the values you like as default.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Mar 2009, 15:27 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Ive done this:

Code:
$login_edit = true;
$login_upload = true;
$login_backend = false;
$login = 'TRUE';


/*
if ($login == 'TRUE' && isset($twg_album)) { // now we check the level of login we have!
   $hds = $_SESSION["s_home_dir"]; // home dirs of frontend users can have more than one folder seperated by |
   $perm = $_SESSION["twg_permissions"];
   $login_backend = (($perm&02) == 02);
    $hd_array = explode("|",$hds);   
   foreach($hd_array as $hd) {
     $hd = trim($hd);
     if (is_subdir($hd, $basedir . "/" . $twg_album)) { // we are in the dir or a subdir !
         $login_edit = true; // we can edit if we are in a subdir
       $login_upload = (($perm&01) == 01);
     }
   }
}
*/


Seems to work. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: 4. Mar 2009, 15:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you should maybe hide the logout button then ...

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Mar 2009, 16:00 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
ive done so :-)


Top
 Profile  
 
 Post subject:
PostPosted: 5. Mar 2009, 12:35 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Now the fileuploader shows no "Options"-Button for folder-editing. When login for admin with that user, it is shown.

Can I get the Button with the Autologin?


Top
 Profile  
 
 Post subject:
PostPosted: 5. Mar 2009, 13:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to modify i_frames/tfu_config.php

at the beginning is the check what will be enabled. Simply change iit to your needs.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 6. Mar 2009, 11:47 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Thanks. Very nice gallery :-)


Top
 Profile  
 
PostPosted: 15. Mar 2009, 16:51 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
I have a Problem with the TopTags. They dont get refreshed, when changed. After manually deleting the sessioncache, it is done.

What can I do?


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 00:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
It's cached.

Read http://www.tinywebgallery.com/en/faq.php#h43 3.

Than you understand.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 12:52 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Ok. So its cached in the session. Is it affected by 1Day or x-Hour-Cache?

However topTags are not refreshed when clicking on the bandwidth icon or when new tags are inserted. Both would very useful.

After reading the FAQ I have some unclear points. Are the four caches exclusiv, so they does never cache same things? Or do they overlap? Its a little bit confusing with the description of the topX-Cache. Does it also cache the tags? I also understand, that TopX caches session-data, and the session cache do so, too.

Greetz Freight


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 14:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
TopTags are actually not affected by the 1 day caching. They are only changed if you enter new tags. Because they are in the xml folder. not in the cache folder.
The last read topx are cached in the session.

Therefore it's very strange that you say that clicking on the bandwidth icon does not help. Because this does the same as deleting the session cache in the backend.

I just checked the code. Maybe the problem is there. I found a & instead a &&.
You can fix this easily by yourself. Open inc/readxml.inc.php. Search for "function create_top_tags"
Right after that you find
if ($cache_dirs &isset ....

this should be
if ($cache_dirs && isset

one & is missing.

About the caching. The cached are very dependent of each other. The session cache is saved in different files on the hard disk as well (1-day, x hours caching).

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 15:16 
Offline

Joined: 4. Mar 2009, 14:44
Posts: 14
Unfortunately that patch has no effect. However the following term, does find the correct pictures:

index.php?twg_top10=search&twg_search_exact=true&twg_search_tags=1&twg_search_max=20&twg_search_term=theNewTag

Bandwidth-icon still doenst work. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 15:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
of course the search does work.

But even if the tags are cached in the session. Is this a big problem for you? Because if you close the browser or someone else accesses the page the updated tags are shown.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2009, 15:34 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked on my install. Adding new tags works fine after clicking on the bandwidth icon. Are you sure your new Tags a below the top tags?

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 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