اضافه کردن تقویم فارسی شمسی (جلالی) به RS form pro جوملا

•March 16, 2013 • Leave a Comment

خیلی وقت بود دنبال این بودم توی اینترنت و انجمن ها.

انجمن های ایرانی هم که خیر سرشون واسه اینکه سایتشون بلاک  نشه درست و حسابی اینو نذاشتن.

  این شد که خودم مجبور شدم با کمی ور رفتن ها ردیف کنم که چطوری بتونیم توی فرم هایی که میسازیم بجای تقویم میلادی تقویم فارسی خودمون رو بگنجونیم

اول میریم سایت دوست عزیزمون آقای فرهادی

بعد فایل تقویم رو دانلود میکنیم و توی  سیستم خودمون زیپ شلوارشو میکشیم  تا همه فایل ها براحتی در دسترس باشن

بعد از نصب کامپوننت آر اس فرم     به مسیر جوملا برید

/components/com_rsform/assets/calendar

اینجا یه فولدر بسازید اسمش رو بزار

cal-fa

بعد توش فایل های  فولدر تقویم رو آپلود کن

حالا فایل

/administrator/components/com_rsform/helpers/rsform.php

رو با ادیتور باز کن

عبارت زیر رو توش پیدا کن

//6 is the componentTypeId for calendar

بالای این عبارت  این خط ها رو اضافه کن

//Added By Ehssan Rahmatian e.rahmatian@ Gmail in order to load the Jalali Calendar (Rahmatian.com)
$doc->addStyleSheet(JURI::root(true).’/components/com_rsform/assets/calendar/cal-fa/skins/aqua/theme.css’);
$doc->addScript(JURI::root(true).’/components/com_rsform/assets/calendar/cal-fa/jalali.js’);
$doc->addScript(JURI::root(true).’/components/com_rsform/assets/calendar/cal-fa/calendar.js’);
$doc->addScript(JURI::root(true).’/components/com_rsform/assets/calendar/cal-fa/calendar-setup.js’);
$doc->addScript(JURI::root(true).’/components/com_rsform/assets/calendar/cal-fa/lang/calendar-fa.js’);

اینا همون فایل های تقویم رو به فرم ما اضافه میکنند

بعد از این کار :

 دنبال این خط بگرد شماره خط 2400 اینا

$out .= ‘<input id=”btn’.$formId.’_’.$calendars[$componentId].'” type=”button” value=”‘.RSFormProHelper::htmlEscape($data[‘POPUPLABEL’]).'”

حالا اینو باید این شکلی تغییر بدی

$out .= ‘<img id=”date_btn’.$formId.’_’.$calendars[$componentId].'” src=”images/stories/icons/cal.png” style=”vertical-align: top;” /><script> Calendar.setup({   inputField: “txtcal’.$formId.’_’.$calendars[$componentId].'”,button: “date_btn’.$formId.’_’.$calendars[$componentId].'”,ifFormat: “%Y/%m/%d”, dateType: “jalali”}); </script>’;

فایل رو سیو کن همون جا که بود.

cal.png

اسم یک فایل عکس تقویم هست که توی فولدر فرهادی هست.

اینو اپلود کن تو مسیر

images/stories/icons/cal.png

حالا به فرم بساز که توش فیلد تقویم داشته باشه از نوع

popup

بعد تست کن.

مشکلی داشتی همین جا بگو.   در ضمن اکه کارت راه افتاد و کامنت نذاشتی نامردی میشه.

وایمکس مبین نت نخرید

•May 25, 2011 • Leave a Comment

چند وقتیه که یک مودم خریدم.
روز های اول سرعت خوب بود. واسه همین 2 تای دیگه خریدم.

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

وقتی سرویس تموم میشه روی بخش شارژ نمی تونی بری و نمی تونی پرداخت آنلاین داشته باشی
با اینکه سرویس 256 زمان خرید وجود داشت و قرارداد بسته شد ولی بعد از چند ماه سرویس 512 تحمیلی رو با افزایش قیمت به خورد مشتری دادن.

امنیت شبکه در حد صفر – یوزرها میرن تو مودم های همدیگه – شیر هم دیگه باز میشه – 500 تا هاپ تا مخابرات طول میکشه که تریس بشه و …..

نحوه پاسخگویی نمایندگانتون که نمونه هستش – نماینده یگه زنگ بزن مبین نت شما میگین زنگ بزن نماینده …. ملت مسخره شما نیستن که….

Arabic / Persian writing problem in Adobe Dreamweaver

•May 13, 2011 • Leave a Comment

As you know the problem comes when you type.
it shows left to write. and words are not correct.
to fix this problem
go to edit>preferences> fonts, and untick the use dynamic font mapping

Spark Wont start

•April 16, 2011 • Leave a Comment

if the spark 2.5.8 is not loading and having difficulty to start, Delete the spark folder in user/(username)/ or on xp document &settings/ (username)/

Windows Server 2003/XP shutdown log off delay solved

•November 11, 2010 • Leave a Comment

when you shutdown or startup windows server 2003 it might take a long time to log off some times for ever.

a quick solution to that is
http://www.microsoft.com/downloads/en/details.aspx?familyid=1B286E6D-8912-4E18-B570-42470E2F3582&displaylang=en

User Profile Hive Cleanup Service is an MSI utility to cleanup some connections of softwares running while shutting down of logging off. it can improve the speed of shutdown and startup.

If it solved your problem leave a comment (even if it doesn’t.)

Internet connection sharing not work

•September 25, 2010 • Leave a Comment

You are using XP, Vista, Windows 7
You have 2 or more computers.
you have enabled ICS, and your internet connection are shared.
The LAN network card has been given the ip address of 192.168.0.1 as gateway for others.
From other computers you are not able to ping 8.8.8.8 (the google public DNS) nor able to open any page.

Here is the solution:
its highly exprienced that the antivirus or firewall program is blocking the access.
My case was Eset Nod32 Business Edition.
I open the interface, Pressed F5 wen to Firewall section, Selected “automatic Firewall + Exception” Pressed ok
i Pressed F5 again wen to Rules & zones , Clicked on second setup and on Zone Tab addred the Range of ip address of the network which was 192.168.0.1 to 192.168.101.255

and it worked very well.
if you have similar issue this may help you.
leave a comment if it worked.

Add domain users to local computer administrator Group

•May 15, 2010 • Leave a Comment

The solution is very easy
login using domain Administrator with privileges.
Right click on My comuper on client machine.

Manage>users & groups>groups>Administrators
and add the domain user to it.

MAKE SURE THE LOCATION IS YOUR DOMAIN NOT LOCAL COMPUTER

Sometimes you see only local machines name instead of domain.
You are not able to change that.
The solution for it is the DNS server..
Add your domain controller ip address to DNS list or make sure you dont just – only use public DNS ip addresses.

Sony touchpad driver Windows 7

•May 11, 2010 • Leave a Comment

Some sony laptops comes with xp or Vista.
The site has only Vista drivers which most of them are compatible with 7.
My sony is VGN-420 series.
it uses Alps Pointing device. If you want to scroll like before you need to have windows 7’s Driver for it.
You can find it here.
http://support.vaio.sony.eu/computing/vaio/downloads/info/info.aspx?l=en_GB&url=VAIO/Original/Pointing_Driver_Alps_7.5A_7.5.505.309.zip&m=VPCX11S1E_B&ip=Preinstalled_Drivers.htm

Just do accept and download the driver.
Hey dont forget to leave comment if worked.