Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBCoupon version 1.0 Details »»
vBCoupon version 1.0
Version: 1.0, by yoyoyoyo yoyoyoyo is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Version: 3.0.8 Rating:
Released: 06-17-2005 Last Update: 06-17-2005 Installs: 5
Template Edits
 
No support by the author.

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:
Code:
$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:
Code:
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
BEFORE add:
Code:
<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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-18-2005, 06:02 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a screenshot. As I said, nothing fancy, but you can obviously make the html as simple or as complex as you want.

Aside from the items mentioned in the "TO DO" list above, what else would you like to see in this hack?
Reply With Quote
  #3  
Old 06-18-2005, 07:23 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now that is really qtsy ;-x
Reply With Quote
  #4  
Old 06-19-2005, 12:15 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well.. It doesn't use the phrases, it doesn't use variables so that it's look can be changed in the AdminCP, it makes an error on the who is online page.. You should integrate it because for now this hack is.. useless
Reply With Quote
  #5  
Old 06-19-2005, 01:29 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
Well.. It doesn't use the phrases, it doesn't use variables so that it's look can be changed in the AdminCP, it makes an error on the who is online page.. You should integrate it because for now this hack is.. useless
Well, I agree it needs work, and I plan on doing all of the things listed in the TO DO list shortly, however I must disagree that it is not completely useless since I have already seen one of those coupons come in to my shop
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06118 seconds
  • Memory Usage 2,241KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete