Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 27-02-06
charlton's Avatar
Registered User
 
Join Date: Jul 2004
Location: london
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
charlton is an unknown quantity at this point
  Smile PHP Help needed

I have just bought this "out of the box" site and I want to insert and adsense block in the middle, above the amazon results and below the two links. The site is http://www.wwwmp3players.net. The code in the index.php file is:

<?
chdir("script");
include("common.php");
ob_start();
if( $_GET['SearchIndex'] || $_GET['ItemId'] ){
$aws->SearchIndex = $_GET['SearchIndex'];
if( $_GET['Operation'] ){
if($_GET['Operation'] == "CustomerReviews"){
$myOperation = $_GET['Operation'];
$_GET['Operation'] = "ItemLookup";
$aws->ReviewPage = $_GET['ReviewPage'];
}
$aws->Operation = $_GET['Operation'];
}
if( $_GET['Sort'] ){
$aws->Sort = $_GET['Sort'];
}
if( $_GET['BrowseNode'] ){
$aws->BrowseNode = $_GET['BrowseNode'];
}
if( $_GET['ItemId'] ){
$aws->ItemId = $_GET['ItemId'];
}
if( $_GET['Title'] ){
$aws->Title = $_GET['Title'];
$search = 1;
}
if( $_GET['Actor'] ){
$aws->Actor = $_GET['Actor'];
$search = 1;
}
if( $_GET['Director'] ){
$aws->Director = $_GET['Director'];
$search = 1;
}
if( $_GET['Manufacturer'] ){
$aws->Manufacturer = $_GET['Manufacturer'];
$search = 1;
}
if( $_GET['Keywords'] ){
$aws->Keywords = urlencode($_GET['Keywords']);
$search = 1;
}
if( $_GET['ItemPage'] ){
$aws->ItemPage = $_GET['ItemPage'];
}else{
$aws->ItemPage = 1;
}
if(!$curPage)$curPage=1;
switch ($aws->Operation){
case 'ItemSearch':
case 'SimilarityLookup':
$aws->ResponseGroup = $aws->ResponseGroup_Products;
break;
case "CustomerReviews":
$aws->ResponseGroup = $aws->ResponseGroup_Reviews;
break;
case "Image":
$aws->ResponseGroup = $aws->ResponseGroup_Image;
break;
case "ItemLookup":
if($myOperation == "CustomerReviews"){
$aws->ResponseGroup = $aws->ResponseGroup_Reviews;
}else{
$aws->ResponseGroup = $aws->ResponseGroup_Item;
}
break;
default:
break;
}

if( $aws->BrowseNode || $aws->ItemId || $search ){
$aws->fetch();
switch ($aws->Operation){
case "ItemSearch":
include("browsepage.php");
break;
case "CustomerReviews":
$aws->Operation = "ItemLookup";
include("reviewpage.php");
break;
case "ItemLookup":
if($myOperation == "CustomerReviews"){
include("reviewpage.php");
}else{
include("productpage.php");
}
break;
default:
break;
}
}else{
// default page
include("catpage.php");
}
}else{
// default page
include("defaultpage.php");
}
$outputbuf = ob_get_contents();
ob_end_clean();

include("header.php");
echo $outputbuf;
include("footer.php");
?>

Could anybody help with the coding??

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-02-06
jasonflk's Avatar
Registered User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
jasonflk is an unknown quantity at this point
Not knowing everything and a bit iffy at PHP at the moment, I think the best place to look at is defaultpage.php and enter the code in there.
__________________
No matter how good I am. I',m still going to Die.
falklands.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-03-06
charlton's Avatar
Registered User
 
Join Date: Jul 2004
Location: london
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
charlton is an unknown quantity at this point
jasonflk

Many thanks, I'll give that a try!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal PHP Processing Error (#99911) Donk Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 20-02-06 05:50 PM
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
PHP - No input file specified. - Problem Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 02-08-04 10:57 AM
PHP or Browser Timeout? Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 6 28-04-04 01:04 PM
PHP help needed on duplicate categories holmes Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 6 12-03-04 10:24 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7