Page 1 of 1
cycle through views
Posted: 06 Sep 2017 17:18
by yusef88
Hi Everyone!
I want to cycle through some views by one keyboard shortcut.. possible?
Code: Select all
#302 View | Views | Details
#305 View | Views | Small Icons
#309 View | Views | Large Icons
#306 View | Views | Thumbnails #1 (72x72) >> (Shift+`)
#307 View | Views | Thumbnails #2 (128x128) >> (Shift+1)
Re: cycle through views
Posted: 06 Sep 2017 18:21
by highend
And the forum search function isn't working?
viewtopic.php?f=3&t=17699
A few more if's (or a switch statement), done...
Re: cycle through views
Posted: 06 Sep 2017 20:32
by Filehero
Another cycler variant:
Code: Select all
if (tab("get", "term") UnLike "*:flat*") { // If not branch > branch
goto tab("get", "term")."? /:flat";
} else {
if (tab("get", "term") Like "*/:flat") { // If default branch > flatfiles
goto tab("get", "term")."files";
} elseif (tab("get", "term") Like "*/:flatfiles") { // If flatfiles > flatdirs
goto replace(tab("get", "term"), "/:flatfiles", "/:flatdirs");
} else { // If flatdirs > unbranch
goto replace(tab("get", "term"), "? /:flatdirs", "");
}
}
Re: cycle through views
Posted: 06 Sep 2017 20:56
by yusef88
Thanks
Code: Select all
$mode = get("View");
if ($mode == 0) { #304; }
if ($mode == 2) { #305; }
if ($mode == 3) { #309; }
if ($mode == 7) { #306; }
if ($mode == 4) { #307; }
elseif ($mode == 5) { #302; }