أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

اريد هاك شكرا


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif اريد هاك شكرا
  23-09-2011 02:08 صباحاً  
Mahde04
معلومات الكاتب
اخي انا قراة ردك في تمعن

اخي يمكن تحرير القالب وهذا شكرا

CODE
<!-- start_post_thanks -->


{if {$_CONF[&#39;info_row&#39;][&#39;post_thanks_on_off&#39;]} == &#39;1&#39;}
<?php
$excludedWords = array();
$doubleAr = $PowerBB->_CONF[&#39;template&#39;][&#39;_CONF&#39;][&#39;info_row&#39;][&#39;post_thanks_forum_off&#39;];
$forum_off = preg_split("#[|]+#", $doubleAr, -1, PREG_SPLIT_NO_EMPTY);
$excludedWords = array_merge($excludedWords, $forum_off);
for ($x = 0; $x < @count($excludedWords); $x++)
{
$excludedWords[$x] = @trim($excludedWords[$x]);
if($excludedWords[$x] == $PowerBB->_CONF[&#39;template&#39;][&#39;section_info&#39;][&#39;id&#39;])
{
$post_thanks_forum_off = &#39;1&#39;;
}
}

if(!$post_thanks_forum_off)
 {
?>

<?php
$subjectid  =	$PowerBB->_CONF[&#39;template&#39;][&#39;subject_id&#39;];
$subject_thanks_nm = $PowerBB->DB->sql_num_rows($PowerBB->DB->sql_query("SELECT id FROM " . $PowerBB->prefix."post_thanks" . " WHERE subjectid=&#39;$subjectid&#39;"));

$userid  =	$PowerBB->_CONF[&#39;template&#39;][&#39;_CONF&#39;][&#39;member_row&#39;][&#39;id&#39;];
	 $thanks_info_user = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->prefix."post_thanks" . " WHERE subjectid = &#39;$subjectid&#39; and userid = &#39;$userid&#39; ");
	 $get_thanks_user_row = $PowerBB->DB->sql_fetch_array($thanks_info_user);

?>
 <script type=&#39;text/javascript&#39;>

function AjaxDelOneThanks()
{
    var AjaxState = {ajaxSend : WaitDelOneThanks};
    var data = {};
    data[&#39;subjectid&#39;]				    =    $("#subject_id").val();
    data[&#39;display_username&#39;]			 =    $("#display_username_id").val();
    data[&#39;ajax&#39;]    =    1;

    $.post("index.php?page=post_thanks&post_del_one_thanks_start=1",data,SuccessDelOne);

}
function WaitDelOneThanks()
{
    $("#del_one_thanks_xml").html("{$lang[&#39;Ongoing_process&#39;]}");
}

</script>
<?php
if($PowerBB->_CONF[&#39;template&#39;][&#39;get_thanks_user_row&#39;])
 {
?>
 <script type=&#39;text/javascript&#39;>
function SuccessDelOne(xml)
{
    $("#del_thanks_button").hide();
    $("#thanks").hide();
    $("#del_all_thanks").hide();
    $("#thanks_template").show();
    $("#thanks_button").show();
	$("#del_one_thanks_xml").html(xml);

}

</script>
<?php
}
else
 {
?>
 <script type=&#39;text/javascript&#39;>
function SuccessDelOne(xml)
{
    $("#del_thanks_button").hide();
    $("#thanks").hide();
    $("#del_all_thanks").hide();
    $("#thanks_template").hide();
    $("#thanks_button").show();
	$("#del_one_thanks_xml").html(xml);

}

</script>
<?php
}
?>
 <script type=&#39;text/javascript&#39;>

function ReadyDelOne()
{
    $("#del_one_thanks_id").click(AjaxDelOneThanks);
}
$(document).ready(ReadyDelOne);

</script>

<script type=&#39;text/javascript&#39;>

function AjaxDelAllThanks()
{
    var AjaxState = {ajaxSend : WaitDelAllThanks};
    var data = {};
    data[&#39;subjectid&#39;]				    =    $("#subject_id").val();
    data[&#39;ajax&#39;]    =    1;

    $.post("index.php?page=post_thanks&post_del_all_thanks_start=1",data,SuccessDelAll);

}
function WaitDelAllThanks()
{
    $("#del_all_thanks").html("{$lang[&#39;Ongoing_process&#39;]}");
}
function SuccessDelAll(xml)
{
    $("#del_all_thanks_button").hide();
    $("#thanks").hide();
    $("#del_all_thanks_id").hide();
	$("#thanks_template").hide();
	 $("#thanks_button").show();
	$("#del_all_thanks").html(xml);

}
function ReadyDelAll()
{
    $("#del_all_thanks_id").click(AjaxDelAllThanks);
}
$(document).ready(ReadyDelAll);

</script>


<?php
if(!$subject_thanks_nm == &#39;0&#39;)
 {
?>
  <div align=&#39;center&#39; id="thanks_template">
<tr align="center">
	   <td width="100%" colspan="2">
<table border="0" cellspacing="1" class="border" width="98%" align="center">
    <tr>
	   <td width="98%" class="thead1" align="right">


<?php echo $subject_thanks_nm ?> أعضاء قالوا شكراً لـ {$Info[&#39;display_username&#39;]} على المشاركة المفيدة:

<div class="l-left">
<?php
if($get_thanks_user_row)
 {
?>
{if {$_CONF[&#39;info_row&#39;][&#39;post_thanks_delete_own&#39;]} == &#39;1&#39;}
 <form name="form_del_one_thanks" class="form_del_thanks" method="post" action="index.php?page=post_thanks&amp;post_del_one_thanks_start=1">
   <div align=&#39;center&#39; id="del_thanks_button">
<input name="del_one_thanks" class="input_del_thanks" type="button" id="del_one_thanks_id" value=" احذف شكرك " />
</div>
<input type="hidden" name="subjectid" id="subject_id" value="{$subject_id}" />
<textarea name="display_username" id="display_username_id" style="display:none;">{$Info[&#39;display_username&#39;]}</textarea>
</form>
<?php
}
}
?>
<?php
if(!$subject_thanks_nm == &#39;0&#39;)
 {
?>
{if {$_CONF[&#39;rows&#39;][&#39;group_info&#39;][&#39;admincp_allow&#39;]}}
<?php
if($get_thanks_user_row)
 {
?>
<?php
}
?>
 <form name="form_del_all_thanks" class="form_del_thanks" method="post" action="index.php?page=post_thanks&amp;post_del_all_thanks_start=1">
   <div align=&#39;center&#39; id="del_all_thanks_button">
<input name="del_all_thanks" class="input_del_thanks" type="button" id="del_all_thanks_id" value=" احذف الكل " />
</div>
<input type="hidden" name="subjectid" id="subject_id" value="{$subject_id}" />
<textarea name="display_username" id="display_username_id" style="display:none;">{$Info[&#39;display_username&#39;]}</textarea>
</form>
{/if}
<?php
}
?>
</div>
</td>
    </tr>
    <tr>
	   <td width="98%" class="row1" align="right">
<?php
	 $thanks_info = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->prefix."post_thanks" . " WHERE subjectid = &#39;$subjectid&#39; ORDER BY id ASC");
	  while ($get_thanks_row = $PowerBB->DB->sql_fetch_array($thanks_info))
	 {
		?>
{if {$_CONF[&#39;info_row&#39;][&#39;post_thanks_date_all&#39;]} == &#39;1&#39;}
		<?php
	   $date = $get_thanks_row[&#39;date&#39;];
	   $date = $PowerBB->functions->date($date);
	   ?>
	{/if}
{if {$_CONF[&#39;info_row&#39;][&#39;rewriterule&#39;]} == &#39;1&#39;}
<a title="<?php echo $date ?>" href="u<?php echo $get_thanks_row[&#39;userid&#39;] ?>.html"><?php echo $get_thanks_row[&#39;username&#39;] ?></a>
{else}
<a title="<?php echo $date ?>" href="index.php?page=profile&amp;show=1&amp;id=<?php echo $get_thanks_row[&#39;userid&#39;] ?> "><?php echo $get_thanks_row[&#39;username&#39;] ?></a>
{/if} ,
	   <?php
	 }
 ?>
	   </td>
    </tr>
</table>
</td>
    </tr>
</div>
	    <?php
	 }
 ?>
<table border="0" width="100%" id="thanks" cellpadding="0" align=&#39;center&#39; style="border-collapse: collapse">
    <tr>
	   <td id="thanks"></td>
    </tr>
</table>
<table border="0" width="100%" id="del_one_thanks_xml" cellpadding="0" align=&#39;center&#39; style="border-collapse: collapse">
    <tr>
	   <td id="del_one_thanks_xml"></td>
    </tr>
</table>
<table border="0" width="100%" id="del_all_thanks" cellpadding="0" align=&#39;center&#39; style="border-collapse: collapse">
    <tr>
	   <td id="del_all_thanks"></td>
    </tr>
</table>
<?php
}
?>
{/if}
<!-- end_post_thanks -->


شو لازم اعدل عليه على شان يشتغل اخي تحملني انا غلبتك معاي


الساعة الآن 08:57 AM