Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-06-2010, 06:30 AM
|
#1
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Rep:
|
How can I serve all pages on a frame?
Hello.
I don't know if this is the right place to ask about this issue, if is not then, please apologize.
I have a small WISP in my town and I would like to offer free internet service at coffee shops, restaurant, and other public places but, this free service will have its limitations: All pages would have an advertisement or promotion on top just like NetZero used to do. I think this is done with frameset but, don't know how to force this for all the pages.
I have a linux gateway that runs squid and would like certain ip addresses (free ones) to view pages with this promo on top or even have pop ups from time to time whichever is easier.
Can this be done? If so, can you please provide any suggestions?
Thanks in advanced for your help.
|
|
|
12-07-2010, 08:50 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,828
|
I would suggest browsing the alt.html archives or even subscribing to the newsgroup.
There is a very low noise level in there (some spam but its easy to ignore and only a few trolls and flamers) and most of the regulars seem willing to try to answer an intelligently asked question.
They will ask you to for a link to where they can inspect the page design, so, if you can make something available over the net, it will help.
I do know that, in general, frames are out these days and CSS containers are in. I'm not a web designer--except for my personal sites--but I have dipped in there enough to know that the denizens of alt.html have never liked frames.
|
|
|
12-11-2010, 06:06 AM
|
#3
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Original Poster
Rep:
|
Thanks for replying.
I just want to force the user to view an advertisement. I don't mind using CSS to accomplish that. I want every user to see that add on every page the user requests from the Internet.
Don't know how to really do this or if it can even be done.
Thanks.
|
|
|
12-11-2010, 11:30 AM
|
#4
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
im not sure the specifics but it can i believe be accomplished by a transparent proxy, or some routers can do such a thing
|
|
|
12-11-2010, 08:41 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,828
|
Quote:
Originally Posted by landysaccount
I don't mind using CSS to accomplish that. I want every user to see that add on every page the user requests from the Internet.
|
I'm not saying I could make that happen but I know it can be done using containers.
When you visit a blog, the sidebar(s) that most blogs have are "containers" in CSS-ese.
For example, you can make a banner container and put the add in the banner.
About dot com has a good primer on CSS--I say "good" because it works easily from basic to more complicated and doesn't throw everything at you at once.
I would recommend going there and nosing around a bit.
Another good site is HTML Goodies.
W3C Schools is the most thorough, but I found it really overwhelming unless I did pre-homework, kind of like taking Algebra II without taking Algebra I.
|
|
|
12-12-2010, 07:43 PM
|
#6
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Original Poster
Rep:
|
Quote:
Originally Posted by frankbell
I'm not saying I could make that happen but I know it can be done using containers.
When you visit a blog, the sidebar(s) that most blogs have are "containers" in CSS-ese.
For example, you can make a banner container and put the add in the banner.
|
Yes, I rather use CSS, I think it would be a lot easier to work with but, how would I be able to "rewrite" all pages that passes through our gw? Maybe it can be done with squid or apache? That's where the trick is at:
If an user requests www.google.com, I would like that banner to appear on top and the requested page just below it. This sounds difficult to do since, there should be a script or something that would have to rewrite the requested page html code. Maybe have a "floating" banner?
|
|
|
12-12-2010, 07:45 PM
|
#7
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Original Poster
Rep:
|
Quote:
Originally Posted by frieza
im not sure the specifics but it can i believe be accomplished by a transparent proxy, or some routers can do such a thing
|
The traffic should definitely pass through a router/gw in order for this to be accomplished. Also, I would like to run a php script that would load ads from mysql table on to a css or frame banner...
|
|
|
12-12-2010, 07:51 PM
|
#8
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Original Poster
Rep:
|
Can this may be accomplished with AJAX? I noticed google used to something similar to what I'm trying to do.
|
|
|
All times are GMT -5. The time now is 10:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|