رفتن به مطلب

قالب ایمیل | کدنویسی :امیر عزیز - طراحی : سعید جعفری


ارسال‌های توصیه شده

با درود و عرض ادب خدمت همه دوستان گرامی

قالب ایمیل زیبا و شیک : امیدوارم که خوب بوده باشید!

 

اول به آدرس زیر رفته و HTML رو فعال کنید:

AdminCp >> System >> System Setting >> System >> Email Set-up

و

Send HTML emails = "Yes"

و بعد ذخیره کرده و به آدرس زیر بروید:

AdminCp >> Look & Feel >> Manage System Templates >> Email wrapper

و همه کدهای زیر رو با کدهای سایت خود عوض کنید:

<?php 
// This email template designed by 'saeed jafari' & coded by 'amir christ'
// You can ofcourse contact me if you have any question 
// #####  cheers: 'amir christ' & 'saeed jafari' - All rights reserved  #####
/**
 *########################################*
 *@ Don't delete this message Please     #*
 *########################################*
 *@name:	S-a IPB Email Template    #*
 *@designer:	Saeed Jafari              #*
 *@author:	amir christ               #*
 *@email:	[email protected]          #*
 *@version:	v1.0                      #*
 *########################################*
*/?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="{$settings['gb_char_set']}" />
		<title><#subject#></title>
		
	<style type="text/css">
	
	      body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
	  margin:0; padding:0; 
}
	
      fieldset,img { border:0; }
      address,caption,cite,code,dfn,th,var { font-style:normal; font-weight:normal; }
      ol,ul { list-style:none; }
      caption,th { text-align:left; }
      h1,h2,h3,h4,h5,h6 { font-size:100%;  font-weight:normal; }
      q:before,q:after { content:''; }
      abbr,acronym { border:0; }
      address{ display: inline; }
	  
      body {
        font: normal 13px Tahoma, Geneva, Sans-serif;
        font-family: "Tahoma", Geneva, Sans-serif;
        position: relative;
        background: #E2E2E2;
        padding: 18px;  
        direction:rtl;
      }
	  
      h3, strong { font-weight: bold; }
      em { font-style: italic; }
      img, .input_check, .input_radio { vertical-align: middle; }
      legend { display: none; }
     
      a {
        color: #1a3350;
        text-decoration: none;
        text-shadow: 0 1px #C6d3DF;
      }
       
      a:hover { color: #AF286D; 
      	text-decoration: none;
      	text-shadow: 0 1px #C6d3DF;
      }
	  
	  div.outer { 
	  margin: 0 auto; 
	  border: 1px solid #29A6B8; 
	  border-radius: 8px 8px 0px 0px;
	  -moz-border-radius: 8px 8px 0px 0px;
	  -webkit-border-radius: 8px 8px 0px 0px; 
	  background: #29A6B8; 
	  padding: 25px 10px 0px 10px;
	  text-decoration: none;
	  height: 50px;
	  /*vertical-align: middle;*/
	  font-size: 18px;
	  color: #fff;
	  font-family: Tahoma;
	}
	
	.email_content {
		/* I never suggest you to use image in email templates, so you can remove link form background for best efficiency. 'amir christ'*/
		background: #F0F0F0 url('http://up.palringo.eu/uploads/1389047691451.png') repeat;
		font-family: Tahoma;
		font-size: 13px;
		font-weight: bold;
		border-right: 1px solid #29A6B8;
		border-left: 1px solid #29A6B8;
		padding: 30px 30px 0px 30px; /* Don't change this */
		color: #000;
		text-decoration: none;
	}
	
	.subscribe {
		background: #D4D4D4;
		font-family: Tahoma;
		font-size: 12px;
		margin: 10px 0px 0px 10px;
		padding: 5px;
		color: #29A6B8;
		width: auto;
	}
	
	.footer {
		background: #29A6B8;
		font-family: Tahoma;
		font-size: 14px;
		border: 1px solid #29A6B8;
		padding: 5px;
		text-decoration: none;
		color: #fff;
		text-shadow: 0 1px #C6d3DF;
		border-radius: 0px 0px 8px 8px;
		-moz-border-radius: 0px 0px 8px 8px;
		-webkit-border-radius: 0px 0px 8px 8px;
	}


	</style>
</head>

<body dir="rtl">
	<div class="outer">
		<table>
			<tbody>
				<tr>
					<td width="40%">
						<a href="{$settings['board_url']}">{$settings['board_name']}</a> 
						 <font style="color: #fff;">
						 	|
						 </font> 
						 پي اچ پي فاکس ايراني
					</td>
					<td width="60%" align="left" style="text-align: left;">
<?php
/**###############################################################
* Current TimeZone* Sunday 15th September 2013 - 07:20:51        #
* Add your timezone below, for example: 'America/Los_Angeles'    #
* Or visit: http://php.net/manual/en/timezones.php               #
* ################################################################*/
	$timezone = "Asia/Tehran";
	if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
		echo date('l jS F Y - H:i:s');
?>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="email_content">
<!--##########################################################-->
<!--                        Email Content                     -->
<!--##########################################################-->
			{$content}
				<table width="100%">
					<tbody>
						<tr>
							<td width="25%" colspan="5">
							</td>
							<td width="75%" align="right">
								<div class="subscribe">
<!--######################################################-->
<!--Social links disabled, you can enable them as you wish-->
<!--######################################################-->
								<!--<a href="http://facebook.com/YOUR-ID">
								<img width="30px" height="30px" src="http://up.palringo.eu/uploads/1389047691922.png" />
								</a>
								<a href="http://twitter.com/YOUR-ID">
								<img width="30px" height="30px" src="http://up.palringo.eu/uploads/1389047692083.png" />
								</a>-->
									شما اين ايميل را به اين خاطر دريافت کرديد که در سايت فاکسيران حساب داريد.
								</div>
							</td>
						</tr>
					</tbody>
				</table>
	</div>
	<div class="footer">
		<table width="100%">
			<tbody>
				<tr>
					<td width="5%" rowspan="2">
						<img width="40px" height="40px" src="http://up.palringo.eu/uploads/1389029188351.png" />
					</td>
					<td width="60%" align="right">
						تمامي حقوق به سايت فاکسيران تعلق دارد.
					</td>
					<td rowspan="2" width="35%" style="text-align: left;">
						<font style="font-family: Trebuchet MS; font-size: 28px; color: #53C2D5;">
							FOXIRAN.COM
						</font>
					</td>
				</tr>
				<tr>
					<td width="60%">
						طراحي قالب: سعيد جعفري - کدگذاري و نويسنده قالب: امير کرايست
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</body>
</html>

موفق و پیروز باشید.

 

post-2231-0-39745200-1389104291_thumb.jp

post-2231-0-31893600-1389104299_thumb.pn

لینک ارسال
به اشتراک گذاری در سایت های دیگر

درود یه سوال البت به این تاپیک مربوط نیست ولی جدا هم نیس...چجوری کاری کرد که پیام خصوصی در ایمیل نمایش داده نشه..فقط لینکو بزاره...منظورم اینه..وقتی من به فلان کاربر پیام خصوصی دادم..یه ایمیل شامل پیام هم و لینک پیام ارسال میشه..کاری کرد که متن پیام نمایش داده نشه و حتمی برای متن پیام به انجمن بیاد تا ببینه؟

 

دوستان اگه میدونند راهنمایی کنند

لینک ارسال
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...