COZY Campus Adult Webmaster Forums

 
 
 


Go Back   COZY Campus Adult Webmaster Forums > Newbie Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2007, 10:12 AM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
PHP 404 Wordpress HELP?!

Anyone know how I would alter this 404 wordpress template code so it could send hits to a specific url with my affiliate code. Here's the template code (though I'm sure most of you wordpress people already know it by heart). Thanks

<?php get_header(); ?>
<?php get_sidebar(); ?>

<div class="narrowcolumn">

<?php include(TEMPLATEPATH . '/top-menu.php'); ?>

<!-- CONTENT -->

<div class="post">
<h2><?php _e('Not Found'); ?></h2>
<div class="entry"><?php _e('Sorry, but you are looking for something that isn't here.'); ?></div>
</div>

<!-- END CONTENT -->

</div>

<?php get_footer(); ?>

I'm looking for the spot to place the url/affiliate code so as not to jack up template and/or make sure the hits get where they are going.

Again, thanks
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #2  
Old 11-05-2007, 10:24 AM
odysseus's Avatar
odysseus odysseus is offline
Registered User
 
Join Date: Aug 2004
Location: Tucson, AZ
Posts: 975
Send a message via ICQ to odysseus
Hey Porn Punk, just put whatever html you want between the content and end content comments. If you keep the div's and the h2 tags, strip out the php that's between them, and put your html in that area, then you could put whatever message, link codes, etc in there that you want and it should maintain the look of a regular old blog post. Something like:

<!-- CONTENT -->

<div class="post">
<h2>Want some hot pussy?</h2>
<div class="entry">Sorry we couldn't find what you were looking for. Use the search or hit your back button to try again, or just click here for the best damn pussy you will ever find. link here, text, images, etc. Compelling text with call to action, yada yada yada.</div>
</div>

<!-- END CONTENT -->

Hope that is the answer you needed. How's things on your end?
Reply With Quote
  #3  
Old 11-05-2007, 10:36 AM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Quote:
Originally posted by odysseus
Hey Porn Punk, just put whatever html you want between the content and end content comments. If you keep the div's and the h2 tags, strip out the php that's between them, and put your html in that area, then you could put whatever message, link codes, etc in there that you want and it should maintain the look of a regular old blog post. Something like:

<!-- CONTENT -->

<div class="post">
<h2>Want some hot pussy?</h2>
<div class="entry">Sorry we couldn't find what you were looking for. Use the search or hit your back button to try again, or just click here for the best damn pussy you will ever find. link here, text, images, etc. Compelling text with call to action, yada yada yada.</div>
</div>

<!-- END CONTENT -->

Hope that is the answer you needed. How's things on your end?
Thanks Odysseus. Actually I'm looking to get a page to pop up that will credit me for ppc whenever the directory (sub directory) 404's. Will this do that without the surfer having to click an actual link

Thanks
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #4  
Old 11-05-2007, 11:24 AM
odysseus's Avatar
odysseus odysseus is offline
Registered User
 
Join Date: Aug 2004
Location: Tucson, AZ
Posts: 975
Send a message via ICQ to odysseus
If I get what you are saying correctly, then you could probably copy the contents of header.php, and replace the <?php get_header() ?> call with that code. You should then be able to see your <body> and you could change it to something like

<body onLoad='window.open("URL YOU WANT TO OPEN","NameYourNewWindow","resize=no,sta tus=no")';>

That should make a popup window show when your 404 page template loads. This is easily blocked by pop up blockers, though, so I don't know how well it would work for you. Also, I'd double check to make sure it's with the TOS of whatever you are promoting to put their link in a console.

Let me know if this helps, or if I'm misunderstanding you at all.
Reply With Quote
  #5  
Old 11-05-2007, 11:34 AM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Quote:
Originally posted by odysseus
If I get what you are saying correctly, then you could probably copy the contents of header.php, and replace the <?php get_header() ?> call with that code. You should then be able to see your <body> and you could change it to something like

<body onLoad='window.open("URL YOU WANT TO OPEN","NameYourNewWindow","resize=no,sta tus=no")';>

That should make a popup window show when your 404 page template loads. This is easily blocked by pop up blockers, though, so I don't know how well it would work for you. Also, I'd double check to make sure it's with the TOS of whatever you are promoting to put their link in a console.

Let me know if this helps, or if I'm misunderstanding you at all.
Yes, you're understanding me, and I get your point.

What about altering the basic .htaccess that sits in the main directory of wordpress? Can that be altered just to 404 the entire blog to the page I need in the basic old fashioned way, or will you still be stuck in the template?

My concern is the hits not reaching the sponser if it doesn't move outside of the template window, and also (as you pointed out) the pop up problem this other way.

What code would I need and where would I place it to see if this can be done?

This is the basic code by the way I have in mine

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Thanks again
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #6  
Old 11-05-2007, 11:42 AM
odysseus's Avatar
odysseus odysseus is offline
Registered User
 
Join Date: Aug 2004
Location: Tucson, AZ
Posts: 975
Send a message via ICQ to odysseus
Well, I'm stuck there. Unfortunately I don't really know crap about .htaccess. Maybe your host would know?
Reply With Quote
  #7  
Old 11-05-2007, 11:53 AM
theviking's Avatar
theviking theviking is offline
Work smart, work hard!
 
Join Date: Feb 2006
Location: Asia
Posts: 1,984
ErrorDocument 401 http://whatever.com
ErrorDocument 403 http://whatever.com
ErrorDocument 404 http://whatever.com

Now, could you kindly tell me what ppc sponsor it is that accept 404 traffic?
Thx
__________________
Go Fuck Yourself!
Reply With Quote
  #8  
Old 11-05-2007, 12:18 PM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Quote:
Originally posted by theviking
ErrorDocument 401 http://whatever.com
ErrorDocument 403 http://whatever.com
ErrorDocument 404 http://whatever.com

Now, could you kindly tell me what ppc sponsor it is that accept 404 traffic?
Thx
Actually I tried that but it wouldn't work. I could be placing it wrong or could be my host though and their security thing.

I'll pm you the sponser, but pretty sure you don't like them.

Probably end up skipping this anyway. It was just something extra I was going to try
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #9  
Old 11-05-2007, 12:19 PM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Quote:
Originally posted by odysseus
Well, I'm stuck there. Unfortunately I don't really know crap about .htaccess. Maybe your host would know?
Thanks, Odysseus. I'm going to play with some of that other stuff you told me.
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #10  
Old 11-05-2007, 12:23 PM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Quote:
Originally posted by theviking
ErrorDocument 401 http://whatever.com
ErrorDocument 403 http://whatever.com
ErrorDocument 404 http://whatever.com

Now, could you kindly tell me what ppc sponsor it is that accept 404 traffic?
Thx
Maybe I'll just do this the way odysseus suggested with the link, though I don't expect many click throughs
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
  #11  
Old 11-05-2007, 01:26 PM
porn punk's Avatar
porn punk porn punk is online now
Registered User
 
Join Date: Feb 2006
Location: Babylon
Posts: 2,669
Send a message via ICQ to porn punk Send a message via AIM to porn punk
Thanks guys.

I'm probably just going to stick with what Odysseus said first and edit the 404 page and let it be a click through after Viking's last comment.

Wasn't really considering everything.

No big deal - just testing something out and this was a late late after thought

Thanks again, both of you
__________________
LINK EXCHANGE PAGE!
MY LINK EXCHANGE TRADE PAGE

ICQ 278-804-660
smutnut(AT)smutnut.org
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


All times are GMT -5. The time now is 06:34 PM.

Support our Cozy adult webmaster forum Sponsors:

Porn Reviews
Honest Porn Reviews
Stroke King Blue Design Studios
Blue Design Studios
  Adult Reviews
Adult Reviews

Pussy Cash FTVCash Etu-Cash Traffic Cash Gold GJ Servers
AdXpansion        

 

CozyFrog.com  |   CozyFlash.com  |   Friends & Links
© 2002-10 CozyCampus.com | Adult Forums for Webmasters! | 18+ ONLY!
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.