| Author |
Topic Search Topic Options
|
chief
Newbie
Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
|
Post Options
Thanks(0)
Quote Reply
Topic: hide what you cant use! Posted: 17 April 2003 at 7:49pm |
|
love wwg forum especially ver 7.
been wondering this a long time and it applies to all forum software i've seen. WHY show buttons and links to features a user has no access to or is not in context? such as, when a user is logged in, there is still the "register" button displayed or a user without post permissions see the "new topic" and "reply" buttons.
one thing i've learned in 20 years of programming, never give a user an option he/she can't use!
i modded several pages (ver 7 b4) just to see how much trouble it would be to change this behavior. turns out its fairly easy and i don't see a couple of IF THEN ELSE statements slowing the forum much. now my pages are clean with no ambiguity. when the final is released, i'll finish the job and go live.
sorry, just a pet peeve of mine.
|
 |
doublelfan
Mod Builder Group
Joined: 14 May 2002
Location: United States
Status: Offline
Points: 316
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 April 2003 at 11:41pm |
First off, I'm running b4 and when you are logged in you do NOT see the register button. 
As for the others like the new post button...I agree, but I guess the more code and programming that has to be done the longer pages take to load...and there are other things I'd rather have than this code.
Just my opinion, Mike 
|
Free Computer Help 24-7
|
 |
chief
Newbie
Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 April 2003 at 6:49am |
doublelfan wrote:
First off, I'm running b4 and when you are logged in you do NOT see the register button. 
As for the others like the new post button...I agree, but I guess the more code and programming that has to be done the longer pages take to load...and there are other things I'd rather have than this code.
Just my opinion,
Mike  |
oops, you're absolutely right. when you're logged in, there is no registration button! i misspoke. however, when you're not logged in, there are "profile" buttons and links all over the place, among other "features" you can't access (just redirection to a page telling you so). that's what i call wasted bandwidth and ambiguous user interface. i'm just asking if anyone knows the reason. after all, someone thought to hide the "register" button when it's not in context, why not the others? again, this is no criticizm of wwg, it's common to most all forums. btw, if/then/else decisions are about the quickest thing you can do with vbscript and the code is trivial. but each to his own!
|
 |
hans3702
Mod Builder Group
Joined: 23 March 2003
Location: Netherlands
Status: Offline
Points: 141
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 April 2003 at 1:12pm |
Makes sence Chief, with is *MOD* Collapse forum categories my pages speeds up from 1,7 sec tot 0,2 sec.
Looking forward to see you mod ont he final.
Hans
|
|
|
 |
chief
Newbie
Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 April 2003 at 3:23pm |
|
hans, your code looks great! i'm probably gonna have less than 10 categories, so it may not speed me up as much, but i may use your mod anyway. i like the idea. hiding buttons is not nearly as involved as what you're doing, but when it's ready, i'll post it.
|
 |
hans3702
Mod Builder Group
Joined: 23 March 2003
Location: Netherlands
Status: Offline
Points: 141
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 April 2003 at 10:25am |
It's not the number of cat. but the number of forums in a cat. that speeds up the forum
let have 2 cat with 10 foums in (total 20 foums) by closing one cat. the hole forum is twice as fast.
Hans
ps tot speed the fourum up, disable the emoticons and put the one smily buton back in the post, ( 1 hit and one graph versus 15. ( the code you can find in v7 B3)
I will puy ith in the mod forum when i have it ready.
Edited by hans3702
|
|
|
 |
donhill
Groupie
Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2003 at 12:04am |
I have an interesting side question to this topic.
I commented out the lines to the buttons I did not want to have showing and that works fine. However, Once someone is logged in I realise they can always type the url to the members.asp file (I have hiden the membership list cos I am a bit of a meanie and dontwant others to contact my customers) and access teh membership list.
Can I write a line of code so that only admin (ie me) can see that page? I then place that code into any page I dont want others to view and no problem anymore?
|
 |
donhill
Groupie
Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 July 2003 at 4:25am |
hum, no replies to this?
Something like the following but how do I check to see if Admin is the person clicking the page?
is if the member is admin then ok else use this script here to go back to the previous page
<% IF redirect=true THEN%> <script language="Javascript"> {history.go(-1);} </script> <% END IF %>
|
 |