Multi level folder support for new index view
Posted by Oliver Riesen-Mallmann
March 21, 2007 03:24AM |
Admin Registered: 19 years ago Posts: 746 |
Hi Snake,
I think you should start a new thread with your question...
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
Snake
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 think you should start a new thread with your question...
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 March 21, 2007 05:59AM |
Registered: 18 years ago Posts: 33 |
The reason I asked here, was that the question does have some similarities to your previous post on this thread, about the alternating colours for each row of a thread. And the fact that the last thread/question I started, got deleted with no message to say why.
P.S. Before my server crashed, I used your Terms of Service Mod, it's a cool MOD by the way.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
P.S. Before my server crashed, I used your Terms of Service Mod, it's a cool MOD by the way.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
Re: Multi level folder support for new index view March 21, 2007 06:54AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Multi level folder support for new index view March 21, 2007 07:27AM |
Registered: 18 years ago Posts: 33 |
Oh, OK, no problems.
I did post a Thread in the support forum, I was having difficulty finding anything that matched my issues (index page link colours + alternating row colour inside forums, not just alternating threads). That thread was posted, about an hour later I checked back for any replies, the messeage/thread was gone. A history search found the thread, but the page returned a Cannot find message. It's ok though, since then I have been able to eventually find similar threads, & I have posted questions asking if they can help, like on this thread.
P.S. I'm new to PHP & Phorum, so I am trying to get to grips with the system, & the layout/rules of this site.
Thanks to those who have made some real cool MODs, before my server crashed, which is why I'm having to redo this all over again, I installed some pretty fine MODs & my test forum was looking quite snazzy.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
I did post a Thread in the support forum, I was having difficulty finding anything that matched my issues (index page link colours + alternating row colour inside forums, not just alternating threads). That thread was posted, about an hour later I checked back for any replies, the messeage/thread was gone. A history search found the thread, but the page returned a Cannot find message. It's ok though, since then I have been able to eventually find similar threads, & I have posted questions asking if they can help, like on this thread.
P.S. I'm new to PHP & Phorum, so I am trying to get to grips with the system, & the layout/rules of this site.
Thanks to those who have made some real cool MODs, before my server crashed, which is why I'm having to redo this all over again, I installed some pretty fine MODs & my test forum was looking quite snazzy.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
Re: Multi level folder support for new index view March 21, 2007 10:22AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Multi level folder support for new index view March 26, 2007 07:42PM |
Registered: 18 years ago Posts: 33 |
Hi, if this is not off-topic for this thread, I have a query regarding Freedman's posting of code. In his message post [www2.phorum.org], he refers to both the Multi Level Folders, as well as Classic view colour alternating. What part of the code he supplied, would I need to use, just to change the colour of the Forums on the Index page? At the moment, I doubt I would be using Folders/Sub Folders.
I have put some additional variables in the settings.tpl file (forumcolour & altforumcolour), & put a new class in the css.tpl file (#phorum-indexAlt td). Then edited the index_new.tpl file, I manage to get the first colour I chose to display, but I can't get the second/alternate colour to work.
With regard to the original messages I posted in here, I managed to get them working, with grateful help from Maurice Makaay on coding issues.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
I have put some additional variables in the settings.tpl file (forumcolour & altforumcolour), & put a new class in the css.tpl file (#phorum-indexAlt td). Then edited the index_new.tpl file, I manage to get the first colour I chose to display, but I can't get the second/alternate colour to work.
With regard to the original messages I posted in here, I managed to get them working, with grateful help from Maurice Makaay on coding issues.
---
Snake,
Fangs that bite!
Alternating Background in Thread & Message Views
Tree lines like Phorum 3 (by BrianLMoon) --- My working update
Re: Multi level folder support for new index view March 27, 2007 01:59PM |
Registered: 19 years ago Posts: 110 |
I've not tested this code, but I believe this would work:
and then add the bit of php at the bottom which changes the class--I'm also resetting the alt class after each folder (that's the top line in the code block).
you'd then heed to find (add) all the #phorum-index tr.forum (tr.forumAlt) and modify them.
in my version there isn't one for tr.forum, so I may be using an older version of css.tpl...
again, I havn't tested this, but those code changes should do the work.
view source in your browser to make sure the tags are alternating, then start debugging the CSS.
good luck.
<?php $rclass="Alt"; ?> {ELSE} <tr class="forum<?php echo $rclass;?>"> <td class="forum-name"> <a href="{FORUMS->url}">{FORUMS->name}</a><p>{FORUMS->description}</p> <small> {IF LOGGEDIN true} {LANG->Options}: {ELSE} {IF FORUMS->url_rss} {LANG->Options}: {/IF} {/IF} {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" nowrap="nowrap"> {FORUMS->thread_count} {IF FORUMS->new_threads} (<span class="PhorumNewFlag">{FORUMS->new_threads} {LANG->newflag}</span>) {/IF} / {FORUMS->message_count} {IF FORUMS->new_messages} (<span class="PhorumNewFlag">{FORUMS->new_messages} {LANG->newflag}</span>) {/IF} </td> <td class="forum-last-post" nowrap="nowrap">{FORUMS->last_post}</td> </tr> <?php if($rclass=="Alt") $rclass=""; else $rclass="Alt"; ?> {/IF}the 2 mods I made were to change the tr class to: class="forum<?php echo $rclass;?>">
and then add the bit of php at the bottom which changes the class--I'm also resetting the alt class after each folder (that's the top line in the code block).
you'd then heed to find (add) all the #phorum-index tr.forum (tr.forumAlt) and modify them.
in my version there isn't one for tr.forum, so I may be using an older version of css.tpl...
again, I havn't tested this, but those code changes should do the work.
view source in your browser to make sure the tags are alternating, then start debugging the CSS.
good luck.
April 29, 2007 06:35PM |
Registered: 22 years ago Posts: 793 |
thanks for this.
i actually had built my own "new" index view years ago which did support nested folders.
when the "new" view came out i abandoned my own version so that i would have one less thing to patch in my local copy with ever update.
i was baffled recently when adding a nested folder to find that it was not supported by default.
this is a big help and i hope it ends up in "new" index view soon.
i actually had built my own "new" index view years ago which did support nested folders.
when the "new" view came out i abandoned my own version so that i would have one less thing to patch in my local copy with ever update.
i was baffled recently when adding a nested folder to find that it was not supported by default.
this is a big help and i hope it ends up in "new" index view soon.
Re: Multi level folder support for new index view April 29, 2007 06:38PM |
Admin Registered: 22 years ago Posts: 9,240 |
April 29, 2007 06:40PM |
Registered: 22 years ago Posts: 793 |
this is the thread with my old 2004 version of this similar idea but which did support nested folders but may have lacked in another area which i can't recall.
[www.phorum.org]
Edited 1 time(s). Last edit at 05/02/2007 04:08PM by rheo.
[www.phorum.org]
Edited 1 time(s). Last edit at 05/02/2007 04:08PM by rheo.
Sorry, only registered users may post in this forum.