Help with the advanced ad+PhPNuke 7.8

Status
Not open for further replies.

society

New Member
Messages
16
Reaction score
0
Points
0
Hey,

Ive searched the forums, google, tried most remedys, fooled with countless files. Ive been working on this for 3 hours, and ive finally been reduced to waste your time with another Ad Help post.

Ok, I have the advanced plan and I want to put the link in the footer of my page, near the copyright message. That was it will appear on every page, no matter what. Though, all my attempts have come up failed.

Im not very experianced with php, though I know enough to add new modules and custimize themes a bit.

Could anyone explain to me, in noob terms, how I can add the Advanced Ad Link to the bottom of my php website? I would really appretiate it.

Time to pass out- Thanks ahead of time,
Society
 

alvaroag

New Member
Messages
288
Reaction score
0
Points
0
try this: open footer.php. then go to the function footmsg(). on that function, you will find 3 consecutive if:

PHP:
	if ($foot1 != "") {
		echo "$foot1<br>\n";
	}
	if ($foot2 != "") {
		echo "$foot2<br>\n";
	}
	if ($foot3 != "") {
		echo "$foot3<br>\n";
	}

next to the last if, add this line:

PHP:
	include('http://staff.x10hosting.com/adCode.php?ad=advanced');

let me know if it worked.
 
Last edited:

society

New Member
Messages
16
Reaction score
0
Points
0
Thanks for the quick responce Alvaroag! Though, the footer has completly disipeared now. My exact code now looks like this for that chunk.

PHP:
if ($foot1 != "") {
        echo "$foot1<br>\n";
    }
    if ($foot2 != "") {
        echo "$foot2<br>\n";
    }
    if include('http://staff.x10hosting.com/adCode.php?ad=advanced');  ($foot3 != "") {
        echo "$foot3<br>\n";
    }
Society
 
Last edited:

alvaroag

New Member
Messages
288
Reaction score
0
Points
0
i'm not good at grammar... soryy... i meant after, so your code will look like this:

PHP:
 if ($foot1 != "") {
        echo "$foot1<br>\n";
    }
    if ($foot2 != "") {
        echo "$foot2<br>\n";
    }
    if ($foot3 != "") {
        echo "$foot3<br>\n";
    } 
 include('http://staff.x10hosting.com/adCode.php?ad=advanced');

that should make the advanced ad to be showed beneath the copyright.

Sorry for my bad grammar :lol:
 

society

New Member
Messages
16
Reaction score
0
Points
0
Ok, the copyright message is back, though the link is not showing up.

http://www.1ks.exofire.net

This is the whole code for my footer.

PHP:
<?php

if (stristr($_SERVER['SCRIPT_NAME'], "footer.php")) {
    Header("Location: index.php");
    die();
}

$footer = 1;

function footmsg() {
    global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time, $commercial_license;
    $mtime = microtime();
    $mtime = explode(" ",$mtime);
    $mtime = $mtime[1] + $mtime[0];
    $end_time = $mtime;
    $total_time = ($end_time - $start_time);
    $total_time = ""._PAGEGENERATION." ".substr($total_time,0,4)." "._SECONDS."";
    echo "<font class=\"footmsg\">\n";
     if ($foot1 != "") {
        echo "$foot1<br>\n";
    }
    if ($foot2 != "") {
        echo "$foot2<br>\n";
    }
    if ($foot3 != "") {
        echo "$foot3<br>\n";
    } 
 include('http://staff.x10hosting.com/adCode.php?ad=advanced'); 
    // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
    // IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?

name=Commercial_License
    // PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE!
    if ($commercial_license == 1) {
        echo "$total_time<br>\n</font>\n";
    } else {
        echo "$copyright<br>$total_time<br>\n</font>\n";
    }
}

function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, 

$name, $admin, $commercial_license;
    if ($home == 1) {
        blocks(Down);
    }
    if ($module == 1 AND file_exists("modules/$name/copyright.php") && $commercial_license != 1) {
        $cpname = ereg_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
    }
    if ($module == 1 AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
        echo "<br>";
        OpenTable();
        include("modules/$name/admin/panel.php");
        CloseTable();
    }
    themefooter();
    if (file_exists("includes/custom_files/custom_footer.php")) {
        include_once("includes/custom_files/custom_footer.php");
    }
    echo "</body>\n"
    ."</html>";
    die();
}

foot();

?>
-Society-
 

alvaroag

New Member
Messages
288
Reaction score
0
Points
0
I've just found a solution. First, restore your footer.php to the original.
Now go to "includes\custom_files" and create a file named "custom_footer.php". on that file, paste this:

PHP:
<?php
echo "<div align=\"center\" class=\"footmsg\">\n";
include('http://staff.x10hosting.com/adCode.php?ad=advanced');
echo "</div>\n";
?>

That worked for me. But there's one problem: The ads appear in black(Don't know why), so, if your background is black, ads would not be seen unless the user highlights the footer.
 
Status
Not open for further replies.
Top