Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: blouogies20 - kesäkuu 02, 2008, 03:24:04 IP

Otsikko: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 02, 2008, 03:24:04 IP
Hi

I need help.  I have installed the PM On Registration mod.

BUT there is a problem when I go to Admin>Registration>Settings it shows only the following (Picture attached)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg170.imageshack.us%2Fimg170%2F4631%2Fpmonregistrationscreendpt0.th.png&hash=b59e46e0e240cd99dcbef115233a1e9154358398) (http://img170.imageshack.us/my.php?image=pmonregistrationscreendpt0.png)

What should I do?
Otsikko: Re: PM On Registration
Kirjoitti: shumar - kesäkuu 02, 2008, 03:53:36 IP
I think that you have problem with language file.
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 02, 2008, 04:05:29 IP
I did the following:

./Themes/default/languages/Modifications.english.php

Find (at the end of the file): [Select]
?>
Add Before: [Select]
// PM on new user registration. $txt['pm_register_enable'] = 'Send a PM to newly registered members?'; $txt['pm_register_id'] = 'ID of the member to send PM as'; $txt['pm_register_id_desc'] = 'This is the user profile that will be loaded when the PM is sent. To set as a guest sent PM set it to 0.'; $txt['pm_register_from'] = 'Send PM to newly registered member as'; $txt['pm_register_from_desc'] = 'This is the username that will appear when the PM is sent.'; $txt['pm_register_subject'] = 'The subject of the PM'; $txt['pm_register_body'] = 'The content of the PM goes here'; $txt['pm_register_body_desc'] = 'This is where you type the message that you would like to send to the user. To insert the username of the user just insert "<b>{$username}</b>". For forum name use "<b>{$boardname}</b>".'; $txt['pm_register_body_sample'] = 'This is a sample message.' ."\n\n". 'Hello {$username}, welcome to {$boardname}. That will output Hello "username", welcome to "forum_name".';

And it stil looks the same.  :(
Otsikko: Re: PM On Registration
Kirjoitti: SlammedDime - kesäkuu 02, 2008, 04:52:38 IP
Every $txt string needs to be on its own line, as so:
// PM on new user registration.
$txt['pm_register_enable'] = 'Send a PM to newly registered members?';
$txt['pm_register_id'] = 'ID of the member to send PM as';
$txt['pm_register_id_desc'] = 'This is the user profile that will be loaded when the PM is sent. To set as a guest sent PM set it to 0.';
$txt['pm_register_from'] = 'Send PM to newly registered member as';
$txt['pm_register_from_desc'] = 'This is the username that will appear when the PM is sent.';
$txt['pm_register_subject'] = 'The subject of the PM';
$txt['pm_register_body'] = 'The content of the PM goes here';
$txt['pm_register_body_desc'] = 'This is where you type the message that you would like to send to the user. To insert the username of the user just insert "<b>{$username}</b>". For forum name use "<b>{$boardname}</b>".';
$txt['pm_register_body_sample'] = 'This is a sample message.' ."\n\n". 'Hello {$username}, welcome to {$boardname}. That will output Hello "username", welcome to "forum_name".';
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 02, 2008, 05:06:45 IP
Lainaus käyttäjältä: SlammedDime - kesäkuu 02, 2008, 04:52:38 IP
Every $txt string needs to be on its own line, as so:
// PM on new user registration.
$txt['pm_register_enable'] = 'Send a PM to newly registered members?';
$txt['pm_register_id'] = 'ID of the member to send PM as';
$txt['pm_register_id_desc'] = 'This is the user profile that will be loaded when the PM is sent. To set as a guest sent PM set it to 0.';
$txt['pm_register_from'] = 'Send PM to newly registered member as';
$txt['pm_register_from_desc'] = 'This is the username that will appear when the PM is sent.';
$txt['pm_register_subject'] = 'The subject of the PM';
$txt['pm_register_body'] = 'The content of the PM goes here';
$txt['pm_register_body_desc'] = 'This is where you type the message that you would like to send to the user. To insert the username of the user just insert "<b>{$username}</b>". For forum name use "<b>{$boardname}</b>".';
$txt['pm_register_body_sample'] = 'This is a sample message.' ."\n\n". 'Hello {$username}, welcome to {$boardname}. That will output Hello "username", welcome to "forum_name".';

Sorry my mistake I did it like you showed here
Otsikko: Re: PM On Registration
Kirjoitti: Mturco11x - kesäkuu 03, 2008, 04:26:14 IP
Are you using a theme other than the SMF default theme? If so, did you update the admin template files if your theme uses custom ones?

- Matt
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 03, 2008, 04:30:14 IP
Lainaus käyttäjältä: Matt Turco - kesäkuu 03, 2008, 04:26:14 IP
Are you using a theme other than the SMF default theme? If so, did you update the admin template files if your theme uses custom ones?

- Matt
I'm using the SoftMCBlue theme and no how do I do that?
Otsikko: Re: PM On Registration
Kirjoitti: 青山 素子 - kesäkuu 04, 2008, 11:54:29 AP
What is your default language?
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 04, 2008, 12:38:16 IP
Lainaus käyttäjältä: Motoko-chan - kesäkuu 04, 2008, 11:54:29 AP
What is your default language?
English I think.  Where should I check it?
Otsikko: Re: PM On Registration
Kirjoitti: 青山 素子 - kesäkuu 04, 2008, 12:45:43 IP
As a quick check, look in your account settings (under your profile). If you have a language dropdown, you have more than one installed.

Also, English UTF8 is different than plain English, so make sure to note exactly what is listed there if it exists.

Also, while I'm thinking of things, how did you install SMF?
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 04, 2008, 01:09:26 IP
Language is English.

I didn't install smf my self My host did it.
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 09, 2008, 04:56:42 IP
I was wondering if the code was not duplicated.

Does any one have some advise for met to solve this issue?
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 11, 2008, 02:21:21 AP
Lainaus käyttäjältä: Matt Turco - kesäkuu 03, 2008, 04:26:14 IP
Are you using a theme other than the SMF default theme? If so, did you update the admin template files if your theme uses custom ones?

- Matt
Matt
Can you please explain to me what you mean here?
Otsikko: Re: PM On Registration
Kirjoitti: SlammedDime - kesäkuu 11, 2008, 03:33:05 AP
If a given template file does not exist in a custom theme, SMF reverts back to using the default theme's template file for that action.  Thus, if a mod is installed and makes template changes to files that also exist in your custom theme, then you must make those template changes in your theme as well.

Example:
Mod A modifies the Admin.template.php file. 
Your custom theme has this file in its directory.
You must make the changes manually to this file in order to properly use the mod.

Mod B modifies Profile.template.php.
Your custom theme does not have this file in its directory.
No extra template changes are needed for this file.
Otsikko: Re: PM On Registration
Kirjoitti: blouogies20 - kesäkuu 11, 2008, 04:25:41 AP
Lainaus käyttäjältä: SlammedDime - kesäkuu 11, 2008, 03:33:05 AP
If a given template file does not exist in a custom theme, SMF reverts back to using the default theme's template file for that action.  Thus, if a mod is installed and makes template changes to files that also exist in your custom theme, then you must make those template changes in your theme as well.

Example:
Mod A modifies the Admin.template.php file. 
Your custom theme has this file in its directory.
You must make the changes manually to this file in order to properly use the mod.

Mod B modifies Profile.template.php.
Your custom theme does not have this file in its directory.
No extra template changes are needed for this file.
I just checked in the default theme it show the same as in the theme I normally use.
So you think there must bee something wrong with the edits?