[TH] Custom Fields [Deleted]

@Waindigo I am working with your add-on and I am getting some strange results with the order of fields:

This is what the order looks like at thread creation, and it is the right order:
Schermata 02-2456708 alle 19.19.12.webp

Once the thread is created this is the new order displayed:
Schermata 02-2456708 alle 22.00.43.webp

As you can see it got mixed up, like it was sorted by field type, and then by alphabetical order within the field type. How can I force a behavior as per the thread creation form?

<------------ UPDATE ----------->
I figured it out. The display order is correct, it is just that the first two fields are missing:
Schermata 02-2456708 alle 22.26.47.webp

But the display options are there...
Schermata 02-2456708 alle 22.28.22.webp
Schermata 02-2456708 alle 22.28.53.webp

Any idea?
 
Last edited:
Have you checked the 'Forums and Permissions' tab? This is probably where you need to look if fields are not appearing on the front end.
 
@Waindigo just wondering if this might be searchable in the next release? On the drawing board? The reason I ask is that I have a custom user field that I need to be searchable lol...
 
Definitely something we really want to add. Do please drop us a PM if its something you would be interested in contributing towards.
 
hi Jon , can u tell me how i can do this css for the custom field =( ?

Code:
float: left;                                             
width: 250px;
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=85)';
filter: alpha(opacity=85);
-moz-opacity: 0.85;
-khtml-opacity: 0.85;
opacity: 0.7;
border: 1px #888888 dashed;
padding: 1px;
font-size: inherit;
font-weight: inherit;
font-family: Tahoma, Geneva, sans-serif;
font-style: inherit;
text-decoration: inherit;
-webkit-border-top-left-radius: 1px;
-moz-border-radius-topleft: 1px;
border-top-left-radius: 1px;
-webkit-border-top-right-radius: 2px;
-moz-border-radius-topright: 2px;
border-top-right-radius: 2px;
-moz-box-shadow: 0px 0px 5px 0px #888888;
-webkit-box-shadow: 0px 0px 5px 0px #888888;
box-shadow: 0px 0px 5px 0px #888888;

edit --

i try to do some edit with html field but this what i got

YE7lDHK.png


and what i want excatly is this

cC5DeE6.png


is there way to help me to do that =(
 
Last edited:
Can the custom thread fields be searched on? This addon is awesome! I hope I can allow users to search for example, our Classifieds threads by zip code etc.
 
hi Jon , can u tell me how i can do this css for the custom field =( ?

Code:
float: left;                                            
width: 250px;
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=85)';
filter: alpha(opacity=85);
-moz-opacity: 0.85;
-khtml-opacity: 0.85;
opacity: 0.7;
border: 1px #888888 dashed;
padding: 1px;
font-size: inherit;
font-weight: inherit;
font-family: Tahoma, Geneva, sans-serif;
font-style: inherit;
text-decoration: inherit;
-webkit-border-top-left-radius: 1px;
-moz-border-radius-topleft: 1px;
border-top-left-radius: 1px;
-webkit-border-top-right-radius: 2px;
-moz-border-radius-topright: 2px;
border-top-right-radius: 2px;
-moz-box-shadow: 0px 0px 5px 0px #888888;
-webkit-box-shadow: 0px 0px 5px 0px #888888;
box-shadow: 0px 0px 5px 0px #888888;

edit --

i try to do some edit with html field but this what i got

YE7lDHK.png


and what i want excatly is this

cC5DeE6.png


is there way to help me to do that =(

thanks i found it my self

i just add the style in this template
waindigo_header_node_customfields

^^
 
Can the custom thread fields be searched on? This addon is awesome! I hope I can allow users to search for example, our Classifieds threads by zip code etc.
This is something we are very keen to add as soon as possible. Please drop me a PM if this is something you would be interested in contributing towards.
 
Is it possible to require someone to fill out a field before posting?

Answer: This can be done while editing the node that the thread field is for. There should be a Thread Fields tab.
 
Last edited:
Hi @Waindigo
i havea photography forum and i started using Custom Post Fields to give my users the ability to rate photos/thread.
I have created 3 custom post fields ( Popup single choice ) : 1)Tecnica 2)Creatività 3)Emozione
Every popup has a value from 1 to 10 and 0 is default value "No vote given by the user".
Then....when user reply to thread/photo, if the user leaves the default values , these values are included in reply.
But, rightly, if the user does not want rate the photo/thread i have these values in every post.....it's possible hide the default value if user not choice value?
I wish that the values are only printed if they are chosen by the user: I do not want them to be printed with default values
I hope you understand...my english is bad :(
Thanks in advance
Antonio

custom_fields.webp
 
Last edited:
Hi @Waindigo
i havea photography forum and i started using Custom Post Fields to give my users the ability to rate photos/thread.
I have created 3 custom post fields ( Popup single choice ) : 1)Tecnica 2)Creatività 3)Emozione
Every popup has a value from 1 to 10 and 0 is default value "No vote given by the user".
Then....when user reply to thread/photo, if the user leaves the default values , these values are included in reply.
But, rightly, if the user does not want rate the photo/thread i have these values in every post.....it's possible hide the default value if user not choice value?
I wish that the values are only printed if they are chosen by the user: I do not want them to be printed with default values
I hope you understand...my english is bad :(
Thanks in advance
Antonio

View attachment 68394
Have you tried putting a <xen:if> statement around it to display it only if it is not the default value?
 
Getting this error while editing my nodes.

Code:
Mysqli statement execute error : Truncated incorrect DOUBLE value: 'location'
Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 632
Zend_Db_Adapter_Abstract->update() in Waindigo/CustomFields/Extend/XenForo/DataWriter/Forum.php at line 507
Waindigo_CustomFields_Extend_XenForo_DataWriter_Forum->updateCustomFields() in Waindigo/CustomFields/Extend/XenForo/DataWriter/Forum.php at line 258
Waindigo_CustomFields_Extend_XenForo_DataWriter_Forum->_postSave() in XenForo/DataWriter.php at line 1409
XenForo_DataWriter->save() in XenForo/ControllerAdmin/Forum.php at line 122
XenForo_ControllerAdmin_Forum->actionSave() in Waindigo/CustomFields/Extend/XenForo/ControllerAdmin/Forum.php at line 111
Waindigo_CustomFields_Extend_XenForo_ControllerAdmin_Forum->actionSave() in Waindigo/Thumbnails/Extend/XenForo/ControllerAdmin/Forum.php at line 53
Waindigo_Thumbnails_Extend_XenForo_ControllerAdmin_Forum->actionSave() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/x/public_html/admin.php at line 13
 
Quick question by the way. I've set this up so a specific text field is created before posting a new thread. How do you edit the CSS so the text that is displayed is changed without affecting the entire website. What specific file/line is this?
 
Why would I get this error even if the custom fields are not even enabled for this forum section

Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'custom_post_fields' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: blkrb0t, Yesterday at 10:34 PM
Stack Trace
#0 /home/techencl/public_html/community/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('INSERT INTO `xf...')
#1 /home/techencl/public_html/community/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'INSERT INTO `xf...')
#2 /home/techencl/public_html/community/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('INSERT INTO `xf...')
#3 /home/techencl/public_html/community/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#4 /home/techencl/public_html/community/library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_post', Array)
#5 /home/techencl/public_html/community/library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#6 /home/techencl/public_html/community/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#7 /home/techencl/public_html/community/library/XenForo/ControllerPublic/Thread.php(549): XenForo_DataWriter->save()
#8 /home/techencl/public_html/community/library/Waindigo/CustomFields/Extend/XenForo/ControllerPublic/Thread.php(167): XenForo_ControllerPublic_Thread->actionAddReply()
#9 /home/techencl/public_html/community/library/DoublePost/ControllerPublic/Thread.php(40): Waindigo_CustomFields_Extend_XenForo_ControllerPublic_Thread->actionAddReply()
#10 /home/techencl/public_html/community/library/XenForo/FrontController.php(347): DoublePost_ControllerPublic_Thread->actionAddReply()
#11 /home/techencl/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /home/techencl/public_html/community/index.php(13): XenForo_FrontController->run()
#13 {main}
Request State
array(3) {
  ["url"] => string(99) "http://www.techenclave.com/community/threads/playstation-4-news-rumors-speculations.86873/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(376) "<p>[QUOTE="Gollum, post: 1924056, member: 54749"]I collect stuff.</p><p>I didn't even have a tv when I bought the PS3[/QUOTE]</p><p>What? LOL...</p><p><br></p><p>Do you also snuggle beside your collections and mumble "my precious" <img src="styles/soft_responsive/xenforo/clear.png" class="mceSmilieSprite mceSmilie8" title="Big Grin    :D" alt=":D" data-smilie="yes"><br></p>"
    ["_xfRelativeResolver"] => string(97) "http://www.techenclave.com/community/threads/playstation-4-news-rumors-speculations.86873/page-16"
    ["attachment_hash"] => string(32) "8e0364a89bd84b4411c15a33842dfcd2"
    ["last_date"] => string(10) "1394383442"
    ["last_known_date"] => string(10) "1394383442"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(71) "/community/threads/playstation-4-news-rumors-speculations.86873/page-16"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

And another type of error
Code:
ErrorException: Fatal Error: syntax error, unexpected end of file, expecting function (T_FUNCTION) - library/Waindigo/Listener/TemplateHook/20130522.php:1220
Generated By: Unknown Account, Yesterday at 10:21 PM
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(119) "http://www.techenclave.com/community/threads/suggest-a-home-ups-which-can-run-3-fans-and-3-lights-for-2-3-hours.129401/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom