How To Create a ClipBucket Page

From ClipBucket Wiki

Jump to: navigation, search

Preface

This tutorial will teach you how to create a ClipBucket page.

Code

create a new page in your site's root:

<?php
/*
****************************************************************************************************
| Copyright (c) 2007 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/

require 'includes/config.inc.php';
$pages->page_redir();
subtitle('my_new_page');
Template('header.html');
Template('message.html');
Template('my_new_page.html');
Template('footer.html');
?>

create a new entry in /includes/sub_titles.php for the page's subtitle:

function subtitle($subtitle){
 
$subtitle_array = array(
'upload' => 'Upload Video',
'signup' => SLOGAN.' , Sign Up',
'logout_succes' => SLOGAN.' Logged out Successfully',
'login_succes' => SLOGAN.' Logged in Successfully',
'signup_succes' => 'Thank You For Signing Up On Our Website',
'videouploadsuccess' => 'Video Uploaded Successfully',
'videos' => 'Videos '.TITLE,
'channels' => 'Users Channel '.TITLE,
'contacts' => 'Manage Contacts',
'manage_video' => 'Manage Videos',
'manage_favourites' => 'Mange Favourites',
'aboutus' => 'About Us',
'privacy' => 'Privacy &amp; Policy',
'termofuse' => 'Terms of User',
'signup_success' => 'You Have Successfully Joined',
'contactus' => 'Contact Us',
'create_group' => 'Create Group',
'groups' => 'Community',
'my_new_page' => 'My New Page'
);
Assign('subtitle',$subtitle_array[$subtitle]);
 
}

create your new page under:

/httpdocs/styles/{your_selected_style}/layout/

use the filename you specified in the first PHP page above.

<table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="header1">My New Page
<hr size="1" noshade></td>
</tr>
<tr>
<td><p>Page Content Goes Here</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
</table>


EOF

Personal tools