There's a bug. If the forum is autoselected, then prefixes are not shown. If you manually select a forum, then prefixes show up.
<xf:js src="8wayrun/atendo/calendar.js" />
<xf:js>
$(function() {
if ( $( "#atendo_node" ).length ) {
$("#atendo_node").change();
}
});
</xf:js>
public static function getStructure(Structure $structure)
{
$structure = parent::getStructure($structure);
$structure->getters['event_title'] = true;
$structure->relations['AtendoEvent'] = [
'entity' => 'EWR\Atendo:Event',
'type' => self::TO_ONE,
'conditions' =>'thread_id',
'key' => 'event_id',
];
return $structure ;
}
public function findThreadsForForumView(\XF\Entity\Forum $forum, array $limits = [])
{
$finder = parent::findThreadsForForumView($forum, $limits);
$finder->with('AtendoEvent');
return $finder;
}
public static function getStructure(Structure $structure)
{
$structure = parent::getStructure($structure);
$structure->getters['event_title'] = true;
$structure->relations['AtendoEvent'] = [
'entity' => 'EWR\Atendo:Event',
'type' => self::TO_ONE,
'conditions' =>'thread_id',
'key' => 'event_id',
];
$structure->defaultWith += ['AtendoEvent'];
return $structure ;
}
Error: Call to undefined method GuzzleHttp\Psr7\Response::json() in src/addons/EWR/Atendo/Repository/Google.php at line 21
EWR\Atendo\Repository\Google->fetchGeoCode() in src/addons/EWR/Atendo/Entity/Event.php at line 246
EWR\Atendo\Entity\Event->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1359
XF\Mvc\Entity\Entity->preSave() in src/XF/Mvc/FormAction.php at line 53
XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 170
XF\Mvc\FormAction->run() in src/addons/EWR/Atendo/Pub/Controller/Event.php at line 243
EWR\Atendo\Pub\Controller\Event->actionEdit() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
XF\App->run() in src/XF.php at line 524
XF::runApp() in index.php at line 20
You installed the wrong version. Install the other one.Getting the following error when trying to submit an event:
Code:Error: Call to undefined method GuzzleHttp\Psr7\Response::json() in src/addons/EWR/Atendo/Repository/Google.php at line 21 EWR\Atendo\Repository\Google->fetchGeoCode() in src/addons/EWR/Atendo/Entity/Event.php at line 246 EWR\Atendo\Entity\Event->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1359 XF\Mvc\Entity\Entity->preSave() in src/XF/Mvc/FormAction.php at line 53 XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 170 XF\Mvc\FormAction->run() in src/addons/EWR/Atendo/Pub/Controller/Event.php at line 243 EWR\Atendo\Pub\Controller\Event->actionEdit() in src/XF/Mvc/Dispatcher.php at line 352 XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259 XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115 XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57 XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352 XF\App->run() in src/XF.php at line 524 XF::runApp() in index.php at line 20
ahh lol oops. Working Flawlessly now.You installed the wrong version. Install the other one.
Idea 2:
Use a custom thread type instead of hooking into the standard discussion thread. This will save on database queries (no longer need to check for $thread->AtendoEvent which will make a db call) and also allow things like custom thread icons, simpler integration of thread header etc etc
- Social media linters such as Twitter and FB will now use event images as card previews if available.
Linters will only be able to see these images, if unregistered users are able to view events.- Added widget positions for calendar sidebars.
- BUG FIX: Fixed some typos in thread entities that were forcing multiple excess DB queries on event thread listings. Thank you @benFF for pointing out that I was referencing incorrect variable names in my...
Social media linters such as Twitter and FB will now use event images as card previews if available.
We use essential cookies to make this site work, and optional cookies to enhance your experience.