Print Page | Close Window

hide what you can’t use!

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Suggestions
Forum Description: Do you have any ideas for applications or content on Web Wiz? Then leave your suggestions here.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1886
Printed Date: 29 March 2026 at 10:15am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: hide what you can’t use!
Posted By: chief
Subject: hide what you can’t use!
Date 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.



Replies:
Posted By: doublelfan
Date 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



-------------
http://mypcclinic.com/">
Free Computer Help 24-7


Posted By: chief
Date Posted: 18 April 2003 at 6:49am
Originally posted by doublelfan 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!


Posted By: hans3702
Date Posted: 24 April 2003 at 1:12pm

Makes sence Chief, with is  http://forums.webwiz.net/forum_posts.asp?TID=1940&PN=1 - *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



-------------


Posted By: chief
Date 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.


Posted By: hans3702
Date 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.



-------------


Posted By: donhill
Date 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?

 

 



Posted By: donhill
Date 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 %>

 

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net