Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: perfec2 on April 30, 2012, 03:07:59 AM

Title: How can locate these files
Post by: perfec2 on April 30, 2012, 03:07:59 AM
How can I locate these these templates that send this message:
Welcome new member message
Email activation message
New account activation reminder email notification
Topic notification email
and reply notication email.

Please I will assistant on to locate these templates one after the other as I want to edit them.

<<Edited to remove caps-locked title>>
Title: Re: How can locate these files
Post by: kat on April 30, 2012, 06:10:33 AM
Would this be of use?

http://custom.simplemachines.org/mods/index.php?mod=2926
Title: Re: How can locate these files
Post by: perfec2 on April 30, 2012, 10:04:40 AM
This would have been wonderful, just that my forum is 1.6 version. Please if there is mod for my version let me know otherwise list folders where I can manually locate them.
Title: Re: How can locate these files
Post by: kat on April 30, 2012, 02:52:48 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fblush2.gif&hash=27a7a54dfd48613a0d15e2744cdce710b994c34a)

Sorry 'bout that.

You know... I can't remember. I assume it's got to be one/some of the files in the default theme's "languages" directory.

I'll see if I can figure-out which one(s)...
Title: Re: How can locate these files
Post by: kat on April 30, 2012, 02:57:34 PM
http://wiki.simplemachines.org/smf/Registration_-_How_do_I_edit_the_registration/welcome_email

That'll cover most of it, I believe. :)
Title: Re: How can locate these files
Post by: Matthew K. on April 30, 2012, 03:00:59 PM
You are using 1.6?! You should most definitely upgrade to at LEAST 1.1.16.
Title: Re: How can locate these files
Post by: kat on April 30, 2012, 03:04:07 PM
I think that's what he meant, Doodle. ;)

Good point, though. :)
Title: Re: How can locate these files
Post by: perfec2 on April 30, 2012, 05:18:21 PM
Quote from: K@ on April 30, 2012, 02:57:34 PM
http://wiki.simplemachines.org/smf/Registration_-_How_do_I_edit_the_registration/welcome_email

That'll cover most of it, I believe. :)

This is inline, but  couldn't get what I want work for me. I'm trying to insert advert code that will display advert on  each email send at the button of each email as I see in many emails.

I edited file "Login.english_british-utf8.php"
or
Would have edited "Login.english-utf8.php"  or Login.english.php ?
Title: Re: How can locate these files
Post by: MrPhil on April 30, 2012, 07:30:42 PM
'english' is more or less American English (the base language) in Latin-1 encoding.
'english-utf8' should be identical (unless there's any non-ASCII punctuation), and is for UTF-8 encoded display.
'english_british' would be the Muvver Tongue in Latin-1 encoding (is there such an offering?).
'english_british-utf8' would be British English, very similar to 'english_british', but possibly with Pound Sterling and some odds & ends characters in UTF-8 encoding instead of Latin-1.

You would be using either (American) English or British English, and either Latin-1 or UTF-8 page character display encoding. Not all combinations may be available. You are welcome to keep the text in all three or four in sync -- it won't hurt, and if you allow multiple Englishes as language choices, you'll need to have all of them in sync anyway.
Title: Re: How can locate these files
Post by: perfec2 on May 02, 2012, 10:05:50 AM
Ok, I'm using 'english_british-utf8'

This is one email template below:


$txt['resend_activate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s!' . "\n\n" . 'Your username is "%2$s".' . "\n\n" . 'You first need to activate your account before you can login so please follow this link:' . "\n\n" . '%4$s' . "\n\n" . 'Please use the code "%3$s" if you have any problems with activation.' . "\n\n" . $txt[130];



The adevert code I want to insert so that it goes with email is below, please help me insert it at appropriate place above:

<!-- Begin mywebaddresshere Code -->
<script language="javascript"><!--//
var server_client_id = 1002;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "text,hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728; 
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "FFE100";
var server_ad_color_background = "FFE100";
var server_ad_color_headline = "3D81EE";
var server_ad_color_body = "000000";
var server_ad_color_url = "191919";
var server_ad_random = 1;
//--></script>
<script type="text/javascript" src="http://www.mywebaddresshere.com/mypro/ads/display_ads.php">
</script>
<!-- End mywebaddresshere Code -->



Title: Re: How can locate these files
Post by: MrPhil on May 02, 2012, 07:29:32 PM
Did the instructions suggest any particular place to put this code? Not knowing what the JS is planning to dump into your email, I hesitate to tell you what to edit, but you could try the following:

$txt['resend_activate_message'] = 'You are now registered with an account at ' . $context['forum_name'] . ', %1$s!' . "\n\n" . 'Your username is "%2$s".' . "\n\n" . 'You first need to activate your account before you can login so please follow this link:' . "\n\n" . '%4$s' . "\n\n" . 'Please use the code "%3$s" if you have any problems with activation.' . "\n\n" . $txt[130] . "\n\n" .
'<!-- Begin mywebaddresshere Code -->
<script language="javascript"><!--//
var server_client_id = 1002;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "text,hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728;
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "FFE100";
var server_ad_color_background = "FFE100";
var server_ad_color_headline = "3D81EE";
var server_ad_color_body = "000000";
var server_ad_color_url = "191919";
var server_ad_random = 1;
//--></script>
<script type="text/javascript" src="http://www.mywebaddresshere.com/mypro/ads/display_ads.php">
</script>
<!-- End mywebaddresshere Code -->' . "\n";


Make a backup of the file so you can get rid of this change if it doesn't work. So, are you going to put the same changes into all 5 or so emails that you listed before?
Title: Re: How can locate these files
Post by: perfec2 on May 03, 2012, 04:04:50 PM
The instrustion only says "Below is the ad code generated from your selections.  Please cut & paste this exactly as it is shown into the HTML content of your page(s)"

.

Yes, I want to put the same changes into all 5 or so emails that I listed before.
Title: Re: How can locate these files
Post by: perfec2 on May 03, 2012, 06:01:36 PM
It doesn't show the advert in any email, what is the next option?
Title: Re: How can locate these files
Post by: MrPhil on May 03, 2012, 06:23:56 PM
Are the emails in HTML? Look at the source for the email and see if the new code is found in the email, and more importantly, where. Perhaps it needs to be moved into the <head> section of the email's HTML?
Title: Re: How can locate these files
Post by: perfec2 on May 03, 2012, 06:46:39 PM
Just normal emails people receive when theeu sign up, reset password, etc (I have seen this in many ways)

Concerning Source, I view source but could no find the code.

Moving in the (heard) section of the email how would I do that? if that would give me what I want.
Title: Re: How can locate these files
Post by: Arantor on May 03, 2012, 07:16:18 PM
I didn't think SMF ever sent its emails actually in HTML at all, especially in 1.1.x?
Title: Re: How can locate these files
Post by: MrPhil on May 03, 2012, 07:47:08 PM
If this code was intended for an HTML page, I'm not sure it will display correctly on a plain text email. It includes a Javascript call to do something, so there's probably not too much that can be done in plain text email.
Title: Re: How can locate these files
Post by: Arantor on May 03, 2012, 08:34:22 PM
And therein lies the problem. I'm pretty sure 1.1.x never sends HTML email and 2.0 may or may not. Even if it does, most email clients that accept HTML will also disable JavaScript for the fairly obvious reason.
Title: Re: How can locate these files
Post by: perfec2 on May 04, 2012, 09:13:51 AM
Is there really any solution for me, I'm using www.inclick.net  to serve my advert .
Title: Re: How can locate these files
Post by: MrPhil on May 04, 2012, 09:48:31 AM
This appears to be some form of "pay per click" advertising. As it depends on having Javascript active on a Web page, it's not going to work on plain text emails and often not on HTML emails. I can't think of any solution for you, beyond putting static advertising content into your emails (no active links, just text). You could select from among several different ads to insert into your email, but it will still be static text.
Title: Re: How can locate these files
Post by: perfec2 on May 04, 2012, 10:08:26 AM
Ok, It seems that SMF doesn't send out the code. Addition I will be looking for ad system that I will enable me to do this as I have seing this in action hence looking for it.
Title: Re: How can locate these files
Post by: Arantor on May 04, 2012, 10:34:37 AM
It will require rewriting the entire email system in SMF to make it happen.