May 01 2024 08:32:07
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· News Categories
· Contact Me
· Search
Demos
· Glossary
Users Online
· Guests Online: 1

· Members Online: 0

· Total Members: 1,892
· Newest Member: skalsted
Last Seen Users
· muscapaul 1 week
· Unforgiven12 weeks
· Wheeler15 weeks
· batbaru120 weeks
· MM102 weeks
· Zippo123 weeks
· hyperkolyok125 weeks
· Wivern179 weeks
· Sinders298 weeks
· Froberg342 weeks
Support sites
Fusion Sites
PHP-Fusion
View Thread
 Print Thread
Version @ FOOTER HAND-MOD - howto
vlip
Download source  Code
 A small howto about getting your version info HardCoded into your footer

this way switching THEME Does not REMOVE your VERSION


<exp> v6.01.9 ? 2007 </exp>


vlip.freelinuxhost.com/roel/versionATfooter.PNG


- go to php files -
  root of fusion -
  - BACKUP
Download source  Code
 footer.php



  - OPEN
Download source  Code
 footer.php



-
*Search String*

 
*searching for text by pressing Control+F inside the document

----------------------------------------------------------
search for:
Download source  Code
    $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");




-Press END on your keyboard to get to the end of the rule - string
-press Return on your keyboard to create a new emty rule under this string

now you are between this string and the *next string  

this
*next string is
 
Download source  Code
 }




Paste the Next - PhpCode
between these 2 strings

Download source  Code
 
//smallmod by: VLiP
//http://VLiP.nl.tt
if ($license == false) {
echo "v".$settings['version']." ? 2007";






when the end of code has double
Download source  Code
 }



under each other, it's correct.
So the end of the new code looks like


}
}

Than it's correct,
When you don't now exactly what your doing
don't change more of this footer.php or you lose your footer completely


---------------
Complete DONE footercode looks like this




[code] <?php
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
render_footer(false);
echo "</body>\n</html>\n";
if (iADMIN) {
   $result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time()-360)."'");
   $result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time()-1209600)."'");
   $result = dbquery("DELETE FROM ".$db_prefix."vcode WHERE vcode_datestamp < '".(time()-360)."'");
   $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");
//smallmod by: VLiP
//http://VLiP.nl.tt
if ($license == false) {
echo "v".$settings['version']." ? 2007";

}
mysql_close();
ob_end_flush();
?>





afther uploading this footer, your footer has a new border looks like this



v6.01.9 ? 2007



Under the Original Footer


it wil stay after changing to other theme that does not have version info

and
normaly it will be updated whit version


-------
nog wat te verbeteren aan de code?? Quote to better or explain

Edited by vlip on 27-03-2007 23:01
 
vlip
Example Picture
view as when not loaded

Edited by vlip on 27-03-2007 22:25
 
vlip
Not Visible for internet Explorer ShockPfftGrin
 
muscapaul
FYI: The removal of the version number from the footer was done on purpose to reduce the chance of hacker being able to find PHP-Fusion sites with vulnerabilities via thier version numbers. The version number will be stored in the search engine's cache.
Webmasters can easily find the version number of their site by going to the admin panel.
Still, if you want the version number to be visible in all themes at all times, the above is a way to do it. Smile
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
vlip
Some theme's have version number inside,
some theme's hide version number,
so you change Theme,
Your version numer is gone??
This way it's HardCoded into the Footer.php on main,
so it won't switch anymore,
but Rightnow its visible on
*Mozilla Firefox Visible
*Internet Explorer Not Visible or hidden
Edited by vlip on 28-03-2007 06:03
 
vlip
CMOD your footer.php to 600 and only when admin login : they see
Download source  Code
 version ? 2007


will be visible.
Member does see footer but does not see version.
Then its switching theme again
Edited by vlip on 28-03-2007 10:12
 
Jump to Forum:
Donate
Please help to make
muscapaul.com
possible and enable
further improvements!
Login
Username

Password



Forgotten your password?
Request a new one here.
Temporary email addresses
Please note: While activating new accounts I usually check them out. If I notice an account registered with a temporary email address it will be deleted.
Newsletter
Newsletters are for registered members only.
Shoutbox
You must login to post a message.

01/12/2021 16:45
Szép napot

13/06/2021 07:01
I found this site again!

21/04/2020 18:32
Barely...

11/11/2013 00:48
Cool! This site is still around!

18/10/2013 20:28
hey! Smile

25/06/2011 01:40
My name is Andreo, I'm new member Smile

25/06/2011 01:39
Hello Muscapaul, is there anyone here ?

13/09/2010 01:02
nice mod thanks Smile

10/07/2010 15:01
Paul, hows thing?

07/07/2010 03:47
Who becomes the world champion on football? We wil

Render time: 0.07 seconds 9,203,755 unique visits