TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 11:30:13 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Feedback (Flash form)

Started by akulion, May 09, 2006, 09:36:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

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

Installation Guide

1. Download this zip file

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

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

Edited: To include popup generator link

G6Cad

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?

akulion

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

G6Cad

Great :)   Then i will try it out :D

Crip

Thats alright.. thanks for sharing. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



akulion

#5
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

RoarinRow

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?

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

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

RoarinRow

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?

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

#9
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