Advertisement:

Author Topic: How can locate these files  (Read 4647 times)

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
How can locate these files
« 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>>
« Last Edit: April 30, 2012, 06:12:15 AM by K@ »

kat

  • Guest
Re: How can locate these files
« Reply #1 on: April 30, 2012, 06:10:33 AM »

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #2 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.
« Last Edit: April 30, 2012, 03:15:06 PM by perfec2 »

kat

  • Guest
Re: How can locate these files
« Reply #3 on: April 30, 2012, 02:52:48 PM »


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)...

kat

  • Guest
Re: How can locate these files
« Reply #4 on: April 30, 2012, 02:57:34 PM »

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: How can locate these files
« Reply #5 on: April 30, 2012, 03:00:59 PM »
You are using 1.6?! You should most definitely upgrade to at LEAST 1.1.16.

kat

  • Guest
Re: How can locate these files
« Reply #6 on: April 30, 2012, 03:04:07 PM »
I think that's what he meant, Doodle. ;)

Good point, though. :)

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #7 on: April 30, 2012, 05:18:21 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 ?
« Last Edit: April 30, 2012, 05:29:49 PM by perfec2 »

MrPhil

  • Guest
Re: How can locate these files
« Reply #8 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.

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #9 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 -->



« Last Edit: May 02, 2012, 01:16:12 PM by perfec2 »

MrPhil

  • Guest
Re: How can locate these files
« Reply #10 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:
Code: [Select]
$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?

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #11 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.
« Last Edit: May 03, 2012, 06:02:38 PM by perfec2 »

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #12 on: May 03, 2012, 06:01:36 PM »
It doesn't show the advert in any email, what is the next option?

MrPhil

  • Guest
Re: How can locate these files
« Reply #13 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?

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #14 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,636
    • StoryBB/StoryBB on GitHub
Re: How can locate these files
« Reply #15 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?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

MrPhil

  • Guest
Re: How can locate these files
« Reply #16 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,636
    • StoryBB/StoryBB on GitHub
Re: How can locate these files
« Reply #17 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline perfec2

  • Jr. Member
  • **
  • Posts: 230
Re: How can locate these files
« Reply #18 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 .

MrPhil

  • Guest
Re: How can locate these files
« Reply #19 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.