Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
macavity
$ 20.00
heliown
$ 20.00
rosbif
$ 18.68
rosbif
$ 26.40
Aforo, losViajeros
$ 40.00
User Info
مرحبا مجهول
(تسجيل)
عضوية:
الأخير: macuserau
جديد اليوم: 0
جديد بالأمس: 0
الكل: 146
المتصفحون الآن:
الأعضاء: 0
الزوار: 37
Bots: 2
المجموع: 39
من و أي:
الزوار:Pro News Articles
التحمي
Support Forums
Pro News Articles
Support Forums
Support Forums
Support Forums
Support Forums
Hjem
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Support Forums
Support Forums
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Downloads
Support Forums
Support Forums
Support Forums
Downloads
Pro News Articles
Pro News Articles
Nedlastninger
Support Forums
Pro News Articles
Pro News Articles
Descargas
Support Forums
Support Forums
Pro News Articles
Bots:Google > Support Forums
Baidu > Téléchargement
فريق العمل متص:
لا أحد من فريق العمل متص
الرجوع الى المقدمة
Skip to menu
Skip to content
I edited the index file as stated and works just fine. thanks.
briankent please enter your server specs in your user profile!
Advancing the Month Display
Advancing the Month Display
ارسل: الاربعاء ابريل 18, 2007 12:58 am
If you've used CPGNuCalendar much, you know that to move the month view forward (or backward) 1 month, you just need to click on the month names above the small month display to the right (or left) of the main month. But if you aren't privy to that like many of your site's visitors, you'll probably click on the >> symbols around the year, and jump forward/backward a whole year!
So try adding this small change, to include < and > symbols around the month name, plus while we're at it, add a "tool tip" to the year display to explain that it will let you see an entire year.
In /modules/CPGNuCalendar.php find around line 374
and replace with
Also add the following line to the end of file /language/english/cpgnucalendar.php
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1
So try adding this small change, to include < and > symbols around the month name, plus while we're at it, add a "tool tip" to the year display to explain that it will let you see an entire year.
In /modules/CPGNuCalendar.php find around line 374
PHP:
printf ( "%s", month_name ( $thismonth - 1 ) );
if ($thisyear-1 >= $cal_config['start_year'])
echo " <a href=\"".getlink($module_name . "&view=month&month=$thismonth&year=".($thisyear-1)) . "\" title=\"". month_name($thismonth-1)." ".($thisyear-1)."\"><<</a>";
echo " <a href=\"".getlink($module_name . "&view=year&year=$thisyear") . "\">$thisyear</a>";
echo " <a href=\"".getlink($module_name . "&view=month&month=$thismonth&year=".($thisyear+1)) . "\" title=\"". month_name($thismonth-1)." ".($thisyear+1)."\">>></a>";
PHP:
echo " <a href=\"".getlink($module_name . "&view=month&month=$prevmonth&year=".($thisyear)) . "\" title=\"". month_name($thismonth-2)." ".($thisyear)."\"><</a> ";
printf ( "%s", month_name ( $thismonth - 1 ) );
echo " <a href=\"".getlink($module_name . "&view=month&month=$nextmonth&year=".($thisyear)) . "\" title=\"". month_name($thismonth)." ".($thisyear)."\">></a> ";
if ($thisyear-1 >= $cal_config['start_year'])
echo " <a href=\"".getlink($module_name . "&view=month&month=$thismonth&year=".($thisyear-1)) . "\" title=\"". month_name($thismonth-1)." ".($thisyear-1)."\"><<</a>";
echo " <a href=\"".getlink($module_name . "&view=year&year=$thisyear") . "\" title=\"". _CALALLYEAR."\">$thisyear</a>";
echo " <a href=\"".getlink($module_name . "&view=month&month=$thismonth&year=".($thisyear+1)) . "\" title=\"". month_name($thismonth-1)." ".($thisyear+1)."\">>></a>";
PHP:
define("_CALALLYEAR", "View Whole Year");layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- نشرات: 1119
- شاركت: مارس 18, 2006
Re: Advancing the Month Display
ارسل: الاربعاء ابريل 18, 2007 8:07 am
Well done, the year thing made sense to me after the first time I clicked on it, but only after. I noticed a lot of people seem to treat this as a bug. I believe it is the design, but many people find it confusing.
sarah please enter your server specs in your user profile!
sarah please enter your server specs in your user profile!

sarah- Developer

- نشرات: 14
- شاركت: فبراير 04, 2007
Re: Advancing the Month Display
ارسل: الثلاثاء مارس 11, 2008 9:51 am
Thanks again for this - I upgraded cpgnucalendar to 2.0.6 which overwrote these edits. Have just remembered and found this post..
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.11/4.1.22/5.2.5/9.2.1
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.11/4.1.22/5.2.5/9.2.1

rosbif- BetaTester

- نشرات: 424
- شاركت: اغسطس 01, 2007
- المكان: Chantilly, France
Re: Advancing the Month Display
ارسل: الاربعاء مايو 14, 2008 4:13 am
For version 2.0.6 of CPGnuCalendar, you would make the edit to file index.php, at around line 389.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- نشرات: 1119
- شاركت: مارس 18, 2006
Re: Advancing the Month Display
ارسل: الثلاثاء مايو 27, 2008 5:39 pm
layingback:
For version 2.0.6 of CPGnuCalendar, you would make the edit to file index.php, at around line 389.
briankent please enter your server specs in your user profile!

briankent- Sponsor

- نشرات: 9
- شاركت: مايو 27, 2008
Re: Advancing the Month Display
ارسل: الاحد يناير 22, 2012 7:54 am
Thanks for this a Great Mod any one proposed this a a premenant change to the module?
macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix / Apache 2.2.15 / MySQL 5.0.90 / PHP 5.3.2/ CMS 9.3.2.0
macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix / Apache 2.2.15 / MySQL 5.0.90 / PHP 5.3.2/ CMS 9.3.2.0

macuserau- Newbie

- نشرات: 4
- شاركت: يناير 18, 2012
- المكان: Wollongong, NSW, Australia.
لاتستطيع وضع مواضيع جديدة في هذا المنتدى
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You can download files in this forum
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You can download files in this forum
جميع الاوقات تستعمل نظام GMT











