Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
(vBCredits II Addon) Persistant Navbar Credits Display with Background Image Details »»
(vBCredits II Addon) Persistant Navbar Credits Display with Background Image
Version: 1.00, by Replicators Replicators is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 12-08-2010 Last Update: Never Installs: 2
Template Edits
Translations  
No support by the author.

VBCredits II Addon = Persistant Navbar Credits Display with Background Image for VB 3.8

This was made from the pro version so i can't guarantee it will work for the LITE version or not, and WILL NOT work in vb4!

You can get vbcredits II from:

[DBTech] vBCredits II Deluxe LITE = https://vborg.vbsupport.ru/showthread.php?t=245952

[DBTech] vBCredits II Deluxe PRO = http://www.dragonbyte-tech.com/vbeco...=product&id=40

What this will do is add a permanent display of your credits inside your navbar so it is alway's viewable instead of having to click or hover over anything to see how much you have.

Example:



STEP ONE:
First go into Vbcredits dropdown in admincp, and into "Automatic Template Edits" and click onto "Navbar" and replace in the following information.

Click on "Show Advanced Options" at the bottom and put in.

Combination Rounding: Optional
Wrap Currencies with Main Template: Yes
Main Template: Blank
Currency Template: credits_display_navbar_row
Hook Name: Vbcredits_Display
Leave the rest blank!

Now save.


STEP TWO:
Now go into "Styles & Templates" and visit the "navbar" template and find:

HTML Code:
<if  condition="$show['pmwarning']"><div><strong><phrase  1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
Add Underneath:

HTML Code:
<if condition="$bbuserinfo['userid']">
                  $template_hook[Vbcredits_Display]</if>
Now Save


STEP THREE:
Go into the "credits_display_navbar_row" and replace all text with:

HTML Code:
<if condition="$vb4"><li><else /><td  class="vbmenu_option" id="vbcredits_background"></if><a  href="credits.php$session[sessionurl_q]"  rel="credits-$currency[currencyid]-$user[userid];$user[username]"><span  style="color: white;"><center>$currency[title]<br  /><b>$useramt</b></center></span></a><if  condition="$vb4"></li><else  /></td></tr></if></td>
STEP FOUR:

Now save and then go back into "Style Manager" and dropdown to your "Main CSS" option. Go the the very last box named "Additional CSS Definitions" and enter the following in the second box at the end.

PHP Code:
#vbcredits_background {
backgroundurl(./images/vbcredits_navbg.gifrepeat;

I have also attached a image you may use, just upload it to your /images/ directory.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
lehoang101101

Comments
  #2  
Old 12-09-2010, 09:23 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

=) Good job on this, I can see it being very useful for some people.

Iain
Reply With Quote
  #3  
Old 12-10-2010, 04:17 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can also confirm that this will work just fine with the lite version
Reply With Quote
  #4  
Old 07-16-2012, 01:52 PM
bold bold is offline
 
Join Date: Oct 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a version for vb 4.2.0?
Reply With Quote
  #5  
Old 10-25-2012, 06:14 AM
wonderfulwat wonderfulwat is offline
 
Join Date: Jun 2010
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is something like this available for vb 4.2?
Reply With Quote
  #6  
Old 02-23-2013, 11:04 AM
Davey-UK's Avatar
Davey-UK Davey-UK is offline
 
Join Date: Feb 2003
Location: Sheffield-UK
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bold View Post
Is there a version for vb 4.2.0?
Quote:
Originally Posted by wonderfulwat View Post
Is something like this available for vb 4.2?
I would also be interested in a reply to this.
Reply With Quote
  #7  
Old 04-03-2013, 10:58 PM
Dorgham's Avatar
Dorgham Dorgham is offline
 
Join Date: May 2012
Location: Egypt
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job
Reply With Quote
  #8  
Old 04-03-2013, 11:20 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add this in 4.2 is actually easy, but 4.2 does not have a navbar like this, however you can use a mod like https://vborg.vbsupport.ru/showthread.php?t=257261 which is what i do, and for the template edit for header you can just replace

Code:
<b>Post Count:</b> {vb:raw bbuserinfo.posts}<br><br><b>Last Visit:</b> {vb:raw pmbox.lastvisitdate} @ {vb:raw pmbox.lastvisittime}
With

Code:
<b>Post Count:</b> {vb:raw bbuserinfo.posts}<br><b>Credits:</b> {vb:raw bbuserinfo.credits}<br><b>Last Visit:</b> {vb:raw pmbox.lastvisitdate} @ {vb:raw pmbox.lastvisittime}
Also if you changed the name of the credits, just change credits accordingly. However you don't necessarily need the header rework, you can put "<b>Credits:</b> {vb:raw bbuserinfo.credits}" anywhere if you want.
Reply With Quote
Благодарность от:
bold
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:48 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.04737 seconds
  • Memory Usage 2,304KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (3)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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