#1  
Old 6th July 2010, 19:40
clarky87 clarky87 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default open newsletter

can anyone help im using this on my website for a subscribe got it all uploaded and working but dont know how to edit the little window it applys for people subscribing.

<iframe src="http://mysite.com/OpenNewsletter/includethis.php" frameborder="0" width="200" height="100" style="border:1px solid #CCCCCC"></iframe>

it come up with scroll bars and a whbite background is it possible for me to edit the colour and remove the scroll bars completly or is there a possible way for me to create the form again and send it using an actio n on a submit button

thank you
Reply With Quote
Sponsored Links
  #2  
Old 7th July 2010, 13:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

You can add
Code:
scrolling=no
to the <iframe> tag - the scrollbars should then disappear.

The colour is defined by the src file (http://mysite.com/OpenNewsletter/includethis.php), so you must change the background colour there.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
clarky87 (7th July 2010)
  #3  
Old 7th July 2010, 18:07
clarky87 clarky87 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

scrolling bit works great thanks i had alook last night i assume that the default colour is white as no colour is define would it work to integrate a css style into the coding or would it have to be a seperate sheet is is it alot more simple just changing the back ground colour
Reply With Quote
  #4  
Old 7th July 2010, 18:12
clarky87 clarky87 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

scrolling bit works great thanks i had alook last night i assume that the default colour is white as no colour is define would it work to integrate a css style into the coding or would it have to be a seperate sheet is is it alot more simple just changing the back ground colour

the coding i have from opensource documents is

<?

session_start();


require_once("config.php");







if($_GET["action"] == "subscribe")

{

$fp = fopen("$db_file", "r");

$file_text = fread($fp, 999999);

fclose($fp);



$subscribers = explode(",",$file_text);

foreach($subscribers as $subscriber)

{

if($subscriber == $_GET["email"])

{

$result = 1;

break;

}

else

{

$result = 0;

}

}



if($result == 1)

{

print "The email you provided alreay exists. <a href='javascript:history.back(-1)'>please try again</a>";

}

else

{

$fp = fopen("$db_file", "a+");

fwrite($fp, $_GET["email"] . ",");

fclose($fp);

print "<font face=arial size=2 color=blue>congratulations, your have successfully subscribed to the mailing list</font>";

}

}

print "

<form action='includethis.php'>

<input type='text' name='email' size='26' value='Enter your email' onfocus=\"this.value=''\">

<br>

<input type='submit' value='Subscribe'>

<input type='hidden' name='action' value='subscribe'>

</form>

";

?>

where and how could i implement the css into the file im only beginner at this and learning sorry to be a pain but when i try to add into it just messes it up and stops it working

Last edited by clarky87; 7th July 2010 at 18:21.
Reply With Quote
  #5  
Old 8th July 2010, 00:38
clarky87 clarky87 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

orted it i just added this code in and did the trick at the top of the php page

<style>

*{ margin:0; padding:0;}

body{ font:100% normal Arial, Helvetica, sans-serif; background:#000000; position: "centre";}

</style>
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem 100% CPU ispconfig_httpd -DSSL Captain Installation/Configuration 7 8th March 2010 21:50
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
open ports rayit General 6 18th January 2006 14:23


All times are GMT +2. The time now is 09:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.