Go Back   Netpond ™ > Webmaster Forums and Resources > Tutorials
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Tutorials Tutorials and helpful articles made by ponders for ponders

Teen, Gay, Ebony
Megasite, Gay, Shemale, Fetish Voyeur, Fetish Orgy, Pissing, Shemale
Reply
 
LinkBack Thread Tools Display Modes
Old 11-28-2006, 10:04 PM   #21 (permalink)
AbsolutePorn
www.TripleX-Studios.com
 
AbsolutePorn's Avatar
 
Join Date: May 2005
Location: SEO and Plugins Install on BLOGS - 8$
Posts: 15,866
Points: 480
Send a message via ICQ to AbsolutePorn Send a message via MSN to AbsolutePorn
Another addition to this tutorial...

On each one of those ad pages, you can create Random sales texts, so each time a surfer pops into your page, he will be seeing different Sales Text or Banners, randomly.

Works pretty good, and its not hard to do

Here is how its done:

PHP Code:
<?
$link1
='http://www.LINK-TO-SPONSOR1.com/';
$text11='Absolute Porn Recommends you To Click Here!';
$text12='You Better Click here Now Or Your Penis Will Fall!';
$text13='Get Instant Access To SITE NAME!';


$link2='http://www.LINK-TO-SPONSOR2.com/';
$text21='Absolute Porn Recommends you To Click Here!';
$text22='You Better Click here Now Or Your Penis Will Fall!';
$text23='Get Instant Access To SITE NAME!';


$link3='http://www.LINK-TO-SPONSOR3.com/';
$text31='Absolute Porn Recommends you To Click Here!';
$text32='You Better Click here Now Or Your Penis Will Fall!';
$text33='Get Instant Access To SITE NAME!';


$link4='http://www.LINK-TO-SPONSOR4.com/';
$text41='Absolute Porn Recommends you To Click Here!';
$text42='You Better Click here Now Or Your Penis Will Fall!';
$text43='Get Instant Access To SITE NAME!';


$link5='http://www.LINK-TO-SPONSOR5.com/';
$text51='Absolute Porn Recommends you To Click Here!';
$text52='You Better Click here Now Or Your Penis Will Fall!';
$text53='Get Instant Access To SITE NAME!';


##### Don't Touch From Now!
$control='';
$i=0;while($i<1){$i++;
$random_link = (rand(15));
$random_text = (rand(13));
$control_exp=$random_link.'-';
$control=$random_link.'-'.$control;
$control_true strpos($control$control_exp2);
while(
$control_true<>'0'){
$random_link = (rand(15));
$random_text = (rand(13));
$control_exp=$random_link.'-';
$control=$random_link.'-'.$control;
$control_true strpos($control$control_exp2);}
$link='link'.$random_link;
$text='text'.$random_link.$random_text;
$text=$$text;$link=$$link;

##### Output!
echo"<a href='$link'>$text</a>";

}
?>
NOTE: Make sure you save it as ad.php

Then from Rebel's Post, on step 9:
Quote:
Originally Posted by REßEL
9: Open your index.php file and paste the following between the body tags.
&lt;?php include(&quot;header.html&quot; ?&gt;
&lt;?php include(&quot;ad1.html&quot; ?&gt;
&lt;?php include(&quot;navigation.html&quot; ?&gt;
&lt;?php include(&quot;ad2.html&quot; ?&gt;
&lt;?php include(&quot;links.html&quot; ?&gt;
&lt;?php include(&quot;ad3.html&quot; ?&gt;
&lt;?php include(&quot;footer.html&quot; ?&gt;
Should look like:
9: Open your index.php file and paste the following between the body tags.
&lt;?php include(&quot;header.html&quot; ?&gt;
&lt;?php include(&quot;ad.php&quot; ?&gt;
&lt;?php include(&quot;navigation.html&quot; ?&gt;
&lt;?php include(&quot;ad.php&quot; ?&gt;
&lt;?php include(&quot;links.html&quot; ?&gt;
&lt;?php include(&quot;ad.php&quot; ?&gt;
&lt;?php include(&quot;footer.html&quot; ?&gt;


* I haven't tested it yet, just coded it, if you use it and find any problems, PM me.*
AbsolutePorn is online now   Reply With Quote Send a private message to AbsolutePorn
Old 11-28-2006, 10:48 PM   #22 (permalink)
Blinky
Blogging. Caffeine. Shame.
 
Blinky's Avatar
 
Join Date: Apr 2004
Location: Australia
Posts: 11,343
Points: 30
Yep include / require are amazing

I use includes of random content in a few locations to give pages a daily updated look.
__________________
More Sex Blogs Directory - Seo friendly hardlinks !
Blinky is online now   Reply With Quote Send a private message to Blinky
Old 11-28-2006, 10:51 PM   #23 (permalink)
Globofun
I'm a Moderator and a TWIT
 
Globofun's Avatar
 
Join Date: May 2005
Location: Montreal, Canada
Posts: 9,773
Points: 3,165
Send a message via ICQ to Globofun
Nice tut Rebel!
__________________


Become a Shemale Master, even if there's NO MONEY in that niche!

NicheCastle ** ExoticGold ** KinkyDollars Make me NO MONEY!

"Work honestly and build, build, build. That's all I can tell you" -John Richard Simplot
Globofun is online now   Reply With Quote Send a private message to Globofun
Old 11-29-2006, 02:42 AM   #24 (permalink)
finike
lactationcash.com
 
finike's Avatar
 
Join Date: Nov 2002
Location: Austria
Posts: 3,190
Points: 594
Send a message via ICQ to finike
Good advice, Rebel.
I use SSi (server side includes) for this purpose, but PHP is more flexible.
__________________
Pregnant, fetish or tit traffic?
Promote Lactation Cash, a fresh niche with better signup ratios!



Trade traffic: SexyPix TGP - Milky TGP - 6 Sexy 6!
finike is online now   Reply With Quote Send a private message to finike
Old 11-29-2006, 04:44 AM   #25 (permalink)
Kamilla
Swedish Babe YourSearchNow.com
 
Kamilla's Avatar
 
Join Date: Apr 2004
Location: YourSearchNow.com -- Advertise 2cent/click --
Posts: 14,037
Points: 50
Send a message via ICQ to Kamilla
Quote:
Originally Posted by REßEL
Once you get the hang of it you do begin to wonder how you managed without it

When designing new sites I tend to start with the index page as normal and build it as a complete static page to look exactly how I want it to look "compiled". I then work out which areas of the page are the ones that will be repeated throughout the site, I then cut out those areas and paste them into the individual include files and include them back onto the index page. Some are obvious targets, header, footer, navigation, etc.
That's the way I do it too! lol I'm not alone in that then.

Yes, php included will definently make your life easier.
Another tip to this tutorial: SEO your include pages as that will be seen by SEs like it was on your main page.
Second, make sure the include pages don't have anything other than the content, so no head or body tags etc.
__________________
YourSearchNow.com Advertise 2c/click - netpond points are welcome
Trade Blog Links Several Blogs and Blog Toplists in many different niches

Kamilla is offline   Reply With Quote Send a private message to Kamilla
Old 11-29-2006, 05:03 AM   #26 (permalink)
Paul&John
www.shittywork.com
 
Paul&John's Avatar
 
Join Date: Sep 2004
Location: ~~~ SEE SIG ~~~
Posts: 19,081
Points: 618
Send a message via ICQ to Paul&John
Thats cool, i just needed it for my new project
__________________
CHAMELEON MULTI-LICENSES FOR SPONSORS
CHECK OUT THIS THREAD NOW
also check out the my best sponsor: RageCash
Paul&John is offline   Reply With Quote Send a private message to Paul&John
Old 11-29-2006, 05:15 AM   #27 (permalink)
Jeremy
Bastard
 
Jeremy's Avatar
 
Join Date: Aug 2003
Posts: 954
Points: 0
Really good tute :-)

Can I make a couple of suggestions?

1 - Put your include files in a special include directory. I use things like /incs/global/, /incs/ads/ etc etc, especially if you use a .html file extension.

Otherwise you run the risk of losing / forgetting what they are! (You could also use .htmlincs or something as a file extension and get Apache to read it as a FileHandler).

2 - Ideally, place include files (esp php ones, like DBConnect) outside of the webroot, so in your html, you have to reference the include as
Code:
include("/outside/webroot/path/to/file/include.php");
This means people can't access them by typing http://www.blah.com/include.php
Jeremy is offline   Reply With Quote Send a private message to Jeremy
Old 11-29-2006, 08:50 AM   #28 (permalink)
REßEL
She cries MORE MORE MORE!
 
REßEL's Avatar
 
Join Date: Feb 2004
Location: Apparently I'm a bitch a cunt a fuckhead and a troll. I'm also RIGHT!
Posts: 9,178
Points: 14,531
Send a message via ICQ to REßEL
Quote:
Originally Posted by Jeremy
Really good tute :-)

Can I make a couple of suggestions?

1 - Put your include files in a special include directory. I use things like /incs/global/, /incs/ads/ etc etc, especially if you use a .html file extension.

Otherwise you run the risk of losing / forgetting what they are! (You could also use .htmlincs or something as a file extension and get Apache to read it as a FileHandler).

2 - Ideally, place include files (esp php ones, like DBConnect) outside of the webroot, so in your html, you have to reference the include as
Code:
include("/outside/webroot/path/to/file/include.php");
This means people can't access them by typing http://www.blah.com/include.php
Most definitely! It's always handy to be more organised with your file structure!

Once people using this tutorial feel comfortable using PHP includes in the most basic sense shown here, I hope they will look a little deeper into what else they can use PHP to do like randomising links etc as Absolute Porn shows, or collecting surfer mail addresses, or making a contact/feedback form so you don't have to publically display your email address. But all of those are outside of the scope of this most basic use of php includes tutorial, I didn't want to make people try to run before they could walk

Thanks Kamilla for the comment about no head and body tags etc. I realised last night that although I took blank document to mean totally blank I should have made it absolutely clear that it meant a totally empty document that should only contain the actual html/scripting you want included. If it contains head/body etc tags it will mean you end up with multiple tags on your page as they will all be included!
__________________
I work smarter not harder with the following awesome tools!
Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer
REßEL is offline   Reply With Quote Send a private message to REßEL
Old 11-29-2006, 09:08 AM   #29 (permalink)
REßEL
She cries MORE MORE MORE!
 
REßEL's Avatar
 
Join Date: Feb 2004
Location: Apparently I'm a bitch a cunt a fuckhead and a troll. I'm also RIGHT!
Posts: 9,178
Points: 14,531
Send a message via ICQ to REßEL
I also just thought to add for those not familiar with PHP.

PHP is handled "server side". The surfer never sees the php in the page, the surfer needs nothing enabled or installed to view the pages correctly. The server "reads" the page, handles all the PHP commands and outputs only the HTML results to the browser.

View any source code of a php file and you won't see any of the PHP itself.

Do you ever use Meta Refresh or J-ava-S-cript to redirect surfers to another page? STOP! Get in the habit of using a PHP redirect!
which looks like this..
&lt;?php header(&quot;Location: http://urlyouwanttoredirectto.com&quot; ?&gt;

Why PHP instead of Meta or J-s? Because both of those rely on the surfer settings! They must have Meta refresh or J-s enabled for the redirect to work! A PHP redirect is done server side and outputs the new url to the surfer whatever their settings are!

I use it to mask ref links and make it easier to swap out links if necessary.
In a blank file I paste &lt;?php header(&quot;Location: http://reflinktosponsor.com&quot; ?&gt;
and save it as sponsor-name.php
Then every place on the site that links to that sponsor site is linked to the sponsor-name.php rather than direct to sponsor. The surfer never sees the intermediate page, he goes straight to sponsor as usual.

What this allows is to change the sponsor link easily. Say you want to change it from rev-share to PPS or vice versa. The sponsor closes, or changes their linking structure, or you wanted to change Netpond Cash links to Cash Uncovered links you could change the link in the one php redirect file and all the links using it would redirect to the new URL.

Edited to add: For those that want to see a PHP redirect in action.. Click my Sig!
__________________
I work smarter not harder with the following awesome tools!
Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer
REßEL is offline   Reply With Quote Send a private message to REßEL
Old 11-29-2006, 12:00 PM   #30 (permalink)
Zac
Is Aga really Little Buddha?
 
Zac's Avatar
 
Join Date: Jan 2005
Location: WWW
Posts: 3,575
Points: 145
Send a message via ICQ to Zac
awsome tutorial REßEL
Zac is online now   Reply With Quote Send a private message to Zac
Old 11-29-2006, 04:09 PM   #31 (permalink)
hentaibee
MY wacom PENis bigger than yours !
 
hentaibee's Avatar
 
Join Date: Nov 2002
Location: Netherlands
Posts: 2,206
Points: 3,145
Send a message via ICQ to hentaibee Send a message via AIM to hentaibee Send a message via Yahoo to hentaibee
good stuff, include some tgp generator templates and phpads new and you get a supernice dynamic page.
__________________
-Hentaibee
Huge Tits and Boobs blog
hentaibee is online now   Reply With Quote Send a private message to hentaibee
Old 11-29-2006, 07:13 PM   #32 (permalink)
hardcoreblogger
bloggin' hardcore
 
hardcoreblogger's Avatar
 
Join Date: Jul 2006
Location: On The Cape
Posts: 3,650
Points: 730
Send a message via ICQ to hardcoreblogger
good tutorial, thanks! besides static pages i also use php includes on blogs for some common stuff that i insert in several ones...
hardcoreblogger is online now   Reply With Quote Send a private message to hardcoreblogger
Old 11-30-2006, 12:36 AM   #33 (permalink)
travs
philippine-news.us
 
travs's Avatar
 
Join Date: Feb 2006
Posts: 1,035
Points: 260
Send a message via ICQ to travs
this tute rawks. Rebel you got PM.
__________________

Custom TOONS and Designs
FilipinaCum Top Asian Sites
ICQ 342089310
travs is offline   Reply With Quote Send a private message to travs
Old 11-30-2006, 04:22 AM   #34 (permalink)
facialfreak
The Host with the Most!
 
facialfreak's Avatar
 
Join Date: May 2004
Location: A1WebSolutions.com
Posts: 8,853
Points: 356
Send a message via ICQ to facialfreak
RE: Work Smarter Not Harder.

Work Smarter Not Harder clever concept!

and ROCKIN tutorial!
facialfreak is offline   Reply With Quote Send a private message to facialfreak
Old 11-30-2006, 08:01 AM   #35 (permalink)
REßEL
She cries MORE MORE MORE!
 
REßEL's Avatar
 
Join Date: Feb 2004
Location: Apparently I'm a bitch a cunt a fuckhead and a troll. I'm also RIGHT!
Posts: 9,178
Points: 14,531
Send a message via ICQ to REßEL
Quote:
Originally Posted by travs
this tute rawks. Rebel you got PM.
And you have a reply
__________________
I work smarter not harder with the following awesome tools!
Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer
REßEL is offline   Reply With Quote Send a private message to REßEL
Old 01-06-2007, 07:00 AM   #36 (permalink)
ristac
______________________
 
ristac's Avatar
 
Join Date: Jan 2007
Posts: 2,969
Points: 16
Send a message via ICQ to ristac
Just found this thread and its been excellent advice, thank you Rebel
ristac is online now   Reply With Quote Send a private message to ristac
Old 04-27-2008, 08:29 AM   #37 (permalink)
PornBlogger
I see you baby.. shakin that Ass!
 
Join Date: Mar 2005
Location: Costa Rica
Posts: 964
Points: 210
Send a message via ICQ to PornBlogger
thanks for sharing the tutorial Rebel!

i have to keep in mind "work smarter, no harder!".. it's great to see all you these php enthusiasts as well.

tutorials so rock!
__________________
---------
- Reading can help your $$$ status
"Blessed are the coders, for they shall inherit the web..." - PornBlogger
PornBlogger is online now   Reply With Quote Send a private message to PornBlogger
Old 04-29-2008, 10:17 AM   #38 (permalink)
Gasta
Its not always sunny on sundays
 
Gasta's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 301
Points: 195
'Work Smarter Not Harder'
I will print it and stick it on my desktop ! That's the road to success
Gasta is online now   Reply With Quote Send a private message to Gasta