TinyPortal

Development => Block Codes => Topic started by: akulion on May 09, 2006, 09:36:38 PM

Title: Feedback (Flash form)
Post by: akulion on May 09, 2006, 09:36:38 PM
Hi

This is a flash based feedback form - really cute and nice - for those people who prefer little cute forms as opposed to big hefty ones.

Demo: Here (http://path-to-peace.net/misc/feedback/fb.html)

Installation Guide

1. Download this zip file (http://path-to-peace.net/misc/feedback/flashfeedback.zip)

2. Open email.php and find the lines



$sendTo = "akulion@gawab.com";
$subject = "Feedback Form Submission";



Change the email addy and subject to whatever you want - thats the email at which you will get the form submissions and the subject is the one which will appear in the subject of the email by default (so you can configure your junk mail filter to always allow these emails thru)

After changing save file

3. Upload all 3 files in the zip package to your server in a new folder (name it whatever you want

4. Create a side block and add the code generated via this page to produce a popup window: http://dynamicdrive.com/dynamicindex8/popwin.htm

There will be 2 bits of code - just put them in the same block.

Specify the popup window size to be 300 x 300

Optional Button
Additionally the code generated from the above link does not contain a button (like in the demo for tell a friend) - so you must create your own and can specify it in img tag of the generated code code by including a IMG tag before the </a> like so:

Only an example


<center><a href="http://www.mysite.com/feedback/feedback.html" onclick="NewWindow(this.href,'P2P Tell A Friend','310','310','no','center');return false" onfocus="this.blur()"><img src=http://www.mysite.com/feedback/image.gif"><br>Tell A Friend</a></center>



Have fun :D

Credits: Kirupa Fedback Form (http://kirupa.com)

PS: this code has been added to the 'block snippet code index' under 'F' "feedback form (flash)"

Edited: To include popup generator link
Title: Re: Feedback (Flash form)
Post by: G6Cad on May 09, 2006, 09:42:21 PM
300x300 is a bit to much for most people that use blocks
"standard" blocks are set as 170 and most users have max 200.

Is it possible to make it a bit smaller to fit in a max size of 170 or less?
Title: Re: Feedback (Flash form)
Post by: akulion on May 09, 2006, 09:44:05 PM
oh I think I didnt explain it clearly enough  - the "POPUP" window will be 300 x 300

the block will be a small thing with just a link or a image :D

try out the demo to see what I mean
Title: Re: Feedback (Flash form)
Post by: G6Cad on May 09, 2006, 09:52:56 PM
Great :)   Then i will try it out :D
Title: Re: Feedback (Flash form)
Post by: Crip on May 09, 2006, 10:44:12 PM
Thats alright.. thanks for sharing. :)
Title: Re: Feedback (Flash form)
Post by: akulion on May 09, 2006, 11:01:31 PM
ur always welcome G6 and Crip :D

oh yea i nearly forgot to mention - the feedback form above is a LIVE demo - so anything you send through it is delivered to my inbox lol :p
Title: Re: Feedback (Flash form)
Post by: RoarinRow on May 10, 2006, 12:26:54 AM
I tried it out on my test site and I have not yet gotten any email notification.

Here is the code I'm using:

<script language="javascript" type="text/javascript">
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>


<center><a href="http://www.avalanchestyle-test.com/forum/feedback/feedback.html" onclick="NewWindow(this.href,'P2P Tell A Friend','310','310','no','center');return false" onfocus="this.blur()"><img src=http://www.avalanchestyle-test.com/forum/AVS/off.gif><br>Tell A Friend</a></center>

Also, this code on my test site does not produce a pop up window.  It opens in the same browser.



In the email.php I have this:

$sendTo = "admin@avalanchestyle.com";
$subject = "AVS Feedback Form Submission";


Any suggestions?
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 12:57:47 AM
Thats weird - anyone else having this problem?

It seems to be working A- OK for me...

Have you tried using a web-based email account just for testing purposes? cos it could be something to do with ur host - so give yahoo or hotmail a try to see if its workin or not
Title: Re: Feedback (Flash form)
Post by: RoarinRow on May 10, 2006, 01:47:23 AM
Quote from: akulion on May 10, 2006, 12:57:47 AM
Thats weird - anyone else having this problem?

It seems to be working A- OK for me...

Have you tried using a web-based email account just for testing purposes? cos it could be something to do with ur host - so give yahoo or hotmail a try to see if its workin or not


Yahoo! is my web host and I use the email addresses provided by them.  Is my configuration o.k. above?
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 02:10:11 AM
yes ur configuration is perfectly ok as well

but i cant figure out why the javascript wont work for u cos its a direct code from dynamicdrive for usage with FF, IE and Opera and works perfectly fine for every other place ive used it

Edit I see now wy it may not be working for u (atleast the popup) generate a code using this page for the popup window and copy and paste the 2 bits of code into the same block --> http://dynamicdrive.com/dynamicindex8/popwin.htm

and no i didnt mean change ur host lol I meant try using a webbased email address like on hotmail or yahoo

I still cant understand why it wouldnt work for u - everything seems to be perfectly ok, i checked like 4 times

Title: Re: Feedback (Flash form)
Post by: iwyen on May 10, 2006, 03:42:47 AM
It says Tell-A-Friend but it's actually meant to send feedback to webmaster right? I would have been confused and added my friend's name and email thinking it'll send an invitation to my friend :P
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 04:06:38 AM
Quote from: iwyen on May 10, 2006, 03:42:47 AM
It says Tell-A-Friend but it's actually meant to send feedback to webmaster right? I would have been confused and added my friend's name and email thinking it'll send an invitation to my friend :P

Actually sorry about the wording - i didnt have time so I just used the graphics and title from a "recommend" page script i posted earlier

This is a feedback form - it will give you a small form from which you can send any type of email TO the WEBMASTER and no one else!

I will change the graphics and title now - thanks for pointing that out :D
Title: Re: Feedback (Flash form)
Post by: iwyen on May 10, 2006, 04:14:51 AM
Sure :) It's a very convenient and nice looking script :)
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 04:26:49 AM
did it work for u alright?

im asking cos for rorinrainbow it wasnt workin so it got me a lil worried
Title: Re: Feedback (Flash form)
Post by: iwyen on May 10, 2006, 04:57:04 AM
me? i'm in midst of the exams so not doing anything to my site, just looking around for ideas to work during upcoming holiday..
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 05:00:49 AM
oohh lol

i wish someone would come around who can verify that this script works for them apart from just me - cos for me it works super duper - im just worried about why it isnt for rorin

ps: i nearly forgot to say: good luck on ur exams
Title: Re: Feedback (Flash form)
Post by: RoarinRow on May 10, 2006, 05:42:54 AM
It worked on my other site that is not hosted by Yahoo!  Interesting.  Wonder what setting I need to have with Yahoo!  Maybe they have more strict smtp/pop requirements.

The pop up didn't work using the original code, but the form worked.
Title: Re: Feedback (Flash form)
Post by: akulion on May 10, 2006, 06:30:09 AM
Quote from: RoarinRow on May 10, 2006, 05:42:54 AM
It worked on my other site that is not hosted by Yahoo!  Interesting.  Wonder what setting I need to have with Yahoo!  Maybe they have more strict smtp/pop requirements.

The pop up didn't work using the original code, but the form worked.

oh thats such a relief - i was really worried something was wrong in the flash or php thingie itself - ive been checking it back and forth lol

I think maybe on servers they have restrictions - like i remember on my old host they had some weird restriction that i couldnt have more than6 users active on a DB - needless t say i left them asap

glad the form worked for u - good luck
Title: Re: Feedback (Flash form)
Post by: marzi on October 31, 2006, 03:00:39 AM
I may be a little late but it works fine for me....the first time.
Flash is new to me-how can one extra field be added?
Title: Re: Feedback (Flash form)
Post by: akulion on October 31, 2006, 10:32:28 AM
the inclusion for a new feild would require the FLA source file to be modified probably

go to http://kirupa.com/ and do a search for the feedback form....they give the source code along with a full tutorial on it :up:
Title: Re: Feedback (Flash form)
Post by: marzi on October 31, 2006, 02:57:28 PM
Aku,
Thanks for the Flash information and responding to my other post regarding constraining an 'Article' for registered users only. I will give the 'Article' code a try and let you know the results.
Title: Re: Feedback (Flash form)
Post by: funxlab on January 25, 2007, 10:27:59 AM
Hi,
I have tried this but it didnt work for me. To create a block for it, should I select a phpbox, a BBC+html block ,a script block or an article? there are two codes generated from the page:
http://dynamicdrive.com/dynamicindex8/popwin.htm
So both codes will go in the block content? A bit detail guide is requested as I m new to tiny portal :)
regards,
Jim
Title: Re: Feedback (Flash form)
Post by: srm on March 21, 2007, 06:48:05 PM
I got it working sort. Did everything in the tutorial here. even managed to get it to load an image or button .

However its not popping up in a window. Instead it's just loading the feedback.html file in a new window

check it here: http://sputnikradio.com
Title: Re: Feedback (Flash form)
Post by: akulion on March 21, 2007, 08:54:56 PM
oh this is REALLY old before SMf had a feedback form / contact us mod available

I would recommend that u check on SMF for the contact mod its pretty cool