You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Advertising set to Clicks Instead of Impressions? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Wed Mar 29, 2006 5:15 pm Reply with quoteBack to top

I need some assistance in setting up the banners.php file to use clicks instead of impressions, as most ad campaigns are run by the click ad purchase anyway and it would make more sense..to the client

this is the banners.php file in the admin/modules folder

How would I change it too use clicks instead of impressions purchased ..

Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/************************************************************************/
/*         Additional security & Abstraction layer conversion           */
/*                           2003 chatserv                              */
/*      http://www.nukefixes.com -- http://www.nukeresources.com        */
/************************************************************************/

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {

/*********************************************************/
/* Banners Administration Functions                      */
/*********************************************************/

function BannersAdmin() {
    global $prefix, $db, $bgcolor2, $banners;
    include ("header.php");
    GraphicAdmin();
    OpenTable();
    echo "<center><font class=\"title\"><b>" . _BANNERSADMIN . "</b></font></center>";
    CloseTable();
    echo "<br>";
/* Banners List */
    echo "<a name=\"top\">";
    OpenTable();
    echo "<center><font class=\"option\"><b>" . _ACTIVEBANNERS . "</b></font></center><br>"
   ."<table width=100% border=0><tr>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLIENTNAME . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _IMPRESSIONS . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _IMPLEFT . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLICKS . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLICKSPERCENT . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _TYPE . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _STATUS . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _FUNCTIONS . "</b></td><tr>";
    $result = $db->sql_query("SELECT bid, cid, imptotal, impmade, clicks, imageurl, date, type, active from " . $prefix . "_banner order by bid");
    while ($row = $db->sql_fetchrow($result)) {
   $bid = intval($row['bid']);
   $cid = intval($row['cid']);
   $imptotal = intval($row['imptotal']);
   $impmade = intval($row['impmade']);
   $clicks = intval($row['clicks']);
   $imageurl = $row['imageurl'];
   $date = $row['date'];
   $type = $row['type'];
   $active = intval($row['active']);
        $row2 = $db->sql_fetchrow($db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient where cid='$cid'"));
        $cid = intval($row2['cid']);
        $name = trim($row2['name']);
   if($impmade==0) {
       $percent = 0;
   } else {
       $percent = substr(100 * $clicks / $impmade, 0, 5);
   }
   if($imptotal==0) {
       $left = _UNLIMITED;
   } else {
       $left = $imptotal-$impmade;
   }
   if ($type == 0) {
       $type = _NORMAL;
   } else {
       $type = _BLOCK;
   }
   if ($active == 1) {
       $t_active = _ACTIVE;
       $c_active = _DEACTIVATE;
   } else {
       $t_active = "<i>" . _INACTIVE . "</i>";
       $c_active = _ACTIVATE;
   }
   echo "<td bgcolor=\"$bgcolor2\" align=center><a href=\"$imageurl\" target=\"new\">$name</a></td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$impmade</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$left</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$clicks</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$percent%</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$type</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>$t_active</td>"
       ."<td bgcolor=\"$bgcolor2\" align=center>[ <a href=\"admin.php?op=BannerEdit&amp;bid=$bid\">" . _EDIT . "</a> | <a href=\"admin.php?op=BannerStatus&amp;bid=$bid&status=$active\">$c_active</a> | <a href=\"admin.php?op=BannerDelete&amp;bid=$bid&amp;ok=0\">" . _DELETE . "</a> ]</td><tr>";
    }
    echo "</td></tr></table>";
    CloseTable();
    echo "<br>";
/* Clients List */
    OpenTable();
    echo "<center><font class=\"option\"><b>" . _ADVERTISINGCLIENTS . "</b></font></center><br>"
   ."<table width=\"100%\" border=\"0\"><tr>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLIENTNAME . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _ACTIVEBANNERS2 . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _INACTIVEBANNERS . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CONTACTNAME . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CONTACTEMAIL . "</b></td>"
   ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _FUNCTIONS . "</b></td><tr>";
    $result3 = $db->sql_query("SELECT cid, name, contact, email from " . $prefix . "_bannerclient order by cid");
    while ($row3 = $db->sql_fetchrow($result3)) {
    $cid = intval($row3['cid']);
    $name = $row3['name'];
    $contact = $row3['contact'];
    $email = $row3['email'];
        $result4 = $db->sql_query("SELECT cid from " . $prefix . "_banner WHERE cid='$cid' AND active='1'");
        $numrows = $db->sql_numrows($result4);
        $row4 = $db->sql_fetchrow($result4);
        $rcid = intval($row4['cid']);
        $numrows2 = $db->sql_numrows($db->sql_query("SELECT cid from " . $prefix . "_banner WHERE cid='$cid' AND active='0'"));
   echo "<td bgcolor=\"$bgcolor2\" align=\"center\">$name</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$numrows</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$numrows2</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$contact</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><a href=\"mailto:$email\">$email</a></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><a href=\"admin.php?op=BannerClientEdit&amp;cid=$cid\">" . _EDIT . "</a> | <a href=\"admin.php?op=BannerClientDelete&amp;cid=$cid\">" . _DELETE . "</a></td><tr>";
    }
    echo "</td></tr></table>";
    CloseTable();
    echo "<br>";
/* Add Banner */
    $result5 = $db->sql_query("select * from ".$prefix."_bannerclient");
    $numrows3 = $db->sql_numrows($result5);
    if($numrows3>0) {
   OpenTable();
   echo "<font class=\"option\"><b>" . _ADDNEWBANNER . "</b></font></center><br><br>"
       ."<form action=\"admin.php?op=BannersAdd\" method=\"post\">"
       ."" . _CLIENTNAME . ": "
       ."<select name=\"cid\">";
    $result6 = $db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient");
    while ($row6 = $db->sql_fetchrow($result6)) {
   $cid = intval($row6['cid']);
   $name = $row6['name'];
       echo "<option value=\"$cid\">$name</option>";
   }
   echo "</select><br><br>"
           ."" . _PURCHASEDIMPRESSIONS . ": <input type=\"text\" name=\"imptotal\" size=\"12\" maxlength=\"11\"> 0 = " . _UNLIMITED . "<br><br>"
       ."" . _IMAGEURL . ": <input type=\"text\" name=\"imageurl\" size=\"50\" maxlength=\"100\"><br><br>"
       ."" . _CLICKURL . ": <input type=\"text\" name=\"clickurl\" size=\"50\" maxlength=\"200\"><br><br>"
       ."" . _ALTTEXT . ": <input type=\"text\" name=\"alttext\" size=\"50\" maxlength=\"255\"><br><br>"
       ."" . _TYPE . ": <select name=\"type\">"
       ."<option name=\"type\" value=\"0\">" . _NORMAL . "</option>"
       ."<option name=\"type\" value=\"1\">" . _BLOCK . "</option>"
       ."</select><br><br>"
       ."" . _ACTIVATE . ": <input type=\"radio\" name=\"active\" value=\"1\">" . _YES . "&nbsp;&nbsp;<input type=\"radio\" name=\"active\" value=\"0\">" . _NO . "<br><br>"
       ."<input type=\"hidden\" name=\"op\" value=\"BannersAdd\">"
       ."<input type=\"submit\" value=\"" . _ADDBANNER . "\">"
       ."</form>";
   CloseTable();
   echo "<br>";
    }
/* Add Client */
    OpenTable();
    echo"<font class=\"option\"><b>" . _ADDCLIENT . "</b></center><br><br>
   <form action=\"admin.php?op=BannerAddClient\" method=\"post\">
   " . _CLIENTNAME . ": <input type=\"text\" name=\"name\" size=\"30\" maxlength=\"60\"><br><br>
   " . _CONTACTNAME . ": <input type=\"text\" name=\"contact\" size=\"30\" maxlength=\"60\"><br><br>
   " . _CONTACTEMAIL . ": <input type=\"text\" name=\"email\" size=\"30\" maxlength=\"60\"><br><br>
   " . _CLIENTLOGIN . ": <input type=\"text\" name=\"login\" size=\"12\" maxlength=\"10\"><br><br>
   " . _CLIENTPASSWD . ": <input type=\"text\" name=\"passwd\" size=\"12\" maxlength=\"10\"><br><br>
   " . _EXTRAINFO . ":<br><textarea name=\"extrainfo\" cols=\"60\" rows=\"10\"></textarea><br><br>
   <input type=\"hidden\" name=\"op\" value=\"BannerAddClient\">
   <input type=\"submit\" value=\"" . _ADDCLIENT2 . "\">
   </form>";
    CloseTable();
    include ("footer.php");
}

function BannerStatus($bid, $status) {
    global $prefix, $db;
    if ($status == 1) {
   $active = 0;
    } else {
   $active = 1;
    }
    $bid = intval($bid);
    $db->sql_query("update " . $prefix . "_banner set active='$active' WHERE bid='$bid'");
    Header("Location: admin.php?op=BannersAdmin");
}

function BannersAdd($name, $cid, $imptotal, $imageurl, $clickurl, $alttext, $type, $active) {
    global $prefix, $db;
    $alttext = ereg_replace("\"", "", $alttext);
    $alttext = ereg_replace("'", "", $alttext);
    $cid = intval($cid);
    $imptotal = intval($imptotal);
    $active = intval($active);
    $db->sql_query("insert into " . $prefix . "_banner values (NULL, '$cid', '$imptotal', '1', '0', '$imageurl', '$clickurl', '$alttext', now(), '00-00-0000 00:00:00', '$type', '$active')");
    Header("Location: admin.php?op=BannersAdmin#top");
}

function BannerAddClient($name, $contact, $email, $login, $passwd, $extrainfo) {
    global $prefix, $db;
    $db->sql_query("insert into " . $prefix . "_bannerclient values (NULL, '$name', '$contact', '$email', '$login', '$passwd', '$extrainfo')");
    Header("Location: admin.php?op=BannersAdmin#top");
}

function BannerDelete($bid, $ok=0) {
    global $prefix, $db;
    $bid = intval($bid);
    if ($ok==1) {
        $db->sql_query("delete from " . $prefix . "_banner where bid='$bid'");
   Header("Location: admin.php?op=BannersAdmin#top");
    } else {
        include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _BANNERSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
   $row = $db->sql_fetchrow($db->sql_query("SELECT cid, imptotal, impmade, clicks, imageurl, clickurl from " . $prefix . "_banner where bid='$bid'"));
   $cid = intval($row['cid']);
   $imptotal = intval($row['imptotal']);
   $impmade = intval($row['impmade']);
   $clicks = intval($row['clicks']);
   $imageurl = $row['imageurl'];
   $clickurl = $row['clickurl'];
   OpenTable();
   echo "<center><b>" . _DELETEBANNER . "</b><br><br>"
       ."<a href=\"$clickurl\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a><br>"
       ."<a href=\"$clickurl\">$clickurl</a><br><br>"
       ."<table width=\"100%\" border=\"0\"><tr>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _ID . "<b></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _IMPRESSIONS . "<b></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _IMPLEFT . "<b></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLICKS . "<b></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLICKSPERCENT . "<b></td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>" . _CLIENTNAME . "<b></td><tr>";
   $row2 = $db->sql_fetchrow($db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient where cid='$cid'"));
   $cid = intval($row2['cid']);
   $name = $row2['name'];
   $percent = substr(100 * $clicks / $impmade, 0, 5);
   if($imptotal==0) {
       $left = _UNLIMITED;
   } else {
       $left = $imptotal-$impmade;
   }
   echo "<td bgcolor=\"$bgcolor2\" align=\"center\">$bid</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$impmade</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$left</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$clicks</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$percent%</td>"
       ."<td bgcolor=\"$bgcolor2\" align=\"center\">$name</td><tr>";
    }
    echo "</td></tr></table><br>"
   ."" . _SURETODELBANNER . "<br><br>"
   ."[ <a href=\"admin.php?op=BannersAdmin#top\">" . _NO . "</a> | <a href=\"admin.php?op=BannerDelete&amp;bid=$bid&amp;ok=1\">" . _YES . "</a> ]</center><br><br>";
    CloseTable();
    include("footer.php");
}

function BannerEdit($bid) {
    global $prefix, $db;
    include("header.php");
    GraphicAdmin();
    OpenTable();
    echo "<center><font class=\"title\"><b>" . _BANNERSADMIN . "</b></font></center>";
    CloseTable();
    echo "<br>";
   $bid = intval($bid);
   $row = $db->sql_fetchrow($db->sql_query("SELECT cid, imptotal, impmade, clicks, imageurl, clickurl, alttext, type, active from " . $prefix . "_banner where bid='$bid'"));
   $cid = intval($row['cid']);
   $imptotal = intval($row['imptotal']);
   $impmade = intval($row['impmade']);
   $clicks = intval($row['clicks']);
   $imageurl = $row['imageurl'];
   $clickurl = $row['clickurl'];
   $alttext = $row['alttext'];
   $type = $row['type'];
   $active = intval($row['active']);
    OpenTable();
    echo"<center><b>" . _EDITBANNER . "</b><br><br>"
   ."<img src=\"$imageurl\" border=\"1\" alt=\"\"></center><br><br>"
   ."<form action=\"admin.php?op=BannerChange\" method=\"post\">"
   ."" . _CLIENTNAME . ": "
   ."<select name=\"cid\">";
   $row2 = $db->sql_fetchrow($db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient where cid='$cid'"));
   $cid = intval($row2['cid']);
   $name = $row2['name'];
    echo "<option value=\"$cid\" selected>$name</option>";
   $result3 = $db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient");
   while ($row3 = $db->sql_fetchrow($result3)) {
   $ccid = intval($row3['cid']);
   $name = $row3['name'];
   if($cid!=$ccid) {
       echo "<option value=\"$ccid\">$name</option>";
   }
    }
    echo "</select><br><br>";
    if($imptotal==0) {
        $impressions = _UNLIMITED;
    } else {
        $impressions = $imptotal;
    }
    if ($type == 0) {
   $sel1 = "selected";
   $sel2 = "";
    } else {
   $sel1 = "";
   $sel2 = "selected";
    }
    if ($active == 1) {
   $check1 = "checked";
   $check2 = "";
    } else {
   $check1 = "";
   $check2 = "checked";
    }
    echo "" . _ADDIMPRESSIONS . ": <input type=\"text\" name=\"impadded\" size=\"12\" maxlength=\"11\"> " . _PURCHASED . ": <b>$impressions</b> " . _MADE . ": <b>$impmade</b><br><br>"
   ."" . _IMAGEURL . ": <input type=\"text\" name=\"imageurl\" size=\"50\" maxlength=\"100\" value=\"$imageurl\"><br><br>"
   ."" . _CLICKURL . ": <input type=\"text\" name=\"clickurl\" size=\"50\" maxlength=\"200\" value=\"$clickurl\"><br><br>"
   ."" . _ALTTEXT . ": <input type=\"text\" name=\"alttext\" size=\"50\" maxlength=\"255\" value=\"$alttext\"><br><br>"
   ."" . _TYPE . ": <select name=\"type\">"
   ."<option name=\"type\" value=\"0\" $sel1>" . _NORMAL . "</option>"
   ."<option name=\"type\" value=\"1\" $sel2>" . _BLOCK . "</option>"
   ."</select><br><br>"
   ."" . _ACTIVATE . ": <input type=\"radio\" name=\"active\" value=\"1\" $check1>" . _YES . "&nbsp;&nbsp;<input type=\"radio\" name=\"active\" value=\"0\" $check2>" . _NO . "<br><br>"
   ."<input type=\"hidden\" name=\"bid\" value=\"$bid\">"
   ."<input type=\"hidden\" name=\"imptotal\" value=\"$imptotal\">"
   ."<input type=\"hidden\" name=\"op\" value=\"BannerChange\">"
   ."<input type=\"submit\" value=\"" . _SAVECHANGES . "\">"
   ."</form>";
    CloseTable();
    include("footer.php");
}

function BannerChange($bid, $cid, $imptotal, $impadded, $imageurl, $clickurl, $alttext, $type, $active) {
    global $prefix, $db;
    $imp = $imptotal+$impadded;
    $alttext = ereg_replace("\"", "", $alttext);
    $alttext = ereg_replace("'", "", $alttext);
    $cid = intval($cid);
    $imp = intval($imp);
    $active = intval($active);
    $bid = intval($bid);
    $db->sql_query("update " . $prefix . "_banner set cid='$cid', imptotal='$imp', imageurl='$imageurl', clickurl='$clickurl', alttext='$alttext', type='$type', active='$active' where bid='$bid'");
    Header("Location: admin.php?op=BannersAdmin#top");
}

function BannerClientDelete($cid, $ok=0) {
    global $prefix, $db;
    $cid = intval($cid);
    if ($ok==1) {
   $db->sql_query("delete from " . $prefix . "_banner where cid='$cid'");
   $db->sql_query("delete from " . $prefix . "_bannerclient where cid='$cid'");
   Header("Location: admin.php?op=BannersAdmin#top");
    } else {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _BANNERSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
   $row = $db->sql_fetchrow($db->sql_query("SELECT cid, name from " . $prefix . "_bannerclient where cid='$cid'"));
   $cid = intval($row['cid']);
   $name = $row['name'];
   OpenTable();
   echo "<center><b>" . _DELETECLIENT . ": $name</b><br><br>
       " . _SURETODELCLIENT . "<br><br>";
   $result2 = $db->sql_query("SELECT imageurl, clickurl from " . $prefix . "_banner where cid='$cid'");
   $numrows = $db->sql_numrows($result2);
   if($numrows==0) {
       echo "" . _CLIENTWITHOUTBANNERS . "<br><br>";
   } else {
       echo "<b>" . _WARNING . "!!!</b><br>
      " . _DELCLIENTHASBANNERS . ":<br><br>";
   }
   while ($row2 = $db->sql_fetchrow($result2)) {
   $imageurl = $row2['imageurl'];
   $clickurl = $row2['clickurl'];
       echo "<a href=\"$clickurl\"><img src=\"$imageurl\" border=\"1\" alt=\"\"></a><br>
      <a href=\"$clickurl\">$clickurl</a><br><br>";
   }
    }
    echo "" . _SURETODELCLIENT . "<br><br>
   [ <a href=\"admin.php?op=BannersAdmin#top\">" . _NO . "</a> | <a href=\"admin.php?op=BannerClientDelete&amp;cid=$cid&amp;ok=1\">" . _YES . "</a> ]</center><br><br></center>";
    CloseTable();
    include("footer.php");
}

function BannerClientEdit($cid) {
    global $prefix, $db;
    include("header.php");
    GraphicAdmin();
    OpenTable();
    echo "<center><font class=\"title\"><b>" . _BANNERSADMIN . "</b></font></center>";
    CloseTable();
    echo "<br>";
    $cid = intval($cid);
    $row = $db->sql_fetchrow($db->sql_query("SELECT name, contact, email, login, passwd, extrainfo from " . $prefix . "_bannerclient where cid='$cid'"));
    $name = $row['name'];
    $contact = $row['contact'];
    $email = $row['email'];
    $login = $row['login'];
    $passwd = $row['passwd'];
    $extrainfo = $row['extrainfo'];
    OpenTable();
    echo "<center><font class=\"option\"><b>" . _EDITCLIENT . "</b></font></center><br><br>"
   ."<form action=\"admin.php?op=BannerClientChange\" method=\"post\">"
   ."" . _CLIENTNAME . ": <input type=\"text\" name=\"name\" value=\"$name\" size=\"30\" maxlength=\"60\"><br><br>"
   ."" . _CONTACTNAME . ": <input type=\"text\" name=\"contact\" value=\"$contact\" size=\"30\" maxlength=\"60\"><br><br>"
   ."" . _CONTACTEMAIL . ": <input type=\"text\" name=\"email\" size=30 maxlength=\"60\" value=\"$email\"><br><br>"
   ."" . _CLIENTLOGIN . ": <input type=\"text\" name=\"login\" size=12 maxlength=\"10\" value=\"$login\"><br><br>"
   ."" . _CLIENTPASSWD . ": <input type=\"text\" name=\"passwd\" size=12 maxlength=\"10\" value=\"$passwd\"><br><br>"
   ."" . _EXTRAINFO . "<br><textarea name=\"extrainfo\" cols=\"60\" rows=\"10\">$extrainfo</textarea><br><br>"
   ."<input type=\"hidden\" name=\"cid\" value=\"$cid\">"
   ."<input type=\"hidden\" name=\"op\" value=\"BannerClientChange\">"
   ."<input type=\"submit\" value=\"" . _SAVECHANGES . "\">"
   ."</form>";
    CloseTable();
    include("footer.php");
}

function BannerClientChange($cid, $name, $contact, $email, $extrainfo, $login, $passwd) {
    global $prefix, $db;
    $cid = intval($cid);
    $db->sql_query("update ".$prefix."_bannerclient set name='$name', contact='$contact', email='$email', login='$login', passwd='$passwd', extrainfo='$extrainfo' where cid='$cid'");
    Header("Location: admin.php?op=BannersAdmin#top");
}

switch($op) {

    case "BannersAdmin":
    BannersAdmin();
    break;

    case "BannersAdd":
    BannersAdd($name, $cid, $imptotal, $imageurl, $clickurl, $alttext, $type, $active);
    break;

    case "BannerAddClient":
    BannerAddClient($name, $contact, $email, $login, $passwd, $extrainfo);
    break;

    case "BannerDelete":
    BannerDelete($bid, $ok);
    break;

    case "BannerEdit":
    BannerEdit($bid);
    break;
      
    case "BannerChange":
    BannerChange($bid, $cid, $imptotal, $impadded, $imageurl, $clickurl, $alttext, $type, $active);
    break;

    case "BannerClientDelete":
    BannerClientDelete($cid, $ok);
    break;

    case "BannerClientEdit":
    BannerClientEdit($cid);
    break;

    case "BannerClientChange":
    BannerClientChange($cid, $name, $contact, $email, $extrainfo, $login, $passwd);
    break;

    case "BannerStatus":
    BannerStatus($bid, $status);
    break;

}

} else {
    echo "Access Denied";
}

?>


How would I change it too use clicks instead of impressions purchased ..any and all help would be appreciated..

xtrax
Find all posts by XtraXView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Thu Mar 30, 2006 3:19 am Reply with quoteBack to top

Can any one help, *bump*

xtrax, Sad
Find all posts by XtraXView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Mar 30, 2006 12:47 pm Reply with quoteBack to top

Probably in banners.php, you would want to subtract from the count whenever a ad is clicked rather than it is viewed. That should be the basic change and the rest is just changing the 'impression' text to the clicks text

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Thu Mar 30, 2006 2:38 pm Reply with quoteBack to top

Hey Evader,

Hope all is going well with the upgrades and thanks for getting back to me, I changed the language-english.php to clicks already and what do I need to change in the banners.php file to accomoplish it to clicks..

I posted my banners.php file above I'm using 7.3 with chatserv's patch..

I just dont know what to change in the file -- could you please be so kind to assist me...

And is there more then one spot that needs to be changed to accomplish this?

xtrax
Find all posts by XtraXView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Sat Apr 01, 2006 12:33 pm Reply with quoteBack to top

Can anyone help, and show me what I need to change??? to accomplish changing it from impressions to clicks..?
Find all posts by XtraXView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Sun Apr 02, 2006 7:37 am Reply with quoteBack to top

ok i tryed 3 times and both times it screwed up, first a parser error second time it still counts the impressions instead of the clicks,

Evader - what is it I need to modify in the above code and too what..to achieve this.

xtrax
Find all posts by XtraXView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sun Apr 02, 2006 11:45 am Reply with quoteBack to top

It's not that banners.php - its the one in your Nuke root that sets when the impressions are being counted

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Sun Apr 02, 2006 4:47 pm Reply with quoteBack to top

Oh please Evader put me out of my misery!

OK what needs to be changed in banners.php in the < root > of my directory to accomplish this I been days trying to figure this outttttttt..

Oh please please please!!!


xtrax
Find all posts by XtraXView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Mon Apr 03, 2006 7:34 am Reply with quoteBack to top

Bump*
Find all posts by XtraXView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Mon Apr 03, 2006 3:44 pm Reply with quoteBack to top

surely somone must be able to help...
Find all posts by XtraXView user's profileSend private message
perfect-games
Site Admin
Site Admin


Joined: Jun 18, 2004
Posts: 210


PostPosted: Mon Apr 03, 2006 5:48 pm Reply with quoteBack to top

its not going to be a simple code edit i can do it but i would have to charge you to do it and i sure evader99 would as well as we dont have the time we like.

just pm me if your intrested

thanks

steve
Find all posts by perfect-gamesView user's profileSend private messageSend e-mail
scott2500uk
Private
Private


Joined: Oct 08, 2005
Posts: 43

Location: York UK

PostPosted: Mon Apr 03, 2006 11:33 pm Reply with quoteBack to top

if u pop over to http://www.steezmatic-designs.com we have actually got a banner ads sytem in the pipline for making. This will use both impressions and clicks and plus an affilate system. It Will also come with built in paypal payment system to. We are busy with other projects atm and wont be started on till back end of this year. If you want to help speed it up then please leave us surgestions on our forums
Find all posts by scott2500ukView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Tue Apr 04, 2006 3:39 pm Reply with quoteBack to top

Thanks I'll be sure to do that scott2500uk, however I tryed to access your site earlier and it was down..

I got page cant be found!

I'll definetly try again later, as I see this is a requested feature by other nukers..!

xtrax
Find all posts by XtraXView user's profileSend private message
gettopreacherman
Lieutenant
Lieutenant


Joined: Jan 13, 2005
Posts: 262


PostPosted: Mon Apr 10, 2006 5:02 am Reply with quoteBack to top

Just a thought, but leave the impressions alone and create a "redirect" system.

create a db with the ad id and click and clickthrough URL,

when the ad is created then it will click through, but firt it has to go through your system, store the click and then direct it to your site.

not too difficult, but easier to integrate and you're not jacking with core files if you dont' feel too comfortable (well maybe a little as you would have to make all ads point to your redirect module before clicking through)
Find all posts by gettopreachermanView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Tue Jun 20, 2006 6:48 pm Reply with quoteBack to top

Sorry i didnt have internet access for awhile..and just remembered this post lmao..

I am willing to pay for this feature to switch the advertising mod to clicks instead of impressions....

mind you we also need the client section also done to reflect the changes from impressions to clicks ..

I need a quote of how much and a time frame of completition and we would need to see and test the module to ensure all is working..

Anyone intrested please reply to this post..or send me a pm..

xtrax Very Happy
Find all posts by XtraXView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the