Client Area

Knowledgebase

Portal Home > Knowledgebase > WHMCS Addons > WHMCS CMS > Example Code 1


Example Code 1


Example 1:
Add a new page using the following information, then browse to www.yoursite.com. This is your index.php.
Copy the data under each of the field names and paste it into the Add New Page form.

------------------------------------------
Title

New Home Page
------------------------------------------
Url Name

index   
------------------------------------------
Breadcrumb

Home
------------------------------------------
Loggedin Code

$smartyvalues['message'] = '<b>Welcome '.$clientsdetails['firstname'].' !</b>';
------------------------------------------
Smartyvalues

$smartyvalues['newpic'] = '<img src="images/ccv.gif">';
------------------------------------------
Body

<p>If customer is logged in, a message will follow here: {$message}</p>
<hr>
<h3>Today is {$todaysdate}</h3>
This date is pulled from globally available variables.
<hr>
<br><br>
<div align="center">
Here is an image<br>{$newpic}
</div>
------------------------------------------

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Example Code 2 (Views: 3501)
WHMCS CMS Requirments (Views: 3638)
How to use WHMCS CMS (Views: 4943)

© Copyright 2021 Easy WHMCS, All Rights Reserved.
Easy WHMCS is a 3rd party development site for WHMCS. Easy WHMCS is a seperate entity from WHMCS ltd.