Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Subforums layout
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  

Which layout should we use for subforums?
It's fine as it is
17%
 17%  [ 32 ]
Adding an option in the profile to show/hide the subforums
3%
 3%  [ 7 ]
Having javascript collapsable subforums
7%
 7%  [ 14 ]
Add a server-side option to hide the subforums
1%
 1%  [ 3 ]
Only showing links to the subforums
5%
 5%  [ 10 ]
Indenting the subforums
20%
 20%  [ 38 ]
Profile + javascript
26%
 26%  [ 48 ]
Profile + server-side
7%
 7%  [ 13 ]
Profile + links
7%
 7%  [ 14 ]
Some other combination/option (please explain)
2%
 2%  [ 5 ]
Total Votes : 184

Author Message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3827
Location: Essen, Germany

PostPosted: Tue Apr 25, 2006 8:42 pm    Post subject: Reply with quote

pjp wrote:
de-forums.gentoo.org could work.

BTW: We already setup a redirect from forum.gentoo.de to forums.gentoo.org/viewforum-f-28.html.
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
wescott
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 183
Location: A giant shoe

PostPosted: Wed Apr 26, 2006 9:19 am    Post subject: Other Reply with quote

Given that under some conditions people may need to use links to access the forums, and that many have started using a JS blocker habitualy... I propose a different approach that allows the forums to be fully accesible to these users, while alowing others to view a more consise layout:

By default, use Profile+Server side code. But then have javascript embedded that detects the browser, so that if the browser is one that supports JS, and can detect that the 2 major JS blockers aren't active, then it will display Profile+JS expansion.
_________________
Sometimes you feel like a nut, sometimes you don't
Gentoo Forum Member #43303

Yoda of Borg are we: Futile is resistance. Assimilate you, we will.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16112
Location: Colorado

PostPosted: Wed Apr 26, 2006 3:00 pm    Post subject: Reply with quote

Maintaining Profile+Server along with Profile+JS doesn't seem useful. Why the redundancy?
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Apr 26, 2006 3:51 pm    Post subject: Reply with quote

I really like as it is right now, but I supposed every body doesn't, and some would just like the sub forum to be hidden. I've nothing special against except, Indenting the subforums is not the best solution IMHO, it really doesn't look clean, clear to me, but messy.

I don't the difference between Profile + javascript Profile + server-side but the idea looks good..

what I would prefer is:
as it is now by default(I'll explain later) and the possiblity to have links instead in the profile


I think this should stay as it is by default, not only because I like it, but also because new comer/gentoo_user/... will start by looking for forum, before even starting to read what is writen under the "header" (I mean the link to the subforum). And that would be shame, since they highly risk to miss tips and tricks subforum (eg: french and deutshe subforum)
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Wed Apr 26, 2006 11:52 pm    Post subject: Reply with quote

No javascript, please! :evil:

I voted for profile + links. Makes perfect sense to me. :D

It lets me minimize the space needed (=distraction) of stuff, that I'll never need (subfora of languages I don't speak, ie.), while being able to choose the subfora, that are interesting to me.
Back to top
View user's profile Send private message
elgrande71
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2004
Posts: 131
Location: France

PostPosted: Thu Apr 27, 2006 1:38 pm    Post subject: Reply with quote

Profile+javascript may be a great option for this purpose. :wink:
_________________
Asustek P5Q-PRO Core2Quad Q9550 - 4Gb DDRII1066
Gentoo Linux 10.0 amd64 - fs ext3 - 2.6.39-gentoo-r3
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Thu Apr 27, 2006 9:37 pm    Post subject: Reply with quote

Profile + Javascript.

Client side Javascript (like Gmail) makes things feel faster and more organized. But if this is implemented, I wonder how CLI browsers are going to be affected, like lynx or links.

If all voting fails, I propose leaving the forum as is untouched.
Back to top
View user's profile Send private message
Godsmacker777
Apprentice
Apprentice


Joined: 04 May 2004
Posts: 205
Location: Fenway area, Boston Massachusetts :O)

PostPosted: Fri Apr 28, 2006 12:48 am    Post subject: Reply with quote

I don't know why we are even considering javascript...aren't we about versatility and portability??

not everyone can deal with javascript.

not everyone wants to either.

I say nix java all the way.
_________________
Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?

I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy??
Back to top
View user's profile Send private message
Hrk
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 88
Location: Rome, Italy

PostPosted: Sat Apr 29, 2006 4:50 pm    Post subject: Reply with quote

My vote goes to "Profile + smart Javascript".

I cannot understand why people with no knowledge of HTML/Javascript open their mouth to say moronic things like "Javascript sux" or "Javascript is evil" or "What about the children (using lynx)? Think about the children (using lynx)!".

If done with only a *tiny* bit of knowledge (which I am sure Gentoo devs have, but moronic users appear to lack), Javascript can degrade optimally to browsers with no Javascript support. The HTML tag "SCRIPT" and "NOSCRIPT" have been made with this purpose in mind: let browsers which understand Javascript display (and process) the text in the first markup block and ignore the text in the second markup block.

So, using a small example:
Code:

<script type="...">
<!--
Javascript to handle client-side subforum open-close
// -->
</script>
<noscript>
Plain HTML code which does static subforum handling
</noscript>


Due to the first "<!--", the SCRIPT block, which is not understood by a javascript-impaired browser, will be treated like a comment and ignored.
The same will happen for the NOSCRIPT block by browsers which are javascript-enabled and know what to do.

In one of the previous posts, a lesser workload was one of the pros of going Javascript.
Using the above solutiono with javascript open-close plus static html "indented/bolded/whatever" would provide the best experience and the less workload.
Back to top
View user's profile Send private message
omp
Retired Dev
Retired Dev


Joined: 10 Sep 2005
Posts: 1018
Location: Glendale, California

PostPosted: Sun Apr 30, 2006 3:01 am    Post subject: Reply with quote

I think it's fine as it is. The small 'subforum' image already adds a bit of indentation and the lighter color helps distinguish it. :)
_________________
meow.
Back to top
View user's profile Send private message
hurricane
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2004
Posts: 100

PostPosted: Sat May 06, 2006 2:37 pm    Post subject: Reply with quote

I vote for:
- an option in the profile to choose between
- indented subformums that you can toggle betweeen open and closed
- where closed means showing them as a linked list in the block of the main forum
- done with javascript, and fully usable in every xhtml-compilant browser, even without javascript.

Something like this would be CLEAN XHTML (i did not do it as a <ul> because of the additional info columns. you just have to add I18L code):

Code:
<h2>Gentoo forums overview</h2>
<table id="forumOverview" summary="List of gentoo forums and subforums with some infos."><thead>
  <tr><th colspan="3">Forum</th><th>Threads</th><th>Posts</th><th>Last Post</th></tr>
</thead><tbody>
  <? while (list($isSubForum, $forumId, $forumTitle, $forumShortDesc, $forumModerators, $subForums, $threadsCount, $postsCount, $lastPost) = each($forums)) { ?>
  <tr class="<?=$isSubForum ? 'sub' : '' ?>forum <?=$userPrefs['hideSubForums'] ? ' hide' : '' ?>">
    <?=$isSubForum ? '<td class="ind"></td>' : '' ?>
    <td><img="/img/<?=$isSubForum ? 'sub' : '' ?>forum.png" alt="<?=$isSubForum ? 'Subf' : 'F' ?>orum" onclick="javascript:toggleSubforums(this.parentNode.ParentNode)"/></td>
    <td<?=$isSubForum ? '' : 'colspan="2"' ?>>
      <h3><a href="/viewforum-f-<?=$forumId ?>.html"><?=$forumTitle ?></a></h3>
      <p><?=$forumShortDesc ?></p>
      <p><strong>Moderators:</strong> <? $s=false; foreach ($forumModerators as $forumModeratorId => $forumModeratorName) { ?><?=($s ? ', ' : '')  ?><a href="/groupcp.php?g=<?=$forumModeratorId ?>"><?=$forumModeratorName ?></a><? $s=true; } ?></p>
      <p class="subforums <?=$userPrefs['hideSubForums'] ? '' : ' hide' ?>"><strong>Subforums:</strong> <? $s=false; foreach ($subForums as $subForumId => $subForumName) { ?><?=($s ? ', ' : '')  ?><a href="/viewforum-f-<?=$subForumId ?>.html"><?=$subForumName ?></a><? $s=true; } ?></p>
    </td>
    <td><?=$threadsCount ?></td>
    <td><?=$postsCount ?></td>
    <td><?=$lastPost['Date'] ?><br/><a href="/profile.php?mode=viewprofile&amp;u=<?=$lastPost['UserId'] ?>"><?=$lastPost['UserName'] ?></a></td>
  </tr>
</tbody><tfoot>
  <tr><th>Forum</th><th>Threads</th><th>Posts</th><th>Last Post</th></tr>
</tfoot><table>


Now all you need is a proper stylesheet where:
Code:
#forumOverview .hide { display: none; }
#forumOverview img { width: ...px; height: ...px; }

and surely all used tags and:
Code:
#forumOverview .forum { ... }
#forumOverview .subforum { ... }
#forumOverview .subforums { ... }


And last but not least the

Code:
function toggleSubforums(topForumElem) {
  var sf = topForumElem.nextSibling; // get first subforum
  var subsHidden = sf.className.search(/ hide/) != -1; // actual state
  while (sf.className != "forum") { // all subforums until the next top forum
    sf.className = subsHidden ? 'subforum' : 'subforum hide'; // toggle hide class
    sf = sf.nextSibling;
  } ;
  topForumElem.lastChild.className =  subsHidden ? 'subforums hide' : 'subforums'; // toggle small subforums list in top forum row
}


and everyone will be happy! :)

P.S.: Only requirement besides from php and a standards compilant browser: The element with the sub forums must be the last one in the top forum row. (But as you may see, this is easy to fix, and so left as an exercise to the reader. ;)
Back to top
View user's profile Send private message
hermes_jr
l33t
l33t


Joined: 26 Feb 2004
Posts: 702
Location: Moscow, Russia

PostPosted: Sat May 20, 2006 4:36 pm    Post subject: Reply with quote

From my point of view "profile" would be the best option.
But it should have also an option to hide some of international forums completely. Sometimes I visit fgo using slow dial-up connection and it's quite painful to wait while all those Chinese* Dutch* etc... parts of index page download (and then I have to scroll down and search Russian or Spanish links for example). And of course I never read for example Italian or Greek (the ones which I just don't understand) forums like the most of fgo visitors do. So what I mean is that ability to hide unwanted forums (and not only subforums) on the server-side could save lots of users' time and also some bandwidth for forums :wink:
_________________
registered linux user #347998, киботеизм во веки веков
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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 vote in polls in this forum