Announcement

Collapse
No announcement yet.

Custom Node Fields

Collapse
X
Collapse
  •  

  • Custom Node Fields



    In 5.7.2, we have added a new feature - Custom Node fields.

    This new feature allows Administrators to define text and text area fields that are assigned to channels (eg forums).
    When a user creates a new topic, defined custom node fields will be available.
    1. The Administrator will create Field Categories in the AdminCP. Each category is assigned to one or more channels.
    2. Within each category, the Administrator can create one or more fields that will get assigned to individual nodes.
    3. When the End-User creates a new topic in that channel, the fields are available above the standard editor.
    4. When the user saves their post, each field with a value will be shown above the post text in a key-index table.
      • When saved, the field values are attached to the node. So if the node is moved to another channel, the field values will travel with it.
      • These fields only appear on the starter post.
      • The system will not show any field without a value assigned in the post.
    Below is how it works in practice.

    You can also watch the video at the top of this article for an overview

    Step 1

    Go to AdminCP > Custom Node Fields > Custom Node Field Manager

    Click image for larger version  Name:	image.png Views:	0 Size:	22.1 KB ID:	4477536​​

    Step 2

    Click Add Category to be be taken to the Add Category screen

    Click image for larger version  Name:	image.png Views:	0 Size:	58.1 KB ID:	4477539
    ​​
    Step 3

    Give the category a Name and a Title.
    The name can only have letters, numbers and underscores, whereas the title is the "Display Name" users will see.

    Then select the channel(s) you want this category of node fields to appear in (CTRL + Click to select more than one)
    Then click Save

    Click image for larger version  Name:	image.png Views:	0 Size:	86.6 KB ID:	4477538
    ​​

    Step 4

    Now, alongside your new category, click "Add Node Field"
    Click image for larger version  Name:	image.png Views:	1 Size:	33.6 KB ID:	4477595

    Step 5

    Choose whether you want a single line text box, or a multiple line text box (textarea).
    Enter a name and title for your node - again the "name" can only have letters, numbers and underscores, whereas the "title" is the display name that users will see.
    Then click Save

    Click image for larger version  Name:	image.png Views:	1 Size:	68.2 KB ID:	4477596

    Step 6

    Repeat Step 5 for all the fields you would like to use.
    You can also edit the display order as you go, or afterwards from the main screen

    Click image for larger version  Name:	image.png Views:	1 Size:	79.3 KB ID:	4477542


    Step 7

    Now, go to your forum front end and create a new topic in the channel you specified in Step 3.
    You should see your new node fields available to use.

    Click image for larger version  Name:	image.png Views:	1 Size:	37.8 KB ID:	4477594​​​

    ​​Step 8

    Complete the fields, enter some text for the topic as normal, and submit your topic.
    You will now see your custom node fields appear in the post.

    Click image for larger version  Name:	image.png Views:	1 Size:	60.9 KB ID:	4477540​​

    That's it!

    If you have any questions, please post in the Support forum and we will assist.​
    Attached Files
    Last edited by Mark.B; Tue 3 Jan '23, 2:21pm.

    • Craig
      #1
      Craig commented
      Editing a comment
      Is there a way to make the answers to the node field question to be visible only to select users groups while allowing allowing select user groups to make submissions?

      Furthermore is it possible to have the submission question and answer emailed to the person submitting?

      For instance if admins want to allow users to contact them via the custom node fields can it be for only admins and the person submitting to see the answers?

    • Wayne Luke
      #2
      Wayne Luke commented
      Editing a comment
      You can make entire threads only visible to the author and staff by using the "Can View Other's Topics" permission. You cannot make individual fields visible via permissions. Maybe in the future that is a new layer of permissions that we might want to add.

    • MasterOfNone
      #3
      MasterOfNone commented
      Editing a comment
      This is an interesting feature that has my mind thinking about a few ideas on how I could use this. Thanks for making the video, that was helpful to see.
    Posting comments is disabled.

About the Author

Collapse

Mark.B Find out more about Mark.B

Article Tags

Collapse

Latest Articles

Collapse

  • About .htaccess
    by Wayne Luke
    .htaccess is a configuration file for the Apache Web Server. It allows you to customize how your server works. Depending on how your hosting provider has the server configured, you can redirect people to different locations, secure directories and files, tell browsers how long to cache files, update PHP variables, and more. vBulletin comes with a pretty extensive .htaccess file that does a these things for you. Location vBulletin comes with a file named htaccess.txt in the original download. When ...
    Mon 11 Sep '23, 11:57am
  • Answered Topics
    by Mark.B
    In vBulletin 5.6.5, we added a new feature - Answered Topics.

    Topics can now be marked as "Answered." This is a special status applied to a specific post within the topic. The post that is marked as the Answer will be highlighted and show directly under the starting post in the topic.

    The ability to mark posts as the Answer in a topic is controlled by permissions. There are three different permissions to control this.
    Usergroup and Channel Permissions both...
    Sun 8 Jan '23, 11:43am
  • Custom Node Fields
    by Mark.B


    In 5.7.2, we have added a new feature - Custom Node fields.

    This new feature allows Administrators to define text and text area fields that are assigned to channels (eg forums).
    When a user creates a new topic, defined custom node fields will be available.
    1. The Administrator will create Field Categories in the AdminCP. Each category is assigned to one or more channels.
    2. Within each category, the Administrator can create one or more fields that will get assigned
    ...
    Thu 29 Dec '22, 2:19am
  • Using User Ranks
    by Wayne Luke

    User ranks allow the administrator to set up image and HTML rewards for their users once they reach specific goals. In versions before vBulletin Connect 5.7.1, ranks could only be triggered by the number of posts and the usergroups assigned to the user. In vBulletin Connect 5.7.1, User Ranks have been expanded to allow more flexibility in creating individual ranks. Now you can build combinations of different criteria to create unique ranks for your site.

    ​ Ranks can be created using th...
    Tue 25 Oct '22, 12:04pm
  • Excluding Custom Files from Suspect File Diagnostic
    by Wayne Luke
    If you have custom files, you can create an md5 sums for your smilie directory if you want. Inside the /do_not_upload folder of your download package is a checksum sub-folder. That will create custom md5_sums files.
    1. Copy the included sample_checksum_config.php file to smilies_config.php.
    2. Enter in your forum root.
    3. Give it a product id like 'smilies'.
    4. Delete the existing directories and files in the scanpaths.
    5. Add in '/core/images/smilies', under the directories comment.
    6. Run the command
    ...
    Mon 24 Aug '20, 8:48am
  • Including Custom PHP in Modules.
    by Wayne Luke
    We've created a new package that is intended to facilitate the replacement of custom PHP modules with custom Display Template modules. It also demonstrates how to create custom API functions in general. You will find this package attached below. Steps to replace a PHP module Module Edit the api/main.php file Find the customWidgetHtml function Copy your php code from the module into the function. Change the code to generate a string value instead of echoing content and set that to the $myhtml par...
    Mon 10 Aug '20, 2:05pm
Working...
X
😀
🥰
🤢
😎
😡
👍
👎