HI EVERYONE,
DID EVERYONE KNEW HOW TO MAKE THE CONTACT US PAGE FOR DFH 1.2.4 ???
ALSO WHAT IS THE CODE FOR MAKE A CUSTOM PAGE LIKE AN ABOUT US PAGE OR PRIVACY POLICY PAGE???
SINCERELY,
THANK!
SamEA wrote:http://forum.daddyscripts.com/viewtopic.php?f=9&t=38&p=205#p205
PeterS wrote:Find in ./index.php
- Code: Select all
case "tos": include("./pages/tos.php"); break;
case "faq": include("./pages/faq.php"); break;
case "img": include("./pages/image.php"); break;
Add after
- Code: Select all
case "YOURPAGE": include("./pages/YOURPAGE.php"); break
Afterwards, create a file called YOURPAGE.php and include the following information:
- Code: Select all
<?php
///////////////////////////////////////////////////////////////////////////
// Product: Daddy's File Host
// Version: 1.2
//
// by DaddyScripts.com
//
// original source code by Jim (j-fx.ws) and Steven (galaxyscripts.com)
//////////////////////////////////////////////////////////////////////////
require_once("./config.php");
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
include ('./styles/'.$style.'/YOURPAGE.php');
?>
Finally, create another file in ./styles/[STYLE_NAME]/YOURPAGE.php and place your contents inside.
Don't forget to replace YOURPAGE.php with whatever filename you want.
Now it can be accessed by index.php?page=YOURPAGE
Glad you are enjoying our scripts .
SamEA wrote:Sorry, I have modified the above to work with DFH's latest version. Please find ./index.php and NOT ./pages/upload.php
Thank you.
Return to Hacks and Modifications
Users browsing this forum: No registered users and 0 guests