Mobile app version of vmapp.org
Login or Join
Michele947

: How to fix generated email from BlueSpice Media Wiki for new users to supply actual name? I have a standard install of BlueSpice on top of Media Wiki. When a new user is created I get

@Michele947

Posted in: #Bugs #Email #Mediawiki #Php #SiteMaintenance

I have a standard install of BlueSpice on top of Media Wiki. When a new user is created I get an email with the body:


The user wiki.example.com/index.php/User:NameHere with real name was created.


The should be substituted with the actual real name of the user, so there is a bug here. Where can I locate the code in the install the corresponds to this and how do I cause it to make the substitution? It seems the worked with the User:NameHere, so not sure why the didn't also get substituted. I imagine this is in somewhere in the php code.

Doing a grep I find:

# cd ~/public_html
# grep -R "with real name" .
./extensions/BlueSpiceExtensions/Notifications/i18n/en.json: "bs-notifications-email-addaccount": "The user with real name was created.",


The full en.json file at that location is:

{
"@metadata": {
"authors": [
"Swidmann"
]
},
"bs-notifications-desc": "Sends notifications on user selected changes",
"prefs-notifications": "Notifications",
"prefs-echo-extended": "Advanced system settings",
"bs-notifications-pref-notifyns": "Only notify for changes in these namespaces:",
"bs-notifications-pref-notifynominor": "No notification for minor changes",
"bs-notifications-pref-active": "Enable notifications",
"bs-echo-anon-user": "anonymous",
"bs-echo-unknown-user": "unknown",
"bs-echo-page-edit": "The page [[:]] has been changed",
"bs-echo-page-create": "The page [[:]] was created",
"bs-echo-page-delete": "The page [[:]] has been deleted",
"bs-echo-page-move": "The page [[:]] has been moved",
"bs-echo-page-newuser": "The user was created.",
"bs-echo-page-shoutbox": "A new ShoutBox message on the site [[:]].",
"bs-notifications-email-new-subject": "Page {{GENDER:|created}} by ",
"bs-notifications-email-new": "The page "" was {{GENDER:|created}} by .nnComment:n nYou can visit the page following this link:nn",
"bs-notifications-email-edit-subject": "Page {{GENDER:|edited}} by ",
"bs-notifications-email-edit": "The page "" was {{GENDER:|edited}} by .nnComment:n nYou can visit the page following this link:n.nnIf you only want to see the changes, follow this link:nn",
"bs-notifications-email-move-subject": "Page {{GENDER:|moved}} by ",
"bs-notifications-email-move": "The page "" was {{GENDER:|moved}} to by . You can visit the page following this link:nn",
"bs-notifications-email-delete-subject": "Page {{GENDER:|deleted}} by ",
"bs-notifications-email-delete": "The page "" was {{GENDER:|deleted}} by .nnThis was the reason:n",
"bs-notifications-email-addaccount-subject": "User created",
"bs-notifications-email-addaccount": "The user with real name was created.",
"bs-notifications-email-shout-subject": " {{GENDER:|posted}} a message on page ",
"bs-notifications-email-shout": " {{GENDER:|posted}} a message on page "".nnMessage:nnnYou can visit the page following this link:n.n",
"echo-category-title-bs-create-cat": "Notification for new pages",
"echo-category-title-bs-edit-cat": "Notification for edits",
"echo-category-title-bs-move-cat": "Notification for moves",
"echo-category-title-bs-delete-cat": "Notification for deletions",
"echo-category-title-bs-newuser-cat": "Notification for new users (administrators only)",
"echo-category-title-bs-shoutbox-cat": "Notification for messages on watched pages (shoutbox)"
}


Unclear what the solution is though. Where is the shifted set of arguments where another needs to be inserted to fill ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

Search the source files for some part of the message, such as with real name was created. You will find some message files - either JSON files, or PHP array, but in any case, a key-value format, where the key tells you the name of the message. You can then search for that name in the source. See the message interface for how you can add parameters to a message.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme