[TH] Custom Fields [Deleted]

Apologies. Releasing on Saturday night was probably a mistake since I don't work on Sunday. I will release an update first thing in the morning.
 
Declaration of Waindigo_CustomFields_Extend_XenForo_DataWriter_Discussion_Thread::_discussionPostSave() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostSave()
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload() in XenForo/Application.php at line 876
  4. XenForo_Application::autoload() in XenForo/Application.php at line 411
  5. XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 1983
  6. XenForo_DataWriter::create() in XenForo/ControllerPublic/Forum.php at line 411
  7. XenForo_ControllerPublic_Forum->actionAddThread() in Tinhte/XenTag/XenForo/ControllerPublic/Forum.php at line 23
  8. Tinhte_XenTag_XenForo_ControllerPublic_Forum->actionAddThread() inWaindigo/ThreadThumbnails/ControllerPublic/Forum.php at line 95
  9. Waindigo_ThreadThumbnails_ControllerPublic_Forum->actionAddThread() inWaindigo/CustomFields/Extend/XenForo/ControllerPublic/Forum.php at line 177
submit Create Thread
 
Declaration of Waindigo_CustomFields_Extend_XenForo_DataWriter_Discussion_Thread::_discussionPostSave() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostSave()
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload() in XenForo/Application.php at line 876
  4. XenForo_Application::autoload() in XenForo/Application.php at line 411
  5. XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 1983
  6. XenForo_DataWriter::create() in XenForo/ControllerPublic/Forum.php at line 411
  7. XenForo_ControllerPublic_Forum->actionAddThread() in Tinhte/XenTag/XenForo/ControllerPublic/Forum.php at line 23
  8. Tinhte_XenTag_XenForo_ControllerPublic_Forum->actionAddThread() inWaindigo/ThreadThumbnails/ControllerPublic/Forum.php at line 95
  9. Waindigo_ThreadThumbnails_ControllerPublic_Forum->actionAddThread() inWaindigo/CustomFields/Extend/XenForo/ControllerPublic/Forum.php at line 177
submit Create Thread
1.1 or 1.2?
 
On thread create i'm getting:

Code:
The following error occurred:

Declaration of WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() should be compatible with that of Waindigo_CustomFields_Extend_XenForo_DataWriter_Discussion_Thread::_discussionPostDelete()
XenForo_Application::handlePhpError() in WidgetFramework/Extend/DataWriter/Discussion/Thread.php at line 22
include() in XenForo/Autoloader.php at line 119
XenForo_Autoloader->autoload() in XenForo/Application.php at line 872
XenForo_Application::autoload() in XenForo/Application.php at line 411
XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 1983
XenForo_DataWriter::create() in XenForo/ControllerPublic/Forum.php at line 411
XenForo_ControllerPublic_Forum->actionAddThread() in Waindigo/CustomFields/Extend/XenForo/ControllerPublic/Forum.php at line 177
Waindigo_CustomFields_Extend_XenForo_ControllerPublic_Forum->actionAddThread() in Tinhte/XenTag/XenForo/ControllerPublic/Forum.php at line 23
Tinhte_XenTag_XenForo_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /var/sites/p/priceglitch.com/public_html/index.php at line 13

Says I have Custom Fields by Waindigo 1.2.0a installed
 
What version of PHP?
5.3.18 .
Version 1.2.0a applied but still error

Code:
Declaration of WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() should be compatible with that of Waindigo_CustomFields_Extend_XenForo_DataWriter_Discussion_Thread::_discussionPostDelete()
XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
XenForo_Autoloader->autoload() in XenForo/Application.php at line 876
 
Glad you pointed that out. Seems that xfrocks has fixed this issue in a slightly different way to me in his Widget Framework add-on. For consistency I will copy his method.
 
Hi there dude,

This addon is causing errors.

Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Not unique table/alias: 'forum'...
Let me know if the latest version fixes this issue. I haven't worked out which add-on it was conflicting with so haven't been able to test but I've added a workaround anyway.
 
@time You should just be able to use a normal XenForo conditional statement, so something like:
HTML:
<xen:if is="{$customFields.dia_chi}">
<div style=" text-align: center; margin: 20px 0;"><iframe width="645" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q={$customFields.dia_chi}&amp;output=embed"></iframe></div>
</xen:if>

when creating fields dia_chi, I choose Multi-line text box

7-8-2013 11-41-17 PM.webp


then, when I wrote the post in two addresses enter 2 different lines, as it does not display results 2 maps

7-8-2013 11-59-53 PM.webp
 
Top Bottom