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
User Info
Wilkommen Unbekannt
Mitglieder:
Neuestes: Witewolf
Heute neu: 0
Gestern neu: 0
Gesamt: 151
Anwesende Nutzer:
Mitglieder: 0
Besucher: 42
Roboter: 3
Gesamt: 45
Wer ist wo?:
Besucher:Pro News Articles
Downloads
Support Forums
Pro News Articles
Support Forums
Downloads
Support Forums
Support Forums
Nedlastninger
Mitt konto
Pro News Articles
Téléchargement
Pro News Articles
Nedlastninger
Pro News Articles
Pro News Articles
Downloads
Support Forums
Pro News Articles
Pro News Articles
Mitt konto
Support Forums
Support Forums
Support Forums
Pro News Articles
Downloads
Nedladdningar
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Nedlastninger
Support Forums
Support Forums
Support Forums
Pro News Articles
Support Forums
Nedlastninger
Support Forums
Pro News Articles
Nedlastninger
التحمي
Roboter:Google > التحمي
Baidu > Pro News Articles
YANDEX > Pro News Articles
Wer ist online:
Keine Mitglieder online!
Tweak to Small Month block to hide New Year's Day, etc.
Tweak to Small Month block to hide New Year's Day, etc.
Verfasst am: Sat Feb 24, 2007 1:28 am
If you want Small Month block to meaningfully show events, you do not want New Year's Day, Valentine's Day, etc., showing up as events just like real events.
Fix is straightforward.
For each of the calendar date psuedo events, go in and modify them to have Low Priority.
Then in /modules/CPGNuCalendar/includes/functions.inc look for these 2 lines (they occur separately, but both are in the hasevents function):
if ($ev[$i]['view'] == 0 || in_group($ev[$i]['view']) || is_user() || can_admin($cal_module_name))
if ($rep[$i]['view'] == 0 || in_group($rep[$i]['view']) || is_user() || can_admin($cal_module_name))
Change them to the following lines respectively (adding a priority check to the end of each line):
if (($ev[$i]['view'] == 0 || in_group($ev[$i]['view']) || is_user() || can_admin($cal_module_name)) && $ev[$i]['priority'] != 1)
if (($rep[$i]['view'] == 0 || in_group($rep[$i]['view']) || is_user() || can_admin($cal_module_name)) && $rep[$i]['priority'] != 1)
That's it. Just make sure that all real events are set with medium or high priority, and only dates with those priorities will be filled in your small month calendar display.
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

- Beiträge: 1229
- Dabei seit: Mar 18, 2006
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst keine Dateien anhängen.
Du kannst Dateien herunterladen.
Alle Zeitangaben sind in GMT











