Page 1 of 1 1
Topic Options
#172994 - 2007-01-19 05:40 PM Need a script to set Home page based on Group
Inbarasan Offline
Lurker

Registered: 2007-01-19
Posts: 2
Loc: India
Hi All,

Pls help me with a script with which i can set the home page of a user based on Groups. Thanks in Advance

Regards
Inba
_________________________
Inba

Top
#172997 - 2007-01-19 06:37 PM Re: Need a script to set Home page based on Group [Re: Inbarasan]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hi and welcome. The code would look something like this:

Code:
BREAK ON

SELECT

 CASE INGROUP("Administrators")

  $PAGE = "http://www.yahoo.com/"

 CASE INGROUP("Kixters")

  $PAGE = "http://www.kixtart.org/"

 CASE 1 ; the default

  $PAGE = "http://www.google.com/"

ENDSELECT

$RC = WRITEVALUE("HKCU\Software\Microsoft\Internet Explorer\Main","Start Page",$PAGE,"REG_SZ")

EXIT 0


Hope this helps.

-Shawn

Top
#173039 - 2007-01-22 08:51 AM Re: Need a script to set Home page based on Group [Re: Shawn]
Inbarasan Offline
Lurker

Registered: 2007-01-19
Posts: 2
Loc: India
Thanks a lot for your help. I will check this one and come back to you.

Regards
Inba
_________________________
Inba

Top
#173184 - 2007-01-25 08:56 AM Re: Need a script to set Home page based on Group [Re: Inbarasan]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
seeing the time since his last reply you probably should have stated $Page = "www.kixtart.org/ubbthreads" in the Administrator group ;\)
Top
#173199 - 2007-01-25 02:47 PM Re: Need a script to set Home page based on Group [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
actually... $Page = "www.kixtart.org/forums" works better. I had to stop using the old link after the upgrade because there were some issues with the old link and the new location of the software.
_________________________
(... better days ahead)

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 731 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.056 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org