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:09:39 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
  • Users: 1
  • Guests: 107
  • Total: 108
  • lurkalot

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


iwyen

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

akulion

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

iwyen

Sure :) It's a very convenient and nice looking script :)

akulion

did it work for u alright?

im asking cos for rorinrainbow it wasnt workin so it got me a lil worried

iwyen

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..

akulion

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

RoarinRow

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.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

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

marzi

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?

akulion

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:

marzi

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.

funxlab

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

srm

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

akulion

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