HighDots Forums  

Different Content based on USER - HTML only

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Different Content based on USER - HTML only in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lollukey
 
Posts: n/a

Default Different Content based on USER - HTML only - 12-07-2005 , 10:27 PM






Hi,

I need to display different links to different users - ie if a user is
anononymous they shouldn't have access to pricing details, whereas if a user is
logged on, they should have access.

At the moment the best way I can think of doing it is having the link visible
to all, with only the authenticated user being able to access the data, however
I would prefer if the link wasnt visible until log-in.

If there is a way using html only, without duplicating pages, I would love to
hear it. I was thinking of using layers but cant work out a way to make them
user specific.

The site is all HTML so at this stage server technologies arent an option.

Cheers,
LOLlukey


Reply With Quote
  #2  
Old   
kellydigital
 
Posts: n/a

Default Re: Different Content based on USER - HTML only - 12-07-2005 , 11:54 PM






how about a members only page...
then you can setup security with .htaccess and only those with the correct password can see the members' only content. no server technologies required.



Reply With Quote
  #3  
Old   
lollukey
 
Posts: n/a

Default Re: Different Content based on USER - HTML only - 12-08-2005 , 12:15 AM



I have 250+ products pages all with different info - the only way i can see a
members page working would be to have duplicate pages. I guess what I am really
after is a link only visible after logging in, on each page, where at the
moment i have to have the link visible to all. Also I am on a windows server so
no .htaccess, but I can change the access rights of folders/files from my
control panel...


Reply With Quote
  #4  
Old   
Lionstone
 
Posts: n/a

Default Re: Different Content based on USER - HTML only - 12-08-2005 , 09:47 AM



Without any server processing (with 250 products, I think you're insane not
to have any), you simply can't do this. HTML pages are static, and if you
look up the word static, it basically means "unchanging." They are served
the same way to all users (unless your server is set up to process them as
dynamic pages, but even then, they'd have to contain server-side scripting,
includes, etc, for that to matter; server-side scripting makes them dynamic
just as if they had a .asp extension, and SSI are still static without
server-side scripting).

Your only choice for an HTML-only solution is to have the protected
information in a password-protected directory that does not allow anonymous
access. If you want these pages visible anonymously, but a different
version for authenticated users, you will have duplicate pages.



Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: Different Content based on USER - HTML only - 12-08-2005 , 10:49 AM



On Thu, 8 Dec 2005 05:15:40 +0000 (UTC), "lollukey"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
I have 250+ products pages all with different info - the only way i can see a
members page working would be to have duplicate pages. I guess what I am really
after is a link only visible after logging in, on each page, where at the
moment i have to have the link visible to all.
The only way to do this is with server scripting.

Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.