Multi level folder support for new index view
Posted by Oliver Riesen-Mallmann
Re: Multi level folder support for new index view October 04, 2006 06:22AM |
Registered: 18 years ago Posts: 35 |
hmm okay now it does at least something :)
but my folder structure is:
Folder 1
--> Folder 2
-----> Board 2.1
--> Board 1.1
--> Board 1.2
-------
so the folder shows up nicely on top of the boards in folder 1 but it links to folder 1 (index.php?9 instead of index.php?140 as it should do)
hmm.
thanks all the same. another question. it wouldn't be possible to show a board just inside another would it? that I would open board 1.1 and find board 2.1 inside? (our old board had this. for one sublevel at least. and we are really missing it :/ )
Net.
Edited 1 time(s). Last edit at 10/04/2006 07:01AM by Netwalker.
but my folder structure is:
Folder 1
--> Folder 2
-----> Board 2.1
--> Board 1.1
--> Board 1.2
-------
so the folder shows up nicely on top of the boards in folder 1 but it links to folder 1 (index.php?9 instead of index.php?140 as it should do)
hmm.
thanks all the same. another question. it wouldn't be possible to show a board just inside another would it? that I would open board 1.1 and find board 2.1 inside? (our old board had this. for one sublevel at least. and we are really missing it :/ )
Net.
Edited 1 time(s). Last edit at 10/04/2006 07:01AM by Netwalker.
Re: Multi level folder support for new index view October 04, 2006 07:00AM |
Registered: 18 years ago Posts: 35 |
I found another problem just now.
as I said my folder structure is the following:
Folder 1
--> Folder 2
-----> Board 2.1
--> Board 1.1
--> Board 1.2
-------
now Folder 1 visible but Boards 1.1 and 1.2 are only to be seen by admins resp. mods. therefore Folder 1 is invisible for all those you are neither admin nor mod.
BUT if I set Folder 2 to visible (for invisible would hide it from EVERYONE incl admins) and I set Board 2.1 (the 'sub-Board') to be visible for admins only I hit a problem as Folder 2 does not check (or so it seems) whether its contents are visible. therefore I get for anonymous (and all other 'normal') users:
Folder 1 -> Folder 2 -> You have no right to see this forum.
which is rather annoying.
really sorry to bother you with that.
Netwalker.
Edited 2 time(s). Last edit at 10/04/2006 08:18AM by Netwalker.
as I said my folder structure is the following:
Folder 1
--> Folder 2
-----> Board 2.1
--> Board 1.1
--> Board 1.2
-------
now Folder 1 visible but Boards 1.1 and 1.2 are only to be seen by admins resp. mods. therefore Folder 1 is invisible for all those you are neither admin nor mod.
BUT if I set Folder 2 to visible (for invisible would hide it from EVERYONE incl admins) and I set Board 2.1 (the 'sub-Board') to be visible for admins only I hit a problem as Folder 2 does not check (or so it seems) whether its contents are visible. therefore I get for anonymous (and all other 'normal') users:
Folder 1 -> Folder 2 -> You have no right to see this forum.
which is rather annoying.
really sorry to bother you with that.
Netwalker.
Edited 2 time(s). Last edit at 10/04/2006 08:18AM by Netwalker.
Re: Multi level folder support for new index view October 04, 2006 07:03AM |
Admin Registered: 22 years ago Posts: 9,240 |
you did this
> I set Board 2.1 (the 'sub-Board') to be visible for admins only
and told this
> therefore I get for anonymous (and all other 'normal') users:
> Folder 1 -> Folder 2 -> You have no right to see this forum.
which is absolutely correct IMO. there is nothing to see for anonymous / normal users as the forum is only visible to admins.
Thomas Seifert
> I set Board 2.1 (the 'sub-Board') to be visible for admins only
and told this
> therefore I get for anonymous (and all other 'normal') users:
> Folder 1 -> Folder 2 -> You have no right to see this forum.
which is absolutely correct IMO. there is nothing to see for anonymous / normal users as the forum is only visible to admins.
Thomas Seifert
Re: Multi level folder support for new index view October 04, 2006 07:05AM |
Registered: 18 years ago Posts: 35 |
yes and no. if there are no visible boards in a folder the folder itself should vanish from view for everyone except admins. (which folder 1 did perfectly well before folder 2 was introduced) but now folder 2 shows up although its contents are invisible. which it shouldn't do.
Is that better to understand?
Edited 1 time(s). Last edit at 10/04/2006 07:07AM by Netwalker.
Is that better to understand?
Edited 1 time(s). Last edit at 10/04/2006 07:07AM by Netwalker.
Re: Multi level folder support for new index view October 04, 2006 07:13AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Multi level folder support for new index view October 04, 2006 07:17AM |
Registered: 18 years ago Posts: 35 |
October 04, 2006 07:35AM |
Admin Registered: 19 years ago Posts: 746 |
Hi Netwalker,
I just downloaded Phorum 5.1.16a, replaced the two files from my "Multi Levvel Folder Support" and it's working for me like you can see here:
[phorum-5.1.16a.riesen.org]
Folder1 contains (sub-) Folder3
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Netwalker
so the folder shows up nicely on top of the boards in folder 1 but it links to folder 1 (index.php?9 instead of index.php?140 as it should do)
I just downloaded Phorum 5.1.16a, replaced the two files from my "Multi Levvel Folder Support" and it's working for me like you can see here:
[phorum-5.1.16a.riesen.org]
Folder1 contains (sub-) Folder3
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Multi level folder support for new index view October 04, 2006 07:43AM |
Registered: 18 years ago Posts: 35 |
Re: Multi level folder support for new index view January 24, 2007 05:39PM |
Registered: 19 years ago Posts: 110 |
I've modified this so that it more closely matches the look & feel of the 'classic' style in that, within a folder view, every other row can have an alternate color scheme.
It resets the alternating each folder, so that it doesn't look stupid :P
then modify css.tpl to add the following items:
#phorum-index td.forum-nameAlt
#phorum-index td.forum-nameAlt p
#phorum-index td.forum-nameAlt small
#phorum-index td.forum-threadsAlt
#phorum-index td.forum-postsAlt
#phorum-index td.forum-last-postAlt
for me, I just copied the NON-'Alt' version and added a lighter background color.
(actually, in my phorum, I've extracted this info into a .css file which I include instead of dynamically presenting this--seems to save a lot of bandwidth and facilitates client-side caching of the css file)
It resets the alternating each folder, so that it doesn't look stupid :P
<div class="PhorumNavBlock"> <span class="PhorumNavHeading">{LANG->Goto}:</span> {IF URL->INDEX}<a class="PhorumNavLink" href="{URL->INDEX}">{LANG->ForumList}</a>•{/IF}<a class="PhorumNavLink" href="{URL->SEARCH}">{LANG->Search}</a>•{INCLUDE loginout_menu} </div> <table id="phorum-index" cellspacing="0"> {LOOP FORUMS} {IF FORUMS->level 0} <tr class="folder"> {IF FORUMS->forum_id FORUMS->vroot} <th class="forum-name">{LANG->Forums}</th> {ELSE} <th class="forum-name"><a href="{FORUMS->url}">{FORUMS->name}</a></th> {/IF} <th class="forum-threads">{LANG->Threads}</th> <th class="forum-posts">{LANG->Posts}</th> <th class="forum-last-post">{LANG->LastPost}</th> </tr> <?php $rclass=""; ?> {ELSE} <tr class="forum<?php echo $rclass;?>"> {IF FORUMS->folder_flag} <td class="forum-name<?php echo $rclass;?>" colspan="4"> <a href="{FORUMS->URL->INDEX}">{FORUMS->name}</a><p>{FORUMS->description}</p> </td> {ELSE} <td class="forum-name<?php echo $rclass;?>"> <a href="{FORUMS->url}">{FORUMS->name}</a><p>{FORUMS->description}</p><small>{LANG->Options}: {IF LOGGEDIN true}<a href="{FORUMS->url_markread}">{LANG->MarkForumRead}</a>{/IF}{IF FORUMS->url_rss}{IF LOGGEDIN true} • {/IF}<a href="{FORUMS->url_rss}">{LANG->RSS}</a>{/IF}</small> </td> <td class="forum-threads<?php echo $rclass;?>" nowrap="nowrap"> {FORUMS->thread_count} {IF FORUMS->new_threads} (<span class="PhorumNewFlag">{FORUMS->new_threads} {LANG->newflag}</span>) {/IF} </td> <td class="forum-posts<?php echo $rclass;?>" nowrap="nowrap"> {FORUMS->message_count} {IF FORUMS->new_messages} (<span class="PhorumNewFlag">{FORUMS->new_messages} {LANG->newflag}</span>) {/IF} </td> <td class="forum-last-post<?php echo $rclass;?>" nowrap="nowrap">{FORUMS->last_post}</td> {/IF} </tr> <?php if($rclass=="Alt") $rclass=""; else $rclass="Alt"; ?> {/IF} {/LOOP FORUMS} </table>
then modify css.tpl to add the following items:
#phorum-index td.forum-nameAlt
#phorum-index td.forum-nameAlt p
#phorum-index td.forum-nameAlt small
#phorum-index td.forum-threadsAlt
#phorum-index td.forum-postsAlt
#phorum-index td.forum-last-postAlt
for me, I just copied the NON-'Alt' version and added a lighter background color.
(actually, in my phorum, I've extracted this info into a .css file which I include instead of dynamically presenting this--seems to save a lot of bandwidth and facilitates client-side caching of the css file)
Re: Multi level folder support for new index view March 20, 2007 09:03PM |
Registered: 18 years ago Posts: 33 |
I'm not using folders at the moment, but I am using the New Style. Is there a MOD or some form of detailed instructions on how to put this into my Forum?
I have the Treeview MOD installed, & would love to have each row, within each Thread, alternating between 2 colours I choose.
I don't necessarily need to have the alternating colour in the Forum Index page, but within each forum thread view, yes.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
I have the Treeview MOD installed, & would love to have each row, within each Thread, alternating between 2 colours I choose.
I don't necessarily need to have the alternating colour in the Forum Index page, but within each forum thread view, yes.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
Sorry, only registered users may post in this forum.