Topic: How to Make a Welcome Page with Feedback Form

This post will show you how to create a new page that is displayed after someone joins your site.
The page also includes a feedback form to collect information and email the information to the admin.

Create a Welcome page to:
Provide new members more information after they join your site.
Provide new members ideas on how to get started on your site.

Create a Feedback form to:
Know where your members are coming from.
Know how effective your advertising is.
Know if your friends are really getting people to join your site.

Step 1 – Create your new welcome page:
In the control panel
[Settings]---»  [Content]---» [manage pages] ---»  select the Group for your new page
[General]----»  [add page]
Name* ----» the name of your new page (example: Welcome New Member)
Label* ----» the label of your new page (no spaces or underscores, example: welcome)
Page ----» enter your content if you are NOT adding a feedback form
Group ----»  select the group this page belongs to
Custom template ---»  page_default24

Special Notes
* = required entry

If you're NOT adding a feedback form goto Step 5 and do not remove the {page content} call.
You can enter your content in the text box of the new cancel page in the control panel

Step 2 - Create your feedback Form:
Go to formmail-maker
Click [Get My Form] to Create your new form
email: ----»  the Admin email address to send the form answers to
Subject: ----»  enter the subject of the email sent to you
Display text: ----» question or text to display for field type
Field type: ----» select the field type you want
(+): ----» select from 16 different predetermined answers
Click the option you want then click [insert Option]
(remove the Choice 1 Choice 2 Choice 3 example text)
Close option box and your answers are inserted in the field value
Field value: -----» these are your answer choices
Instruction:----» add any other additional information for that question
Required: -----» check if field input is required
Click [Show More Options]
Confirmation Message: ----» Going To Your Profile Page Now
Redirect To link: ----» http://www.your_website.com/account/home/
Click [Create & Download form]

[Download Form]
save the my-form zip file to your local drive
unzip your my-form files
the unzipped file will have 3 files

Step 3 -  Upload the 3 form-mail files to a new folder on your server:
example http://www.your_website.com/welcome/

Step 4 -   Embed your form into your new vldPersonal Welcome page:
Download 'page_default.tpl' from your 'templates/your_template' folder
rename 'page_default.tpl ---» to 'page_default24'
Edit your 'page_default24.tpl' and insert the embed code. 

<iframe src="http://www.your_website.com/welcome/form.php" style="width:480px;height:600px;border:none;"></iframe>

where 'welcome' is the name of the folder you uploaded the 3 files to.

upload your new 'page_default24' to your 'templates/your_template' folder

Step 5 - Redirect new members that join your site to your new page
As there are 3 different methods to activate new member's account
Where you edit your redirect will depend on which type of account activation you're using.

Edit your 'lib.account_register.php' file located in your 'includes/lib' folder

For ----» No activation required:
around line 1140 remove this part

redirect( VIR_PATH . ($PREFS->conf['fancy_urls'] ? "account/home/" : "index.php?m=account_home") );


redirect( VIR_PATH . ($PREFS->conf['fancy_urls'] ? "page/general/welcome" : "page/general/welcome") );

For ----» Self activation by email:
For ----» Manual activation by admin:

around line 1199 remove this part

redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "account/login/" : "index.php?m=account_login"));

insert this part

redirect( VIR_PATH . ($PREFS->conf['fancy_urls'] ? "page/general/welcome" : "page/general/welcome") );

where page/general/welcome is the name of your new page 

we are done

Create a new account and test your new welcome page and feedback form.
Also check your admin email to ensure the form data was received

now when members join your site you can send them to a welcome page and get feedback from them

***please post any questions about this tutorial in the Design and Customization Forum***

*** for form related questions please visit the formmail-maker site ***

***for iframe related questions please visit <iframe> ***

Last edited by seeme101 (2009-06-15 09:21:16)