1
Happy New Year everyone!
I've been trying to figure this out on my own but I have tried every combination I could think of to make this work without success.
I am not a programmer but I think my problem is in my php but I'm posting up the entire process for the most recent attempt just in case.
Objective:
Create a block to list upcomming important dates (birthdays, aniversaries, etc.) using EXTCAL v:2.15.
Without linking to the event in the calendar.
Without displaying the event in the calendar.
What I've done:
Clone the Block in xoops_version.php so I could make changes to the new block but still use the origional Upcomming Evevnts block.
Code Added to xoops_version.php:
le="color: #000000"><?php $modversion['blocks'][$i]['file'] = "extcal_blocks.php"; $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME3; $modversion['blocks'][$i]['description'] = List_Events_No_Links;//changed from _MI_EXTCAL_BNAME4_DESC $modversion['blocks'][$i]['show_func'] = "bExtcalUpcomingShow"; $modversion['blocks'][$i]['options'] = "5|25|0"; $modversion['blocks'][$i]['edit_func'] = "bExtcalUpcomingEdit"; $modversion['blocks'][$i]['template'] = 'extcal_block_upcoming_2.html';// changed from extcal_block_upcoming.html' $i++;
Create extcal_block_upcoming_2.html
Changed origional code from..
le="color: #000000"><?php <table class="outer"> <{foreachq item=event from=$block}> <tr class="<{cycle values="even,odd"}>"> <td><a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" title="<{$event.event_title}>"><{$event.event_title}></a></td> <td><{$event.formated_event_start}></td> </tr> <{/foreach}> </table>
To...
le="color: #000000"><?php <table class="outer"> <{foreachq item=event from=$block}> <tr class="<{cycle values="even,odd"}>"> <td><{$event.event_title}></td> <td><{$event.formated_event_start}></td> </tr> <{/foreach}> </table>
Update the module and the block is there but no data.
If it is the php can someone help me with it, or have I blown the cloning process?
Thanks for any help,
Steve