Jump to content

Photo
- - - - -

Affinity Template (new)


  • Please log in to reply
2 replies to this topic

#1 wizinto

wizinto

    Level 1

  • Members
  • Level
  • 10 points
  • 16 posts

Posted 26 February 2018 - 10:08 AM

Here is the latest template from Pixy

Attached Files



#2 MareDoWell

MareDoWell

    Level 2

  • Members
  • Level
  • 4 points
  • 39 posts
    • Gender:Not Telling
    • Software:SE 4.8.x

Posted 05 October 2019 - 08:59 AM

Thank you so much for sharing this. It works great, except I ran into an error while trying to update or add slides in the Landing Page Slideshow. I'm using SE 4.10.5.

2019-10-05T08:53:11+00:00 ERR (3): Error Code: 067ef5
ArgumentCountError: Too few arguments to function Authorization_Api_Core::isAllowed(), 1 passed in /var/www/clients/client1/web1/web/application/modules/Affinitytheme/views/scripts/index/edit-slide.tpl on line 5 and at least 2 expected in /var/www/clients/client1/web1/web/application/modules/Authorization/Api/Core.php:97
Stack trace:
#0 /var/www/clients/client1/web1/web/application/modules/Affinitytheme/views/scripts/index/edit-slide.tpl(5): Authorization_Api_Core->isAllowed('admin')
#1 /var/www/clients/client1/web1/web/application/libraries/Zend/View.php(157): include('/var/www/client...')
#2 /var/www/clients/client1/web1/web/application/libraries/Zend/View/Abstract.php(888): Zend_View->_run('/var/www/client...')
#3 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#4 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/edit-slid...', NULL)
#5 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#6 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#7 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#8 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editSlideAction')
#9 /var/www/clients/client1/web1/web/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /var/www/clients/client1/web1/web/application/modules/Core/Bootstrap.php(84): Zend_Controller_Front->dispatch()
#11 /var/www/clients/client1/web1/web/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#12 /var/www/clients/client1/web1/web/application/index.php(223): Engine_Application->run()
#13 /var/www/clients/client1/web1/web/boot.php(47): include('/var/www/client...')
#14 /var/www/clients/client1/web1/web/index.php(24): Engine_Boot->boot()
#15 {main}

I get the same error message except it points at the add-slide.tpl file when trying to add one. How can I fix this? Or does someone have a newer version that doesn't have this error?



#3 MareDoWell

MareDoWell

    Level 2

  • Members
  • Level
  • 4 points
  • 39 posts
    • Gender:Not Telling
    • Software:SE 4.8.x

Posted 06 October 2019 - 12:44 AM

I found the fix.

In both files, remove these lines on the top

 

application/modules/Affinitytheme/views/scripts/index/edit-slide.tpl and add-slide.tpl are the files.

$this->view->viewer = $viewer = Engine_Api::_()->user()->getViewer();	
if( $this->viewer()->getIdentity() && Engine_Api::_()->getApi('core', 'authorization')->isAllowed('admin') ){ ?>

Replace with this line:

if( Engine_Api::_()->getApi('core', 'authorization')->isAllowed('admin',null) ){ ?>

It is fixed. :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.