PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : ويرايش com_moscom082s حذف تعداد كامنت ها ؟!



p30one
08-11-2008, 01:48 PM
ميخوام اون موارد 1 و 2 رو كه تو عكسه حذفشون بكنم تا تعداد كامنتها معلوم نشه چون اصلا قرار نيستش كامنت نشون داده بشه و فقط براي قبول پيشنهادات هستش.

<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
اينم كدشه


&lt;?php
/**
* @version
* @package MosCom - COAddOns for Mambo &amp; Jommla - Comments on Articles based on COMBO

by Phil Taylor
* @copyright (C) 2006 ongetc.com
* @info ongetc@ongetc.com <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
* @license

GNU/GPL <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
*/

defined( &#039;_VALID_MOS&#039; ) or die( &#039;Direct access to this

location is not allowed.&#039; );
//admin.comments.html.php
define(&#039;_COM_A_KEEPUPTODATE&#039;,&#039;If you want to keep up

to date with this and other great components from Chanh Ong, please subscribe to the mailing list by

clicking this button.&#039;);
define(&#039;_COM_A_SUBSCRIBE&#039;,&#039;Subscribe&#039;);
define(&#039;_COM_A_UNSUBSCRIBE&#039;,&#039;Unsubscribe&#039;);
define(&#039;_COM_A_BACKUP&#039;,&#039;Backup&#039;);
define(&#039;_COM_A_BACKUP_DESC&#039;,&#039;Backup the #__content_comments table&#039;);
define(&#039;_COM_A_RESTORE&#039;,&#039;Restore&#039;);
define(&#039;_COM_A_RESTORE_DESC&#039;,&#039;Restore the #__content_comments table&#039;);
define(&#039;_COM_A_CONFIG&#039;,&#039;Configuration&#039;);
define(&#039;_COM_A_CONFIG_DESC&#039;,&#039;Change the configuration&#039;);
define

(&#039;_COM_A_INSTRUCTIONS&#039;,&#039;Instructions&#039;);
define(&#039;_COM_A_INSTRUCTIONS_DESC&#039;,&#039;Post Install Configuration&#039;);
define(&#039;_COM_A_ABOUT&#039;,&#039;About&#039;);
define(&#039;_COM_A_ABOUT_DESC&#039;,&#039;About this component&#039;);
define

(&#039;_COM_A_LINK&#039;,&#039;Link&#039;);
define(&#039;_COM_A_LINK_DESC&#039;,&#039;To author&amp;acute;s website&#039;);
define(&#039;_COM_A_CHECK&#039;,&#039;Check

for updates&#039;);
define(&#039;_COM_A_VERSION&#039;,&#039;Your version is &#039;);
define(&#039;_COM_A_DONATE&#039;,&#039;Please consider clicking

the donate button below to donate. This will inspire me to improve this script more.&#039;);
define

(&#039;_COM_A_REVIEW&#039;,&#039;Review Comments (Newest first)&#039;);
define(&#039;_COM_A_DISPLAY&#039;,&#039;Display #&#039;);
define

(&#039;_COM_A_NAME_SUB&#039;,&#039;Name&#039;);
define(&#039;_COM_A_EMAIL_SUB&#039;,&#039;Email&#039;);
define(&#039;_COM_A_HOMEPAGE&#039;,&#039;Homepage&#039;);
define

(&#039;_COM_A_COMMENT&#039;,&#039;Comment&#039;);
define(&#039;_COM_A_ARTICLE&#039;,&#039;Article&#039;);
define(&#039;_COM_A_PUBLISHED&#039;,&#039;Published&#039;);
define(&#039;_COM_A_MOS_BY&#039;,&#039;A MOS4.5 Custom Component by&#039;);
define(&#039;_COM_A_CURRENT_SETTINGS&#039;,&#039;Current

Setting&#039;);
define(&#039;_COM_A_EXPLANATION&#039;,&#039;Explanation&#039;);
define(&#039;_COM_A_ADMIN_EMAIL&#039;,&#039;Admin Email&#039;);
define

(&#039;_COM_A_ADMIN_EMAIL_DESC&#039;,&#039;If email is turned on, an email will be sent to this address when a new

comment is entered.&#039;);
define(&#039;_COM_A_ADMIN_ALERTS&#039;,&#039;Admin Email Alerts&#039;);
define

(&#039;_COM_A_ADMIN_EMAIL_ENABLE&#039;,&#039;Enable/Disable emails to Admin&#039;);
define(&#039;_COM_A_VISITOR_EMAIL&#039;,&#039;Visitor

Email Alerts&#039;);
define(&#039;_COM_A_VISITOR_EMAIL_DESC&#039;,&#039;Enable/Disable emails to the person who submitted the

comment&#039;);
define(&#039;_COM_A_REVIEW_SUBM&#039;,&#039;Review submissions&#039;);
define(&#039;_COM_A_REVIEW_DESC&#039;,&#039;If you set this

to &amp;acute;Yes&amp;acute; then comments will be added to the database and will wait for you to review and

publish them before appearing. You will receive an email &lt;strong&gt;only&lt;/strong&gt; if there is a value in

&amp;quot;Admin email&amp;quot; and you have &amp;quot;Email Alerts&amp;quot; set to &amp;quot;Yes.&amp;quot;&#039;);
define

(&#039;_COM_A_REGISTERED_ONLY&#039;,&#039;Registered users only&#039;);
define(&#039;_COM_A_REG_ONLY_DESC&#039;,&#039;Set &amp;quot;Yes&amp;quot; to

allow only registered users to leave comments but anyone can see comments, Set &amp;quot;No&amp;quot; to allow any

visitor to comment&#039;);
define(&#039;_COM_A_NOTIFY_VERSION&#039;,&#039;Notify if new version available&#039;);
define

(&#039;_COM_A_NOT_VER_DESC&#039;,&#039;If set to &amp;quot;Yes&amp;quot; you will be shown a dialog on the main screen when an

update to this component is available. (&lt;em&gt;NOTE: The only data sent to the update server is your version

number.&lt;/em&gt;)&#039;);
define(&#039;_COM_A_HAVE_DONATED&#039;,&#039;Have you Donated?&#039;);
define(&#039;_COM_A_DONATE2&#039;,&#039;Please consider

make a donation through PayPal. This will inspire me to improve this script more! :-)&#039;);
define

(&#039;_COM_A_IMPORTANT_NOTE&#039;,&#039;IMPORTANT NOTES&#039;);
define(&#039;_COM_A_TEMPLATE&#039;,&#039;In order for Mambo to check and see

if its showing an article that can be commented on, you must make a small change to your template.&lt;br&gt;&lt;a

href=&quot;index2.php?option=templates&amp;task=edit&quot;&gt;Edit your template file&lt;/a&gt; and look for the entry.&#039;);
define

(&#039;_COM_A_CHANGE_TO&#039;,&#039;Change this to the following:&#039;);
define(&#039;_COM_A_HAVE_FUN&#039;,&#039;Thats it! ~ (Comment will

only show on the article id = something otherwise it will not show)&lt;p&gt;Have Fun!&lt;/p&gt; &lt;p&gt;~&lt;a

href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target=&quot;_blank&quot;&gt;Chanh Ong&lt;/a&gt;. &lt;/p&gt;&#039;);
define(&#039;_COM_A_FORCE_PREVIEW&#039;,&#039;Force a

preview&#039;);
define(&#039;_COM_A_FORCE_PREVIEW_TEXT&#039;,&#039;Set this to &amp;acute;Yes&amp;acute; to force your visitors to

preview their comments before final submission.&#039;);
define(&#039;_COM_A_HIDE&#039;,&#039;Hide comments&#039;);
define

(&#039;_COM_A_HIDE_DESC&#039;,&#039;Show (Comments (x) - Add comments) instead of the comments and form by default&#039;);
define(&#039;_COM_A_DATE&#039;,&#039;Date&#039;);
define(&#039;_COM_A_HIDE_URL&#039;,&#039;Hide URL&#039;);
define(&#039;_COM_A_HIDE_URL_DESC&#039;,&#039;Hide URL:

Use to hide URL on the comments form by default&#039;);
define(&#039;_COM_A_EMAIL_REQ&#039;,&#039;Email required&#039;);
define

(&#039;_COM_A_EMAIL_REQ_DESC&#039;,&#039;Use to set whether or not email is required on the comments form by default.&#039;);
define(&#039;_COM_A_EXCL_SEC&#039;,&#039;Exclude section&#039;);
define(&#039;_COM_A_EXCL_SEC_DESC&#039;,&#039;Use to exclude section not to

show comments form by default, e.g. 0,1&#039;);
define(&#039;_COM_A_PER_PAGE&#039;,&#039;Comments per page&#039;);
define

(&#039;_COM_A_PER_PAGE_DESC&#039;,&#039;Use to show number of offer per page, e.g. 3&#039;);
define(&#039;_COM_A_NEW_1ST&#039;,&#039;New

comments first&#039;);
define(&#039;_COM_A_NEW_1ST_DESC&#039;,&#039;List new comment entries first&#039;);
define

(&#039;_COM_A_FORM_ABOVE&#039;,&#039;Comment form above&#039;);
define(&#039;_COM_A_FORM_ABOVE_DESC&#039;,&#039;Show comment form above

comment entries&#039;);
define(&#039;_COM_A_USE_CSS&#039;,&#039;Use CSS&#039;);
define(&#039;_COM_A_USE_CSS_DESC&#039;,&#039;Show comment form using

DIV w/ CSS from template instead of table&#039;);
define(&#039;_COM_A_EXCL_CONT&#039;,&#039;Exclude contents&#039;);
define

(&#039;_COM_A_EXCL_CONT_DESC&#039;,&#039;Use to exclude contents via post id not to show offers form, e.g. 0,1&#039;);

//comments.php
define(&#039;_COM_A_NO&#039;,&quot;No&quot;);
define(&#039;_COM_A_YES&#039;,&quot;Yes&quot;);
define(&#039;_COM_C_COM_NUMBER&#039;,&quot;&quot;);
define

(&#039;_COM_C_NO_COM&#039;,&quot;There are no offers yet. Feel free to add one using the form below.&quot;);
define

(&#039;_COM_C_POST&#039;,&quot;Posted by&quot;);
define(&#039;_COM_C_HOMEPAGE&#039;,&quot;whose homepage is&quot;);
define(&#039;_COM_C_DATE_ON&#039;,&quot;on&quot;);
define(&#039;_COM_C_DATE_AT&#039;,&quot;at&quot;);
define(&#039;_COM_C_ADD_COM&#039;,&quot;Send Offers: &quot;);
define(&#039;_COM_C_ADD_COM2&#039;,&quot;&quot;);
define(&#039;_COM_C_NAME&#039;,&quot;Name:&quot;);
define(&#039;_COM_C_EMAIL&#039;,&quot;E-mail:&quot;);
define(&#039;_COM_C_EMAIL_NOT&#039;,&quot;Your email will

not be displayed on the site; only to our administrator.&quot;);
define(&#039;_COM_C_HOMEPAGE_IN&#039;,&quot;Home page:&quot;);
define(&#039;_COM_C_COM&#039;,&quot;Recomended:&quot;);
define(&#039;_COM_C_FULLY&#039;,&quot;Please fully complete the form!&quot;);
define

(&#039;_COM_C_NEW_COM&#039;,&quot;New offer on&quot;);
define(&#039;_COM_C_HAVE_NEW&#039;,&quot;You have a new offer on the following post:&quot;);
define(&#039;_COM_C_LOGIN&#039;,&quot;Please login and publish or delete this offer.&quot;);
define(&#039;_COM_C_QUICKLINK&#039;,&quot;Here is

the quick link to login:&quot;);
define(&#039;_COM_C_THANKS&#039;,&quot;Thanks for your offer on&quot;);
define

(&#039;_COM_C_THANKS2&#039;,&quot;Thanks for your offer on the following post:&quot;);
define(&#039;_COM_C_ADMIN_REV&#039;,&quot;An

administrator will review your offer shortly.&quot;);
define(&#039;_COM_C_ENTERED&#039;,&quot;You entered&quot;);
define

(&#039;_COM_C_VISIT&#039;,&quot;Please visit our site again soon at&quot;);
define(&#039;_COM_C_THANKS3&#039;,&quot;Thanks for your offer.

They have been added to this page&quot;);
define(&#039;_COM_C_THANKS4&#039;,&quot;Thanks. Your Offer has been successfully

Sent.We will review and response during 2 official days.&quot;);
define(&#039;_COM_C_SUBMIT&#039;,&quot;Submit&quot;);
define

(&#039;_COM_C_RESET&#039;,&quot;Reset&quot;);
define(&#039;_COM_C_NOT_AUTH&#039;,&quot;For Sending any offer must be logged in !&quot;);
define

(&#039;_COM_C_PREV_PAGE&#039;,&quot;Prev Page&quot;);
define(&#039;_COM_C_NEXT_PAGE&#039;,&quot;Next Page&quot;);
define(&#039;_COM_C_PAGE&#039;,&quot;&quot;);
define

(&#039;_COM_C_COMMENT&#039;,&quot;Offer&quot;);
define(&#039;_COM_C_OF&#039;,&quot;of&quot;);
define(&#039;_COM_C_CANCEL&#039;,&quot;Cancel&quot;);
define

(&#039;_COM_C_FORM_INTRO&#039;,&quot;Enter your offer below:&quot;);
define(&#039;_COM_C_PREVIEW_HEAD&#039;,&quot;Please check your entry.&quot;);
define(&#039;_COM_C_PREVIEW_INTRO&#039;,&quot;Is the below correct? &lt;p /&gt;Please make any necessary changes before

submitting. Warning: Canceling will erase your offer!&quot;);
define(&#039;_COM_C_REQ&#039;,&quot; &lt;small&gt;&lt;i&gt;(required)

&lt;/i&gt;&lt;/small&gt;&quot;);
define(&#039;_COM_C_OPT&#039;,&quot; &lt;small&gt;&lt;i&gt;(optional)&lt;/i&gt;&lt;/small&gt;&quot;);
define(&#039;_COM_C_HOMEURL&#039;,&quot;here&quot;);
?&gt;

اگر پيشنها ديگه اي هم داشتين با آغوش باز ميپذيرم ... مامبوي من 4.6.1 انگليش هستش ... خيلي ممنون از راهنماييتون ...

firoozmandan
08-12-2008, 08:51 AM
سلام

این فایل فقط فایل زبان این کامپوننت هست !

یا علی

p30one
08-12-2008, 01:27 PM
بله آقاي فيروزمندان ... لطفا راهنماييم كنيد تا اون تغغيرات رو تو هر كدوم از فايلها كه ميگين اعمال بكنم ...
خيلي ممنون
يا علي

firoozmandan
08-13-2008, 06:44 AM
سلام

برای این کار باید فایل comments.html.php رو ادیت کنید

ورژن 1.5.3 این کامپوننت هم منتشر شده ....

یا علی