[TH] Custom Fields [Deleted]

Need help. I get this error when trying to open a node in admin to edit:

Fatal error: Class 'Waindigo_CustomFields_Extend_XenForo_ControllerAdmin_Forum' not found in /home/.../public_html/forum/library/XenForo/Application.php(513) : eval()'d code on line 1
 
Do you have the add-on enabled? Also, make sure you have uploaded all of the files correctly.
 
Hm, uploaded everything again. I guess something went wrong before. Sorry and thank you for your quick response.
 
Another thing:

I've created test field named test. Then in the node administration I set in Thread Fields this:

{$customPostFields.test}

... but it is not showing upon created thread. But if I tick Show in thread view in field edit, it shows, but in a blue row.

Is this a right behaviour or am I missing something?
 
Hi Waindigo,

Trying to create a new Library article with the CustomField add-on, I get the following error from one of the new files:
Code:
-----------
ErrorException: Fatal Error: Cannot redeclare class Waindigo_Library_DataWriter_Article_Base - library/Waindigo/CustomFields/Extend/Waindigo/Library/DataWriter/Article.php:770
--------------------
Call stack from the console :
Call Stack

{main}( )../index.php:0
XenForo_FrontController->run( )../index.php:13
XenForo_FrontController->dispatch( )../FrontController.php:134
Waindigo_CustomFields_Extend_Waindigo_Library_ControllerPublic_Library->actionAddArticle( )../FrontController.php:337
Waindigo_Library_ControllerPublic_Library->actionAddArticle( )../Library.php:96
XenForo_DataWriter::create( )../Library.php:315
XenForo_Application::resolveDynamicClass( )../DataWriter.php:2012
XenForo_Application::autoload( )../Application.php:514
XenForo_Autoloader->autoload( )../Application.php:1000

======
Request state

#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Etat de la requête
array (size=3)
  'url' => string 'http://localhost:8888/xenforo/libraries/cuisiniers-staff.57/add-article' (length=71)
  '_GET' =>
    array (size=0)
      empty
  '_POST' =>
    array (size=12)
      'prefix_id' => string '0' (length=1)
      'title' => string '' (length=0)
      'message' => string '' (length=0)
      '_xfRelativeResolver' => string 'http://localhost:8888/xenforo/libraries/cuisiniers-staff.57/create-article' (length=74)
      'attachment_hash' => string 'e5b1f3ad6db53ecb5cf861b6320f4279' (length=32)
      'summary' => string '' (length=0)
      'custom_fields_shown' =>
        array (size=6)
          0 => string 'avertissement' (length=13)
          1 => string 'domaine' (length=7)
          2 => string 'domaines_secondaires' (length=20)
          3 => string 'nom' (length=3)
          4 => string 'waindigo_select_library' (length=23)
          5 => string 'waindigo_select_library' (length=23)
      'custom_fields' =>
        array (size=4)
          'domaine' => string '' (length=0)
          'domaines_secondaires' => string '' (length=0)
          'nom' => string '' (length=0)
          'waindigo_select_library' =>
            array (size=1)
              ...
      '_xfToken' => string '********' (length=8)
      '_xfRequestUri' => string '/xenforo/libraries/cuisiniers-staff.57/create-article' (length=53)
      '_xfNoRedirect' => string '1' (length=1)
      '_xfResponseType' => string 'json' (length=4)

This occurs when testing with data and also when leaving all fields blank.
I ran a file check that went OK.
 
@Waindigo could this be used to make thread descriptions on the threadlist?


aka
------------------------------------
Title of Thread
An exciting thread about fish!
------------------------------------
Title of Thread2
An exciting thread about green fish!
------------------------------------
 
One small suggestion:

In the template "custom_field_edit" you create an own class for each custom field:
Code:
<dl class="ctrlUnit customFieldEdit{$field.field_id}">
But I think a class for every coustom field would be better for styling:
Code:
<dl class="ctrlUnit customField Edit{$field.field_id}">
(or an other own class for the custom fields)
 
So how do you get thread fields to show up below the actual post? I am trying to create an author bio section below the library post and nothing shows. It will show within the post but not below. I can understand this in a custom post field but a thread field should be available anywhere on thread view. No?
 
So how do you get thread fields to show up below the actual post? I am trying to create an author bio section below the library post and nothing shows. It will show within the post but not below. I can understand this in a custom post field but a thread field should be available anywhere on thread view. No?


Thread fields are available in the first post only.
 
Post fields can display below the post by editing the post footer (you can do this when you edit the node).
 
Post fields can display below the post by editing the post footer (you can do this when you edit the node).

That still displays it in the actual post just at the bottom. I am looking to use the custom field info below the share links in the library node so I can add author info.
 
Back
Top Bottom