Tema düzenleyici

Add-Ons [XTR] Custom Post Fields

  • Konuyu başlatan Konuyu başlatan XDinc
  • Başlangıç tarihi Başlangıç tarihi

XDinc

Yönetici
XenTR Mod
Customer
SMS Confirmed
Katılım
3 Şub 2019
Mesajlar
2,386
Çözümler
65
Tepki puanı
5,250
Puanları
113
Konu sahibi
A new product by XDinc is available: [XTR] Custom Post Fields 1.0.0 - Best way to create custom post fields for your community. Your members will love it.


[XTR] Custom Post Fields 1.0.0

Description

[XTR] Custom Post Fields

Custom post fields allow you to define additional structured fields for users to fill in when replying a thread. Similar to custom user fields, these fields can various types of form inputs, including textboxes, radio buttons and checkboxes.

custom_fields_acp-png.5983


Custom post field can be setup in the control panel under Forums > Custom post fields.

custom_fields_acp_list-png.5984


Each custom post field value will be displayed in one of several locations:
  1. Before message: in the body of the first post of the thread, directly above the message content.
  2. After message: in the body of the first post of the thread, directly below the message content.
custom_fields_acp_node_available_fields-png.5985


Like with custom thread fields, you can use the Applicable forums and Editable by user groups options to control where the field is displayed and who can enter a value for the field.

User group permission to view entered custom post field values,

custom_fields_user_group_permission-png.5986


Result

custom_fields_public-png.5987



Extended Product Information

  • Usable for per post.
  • Display positions.
  • User group permission.
  • Various field types.


Read more about this product...
 
Hiya,

I have installed and get the following error :

One or more add-ons currently have actions pending and may be in an inconsistent state. Because of this, some errors may be suppressed and unexpected behavior may occur. If this does not change shortly, please contact the add-on author for guidance.

Seeing the following issue...

  • TypeError: Macro public:custom_fields_macros :: custom_fields_edit() error: Argument 2 passed to XF\App::getCustomFieldsForEdit() must be an instance of XF\CustomField\Set, null given
  • src/XF/App.php:1970
  • Generated by:
    Dear Guests, welcome! Please, Giriş Yap or Kayıt Ol to view hide content!
  • Jul 20, 2021 at 12:33 PM

Stack trace​

#0 [internal function]: XF\App->getCustomFieldsForEdit('posts', NULL, 'user', NULL, NULL, Array)
#1 src/XF/Template/Templater.php(1184): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s42/public/custom_fields_macros.php(192): XF\Template\Templater->method(Object(XF\Pub\App), 'getCustomFields...', Array)
#3 src/XF/Template/Templater.php(817): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l1/s42/public/thread_view.php(1005): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_e...', Array, Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#13 src/XF.php(512): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
 
Konu sahibi
Hello Paul ,
Could you please create a ticket to fix this issues.

Let's try to help you right away.
 
Just to tell those that have read my post above.. XDinc is incredibly responsive. He has contacted me and passed on a fix without even needing access to my forum!! Kudos!

Question/Feature ehnacement... Is there any way to have this in the First post of the Thread only?
Reason : could be used as a "sales prompt" where the poster has to fill in certain fields when they post a sales thread which would then be displayed on posting - this could show the Condition/Location/good things/bad things about the item being sold... however allows it to stay in a standard listing as opposed to many that are a bolt-on classified section.

Many thanks!
 
Konu sahibi
Dear Guests, welcome! Please, Giriş Yap or Kayıt Ol to view hide content!

Hi Paul ,
Many thanks your review! We all use different products, of course there will be mistakes, the important thing is to be able to fight them.

Products cannot develop without suggestions and requests.

I would like to sincerely say that this request is possible.
Thanks for your suggestion.

XDinc
 

Kullanıcılar bu konuyu aşağıdaki anahtar kelimeleri arayarak buldu:

  1. Checkboxes in Post thread
  2. html
Quick Jump
Geri
Üst