Difference between revisions of "Misc"

From AWBS Wiki
Jump to: navigation, search
(Using alternate hosting package display)
(Displaying testimonials)
Line 16: Line 16:
  
 
== Displaying testimonials ==
 
== Displaying testimonials ==
 +
 +
Add quotes you have received from your customers that you want to post on your site.
 +
 +
 +
 +
The testimonies can be displayed using these variables on any page:
 +
 +
 +
 +
<?=$quotes[0][testimonial]?>
 +
 +
<?=$quotes[0][sig1]?>
 +
 +
<?=$quotes[0][sig2]?>
 +
 +
 +
 +
<?=$quotes[1][testimonial]?>
 +
 +
<?=$quotes[1][sig1]?>
 +
 +
<?=$quotes[1][sig2]?>
 +
 +
 +
 +
You can display as many as you like, just increment the $quotes number for each one.
 +
 +
 +
 +
Also, set the $number_of_quotes=2; line in the dbconfig.php file.
 +
 +
(As long as this number is greater than the number of quotes in the db, all will be returned into the array.)
 +
 +
 +
 +
The testimonials in your database will be randomly chosen to fill the displays.
  
 
== Displaying the Shopping Cart Box ==
 
== Displaying the Shopping Cart Box ==

Revision as of 11:06, April 17, 2008

Using alternate package display

If you wish to use the alternate display for your packages;

Enter desired information displayed in the 'Layout 2 Package Display Text' for each hosting package. You can use html code in that text area field, just be careful not to use special characters or quotes in the code. Do not include full html page tags, only enter a table or div tags to start and end your code.

In your includes directory, rename hstable-reanme-me.php to hstable.php.

This will change the display for all hosting packages in the system.


For Dedicated Servers, do the same as above, except rename the includes/dstable_rename_me.php file to dstable.php

Displaying testimonials

Add quotes you have received from your customers that you want to post on your site.


The testimonies can be displayed using these variables on any page:


<?=$quotes[0][testimonial]?>
<?=$quotes[0][sig1]?>
<?=$quotes[0][sig2]?>


<?=$quotes[1][testimonial]?>
<?=$quotes[1][sig1]?>
<?=$quotes[1][sig2]?>


You can display as many as you like, just increment the $quotes number for each one.


Also, set the $number_of_quotes=2; line in the dbconfig.php file.

(As long as this number is greater than the number of quotes in the db, all will be returned into the array.)


The testimonials in your database will be randomly chosen to fill the displays.

Displaying the Shopping Cart Box

Variables used to create a 'shopping cart' box on your site:


You have <?=$curcart[items]?> items in your cart.

<a href="<?=$curcart[view]?>">View Cart</a>

<a href="<?=$curcart[checkout]?>">Checkout</a>