vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   VbPlaza - Loyal Member Discount Display (https://vborg.vbsupport.ru/showthread.php?t=123399)

paul41598 08-07-2006 09:00 PM

VbPlaza - Loyal Member Discount Display
 
This is a very very small little template mod that I found useful. Ever notice the loyal member discount in Vbplaza, but it never shows to the end user? The end user probably doesnt even know it exists. Discounts are applied almost in the background from what I notice.

Description:
This shows the user if they are truly getting the loyal member discount & it will show the percentage%


Open (vbplaza_item_confirmation):

Find:

PHP Code:

<div class="smallfont">$vbphrase[vbplaza_item_total_cost]: $action[totalcost]</div><br />
        </if> 

Add Beneath:

PHP Code:

<if condition="$action[discountrate]">
            <
div class="smallfont"><b>CongratulationsYou're entitled To The Loyal Member Discount!</b><br />Loyal Member Discount: $action[discountrate]%</div><br />
<else />
<div class="smallfont"><b>Sorry, You'
re Not Entitled To The Loyal Member Discount</b><br />Loyal Member Discount$action[discountrate]0%</div><br />
</if> 

Screenshots Below

bashy 08-08-2006 02:27 PM

Hi, great idea but not working for me, placed it exactly where you have said
but it dont show for somme unknown reason, I have bought both lottery
and made username bold....

See image please

paul41598 08-08-2006 02:45 PM

Hmm, tested it on my testboard, and it works on there too.

Not sure, you running 3.5.4 and vbplaza 1.5.8?

bashy 08-08-2006 05:49 PM

I have 3.5.4 but only plaza 1.5.7 would this make a big difference?

bashy 08-08-2006 06:45 PM

EDIT: it now works since upgrading to 1.5.8 thanks for ya help and a great idea :)

paul41598 08-08-2006 06:55 PM

Glad its working! :D


All times are GMT. The time now is 08:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01588 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete