-
Cascading Style Sheet Basics
CSS (Cascading Style Sheets) have been around for a while now, and act as a complement to plain old HTML files.
Style sheets allow a developer to separate HTML code from formatting rules and styles. It seems like many HTML beginners’ under-estimate the power and flexibility of the style sheet. In this article, I’m going to describe what cascading style sheets are, their benefits, and two ways to implement them.
Cascading What’s?
They’re what chalk is to cheese, what ice-cream is to Jell-O they complement HTML and allow us to define the style (look and feel) for our entire site in just one file!They get their name from the fact that each different style declaration can be “cascaded” under the one above it, forming a parent-child relationship between the styles.
They were quickly standardized, and both Internet Explorer and Netscape built their latest browser releases to match the CSS standard (or, to match it as closely as they could).
So, you’re still wondering what a style sheet is? A style sheet is a free-flowing document that can either be referenced by, or included into a HTML document (Kind of like using SSI to call a file but not, if that makes sense). Style sheets use blocks of formatted code to define styles for existing HTML elements, or new styles, called ‘classes’.
Style sheets can be used to change the height of some text, to change the background color of a page, to set the default border color of a table the list goes on and on. Put simply though, style sheets are used to set the formatting, color scheme and style of an HTML page.
Style sheets should really be used instead of the standard , < b >, < i > and < u > tags because:
One style sheet can be referenced from many pages, meaning that each file is kept to a minimum size and only requires only extra line to load the external style sheet file
If you ever need to change any part of your sites look/feel, it can be done quickly and only needs to be done in one place: the style sheet and furthermore, it is done globally.
With cascading style sheets, there are many page attributes that simply cannot be set without them: individual tags can have different background colors, borders, indents, shadows, etc.
Style sheets can either be inline (included as part of a HTML document), or, referenced externally (Contained in a separate file and referenced from the HTML document). Inline style sheets are contained wholly within a HTML document and will only change the look and layout of that HTML file.
Open your favorite text editor and enter the following code. Save the file as styles.html and open it in your browser:
Cascading Style Sheet Example.
h1
{
color: #636594;
font-family: Verdana;
size: 18pt;
}This is one big H1 tag!
When you fire up your browser, you should see the text “This is one big H1 tag!” in a large, blue Verdana font face.
Let’s step through the style code step by step. Firstly, we have a pretty standard HTML header. The page starts with the tag followed by the tag. Next, we use a standard tag to set the title of the page we are working with.
Notice, though, that before the tag is closed, we have our tag, its contents, and then the closing tag.
h1
{
color: #636594;
font-family: Verdana;
size: 18pt;
}When you add the style sheet code inline (as part of the HTML document), it must be bound by and tags respectively. Our example is working with the tag. We are changing three attributes of the ’s style: the text color (color), the font that any tags on the page will be displayed in (font-family), and lastly, the size of the font (size).
The code between the { and } are known as the attributes. Our sample code has three. Try changing the hexadecimal value of the color attribute to #A00808 and then save and refresh the page. You should see the same text, just colored red instead of blue.
An Example Of An External Style Sheet.
External style sheets are similar to internal style sheets, however, they are stripped of the and tags, and need to be referenced from another HTML file to be used.Create a new file called “whatever.css” and enter the following code into it:
h1
{
color: #a00808;
font-family: Verdana;
size: 18pt
}Next, create a HTML file and name it test.html. Enter the following code into test.html:
External Style Sheet Reference Example.
This is one big H1 tag!As mentioned above, you can see that the actual code in whatever.css is exactly the same as it was in the inline example. In our HTML file, we simply place a tag in the section of our page. The rel=”stylesheet” attribute tells the browser that the link to the external file is a style sheet. The type=”text/css” attribute tells the browser that whatever.css is a text file containing CSS (cascading style sheet) declarations. Lastly, the href=”whatever.css” attribute tells the browser that the actual file we want to load is whatever.css.
Conclusion.
Well, there you have it, a quick look at style sheets and how to implement both an inline and external version. Checkout the links below if you’ve never worked with cascading style sheets before. You will be surprised at some of the things you can do with them!Article written by Lee.
-
Protecting The Kids – Europe’s Role
As adult webmasters we have certain obligations we must fulfill daily whether these be, legal or moral.
One issue that is constantly cropping up in our industry is that of minors (Children) accessing adult websites and, more importantly, the ease of which they can do.
Recent figures released by one of Europe’s top internet analysis companies show that children in Europe and, specifically within the United Kingdom are more likely to visit a website and that, ‘showing that around one in five Internet kids (290,000) check out the sex sites’.
These figures are certainly alarming to say the least, bearing in mind they are specifically talking about the United Kingdom, that leaves a vast majority of Europe, as yet, un-analyzed.
We should all adapt to new methods in order to protect minors from accessing our site whether that includes placing your sites behind AVS systems which, in my opinion is one of the best ways and, most profitable of protecting minors or, utilizing ‘web safe’ software packages that are available to block access to adult sites completely we all need to adopt these practices.
The fact of the matter remains that, in this day and age, no matter what precautions we take in order to prevent access there will, undoubtedly, be a majority of children who can and will, get access to adult sites.
Does that mean we should compromise on the quality of our sites? No
Does that mean we need to think harder about how we develop our sites? YesIt takes very little effort to subscribe to the services to block access and, you can get a single line of code to place within your html from ICRA which will at least, deter underage surfers from accessing your sites.
In addition to the above mentioned service, you can also place a link on your warning page/s to the following services for parents to block access from children to our sites, SAFESURF, CYBERPATROL, NETNANNY and, SURFWATCH amongst others. Its not just about utilizing software and ratings on our sites though, we can go much further than that and, for instance, using nothing but softcore content on our sites will protect to some extent the materials available to children but, in addition you will also notice your conversion ratios will go up! I have and, I’m sure you have, heard it time and time again.. Make them ‘Pay for pink’ and, by using softcore images on your sites that’s exactly what you are doing.
I for one certainly hope that you take heed at this article, protecting our children is paramount if, we are to succeed in the business, it is getting harder and harder to control who accesses our site but, we can at least take a step in the right direction.
Article written by Lee
-
Online Dating Programs – Working The Adult Angle
As the industry starts to feel the effects over the coming months from the whole Visa situation the one thing that, at present seems to be true of the adult industry is that more and more webmaster/companies are looking to increase their revenues by utilizing mainstream sponsors on their sites. However in addition to this, the adult dating program appears to have been overlooked at least up until now.
Online Dating Sites – The Options.
There are actually a few good online personals sites available for adult webmasters to promote ranging from Love At First Click through the Advertising Revenue Service program to specific dating sites such as Match.com and Date.com. One thing is overwhelmingly consistent however regardless of which sponsor you use for your dating traffic, they all have a relatively low payout when compared to the ‘norm’ in adult sites with payouts ranging from $1 to $5 per signup.Marketing Dating Sites.
So how should webmasters market dating sites in conjunction with their current streams of traffic, this is actually a lot easier than you may think for example, almost everyone has an exit link on their free sites, you could utilize this exit link to send traffic to a dating affiliate program in fact, you could also utilize a dating affiliate program on your exit consoles or even on TGP galleries instead of pay sites. The opportunities for you to make money by placing dating affiliate program banners on your web pages are virtually endless.Online Personals – Sales Techniques.
When selling online dating sites there are, in addition to the abundant methods of generating the traffic, many different methods of generating your marketing speech to the surfers, you should ideally try a selection of methods on your sites to find out exactly which method works best for you. As an example of this, if you are using a dating program on a softcore site, you might want to try a hardcore approach to selling your dating sponsor in much the same way as you would sell a hardcore pay site except not as highly graphic. In comparison, if you have a TGP gallery you may like to tell your surfer that rather than looking at sex, they might actually be able to get sex for a change. The ways in which you can entice your surfers to your dating affiliate program are virtually limitless.Marketing Dating Sites – An Overview.
Whether you are already using or are planning to use dating sites, the one thing you must do is ensure that you choose wisely not only the words for selling the site to your surfer but also the placement of the promotional material, a well placed text link can have a higher impact on your overall sales than a badly placed banner and well, the same is true in reverse, find out where you are missing out on opportunities to upsell your surfers to an online dating site.Article written by Lee
-
Using .htaccess Effectively
The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to control access to files and directories, and customize some server operation in your site. A .htaccess file can be created in any word processor but must be saved as text only. You must use FTP software in ASCII mode to upload or edit your .htaccess file. For the examples provided here, place the .htaccess file in your root directory.
There are a variety of functions that you can control using .htaccess some of the more useful of these are explained below:
Custom Error Messages.
Add the following to the .htaccess file::
ErrorDocument 404 /notfound.html
After “ErrorDocument” specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated, each specific error code is detailed below with the recommended codes to be used in the .htaccess file in bold :
200 OK
206 Partial content
301 Document moved permanently
302 Document found elsewhere
304 Not modified since last retrieval
400 Bad request
403 Access forbidden
404 Document not found
408 Request timeout
500 Internal server error
501 Request type not supportedUsing the codes above your error section of the .htaccess file should look like this:
ErrorDocument 301 /notfound.html
ErrorDocument 400 /notfound.html
ErrorDocument 403 /notfound.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /notfound.html
ErrorDocument 501 /notfound.htmlRedirect to a Different Folder.
Add the following to the .htaccess file:
RewriteEngine on
RewriteRule ^/oldfolder(.*)$ /newfolder/$1 [R]This redirects the user from /oldfolder/anyfile.html to /newfolder/anyfile.html, when the .htaccess file is uploaded to the otherwise empty “/oldfolder” directory.
Denying User Access.
Add the following to the .htaccess file:
<Limit GET>
order allow,deny
deny from 000.00.00.
deny from 000.000.000.000
allow from all
</Limit>This is an example of a .htaccess file that will block access to your site to anyone who is coming from any IP address beginning with 000.00.00 and from the specific IP address 000.000.000.000 . By specifying only part of an IP address, and ending the partial IP address with a period, all sub-addresses coming from the specified IP address block will be blocked. You must use the IP addresses to block access, use of domain names is not supported
Redirect a Machine Name.
Add the following to the .htaccess file:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} machine.domain-name.net $
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1This will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net.
Different Default Home Page.
Add the following to the .htaccess file:
DirectoryIndex filename.html
Then a request for http://domain-name.net/ would return http://domain-name.net/filename.html if it exists, or would list the directory if it did not exist.
To automatically run a cgi script, add the following to the .htaccess file:
DirectoryIndex /cgi-local/index.pl
This would cause the CGI script /cgi-bin/index.pl to be executed.
If you place your .htaccess file containing the DirectoryIndex specification in the root directory of your site, it will apply for all sub-directories at your site.
Preventing Hot Linking.
Add the following to the .htaccess file:
# Rewrite Rule for images
RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
RewriteRule ^(.*)$ http://<same as above URL>You would replace the <URL of page accessing your domain> above with the domain name and path of the page that is referring to your domain. For example: www.theirdomain.com/users/mypage/
The RewriteCond directive states that if the {HTTP_REFERER} matches the URL that follows, then use the RewriteRule directive. The RewriteRule directive will redirect any reference back to the referring web page.
Using the above you should, safely be able to publish your sites on the internet knowing that you will not be privy to bandwidth thieves via hotlinking and also, that you will not lose any traffic through pages that are ‘not found’.
Article Written By Lee
-
Undeveloped Domains – Put Them To Use
Often when searching for new domain names, i come across what should, in theory be a golden opportunity only to find, the domain itself has already been registered and, whilst this in itself is annoying, what is even more annoying is that the domain 404’s when typed into the browser window.
The mere fact that someone else, a webmaster no less, has thought about purchasing the same domain as what you may have means there is already value in that domain and, more importantly, you have potentially lost a sale.
So how can we capitalize on this potential lost traffic from the off-set? That is what we will look at in this brief article.
The first thing we need to do in order to start making some additional potential profit from our domain is to create a ‘generic’ holding page until such time that we have the time or, funding, to develop the site we had intended to place on our new domain name.
This holding page can take many forms depending on the type of traffic you are hoping to target with the domain itself. Ideally, you will want to have as much choice for the surfer (or webmaster) on this holding page as you can so, you need to assess the nest types of sites to use, the best use of the traffic no matter how small it could be and, more importantly, the best way to maximize your sales potential.
One good way of doing this is to split the page into three sections, two equal sized sections at the top portion of the page and, one smaller portion towards the very base of the page designed, almost like a footer.
In the two top portions you should equally distribute both surfer orientated and, webmaster orientated links both of which need to be clearly separated.
For example, the left side of the page take all of your top converting paysites and list them by niche, they don’t have to have fancy or heavy graphics, text links will suffice for now as this is only a ‘temporary’ page.
On the right hand side of the page place some of your webmaster referral linking codes with a brief description, remembering that not only surfers could hit this page but webmasters themselves.
On the ‘footer’ portion of the page, the most important section, you should put your contact details, ideally an email address and, if the domain warrants, details of how you can be reached by instant messenger. The reason for the email and instant messenger details is a simple one, if a webmaster REALLY wants the domain that you have, he, or she, might just make you an offer on it and, if they have no way to get in touch with you then, you have just lost an offer on a domain that you might not get around to using for months.
of course, in addition to utilizing the traffic you have on the domain you can also use this holding page to generate more traffic, for example, placing a banner or button exchange code on the site or, perhaps a counter. The possibilities to generate traffic to these pages are limitless depending on how you use the holding page itself.
Well, that’s the basics of domain holding pages explained and, hopefully you will have realized that no matter what you plan on doing with your new domains, after your host has added them to your server, the next thing you should do is to create a generic holding page that you can upload into the rot of the domain name and, who knows, you might end up making some money a little sooner from that unused domain name.
Article written by Lee
-
Building A Surfer Trap – Stage 5
So we hit stage 5 in this surfer trap tutorial.
It was brought to my attention this morning that we never added any ALT tags to our single FPA link so, in a change to the planned tutorial I am going to touch on this stage as, once the search engines get to our surfer traps this is going to be a crucial aspect on how highly we get ranked.
So what’s next?
Ok, now what you have to do is go back to manually editing the FPA’s (All of them!)
What you need to do is this…
Take the Multi-Site FPA first then, on ALL of the links that lead to the single site FPA’s you need to add the ALT tag. Again, in the same way as we did originally however, instead of using this tag on the images we will use this on the actual TEXT of the link so, for example the link which may be:
‘Voyeur Porn’ leading to the FPA you have for the Voyeur niche in the HTML coding will already look like this:
<a href=”mydomain.com”>Voyeur Porn</a>
Will get turned into:
<a href=”mydomain.com” ALT=”More Niche Related Keywords”>Voyeur Porn</a>
The reason we are going back over these links now and not earlier on is because you should hopefully have started to get a small amount of traffic from your counter impressions. These counters are virtually ALWAYS being crawled by the search engines due to the amount of people linking to them so, by optimizing our site at this stage, it makes it less work in getting into the search engines.
One other thing that we can now start to do (as we did a couple of stages back) is to create some more HTML pages with some tables on them, however, these will be HTML pages on their own with no images on them. Again however, you should make them 4 columns across and two rows high.
What you want to add into these tables are NICHE links so for example, taking the TEEN niche we would make eight links like:
Teen Sex
College Girls
Erotic Teens
Teen Porn
Etc
Etc
Etc
Etc…You should do this for each of the MAIN niches so you would have a table for Teen, Gay, Mature, Asian, Ebony, Fetish and one for General and again, these should link to the NICHE FPA’s that you already have created.
These tables will be used for another console on our surfer trap however, before we implement this console we are going to have some fun with them.
Article written by Lee
-
What’s A CHMOD?
CHMOD is another name for setting the permissions of files on your server.
All UNIX based web servers understand the concept of permissions. these are broken down into three distinct areas.
Permissions for the person who OWNS the file.
Permissions for the group (all users are members of one or more groups).
Permissions for everyone else.Permissions are listed one of two ways either using numbers such as 755 or, using letters such as rwx-xr-x however they both mean the same thing.
The first number or first group of three letters stands for the permissions of the owner (IE 7 or rwx).
The second number or second group of letters stands for the permissions of the group (IE 5 or xr).
The third number or third group of letters stands for the permissions of everyone else (IE 5 or x).The way the system works is as follows:
1 = x = you are able to execute (run) this program.
2 = w = you are able to write to this file.
4 = r = you are able to read the contents of this file.so if you add it up rwx = 7.
So, in the example given above (755 or rwx-xr-x) the owner is allowed to read and write the file AND execute it.
The group is allowed to execute and write to the file.
Everyone else can execute the file.We hope this gives you a little more insight to how CHMOD’ing or, setting the permissions on your server can affect how files act.
Article written by Lee
-
Redirecting Questionable Adult Traffic
The one thing almost all reputable adult webmasters agree on is that one way or the other, we want to rid the net of those webmasters that profit from traffic primarily gained from either the direct promotion of or, targeting of, keywords relating to child pornography however, how can you tell what traffic you are being sent and, more importantly, how can you do something about the type of traffic that you receive to your site in order to filter out this unwanted traffic? The answer is simple, use a script to redirect the traffic elsewhere before it even hits your site.
Child Porn Redirection Php Script.
The following php script when used on your server will enable you to send unwanted traffic gained by the promotion of using ‘illegal’ keywords in the search engines and sites which link to your own.
<!– Start Copy Here –>
<?
// Redirect “Lolita” traffic
$refer_full_path = “$HTTP_REFERER”.”$PATH_INFO”;
if(( preg_match(“/lolita/i”, $refer_full_path)) ||
( preg_match(“/child/i”, $refer_full_path)) ||
( preg_match(“/preteen/i”, $refer_full_path)) ||
( preg_match(“/pre-teen/i”, $refer_full_path)) ||
( preg_match(“/pedo/i”, $refer_full_path)) ||
( preg_match(“/underage/i”, $refer_full_path)) ||
( preg_match(“/beast/i”, $refer_full_path)) ||
( preg_match(“/rape/i”, $refer_full_path)) ||
( preg_match(“/kinder/i”, $refer_full_path)) ||
( preg_match(“/incest/i”, $refer_full_path)) ||
( preg_match(“/kiddie/i”, $refer_full_path))) {header(“Location: $refer_full_path”);
exit;
}?>
<?
$words=array(“childporn”,”underage”,”beast”,”interracial”,”lolita”,”preteen”);
for($i=0;$i<count($words);$i++){
if(eregi($words[$i],$HTTP_REFERER)){
header(“Location: http://www.fbi.gov/?CHILD_PORN_ON_DISK_LOGGED_AND_REPORTED”);
}
}
?><!– End Copy Here –>
In order to use this script, simply add additional keywords or partial word matches to the top part of the script and, include the bottom half of the script at the top of your HTML coding.
Any traffic being sent to your site via keywords which you have specifically told the script not to allow access to your web site will be forwarded to the url in the bottom part of the php script which again, can be changed to wherever you like.
Article written by Lee
-
Typography Know How
Our web sites are nothing without content, and most content is comprised of simple text. Many web designers neglect to pay attention to their typography, and it shows. Proper typography varies based on where the text is and what purpose it serves. Although there are no rules etched in stone, there are a few general techniques that should be followed. Although some of these tips may seem elementary, many of them are not followed.
Headings.
Clearly, headings should be larger, by 1 or 2 font sizes, than your body text. You may consider bold, but be cognizant of the letter width. Arial Black, for example, may create letters too fat for your taste. When using colors, be sure the colors contrast well with the background color of your site. Black and dark gray do not contrast well, while black and white (or light gray) work quite well. Sometimes, even a simple color change can create useful headings.Also be sure to cascade your headings. A main heading, for example, would be larger than subheadings. This effect creates a sense of emphasis and flow to the information.
Do not italicize your headings. Italics are meant to underscore particular content, but since the text is a heading and of larger size anyway, italics are redundant and often make the text difficult to read.
Fonts.
The default is Times New Roman, which works fine, but many think it is boring. I have experimented with Arial, Georgia and Verdana, and have found Verdana the most readable font face available. This is a personal preference, but fonts should be restricted to the above four to ensure compatibility between all users of your web site. If your user’s browser does not support your font choice, their browser will revert to its default. Since browsers have increased support for CSS, or Cascading Style Sheets, whenever possible, use CSS to define your fonts, rather than HTML’s <font> tag. Also, be sure to keep your font sizes large enough for visitors of all ages and eyesight’s.Stress Styles.
Avoid using all capital letters within your text, as it makes it difficult to read and implies you are shouting at the reader.To stress words within your body text, decide on a format and stick with it. Some choose bold, while others choose italics or underline. My personal favorite is italics, but any of these can work well. Be careful when using underline, however, as it can be mistaken for a link. In addition, do not overuse these stress styles.
Entire body text should not be bold. Bold, like italics, is used to emphasis words, and usually an entire body of copy should speak for itself in regularly styled text. I like to use CSS to space my body text out a little to increase readability.
Article written by Lee
-
Seasons Greetings For The Adult Surfer
How do the national and, international holidays affect our sponsors sales? More than you would think especially if you can offer your surfers something ‘seasonal’ when they hit your site. However, that said, when should you start planning for these holidays and, more importantly, how can you ensure that once you have implemented your seasonal marketing campaigns that they actually work?
Seasonal Marketing – The Basics.
Seasonal marketing is, in effect a method of changing your marketing approach around different times of the year to affect both the volume of sales you make and, more importantly, the uniqueness of the product you are offering your surfers. A good example of this is at Christmas time, many of the sponsors will provide their webmasters with banner with a holiday feel to them, perhaps using scantily clad men in Santa outfits or half naked women in elves costumes. By offering a seasonal marketing approach to your site surfers you actually increase the chances of making a sale.Holiday Porn.
One of the best ways to offer your surfers a fresh marketing angle is to ensure that you plan for all of the major holidays throughout the year in advance so for example, as mentioned above, Christmas is a big holiday as are, New Years, Easter, Thanksgiving (US), Independence Day (US) and, Halloween. By building sites specifically for these holidays you are increasing the chances not only of building your sales but, of gaining additional traffic that you might otherwise lose out on. It has been said certainly over the last four years i have worked in the adult industry that many webmasters experience an increase in search engine traffic searching on keywords such as ‘Christmas Porn’ and, ‘Ghost Porn’ around the various holidays, build now for next year and, when the holiday season arrives, you will be one step ahead of your competition.Seasonal Marketing Overview.
As already mentioned the holiday season especially Christmas time, can be a great way to gain additional traffic, not only from those surfers specifically looking for Christmas Porn but, also the newbie adult surfers who have perhaps only just got their first computer on Christmas day, by adding to your collection of seasonal porn sites year after year you will not only learn a lot about the way the various holidays and seasons affect your sales but, you will also be able to profit from your surfers in a way that not many other webmasters do.Article written by Lee
Premium Sponsors
Categories
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing