A simple looking calendar is my first component.
Thank you very much.
Everything is coming back.
I have to find now how to add friends
The OssnDataBaseException is caused by a bug in the Latest Members component.
Edit line #15 of the file components/LatestMembers/widgets/friends_widget.php
to look like
// 'order_by' => 'r.relation_id DESC'
How can i do to remove the component without reinstalling OSSN. I dont have anymore access to the admin page
I don't know what to do, i want to remove the component
after the change, below what i get
OssnDatabaseException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'r.relation_id' in 'order clause'
SELECT u.guid, u.* FROM ossn_users as u WHERE(u.time_created IS NOT NULL AND (u.guid IN(SELECT relation_from as friend_guid FROM `ossn_relationships` WHERE `relation_to` = 1 AND `type` LIKE 'friend:request' AND relation_from IN(SELECT DISTINCT relation_to as guid FROM `ossn_relationships` WHERE `relation_from` = 1 AND `type` LIKE 'friend:request')))) ORDER by r.relation_id DESC LIMIT 10; in /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/classes/OssnDatabase.php:148
Stack trace:
#0 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/classes/OssnDatabase.php(281): OssnDatabase->execute()
#1 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/classes/OssnUser.php(707): OssnDatabase->select()
#2 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/classes/OssnUser.php(459): OssnUser->searchUsers()
#3 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/components/LatestMembers/widgets/friends_widget.php(17): OssnUser->getFriends()
#4 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.views.php(27): include('...')
#5 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.views.php(50): ossn_include()
#6 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/components/LatestMembers/ossn_com.php(59): ossn_view()
#7 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.system.php(223): com_latest_friends_widget()
#8 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/themes/goblue/plugins/default/theme/page/layout/newsfeed.php(14): ossn_call_hook()
#9 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.views.php(27): include('...')
#10 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.views.php(50): ossn_include()
#11 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.plugins.php(75): ossn_view()
#12 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.views.php(194): ossn_plugin_view()
#13 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.initialize.php(123): ossn_set_page_layout()
#14 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.page.php(79): ossn_user_pagehandler()
#15 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/index.php(22): ossn_load_page()
#16 {main}
change line 15 to look like
'icon' => 'fa-calendar',
hi, i'm new and i tried to install your component and i have this error, what can i do please
Error: Undefined constant "fa" in /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/components/calendar/ossn_com.php:15
Stack trace:
#0 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/libraries/ossn.lib.system.php(258): calendar_init()
#1 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/system/start.php(43): ossn_trigger_callback()
#2 /home/ekarftkm/domains/ekar-ftk.mg/public_html/sera/index.php(12): require_once('...')
#3 {main}
Adding the iframe worked with a Google calendar as well. Thanks for the suggestion.
If it helps anyone.
Having messed with this for a while.
I have found that a third party calendar works awesome in this component.
I use a calendar from teamup.com.
Simple to integrate, just place it in a iframe in the 'calendar/plugins/default/calendar/calendar.php'
ie,, replace all with this
<p>
<iframe id="yourcalendarhere" title="Calendar" width="100%" height="600" src="https://teamup.com/your code here"></iframe>
</p>
Useful component. Too bad it was thought only in English. I could make the changes to write it in multiple languages I'll think about it.
thats simple but so good. Thanks for this component.