Jump to content

Article thumbnails - by onlyME


KentT

Recommended Posts

.ipsDataList .ipsDataItem_main {
		display: table-cell !important;
	}  	

I your last update for tablet view fix, display: table-cell doesnt work properly with a badge placed in the ipsDataItem_main

I changed to display: flow-root;  seems to work better

Link to comment
Share on other sites

  • 7 months later...
1 minute ago, Ramsesx said:

If product is deactivated in plugin manager it throws out an error:

Fatal error: Call to undefined method IPS\cms\Records2::athumb() in /home/mytestsite/applications/cms/sources/Theme/Theme.php(604) : eval()'d code on line 1329

If you deactive it, you have to remove {$row->athumb()|raw} in recordRow template too.

Link to comment
Share on other sites

  • 2 months later...

I shouldn't work if it's too late in the evening.... 

It works with the topic thumbnails plugin, not with the article thumbnails. 

In the article thumbnail, if I add the url in and hit save it just happens nothing. 

Sorry for the confusion, need to go sleep now.

Link to comment
Share on other sites

3 hours ago, Ramsesx said:

I shouldn't work if it's too late in the evening.... 

It works with the topic thumbnails plugin, not with the article thumbnails. 

In the article thumbnail, if I add the url in and hit save it just happens nothing. 

Sorry for the confusion, need to go sleep now.

I will test it again.

Link to comment
Share on other sites

  • 3 weeks later...

Had an error on a pages category, should be related to your plugin I guess:

UPDATE `cms_custom_database_4` cms_custom_database_4  SET `record_athumb`='https://www.mydomain/uploads/monthly_2018_06/589291938_WerbebildSPE.jpg.cceb8f68765d26fb930ffc214fd7e8c4.jpg' WHERE primary_id_field=169 
IPS\Db\Exception: Unknown column 'record_athumb' in 'field list' (1054)
#0 /home/www/mydomainwww/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\cms\\_Reco...', Array)
#1 /home/www/mydomainwww/system/Patterns/ActiveRecord.php(492): IPS\_Db->update('`cms_custom_dat...', '`record_athumb`...', 'WHERE primary_i...')
#2 /home/www/mydomainwww/applications/cms/sources/Records/Records.php(1795): IPS\Patterns\_ActiveRecord->save()
#3 /home/www/mydomainwww/init.php(458) : eval()'d code(45): IPS\cms\_Records->save()
#4 /home/www/mydomainwww/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(1329): IPS\cms\hook520->athumb()
#5 /home/www/mydomainwww/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(697): IPS\Theme\class_cms_database_listing->recordRow(Object(IPS\Helpers\Table\Content), Array, Array)
#6 [internal function]: IPS\Theme\class_cms_database_listing->categoryTable(Object(IPS\Helpers\Table\Content), Array, Array, NULL, true)
#7 /home/www/mydomainwww/system/Helpers/Table/Table.php(548): call_user_func(Array, Object(IPS\Helpers\Table\Content), Array, Array, NULL, true)
#8 /home/www/mydomainwww/applications/cms/modules/front/database/category.php(521): IPS\Helpers\Table\_Table->__toString()
#9 /home/www/mydomainwww/init.php(458) : eval()'d code(16): IPS\cms\modules\front\database\_category->view()
#10 /home/www/mydomainwww/applications/cms/modules/front/database/category.php(40): IPS\cms\modules\front\database\pagesblocks_hook_controller_category->view()
#11 /home/www/mydomainwww/system/Dispatcher/Controller.php(96): IPS\cms\modules\front\database\_category->manage()
#12 /home/www/mydomainwww/applications/cms/sources/Databases/Dispatcher.php(325): IPS\Dispatcher\_Controller->execute()
#13 /home/www/mydomainwww/applications/cms/widgets/Database.php(130): IPS\cms\Databases\_Dispatcher->run()
#14 /home/www/mydomainwww/applications/cms/sources/Pages/Page.php(1257): IPS\cms\widgets\_Database->render()
#15 /home/www/mydomainwww/applications/cms/sources/Pages/Page.php(2191): IPS\cms\Pages\_Page->getWidgets()
#16 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(73): IPS\cms\Pages\_Page->output()
#17 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view()
#18 /home/www/mydomainwww/system/Dispatcher/Controller.php(96): IPS\cms\modules\front\pages\_page->manage()
#19 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute()
#20 /home/www/mydomainwww/system/Dispatcher/Dispatcher.php(146): IPS\cms\modules\front\pages\_page->execute()
#21 /home/www/mydomainwww/index.php(13): IPS\_Dispatcher->run()
#22 {main}

Do you have any idea? Thanks.

Link to comment
Share on other sites

1 hour ago, Ramsesx said:

Had an error on a pages category, should be related to your plugin I guess:


UPDATE `cms_custom_database_4` cms_custom_database_4  SET `record_athumb`='https://www.mydomain/uploads/monthly_2018_06/589291938_WerbebildSPE.jpg.cceb8f68765d26fb930ffc214fd7e8c4.jpg' WHERE primary_id_field=169 
IPS\Db\Exception: Unknown column 'record_athumb' in 'field list' (1054)
#0 /home/www/mydomainwww/system/Db/Db.php(990): IPS\_Db->preparedQuery('/*IPS\\cms\\_Reco...', Array)
#1 /home/www/mydomainwww/system/Patterns/ActiveRecord.php(492): IPS\_Db->update('`cms_custom_dat...', '`record_athumb`...', 'WHERE primary_i...')
#2 /home/www/mydomainwww/applications/cms/sources/Records/Records.php(1795): IPS\Patterns\_ActiveRecord->save()
#3 /home/www/mydomainwww/init.php(458) : eval()'d code(45): IPS\cms\_Records->save()
#4 /home/www/mydomainwww/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(1329): IPS\cms\hook520->athumb()
#5 /home/www/mydomainwww/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(697): IPS\Theme\class_cms_database_listing->recordRow(Object(IPS\Helpers\Table\Content), Array, Array)
#6 [internal function]: IPS\Theme\class_cms_database_listing->categoryTable(Object(IPS\Helpers\Table\Content), Array, Array, NULL, true)
#7 /home/www/mydomainwww/system/Helpers/Table/Table.php(548): call_user_func(Array, Object(IPS\Helpers\Table\Content), Array, Array, NULL, true)
#8 /home/www/mydomainwww/applications/cms/modules/front/database/category.php(521): IPS\Helpers\Table\_Table->__toString()
#9 /home/www/mydomainwww/init.php(458) : eval()'d code(16): IPS\cms\modules\front\database\_category->view()
#10 /home/www/mydomainwww/applications/cms/modules/front/database/category.php(40): IPS\cms\modules\front\database\pagesblocks_hook_controller_category->view()
#11 /home/www/mydomainwww/system/Dispatcher/Controller.php(96): IPS\cms\modules\front\database\_category->manage()
#12 /home/www/mydomainwww/applications/cms/sources/Databases/Dispatcher.php(325): IPS\Dispatcher\_Controller->execute()
#13 /home/www/mydomainwww/applications/cms/widgets/Database.php(130): IPS\cms\Databases\_Dispatcher->run()
#14 /home/www/mydomainwww/applications/cms/sources/Pages/Page.php(1257): IPS\cms\widgets\_Database->render()
#15 /home/www/mydomainwww/applications/cms/sources/Pages/Page.php(2191): IPS\cms\Pages\_Page->getWidgets()
#16 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(73): IPS\cms\Pages\_Page->output()
#17 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view()
#18 /home/www/mydomainwww/system/Dispatcher/Controller.php(96): IPS\cms\modules\front\pages\_page->manage()
#19 /home/www/mydomainwww/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute()
#20 /home/www/mydomainwww/system/Dispatcher/Dispatcher.php(146): IPS\cms\modules\front\pages\_page->execute()
#21 /home/www/mydomainwww/index.php(13): IPS\_Dispatcher->run()
#22 {main}

Do you have any idea? Thanks.

Try to run Get Support to fix database problem.

Link to comment
Share on other sites

  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...