Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum - UKWW > General > General Webmaster Talk
Register FAQ Members List Downloads Calendar Today's Posts Webmaster Resources Webmaster Blogs
 
 

General Webmaster Talk General webmaster discussion forums - In this forum and its sub forums you can discuss general webmaster related issues or even issues that does not related to Webmastering.
Sub Forums: Running a forum :: Blogs and Blogging :: Word Press Forums :: Digital Photography

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2008, 10:44 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Question Help with a script

Hello everyone , I would like to ask you if someone could help me with my script on wptemplates org , because I need to put a banner there, there is a custom admin area but I dont know in which php file should I put banner code.
Also I need there make some changes...

Has anyone some experiences with that script?

Thanks, You would help me a lot with that.
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 10:55 AM
Bagi Zoltán's Avatar
Boss Cart consultant
1142 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 11
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,594
Thanks: 4
Thanked 30 Times in 13 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

I think that you need the html code of the banner into the header.php file if it exists. You need to examine the template of your script as first.
__________________
Time may come when you will need a shopping cart
digitális mérleg keresőoptimalizálás
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 10:57 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

yes that file I have, but how can I examine that template only, I am a starter to this, the guy that have sold me that script has intalled it and now he is not responding
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 11:00 AM
Bagi Zoltán's Avatar
Boss Cart consultant
1142 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 11
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,594
Thanks: 4
Thanked 30 Times in 13 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

Could you give us a draft (attached image) where you would like to have the banner placed? We need to see the content of the header file as well in order to help to insert the code of the banner into it.
__________________
Time may come when you will need a shopping cart
digitális mérleg keresőoptimalizálás
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 11:03 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

Banner should be instead of that adsense in header, but I want now only to sell place for some webmaster related banner because I have the site less than month and have around 500 uniques a day, adsense dont work a lot on webmaster site....
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 02-06-2008, 11:16 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

So maybe could you give me your contact? anything but email is the best...

Thanks
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 02-06-2008, 11:17 AM
Bagi Zoltán's Avatar
Boss Cart consultant
1142 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 11
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,594
Thanks: 4
Thanked 30 Times in 13 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

The current content of the div called aside is this
Code:
<div class="adside">
			<center><script type="text/javascript"><!--
google_ad_client = "pub-8687670915669553";
google_alternate_color = "FFFFFF";
google_ad_width = 120;
google_ad_height = 90;
google_ad_format = "120x90_0ads_al_s";

google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>		</div>
change this with the following code
Quote:
<div class="adside">
<center><a href="http://linkedpage.com" target="_blank"><img src="pathoftheuploadedbanner/banner.jpg"/></a></center> </div>
__________________
Time may come when you will need a shopping cart
digitális mérleg keresőoptimalizálás
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 02-06-2008, 11:30 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

I think this I could handle, for example to wordpress db, but to this completely different script I cant do it, because I cant find the file with adsense code, this code can be changed in my admin panel...

here is the ad header :


<?PHP
//* MyWebMakers Wp-Themes V 1.0 Admin Panel*//
//* Copyright 2007 Agares Media. All rights reserved. *//
//* Developed By Grishma for MyWebMakers.Info *//

require_once("../includes/corefunctions.php"); // Load the AMCMS3 functions
require_once("../includes/db.php"); // Get the database configuration settings & connect to DB.
require_once("../includes/config.php"); // Load the admin's preferences
require_once("./adminfunctions.php"); // Load the AMCMS3 admin functions

$reg_user = am_getadminuser($db);
$reg_pass = am_getadminpass($db);
$ipaddress = getenv("REMOTE_ADDR");

if (isset($_COOKIE['AMCMS31admin'])) {
if ($_COOKIE['AMCMS31admin'] == $reg_pass) {
$addata = am_queries($db, 'SELECT * FROM AMCMS_pref WHERE prefkey=5;');
if ($addata[0][3] == 'google_ad_type = "text_image";') {$typesel='(SELECTED) Text & Image';}
if ($addata[0][3] == 'google_ad_type = "text";') {$typesel='(SELECTED) Text Only';}
if ($addata[0][3] == 'google_ad_type = "image";') {$typesel='(SELECTED) Image Only';}
if (substr($addata[0][4], 12, 2) == 'al') {$typesel='(SELECTED) Link Unit';}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>

<script type="text/javascript" src="../includes/jquery.js"></script>
<script type="text/javascript" src="../includes/interface.js"></script>

<script type="text/javascript">
function setOptions(chosen) {
var selbox = document.headerad.adsize;

selbox.options.length = 0;
if (chosen == " ") {
selbox.options[selbox.options.length] = new Option('Please select one of the options above first',' ');
}
if (chosen == "preselected") {
selbox.options[selbox.options.length] = new Option('(SELECTED) <?PHP echo $addata[0][4];?>',' ');
}
if (chosen == "text_image") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Half Banner 234x60','234x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Vertical Banner 120x240','120x240_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Large Rectangle 336x280','336x280_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Small Rectangle 180x150','180x150_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Square 250x250','250x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Button 125x125','125x125_as');
}
if (chosen == "text") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Half Banner 234x60','234x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Vertical Banner 120x240','120x240_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Large Rectangle 336x280','336x280_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Small Rectangle 180x150','180x150_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Square 250x250','250x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Button 125x125','125x125_as');
}
if (chosen == "image") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
}
if (chosen == "linkunit") {
selbox.options[selbox.options.length] = new Option('120x90 - 5 Links','120x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('120x90 - 4 Links','120x90_0ads_al');
selbox.options[selbox.options.length] = new Option('160x90 - 5 Links','160x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('160x90 - 4 Links','160x90_0ads_al');
selbox.options[selbox.options.length] = new Option('180x90 - 5 Links','180x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('180x90 - 4 Links','180x90_0ads_al');
selbox.options[selbox.options.length] = new Option('200x90 - 5 Links','200x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('200x90 - 4 Links','200x90_0ads_al');
selbox.options[selbox.options.length] = new Option('468x15 - 5 Links','468x15_0ads_al_s');
selbox.options[selbox.options.length] = new Option('468x15 - 4 Links','468x15_0ads_al');
selbox.options[selbox.options.length] = new Option('728x15 - 5 Links','728x15_0ads_al_s');
selbox.options[selbox.options.length] = new Option('728x15 - 4 Links','728x15_0ads_al');
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="subwindow.css" /><link rel="stylesheet" type="text/css" href="colorpicker.css" />


<script type="text/javascript">
var baseColor = {r:255,g:0,b:0};
var currentColor = {r:255,g:255,b:255};
var lastValues = [0,0];
$(document).ready(
function()
{
$('#color').Slider(
{
accept : '#colorIndic',
onSlide : function( cordx, cordy,x, y)
{
lastValues = [parseInt(cordx * 255/100),parseInt(cordy * 255/100)];
setGradientColor();
},
onChange : function()
{
document.getElementById('oldColor').style.backgrou ndColor = 'rgb(' + currentColor.r + ',' + currentColor.g + ',' + currentColor.b + ')';
}
}
);
$('#hue').Slider(
{
accept : '#hueIndic',
onSlide : function( cordx, cordy,x, y)
{
setVertColor(parseInt(cordy * 255 / 100));
setGradientColor();
},
onChange : function()
{
document.getElementById('oldColor').style.backgrou ndColor = 'rgb(' + currentColor.r + ',' + currentColor.g + ',' + currentColor.b + ')';
}
}
);
}
);
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 02-06-2008, 11:31 AM
Junior Member
13 posts this year. the lights are on!
User is on their way up.
 
Join Date: Feb 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

Code:
function setVertColor(indic){
    var n=256/6, j=256/n, C=indic, c=C%n;

    baseColor = {
        r : parseInt(C<n?255:C<n*2?255-c*j:C<n*4?0:C<n*5?c*j:255),
        g : parseInt(C<n*2?0:C<n*3?c*j:C<n*5?255:255-c*j),
        b : parseInt(C<n?c*j:C<n*3?255:C<n*4?255-c*j:0)
    };
    document.getElementById('color').style.backgroundColor = 'rgb(' + baseColor.r + ',' + baseColor.g + ',' + baseColor.b + ')';
}

function setGradientColor(){
    var r = Math.round((1-(1-(baseColor.r/255))*(lastValues[0]/255))*(255-lastValues[1]));
    var g = Math.round((1-(1-(baseColor.g/255))*(lastValues[0]/255))*(255-lastValues[1]));
    var b = Math.round((1-(1-(baseColor.b/255))*(lastValues[0]/255))*(255-lastValues[1]));
    document.getElementById('colorCurrent').style.backgroundColor = 'rgb(' + r + ',' + g + ',' + b + ')';
    document.getElementById('rgbR').value = r;
    document.getElementById('rgbG').value = g;
    document.getElementById('rgbB').value = b;
    document.getElementById('hex').value = (toHex(r) + toHex(g) + toHex(b)).toUpperCase();
    currentColor = {r:r,g:g,b:b};
}

function toHex(color){
    color=parseInt(color).toString(16);
    return color.length<2?"0"+color:color;
}
</script>

</head><body>

<div id="colorPicker">
    <div id="color">
        <div id="colorIndic"></div>
    </div>
    <div id="hue">
        <div id="hueIndic"></div>
    </div>
    <div id="colorCurrent"><div id="oldColor"></div></div>

    <div id="colorValues">
        <table cellpadding="0" cellspacing="2">
            <tr>
                <td>R:</td><td><input type="text" size="2" id="rgbR" value="255" /></td>
            </tr>
            <tr>
                <td>G:</td><td><input type="text" size="2" id="rgbG" value="255" /></td>
            </tr>

            <tr>
                <td>B:</td><td><input type="text" size="2" id="rgbB" value="255" /></td>
            </tr>
            <tr>
                <td>#</td><td><input type="text" size="5" id="hex" value="FFFFFF" /></td>
            </tr>
        </table>
    </div>

</div>

<div style="position:relative;top:200px;">
    <form action="coreadmin.php" method="post" name="headerad">
    <input type="hidden" name="admintype" value="headerad">
    <table>
        <tr><td>Ad Type:</td><td><select name="adtype"  onchange="setOptions(document.headerad.adtype.options[document.headerad.adtype.selectedIndex].value);">
            <option value="preselected" selected="selected"><?PHP echo $typesel;?></option>
            <option value="text_image">Text & Image</option>
            <option value="text">Text Only</option>
            <option value="image">Image Only</option>
            <option value="linkunit">Link Unit</option>
        </select></td></tr>
        <tr><td>Ad Size:</td><td><select name="adsize" size="1">
            <option value=" " selected="selected">(SELECTED) <?PHP echo $addata[0][4];?></option>
        </select></td></tr>
        <tr><td>Ad Channel:</td><td><input type="text" size="10" name="ad_channel" value="<?PHP echo $addata[0][5] ;?>" /></td></tr>
        <tr><td> &nbsp; </td><td> &nbsp; </td></tr>
        <tr><td>Background Color:</td><td>#<input type="text" name="color_bg" size="8" value="<?PHP echo $addata[0][6] ;?>" onChange="document.getElementById('prevback').style.backgroundColor='#'+document.headerad.color_bg.value;document.getElementById('prevback2').style.backgroundColor='#'+document.headerad.color_bg.value" /></td></tr>
        <tr><td>Alternate Color:</td><td>#<input type="text" name="alternate_color" size="8" value="<?PHP echo $addata[0][7] ;?>" /></td></tr>
        <tr><td>Border Color:</td><td>#<input type="text" name="color_border" size="8" value="<?PHP echo $addata[0][8] ;?>" onChange="document.getElementById('prevtitle').style.backgroundColor='#'+document.headerad.color_border.value;document.getElementById('prevtitle').style.borderColor='#'+document.headerad.color_border.value;document.getElementById('prevback').style.borderColor='#'+document.headerad.color_border.value;document.getElementById('prevback2').style.borderColor='#'+document.headerad.color_border.value;" /></td></tr>
        <tr><td>Link Color:</td><td>#<input type="text" name="color_link" size="8" value="<?PHP echo $addata[0][9] ;?>" onChange="document.getElementById('prevadtitle').style.color='#'+document.headerad.color_link.value;document.getElementById('prevadtitle2').style.color='#'+document.headerad.color_link.value;" /></td></tr>
        <tr><td>Text Color:</td><td>#<input type="text" name="color_text" size="8" value="<?PHP echo $addata[0][10] ;?>" onChange="document.getElementById('prevdesc').style.color='#'+document.headerad.color_text.value;document.getElementById('prevdesc2').style.color='#'+document.headerad.color_text.value;" /></td></tr>
        <tr><td>URL Color:</td><td>#<input type="text" name="color_url" size="8" value="<?PHP echo $addata[0][11] ;?>" onChange="document.getElementById('prevwww').style.color='#'+document.headerad.color_url.value;document.getElementById('prevwww2').style.color='#'+document.headerad.color_url.value;" /></td></tr>
        <tr><td></td><td><input type="submit" value="Submit" /></td></tr>
    </table>
    </form>
</div>
<div style="position:relative;top:20px;left:250px;height:150px;width:200px;border:1px;font-size:11px;top:-20px;" name="prevwhole" id="prevwhole">
<div name="prevtitle" id="prevtitle" style="font-size:10px;border-color:#<?PHP echo $addata[0][8] ;?>;background-color:#<?PHP echo $addata[0][8] ;?>;"><u>Preview Ad</u></div>
<div name="prevback" id="prevback" style="background-color:#<?PHP echo $addata[0][6] ;?>;border: 1px solid #<?PHP echo $addata[0][8] ;?>;"><p />
<div name="prevadtitle" id="prevadtitle" style="color:#<?PHP echo $addata[0][9] ;?>;"><u><b>Sponsors Title Goes Here</b></u></div>
<div name="prevdesc" id="prevdesc" style="color:#<?PHP echo $addata[0][10] ;?>;">Here's the descriptive information used to get the reader to click on the ad.</div>
<div name="prevwww" id="prevwww" style="font-size:10px;color:#<?PHP echo $addata[0][11] ;?>;">www</div><p /></div>
<div name="prevback2" id="prevback2" style="background-color:#<?PHP echo $addata[0][6] ;?>;border: 1px solid #<?PHP echo $addata[0][8] ;?>;"><p />
<div name="prevadtitle2" id="prevadtitle2" style="color:#<?PHP echo $addata[0][9] ;?>;"><u><b>Sponsors Title Goes Here</b></u></div>
<div name="prevdesc2" id="prevdesc2" style="color:#<?PHP echo $addata[0][10] ;?>;">Here's the descriptive information used to get the reader to click on the ad.</div>
<div name="prevwww2" id="prevwww2" style="font-size:10px;color:#<?PHP echo $addata[0][11] ;?>;">www</div><p /></div>
</div>
        <?PHP
        exit;
   } else {
        echo "<p>This page requires authentication.  Please login.</p>";
        exit;
   }
}   
   
if (isset($_GET['p']) && $_GET['p'] == "login") {
   if ($_POST['name'] != $reg_user) {
      echo "<p>Sorry, that username does not match. Use your browser back button to go back and try again.</p>";
      exit;
   } else if ($reg_pass != sha1($_POST['pass'].$regsalt)) {
      echo "<p>Sorry, that password does not match. Use your browser back button to go back and try again.</p>";
      exit;
   } else if ($_POST['name'] == $reg_user && sha1($_POST['pass'].$regsalt) == $reg_pass) {
      setcookie('AMCMS31admin', $reg_pass);
      header("Location: $_SERVER[PHP_SELF]");
   } else {
      echo "<p>Sorry, you could not be logged in at this time. Refresh the page and try again.</p>";
   }
}
?>

This page is not directly accessable.
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 02-06-2008, 11:33 AM
Bagi Zoltán's Avatar
Boss Cart consultant
1142 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 11
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,594
Thanks: 4
Thanked 30 Times in 13 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default

If i were you i would download the whole script to my desktop and execute a search for a code snippet (adsense code) with total commander in the downloaded folder.
__________________
Time may come when you will need a shopping cart
digitális mérleg keresőoptimalizálás
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Webmaster Resources
UK WW SEO Tools
Find UK Hosts
 
The Forum Rules
Forum Rules - MUST READ
 
Site Of the Month
BizzFace
Nominate site of the month
 
Tag Cloud
affiliates ambitious asbestos cancer bid bidding directory bid directory bid for position business call center software cell phones clothes contest cricket writer dacx ameyo delisted designer discount drishti ecommerce electronics email list email marketing finance forum free web hosting free website hosting global business directory handbags huge email database jewelry link submissions niche of mesothelioma phones electronics php file value pr7 directory replica social bookmark startup sunglasses technology telecommunications wallets web website website for sale website promotion websites for sale wholesale

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump