NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11634
Loc: Space
Code:
Break On
$oRoot = GetObject("LDAP://RootDSE")
$strDomain = $oRoot.Get("DefaultNamingContext")
$objOU = GetObject("LDAP://CN=Users,ou=MYOU,"+$strDomain)
;If the default users ou has not been changed this should work
;Otherwise put in your FULL OU path and remove the RootDSE lookup.
'Get OU Path error: ' + @SERROR ?
$objOU.Filter = "user, "
For Each $objUser In $objOU
If $objUser
'User: ' + Right($objUser.Name,-3) + ' has the company set as: ' + $objUser.company ?
; $objUser.Put("company", "new company name")
; $objUser.SetInfo
; Removing the above 2 commented lines and putting your company name in should work
EndIf
Next
#170682 - 2006-11-2601:02 AMRe: Test post - ignore
[Re: Lonkero]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Doc,
Simply doing a "view source" shows the source for the PostPrep'd code is on a single line (two, actually), as opposed to multiple lines for the sample above it. Got to ask how the postprep code is stored in the BBS. PostPrep definitely separates lines with CR/LF pairs. UBB seems to be stripping them when it accepts or stores the post.
Something else interesting - I can copy the PostPrep code from this page into MS Word and it retains all proper formatting, including color. I can then successfully copy / paste that into notepad. Word is understanding the < BR > tags properly in leiu of the newlines.
Glenn
_________________________ Actually I am a Rocket Scientist!
#170685 - 2006-11-2610:06 AMRe: Test post - ignore
[Re: Glenn Barnas]
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11634
Loc: Space
Yes weird since Wordpad should also treat it that way, but in my test it did not.
MS Word though understands and grabs the html coding which Wordpad does not (Word 6 - pretty much what Wordpad is - did not undertand html back then) thus not the exact same thing. However in the past it would keep the formatting and now does not seem to.
Not something I'lll probably spend much time on right now, but maybe take a further look at it later on.
#170694 - 2006-11-2603:33 PMRe: Test post - ignore
[Re: NTDOC]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Yeah - Word's HTML support is why I tried it..
The point is - the UBB system is taking the postprepped code and storing it somehow with line termination removed, maybe assuming the < BR > tags are enough, and thus saving a couple bytes by strippingthe CR/LF? I didn't check the string length, but UBB split the Postprepped code into 2 lines. Did you try posting with Postprep and UBB tags?
BTW - for a "test post" we were told to "ignore", this post is sure getting a lot of attention!
Glenn
_________________________ Actually I am a Rocket Scientist!
the ubb board have always screwed the html code a bit. the current version seems to once again have the pre-tags when posting with code-tag. that's good progress as in last version that had to fixed manually. anyways, when posting with html enabled, it still seems to screw up the posts like the older versions and that's a thing that needs to be fixed.
don't no longer have access to the system, so it's up to doc to do that.