Support Requests: Browse | Submit New | Admin

[#21137] forums.js/cleanAuthorName() - How to change the default author name?

Date:
2008-07-09 19:00
Priority:
3
Submitted By:
- - (taskmgr2)
Assigned To:
Nobody (None)
Category:
Other Pimki Feature
State:
Open
Summary:
forums.js/cleanAuthorName() - How to change the default author name?

Detailed description
In the following (forums.js):

function cleanAuthorName() {
  if (document.getElementById('authorName').value == "") {
    document.getElementById('authorName').value = 'AnonymousCoward';
  }
}

I modified it to read as:

function cleanAuthorName() {
  if (document.getElementById('authorName').value == "") {
    document.getElementById('authorName').value = 'TheOnlyUserName';
  }
}

However, pimki (even after restarting the server) still calls me "AnonymousCoward" - I realize there
are workarounds but I'd like to do it within the code itself, is this not the correct place to change it?  Why am I
not able to change the default username?

Thanks!

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-07-10 02:03
Sender: - -

I think that's not the problem, I generally run Firefox3, so
I went back and started a new web, opened it with firefox
and tried to create a new home page - AnonymousCoward was
still the default name.

I then looked for my browser's cookies, there were none, so
I turned them on and accepted the session_id cookie from
pimki.  The result was the same.

I then went into IE7 and accessed the same page with a new
cookie (obviously) and it was still the same default name.

This isn't the most earth-shattering problem I've ever run
into, but it would be really nice to know why it's
happening, if you've got a spare minute.  I'm sure I'm doing
something wrong, but I can't figure out what it is.

Thanks.
Date: 2008-07-10 00:25
Sender: Assaph Mehr

Hi,

You've probably saved it once as such and it got saved in the
cookie for the author name. If you save a page with a different
author name that should be overwitten (else you just need to
delete the appropriate cookie from your browser's cache).

Cheers,
Assaph 

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item