Updates

Tutorial: Cross-listing Categories(Drop-down Menu)

Posted . Filed under Tutorials.

This tutorial shows the step-by-step guide to add a drop-down menu in the Join and Update forms for Enthusiast 3 and above, as well as showing the additional field of the drop-down menu in the members’ list and emails. This tutorial is helpful if your subject covers more than one categories and you wish to cross-list the subject in different categories by providing a drop-down menu on the join form for members to choose what they are a fan of.

Steps of Adding Drop-down Menu in Enthusiast
1) In the Enthusiast dashboard, click on “Owned” and select a fanlisting. Click “Edit” and select “Database”. At the “Additional Fields” section, add a new additional field. For example, type “fanlisting_joining” and click “Update database settings”.

2) To make a drop-down menu in the Join Form, create a new php file and name it “addform.inc.php“. Add in the html for the drop-down menu in the file as shown in the example below and save. Upload to your server.

The result is shown below(Join Form):

3) In the Enthusiast folder, open “show_join.php” file and find this lines:

if( $info[’additional’] && file_exists( ‘updateform.inc.php’ ) ) { require_once( ‘updateform.inc.php’);

Replace these lines with:

if( $info[’additional’] && file_exists( ‘addform.inc.php’ ) ) { require_once( ‘addform.inc.php’ );

3) Then, we also need to add in the drop-down menu in the “Update Form” as well. Create a new php file and name it “updateform.inc.php“. Add in the html for the drop-down menu in the file as shown in the example below and save. Upload the php file to your server.

The same result will be shown on the Update Form.

4) Next, we need to show the additional drop-down menu values in the member’s list too. In your Enthusiast dashboard, click on “Edit” and then select “Template”. Place $$fan_fanlisting_joining$$ in the template and click “Update templates”. The value in the drop-down menu will automatically be shown on the member’s list.

5) If you would like to specify the selected option in the emails, click on “Edit” on your “Owned” fanlisting and click “Emails”. Just add in this: Fanlisting joining: $$fan_fanlisting_joining$$
And the selected option will be shown in the email once a member signs up.

That’s it, you have successfully added the drop-down menu in your Join Form and Update Form, show it in the member’s list and as well as in the emails. :D

Note: You can specify any fields besides the drop-down menu, for example, radio buttons and checkboxes by using the same steps.