Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

PM On Registration

Aloittaja blouogies20, kesäkuu 02, 2008, 03:24:04 IP

« edellinen - seuraava »

blouogies20

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)



What should I do?

shumar

I think that you have problem with language file.

blouogies20

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.  :(

SlammedDime

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".';
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

blouogies20

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

Mturco11x

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

blouogies20

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?

青山 素子

What is your default language?
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


blouogies20


青山 素子

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?
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


blouogies20

Language is English.

I didn't install smf my self My host did it.

blouogies20

I was wondering if the code was not duplicated.

Does any one have some advise for met to solve this issue?

blouogies20

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?

SlammedDime

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.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

blouogies20

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?

Advertisement: