Client Area

Knowledgebase

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


Example Code 2


Example 2:
Add a new page using the following information, then browse to www.yoursite.com/test-page.html or www.yoursite.com/index.php?page=test-page
Copy the data under each of the field names and paste it into the Add New Page form.

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

Our Test Page
------------------------------------------
Url Name

test-page       
------------------------------------------
Breadcrumb

Test Page
------------------------------------------
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
How to use WHMCS CMS (Views: 4943)
Example Code 1 (Views: 3560)
WHMCS CMS Requirments (Views: 3638)

© 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.