Editing Footer.php - adding a script

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Editing Footer.php - adding a script

DjLuki
hey can somebody put this script into my footer.php file? because i don't know how. the script has to go between the </body> and </hmtl?
ok this is the script...
CODE
<!-- Clicksor.com Advertising Code Begin -->
<script type='text/javascript'>
<!--
clicksor_layer_border_color = '#B4D0DC';
clicksor_layer_ad_bg = '#ECF8FF';
clicksor_layer_ad_link_color = '#0000CC';
clicksor_layer_ad_text_color = '#000000';
clicksor_text_link_bg = '';
clicksor_text_link_color = '#000FFF';
clicksor_enable_pop = false;
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/clicksor.php?pid=11273&sid=20461'></script>
<!-- Clicksor.com Advertising Code End -->


and here is the fotter.php ....
CODE

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management 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.       */
/************************************************************************/

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

$footer = 1;

function footmsg() {
   global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
   $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";
   }
   // 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!
   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;
   if ($home == 1) {
 blocks(Down);
   }
   if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
 $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")) {
    echo "<br>";
    OpenTable();
    include("modules/$name/admin/panel.php");
    CloseTable();
   }
   themefooter();
   echo "</body>\n"


 ."</html>";
   die();
}

foot();

?>


Notice from BuffaloHELP:
Corrected title's spelling.

 

 

 


Reply

electriic ink
Here's the new script.

CODE

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management 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.       */
/************************************************************************/

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

$footer = 1;

function footmsg() {
   global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
   $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";
   }
   // 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!
   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;
   if ($home == 1) {
 blocks(Down);
   }
   if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
 $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")) {
    echo "<br>";
    OpenTable();
    include("modules/$name/admin/panel.php");
    CloseTable();
   }
   themefooter();
   echo "</body>\n";

echo "
<!-- Clicksor.com Advertising Code Begin -->
<script type='text/javascript'>
<!--
clicksor_layer_border_color = '#B4D0DC';
clicksor_layer_ad_bg = '#ECF8FF';
clicksor_layer_ad_link_color = '#0000CC';
clicksor_layer_ad_text_color = '#000000';
clicksor_text_link_bg = '';
clicksor_text_link_color = '#000FFF';
clicksor_enable_pop = false;
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/clicksor.php?pid=11273&sid=20461'></script>
<!-- Clicksor.com Advertising Code End --> ";

echo "</html>";
   die();
}

foot();

?>


This should work...

 

 

 


Reply

DjLuki
thank you very much..

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. how to remove the footer in dolphin cms - 394.09 hr back. (1)
  2. clicksor_enable_pop - 438.93 hr back. (1)
Similar Topics

Keywords : editing, footer, php, adding, script

  1. Need Help With Javascript Drag And Drop Script
    Having trouble with javascript drag and drop script. (2)
  2. Java Script To Hide The Url In Address Bar
    Does any one know about this ? (6)
    Hello friends , just now i came accross a particular type of script which is capable of masking the
    URL which is seen in the Address bar of the webpage , that is by implementing the particular Java
    Script when the user visits a page eg. www.mysite.com , then it is possible for the admin of
    www.mysite.com to mask this site and display some other website in the viewers address bar. I came
    to know that such a script can be written using Java Scripts , Can any one get me the Script ??....
  3. [request] Avatar For Trap17 Users
    Nice one... for my avatar rotator script (0)
    As per the description above, I would like to challenge the GFX people here on the Trap17 to design
    a nice, bright, clear, professional looking 'avatar' for me and other members to use. I
    plan on including it in my Rotator Script, which I think can be found in the Tutorial Section here
    on the Trap17. (If not, I must write that one soon). /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> I'm thinking that we need to open this up as a
    Competition so all Members can contribute and then the Admins can start a new section in ....
  4. Editing Posts Alters Credits?
    Does being retrospecitvely pedantic pay? (24)
    I am wondering about the Credit System calculations on the Trap17 forums. If I were to make a post
    and submit it, then the calculation system does its magic and attributes a certain number of Credits
    for that post, right? So, what happens if I later revisit the post and edit it? For argument's
    sake, if I get am a bit sloppy in my speeling and don't rite proper Inglish, then your algorithm
    will give me less Credits than if I had been more accurate with my spelling and grammar. However, if
    after I have pressed the "Post New Topic" or "Add Reply" button I notice the....
  5. Destination Address For "submit" Button
    Adding a destination email address to a "Submit" button (5)
    I discovered this site while searching for an answer on what HTML code to use to print a web page.
    "Skymonkey" provided the answer to a similar question posed back in 2005. I now have another
    question about submitting a web page with fill in blanks. Is there an easy HTML code that can
    include a destination address to a "Submit" button without having to use Javascript? I have created
    a form with fill in blanks and now want to have people simply hit the Submit button to send their
    information to a particular email address. Thanks for any help. Tom T.....
  6. Seeking Help With Javascript
    Need help with drag and drop type script (1)
    What i want to make is a script that has a table, which is a menu for my site, and when you click
    the top of the table you can drag it to another place in the page. This is the code: Test
    run - Right click menu - ©Jack McCrea 2008 <script type="text/javascript"> function
    coordinates(event) { if (event.button==2) { var x=event.x; var y=event.y;
    document.getElementById("element").style.left=x; document.getElementById("element").style.top=y;
    document.getElementById("element").style.visibility="visible"; var oldx=x; var oldy=y; } }
    <script type="....
  7. Browser Compatibility Problem With Firefox - Javascript + Css
    Having trouble making a script work right - any suggestions? (3)
    Hi, Im working on a website, and im trying to make a right-click menu, which opens on right click,
    wherever the cursor is, and closes on mouse out. I wrote the code below, and when i ran it in IE it
    ran fine, just how i wanted it to work. However in firefox, the menu just opened in the top left. im
    presuming this is because it doesnt like my style changing in the javascript. Any ideas, and
    suggestions? If i cant make this work, i will just make it so it works slightly differently when
    viewev in firefox so that it can just open in one place. All ideas appreciated. ....
  8. How To Make Php Newsletter Script
    (3)
    I have seen a post on here somewhere which shows how to make a simple newsletter php script. I
    cvant find it anywhere and I wanted to ask some questions of the author. Does anyone know the one I
    mean? Cheers ....
  9. Php Guest Online Script
    (3)
    make an index.php copy and paste this code CODE <?php $db_host = "localhost";
    $db_user = "root"; $db_pass = ""; $db_name = "test";
    $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs =
    mysql_select_db($db_name); $tm = time(); $timeout = $tm -
    (30*60);
    if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR
    "];} else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}....
  10. Guessing Php Script
    (2)
    I am looking for: freeware php quess the person in the photo game script....
  11. Best Video Editing Software
    (8)
    Its really distracting seeing people "create" what they think are master pieces on windows movie
    maker. Its the lamest and really requires no skill. So im gunna whack my vote on Adobe Premiere Pro
    2 and Adobe After Affects 7 combined to make the best in the video editing range. It requires stacks
    of skills, you can download plenty of add-on effects and you can futher mod it if you wish in After
    Affects. These versions are one behind in the Adobe range since Adobe released its CS3 Prefix to all
    their newly upgraded versions. The new CS3 Prefixed Premiere is now compatibl....
  12. Recomend Me Some Software, Pleaes.
    (video editing and capturing) (17)
    Hey guys, Sorry if this isn't in an appropriate section it's kinda difficult to navigate
    all the sections to find one that suits each issue, and from what I can tell there isn't a
    general " ask questions here about random stuff" section. I'm sure almost everyone here has
    been on YouTube, Google video, or a site like those that contain tutorials for photo shop,
    programing, or anything else that you can find on your computer. I was wondering if you guys knew
    what kind of software they use? I'm looking to take video of me working on my computer....
  13. Adding Jigsaw Puzzle Effect With Photoshop
    (2)
    Should the occasion arise that you want to add a puzzle effect to a picture, there is a simple
    method built into Photoshop. Like a lot of other abilities, the hard part is finding it. Let me walk
    you through how I do it. There are a variety of other ways and I would love to hear your way also.
    So I have this picture of my cat that I want to look like a puzzle: I tune it up how I like it
    and size it, etc. Then click on Filter/Texture/Texturizer Once you click that a box appears:
    On the right hand panel you see Ok, Cancel. Texturizer then Brick or Sandston....
  14. Video Editing Software
    (11)
    I am looking for a free, decent video editing software. It does not need a lot of features. But I
    would like it to have the "slicing options", so I can split/cut films. I would also like it to have
    a simple intro option, just making simple intros with text. And the last thing, this is really
    important so listen up: It must not require my computer to have sound. I messed something up, so the
    sound is not working. This is causing my Windows Movie Maker not to work - since it requires some
    stuff. I know that I should fix this, but I will be getting a new laptop in a few mon....
  15. Php Ftp Upload Form
    Adding User Directory to PHP Upload Form - Help (1)
    Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
    folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
    directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
    upload things into the main directory, only sub-directories, is that possible with this coding that
    I have: //uses $_FILES global array //see manual for older PHP version info //This
    function will be used to get the extension from the filename function get_extension($fi....
  16. Adding Drop Down Menus
    (7)
    I have looked around many IPB support sites, but I didn't find a suitable drop-down menu add-on
    that I liked or worked correctly. I have noticed the drop down menus on this forum on other forums,
    and I was wondering if this was custom to this site or there was a tutorial somewhere which shows
    how to make one similar to this? Or if anything, I basic IPB drop down menu tutorial/add on.
    Thanks.....
  17. Php Downloads Script
    (4)
    I've been looking all over the net for a PHP script which can provide an interface to browse a
    downloads database. The database could be powered by MySQL. If you know a script like this, please
    post it here. Thanks in advance, Ironchicken.....
  18. Very Simple Online Now Script
    This is a very simple online now script. (4)
    Hi all, Its Aldo. anyways, I wont be using the method of pagination, i will just tell you how to
    make a basic online now script. When someone logs in, now take into consideration that the name of
    the username input is username ( First ,create a table in your database saying online now and add 2
    fields to it. id and username CODE id type=integer(INT) , auto increment, length =255
    and username = VARCHAR length=the limit a username should be in your site now from there we take
    off : CODE <?php //logged.php //authentication script //connection scri....
  19. Aef Forum Modifications [resolved]
    Header bar, Footer Bar and Styling them (3)
    Here are a couple of Tutorials I have posted on my AEF Forum hosted here at the Trap17. Since the
    Tutorials are already published, I will merely link to them. Header Bar Information :
    http://www.jlhaslip.trap17.com/aef103/index.php?tid=11 Footer Bar Information :
    http://www.jlhaslip.trap17.com/aef103/index.php?tid=10 Styling the Header/Footer Bar :
    http://www.jlhaslip.trap17.com/aef103/index.php?tid=16 The first two are about how to add some
    html code to the space reserved in the Forum layout for an optional Advertising spot. I adapted some
    code so that several ....
  20. Jsp Or Java Chat Script Like Mig33
    (5)
    so most of you guys know mig33. its a wap application,probaly java.most kindly to be java. does
    anyone have java knowlege or knows where i can get a chat script like mig33? i also know this server
    supports jsp so im planing to use it for my application. i was hosted here last year but moved
    because i found a better host. now im back just to use the jsp on this server. Im planing to run
    chat applictions so if any one wants to help me in my project let me know.....
  21. Adding Shine To Text
    images say "Tiger Ads", but, the board is clsed, so, i'm r (4)
    OK, in this tut, I am going to show you how to add shine to any text. For this example I will be
    using the TigerAds affiliate button. (the board is since closed so, I'm not really advertising
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />) OK then,
    lets get started! 1. Open up the image that you will be using, this is mine: 2.
    Now that your image is open and making sure that its the .psd so you can edit the text on it. In
    your layers menu, hold down CTRL and click on the text layer so that only the te....
  22. Adding Your Website To Google
    How to register with google (25)
    Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
    engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
    tags or other search engine optimisation techniques in place. This tutorial is solely about
    registering with google. At one time i thought simply using meta tags etcetera would get you listed
    in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
    will go into this tutorial. the first step is to get a google account, this will get y....
  23. Watermark Your Image With Simple Php Script
    found it on the net (35)
    This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips &
    Scripts site. Just in case the site may not show, I will include the code here: List of things
    needed: 1. your image in any format 2. watermark image--in gif format with transparent background 3.
    script below with name (i.e. watermark.php) CODE <?php // this script creates a watermarked
    image from an image file - can be a .jpg .gif or .png file // where watermark.gif is a mostly
    transparent gif image with the watermark - goes in the same directory as this script // ....
  24. Visual Basic 6.0 Help Needed
    Adding lines to a textbox without delete (15)
    I need help with Visual Basic 6.0 and adding lines to a textbox without deleting any previous
    lines.. I've gotten as far as finding a way to add the lines, but it deletes the prevous entree.
    Help is appreciated!....
  25. Verifying Email Addresses
    Using a simple PHP script (9)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get
    the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
    email address from web form $email = $_POST['email']; Now, we move on
    to our first check. Does the text that has been entered look like it could b....
  26. Delay X Seconds In Flash
    how to action script that (1)
    How do i have to do, to tell a frame to wait x seconds after it continues playing? In Macromedia
    Flash, of course... Like: CODE stop(); "wait  x seconds"; play();
    Thanks....
  27. Making Winrar Archives
    and adding password to winrar archives (13)
    **** This tutorial will show you how to put files into .rar Archive and pass worded (if wanted)
    **** What You Will Need Before continuing you will need a couple of thing, first of all you
    need WINRAR , which is a very powerful archive manager. It can reduce size for you email
    attachments, decompress RAR, ZIP and other types of files downloaded from the internet. You can get
    winrar at http://www.rarlabs.com The other thing is that make sure your using Windows XP because
    this is what I used to make this tutorial. I think it works with any other windows not....
  28. Web Surfing- Script Needed
    (2)
    We all know of anonymouse web surfing, Sites like http://anonymouse.ws/cgi-bin/anon-www.cgi Offer
    peope to surf the internet anonymousely, The site has baners and ads showing up and does not support
    all links. Does anyone know what script they use or where i could get one from, What script do they
    use? Also if anyone jnows how to make my own? I really want this as a addon for my site, So all help
    would be appriciated. Thanks, Mbd5882....
  29. [help] Java Script: Window.open
    Works with Firefox, not IE (10)
    CODE <HEAD> var popUpWin=0; function popUpWindow(URLStr) {
     if(popUpWin)  {    if(!popUpWin.closed) popUpWin.close();  }
     popUpWin = open(URLStr, 'GunBound Tactics: Screenshots',
    'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90')
    ;; } </HEAD> <BODY> <a
    href="javascript:popUpWindow('/f11/clipped.php');"><b>Clips&
    #60;/b></a> This is a script for opening a new window. It works ....
  30. Many Php Script Sites
    (16)
    Hi I find many sites has PHP scripts :: http://www.proxy2.de/scripts.php http://www.free-php.net
    http://knubbe.t35.com/ http://www.ngcoders.com/ http://www.oxyscripts.com/
    http://www.phparena.net/ http://www.1phpstreet.com/ http://px.sklar.com/
    http://www.scoznet.com/ http://php.resourceindex.com/ /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> ....

    1. Looking for editing, footer, php, adding, script

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for editing, footer, php, adding, script

*MORE FROM TRAP17.COM*
Similar
Need Help With Javascript Drag And Drop Script - Having trouble with javascript drag and drop script.
Java Script To Hide The Url In Address Bar - Does any one know about this ?
[request] Avatar For Trap17 Users - Nice one... for my avatar rotator script
Editing Posts Alters Credits? - Does being retrospecitvely pedantic pay?
Destination Address For "submit" Button - Adding a destination email address to a "Submit" button
Seeking Help With Javascript - Need help with drag and drop type script
Browser Compatibility Problem With Firefox - Javascript + Css - Having trouble making a script work right - any suggestions?
How To Make Php Newsletter Script
Php Guest Online Script
Guessing Php Script
Best Video Editing Software
Recomend Me Some Software, Pleaes. - (video editing and capturing)
Adding Jigsaw Puzzle Effect With Photoshop
Video Editing Software
Php Ftp Upload Form - Adding User Directory to PHP Upload Form - Help
Adding Drop Down Menus
Php Downloads Script
Very Simple Online Now Script - This is a very simple online now script.
Aef Forum Modifications [resolved] - Header bar, Footer Bar and Styling them
Jsp Or Java Chat Script Like Mig33
Adding Shine To Text - images say "Tiger Ads", but, the board is clsed, so, i'm r
Adding Your Website To Google - How to register with google
Watermark Your Image With Simple Php Script - found it on the net
Visual Basic 6.0 Help Needed - Adding lines to a textbox without delete
Verifying Email Addresses - Using a simple PHP script
Delay X Seconds In Flash - how to action script that
Making Winrar Archives - and adding password to winrar archives
Web Surfing- Script Needed
[help] Java Script: Window.open - Works with Firefox, not IE
Many Php Script Sites
advertisement



Editing Footer.php - adding a script



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE