CUSTOM PAGES & CONTACT US PAGE!

Any hacks and modifications will be in here...

CUSTOM PAGES & CONTACT US PAGE!

Postby phuc2007 » Thu Aug 02, 2012 4:37 am

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!
phuc2007
Premium
 
Posts: 29
Joined: Thu Aug 02, 2012 3:46 am

Re: CUSTOM PAGES & CONTACT US PAGE!

Postby SamEA » Thu Aug 02, 2012 5:23 am

SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: CUSTOM PAGES & CONTACT US PAGE!

Postby phuc2007 » Thu Aug 02, 2012 8:22 am

SamEA wrote:http://forum.daddyscripts.com/viewtopic.php?f=9&t=38&p=205#p205


THANK! :)

BUT MY VERSION IS 2.1.1 AND I COULDN'T FIND ANY OF THEM... 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 :).
phuc2007
Premium
 
Posts: 29
Joined: Thu Aug 02, 2012 3:46 am

Re: CUSTOM PAGES & CONTACT US PAGE!

Postby SamEA » Thu Aug 02, 2012 5:29 pm

Sorry, I have modified the above to work with DFH's latest version. Please find ./index.php and NOT ./pages/upload.php

Thank you.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: CUSTOM PAGES & CONTACT US PAGE!

Postby phuc2007 » Thu Aug 02, 2012 8:05 pm

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.


YOU ARE SUPER WONDERFUL...THANK!
phuc2007
Premium
 
Posts: 29
Joined: Thu Aug 02, 2012 3:46 am

Re: CUSTOM PAGES & CONTACT US PAGE!

Postby SamEA » Fri Aug 03, 2012 3:07 am

Glad your issue is now resolved. :)
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Hacks and Modifications

Who is online

Users browsing this forum: No registered users and 7 guests

cron