PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 5th, 2002, 03:27 PM
hunnilingus hunnilingus is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ballymena N.Ireland
Posts: 1 hunnilingus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Removing toolbars from browser

I am currently runnning a band related website and would like a visitor to my site to be able to do several things when they click on a song link.

1 Open a new browser windows that doesn't display toolbars and can be set to a certain size ie 400 by 300 pixels with the song lyrics on this page

2 Open the song file and run it in windows media player or similar

3. Create a send mail to tell me that a song has been downloaded. I have been able to get this to work partially, but it sends another mail when the page is refreshed.

Any help would be greatly nappreciated!!

Reply With Quote
  #2  
Old September 5th, 2002, 03:50 PM
Nimco Nimco is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 132 Nimco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to Nimco
RE: Removing toolbars from browser

OK, first of all the toolbars. Try this JavaScript function:
php Code:
Original - php Code
  1.  
  2. <script language="JavaScript">
  3. <!-- Begin
  4. function popup(URL) {
  5. day = new Date();
  6. id = day.getTime();
  7. eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men  ubar=0,resizable=0,width=400,height=300,left = 200,top = 200');");
  8. }
  9. // End -->
  10. </script>


To open the window when they click a link, use:
php Code:
Original - php Code
  1.  
  2. <a href="javascript:popup('<page_name>')">Link</a>

Reply With Quote
  #3  
Old September 5th, 2002, 03:56 PM
Nimco Nimco is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 132 Nimco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to Nimco
RE: Removing toolbars from browser

Assuming the user has the relevant plugins installed in their browser, it should just be a case of linking to the file:

php Code:
Original - php Code
  1.  
  2. <a href="file.mp3">Listen to our new song</a>


With regards to sending an email when they download the song, do you have database access? What you could do is log the download in a database, along with IP Address which would help to eliminate refreshes. Alternatively you could use sessions or cookies to pass a variable across. Perhaps pass a variable of the current time, then check to see if the page is refreshed within the next hour. Any preferences?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Removing toolbars from browser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek