yoyoyoyo
06-17-2005, 10:00 PM
vBCoupon
version 1.0
Time to install: Less than 5 minutes
Level of difficulty: BEGINNER/SIMPLE
Template Edits: 1
New Templates: 1
New php file(s): 1
This is a simple coupon that users can print and use for physical items.
1. In your Admin Control Panel go Styles & Templates -> Style Manager -> Add New Template and create a template called "coupon" which contains the following:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] Coupons</title>
$headinclude
</head>
$header
$navbar
<!-- BEGIN COUPON -->
<center><table border="1" bordercolor="red" cellpadding="10">
<tr>
<td><center><B>COUPON</B><P>Good for $5 off 1 Large Pizza<p>expires October 31, 2005</center></td></B></td>
</tr>
</table></center><p>
<center><table border="1" bordercolor="red" cellpadding="10">
<tr>
<td><center><B>COUPON</B><P>Good for $3 off 1 Medium Pizza<p>expires October 31, 2005</center></td></B></td>
</tr>
</table></center><p>
<!-- END COUPON -->
$footer
</body>
</html>Substitute your own coupon(s) for the above HTML code between <!-- BEGIN COUPON --> and <!-- END COUPON --> This can be as simple or as fancy as you want to be, and can obviously include images, etc..
2. Go to Adimin CP ->Styles & Templates -> Edit Templates and open the NAVBAR template and search for the following:<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
BEFORE add:<tr><td class="vbmenu_option"><a href="coupon.php">Coupons</a></td></tr>
Save the template.
3. Upload coupon.php to your forum root directory
4. That's it. To view your page go to: http://yoursite.com/forum/coupon.php or visit the page via the Quick Links in the Navbar
TO DO LIST (any help on these is appreciated):
The coupons will be administered from the ACP with fields for Coupon title, value and the number of days in which it is set to expire, as well as conditionals for usergroups. Also support for user location ("Now viewing Coupons") as well as template cache fix.
PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83327)
version 1.0
Time to install: Less than 5 minutes
Level of difficulty: BEGINNER/SIMPLE
Template Edits: 1
New Templates: 1
New php file(s): 1
This is a simple coupon that users can print and use for physical items.
1. In your Admin Control Panel go Styles & Templates -> Style Manager -> Add New Template and create a template called "coupon" which contains the following:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] Coupons</title>
$headinclude
</head>
$header
$navbar
<!-- BEGIN COUPON -->
<center><table border="1" bordercolor="red" cellpadding="10">
<tr>
<td><center><B>COUPON</B><P>Good for $5 off 1 Large Pizza<p>expires October 31, 2005</center></td></B></td>
</tr>
</table></center><p>
<center><table border="1" bordercolor="red" cellpadding="10">
<tr>
<td><center><B>COUPON</B><P>Good for $3 off 1 Medium Pizza<p>expires October 31, 2005</center></td></B></td>
</tr>
</table></center><p>
<!-- END COUPON -->
$footer
</body>
</html>Substitute your own coupon(s) for the above HTML code between <!-- BEGIN COUPON --> and <!-- END COUPON --> This can be as simple or as fancy as you want to be, and can obviously include images, etc..
2. Go to Adimin CP ->Styles & Templates -> Edit Templates and open the NAVBAR template and search for the following:<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
BEFORE add:<tr><td class="vbmenu_option"><a href="coupon.php">Coupons</a></td></tr>
Save the template.
3. Upload coupon.php to your forum root directory
4. That's it. To view your page go to: http://yoursite.com/forum/coupon.php or visit the page via the Quick Links in the Navbar
TO DO LIST (any help on these is appreciated):
The coupons will be administered from the ACP with fields for Coupon title, value and the number of days in which it is set to expire, as well as conditionals for usergroups. Also support for user location ("Now viewing Coupons") as well as template cache fix.
PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83327)