W-script Wallpaper Script


W-script premium wallpaper script is back!

How to add new pages

This ques­tion was posted today on the sup­port forum so it’s a decent one to cre­ate a tuto­r­ial about it.

Hi, i want add page, like “About”, “Pri­vacy Pol­icy”
How to do it?

It’s a lit­tle com­pli­cated because W-script is not devel­oped to sup­port such func­tion­al­ity but not very hard to add new pages. Fol­low­ing this tuto­r­ial you will learn how to cre­ate new pages using PHP.

First, let’s assume we need to add a “About us” page. Let’s cre­ate a new PHP page called about.php and upload it to system/application/controllers. Now open that file in your edi­tor and place the fol­low­ing content:


class About extends Controller {

        function __construct () {
                parent::Controller ();

        function index () {
                $right = get_right_side_content ();

		$page = array
			'content'	=>	file_get_contents ( ROOTPATH . '/pages/about.txt' ),
			'right'		=>	$right,
			'header_msg'	=>	"About us"

		$page = assign_global_variables ( $page, 'about_us' );
		load_template ( $page, 'template', TRUE );

We’re almost ready to view our page. If you go to www.yourdomain.com/index.php?/about you will prob­a­bly see a white page because we didn’t added the con­tents of our page yet. Go to the root level of your W-script instal­la­tion (where index.php sits) and cre­ate a new direc­tory there called pages. Inside this direc­tory cre­ate a new .txt file called about.txt. Add your con­tent inside that page and you should be able to view it’s con­tents by access­ing the url. You can also add html in that text file so it’s flexible.

You can link to those pages by edit­ing your footer tem­plate file: templates/default/html/footer.tpl

Category: How to


2 Responses

  1. pierre says:

    it’s impos­si­ble to reg­is­tered because your captcha not work­ing correctly.

  2. marko says:

    i want to try W-script for my best wall­pa­per site is that easy to man­age and customize?

Leave a Reply


W-script Wallpaper Script Screenshot

W-script: The Full Featured Wallpaper Site Creator Script

It takes min­utes to setup and start earn­ing money from your new web­site. If you need a seri­ous script to man­age your wall­pa­per site like a PRO then W-script wall­pa­per script is the right solu­tion, in front of the aver­age com­pe­ti­tion with giant steps.