Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - hide what you can’t use!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

hide what you can’t use!

 Post Reply Post Reply
Author
chief View Drop Down
Newbie
Newbie


Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote chief Quote  Post ReplyReply Direct Link To This Post Topic: hide what you can’t 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.
Back to Top
doublelfan View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 14 May 2002
Location: United States
Status: Offline
Points: 316
Post Options Post Options   Thanks (0) Thanks(0)   Quote doublelfan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chief View Drop Down
Newbie
Newbie


Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote chief Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
hans3702 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 March 2003
Location: Netherlands
Status: Offline
Points: 141
Post Options Post Options   Thanks (0) Thanks(0)   Quote hans3702 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
chief View Drop Down
Newbie
Newbie


Joined: 17 April 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote chief Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
hans3702 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 March 2003
Location: Netherlands
Status: Offline
Points: 141
Post Options Post Options   Thanks (0) Thanks(0)   Quote hans3702 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post 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?

 

 

Back to Top
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post 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 %>

 

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.