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

Why is W-script skipping wallpapers

I think this is the most com­mon ques­tion so far and the answer is quite sim­ple. I was asked this ques­tion since the begin­ning of W-script so let’s clar­ify it once and for all.

W-script is a wall­pa­per script and not an image gallery. With that being said you should know that it val­i­dates sizes. The sizes of the wall­pa­pers being uploaded, either via bulk upload or sim­ple upload, are val­i­dated and matched against stan­dard sizes (800×600,1600×1050 etc). If the wall­pa­per is miss­ing 1 pixel (800×599), it will be ignored since there is no res­o­lu­tion with that size.

It may sound like a bug. We care about qual­ity and main­tain­ing ratio and you should be happy this fea­ture is included (yes, it’s a fea­ture) and that your web­site only allows qual­ity wall­pa­pers and fol­lows standards.

If you’re frus­trated about this “fea­ture” think about your vis­i­tors who are down­load­ing wall­pa­pers which do not match their screen sizes.

Here is the full list of accepted sizes (v3.0):
1200 => 1600
768 => 1024
864 => 1152
1024 => 1280
1440 => 1920
1920 => 2560
800 => 1280
900 => 1440
1050 => 1680
1200 => 1920
1600 => 2560
960 => 1280
600 => 800
272 => 480
480 => 320
1260 => 1680


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.