Simple Newsarchive for Customers
This is a simple mod so customers can see what information could be sent to them when they subscribe, and to keep an archive handy for them as well.
This mod will display newsletters SENT only, and limited to the recent 10 newsletters, but you can change it easily inside the script. Step 1: Create 3 language label variables: lbl_newsarchive = News Archive lbl_newsarchive_none = No Newsletters have been sent lbl_newsarchive_published = Published Step 2: Create a file called newsarchive.php and save it in your /customer directory, with the following code in it: Code:
<?php Note: Notice the DESC LIMIT 0,10, this is where you limit the max amount of archived newsletters to display, you can fix the 10 to whatever number you like. Step 3: In your /skin1/common_templates.tpl file add this line: Code:
{elseif $main eq "newsarchive"} Step 4: In your /skin1/today_news.tpl file add this after {$lng.txt_today_news}: Step 5: Create a file under /skin1/customer named newsarchive.tpl with the following code in it: Code:
{* $Id: newsarchive.tpl,v 1.0 2004/01/24 08:00:00 leon Exp $ *} Thats all, simple and directly let your customers see what kind of information you send out on your newsletters. |
Thanks
Leon,
Thanks for the info. Do you have this running anywhere so I can see it running? |
thank you, I will try it today
|
This is a very old post, so be careful implementing it into version 4.
|
thank you I will
|
Re: Thanks
Quote:
Read my footer -> dmcigars.com |
All times are GMT -8. The time now is 10:30 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.