vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Add-On Releases - (vBCredits II Addon) Persistant Navbar Credits Display with Background Image (https://vborg.vbsupport.ru/showthread.php?t=254962)

Replicators 12-08-2010 10:00 PM

(vBCredits II Addon) Persistant Navbar Credits Display with Background Image
 
1 Attachment(s)
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:
http://img208.imageshack.us/img208/8...itsdisplay.jpg


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.

DragonByte Tech 12-09-2010 09:23 PM

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

Iain

Darkwaltz4 12-10-2010 04:17 AM

I can also confirm that this will work just fine with the lite version :)

bold 07-16-2012 01:52 PM

Is there a version for vb 4.2.0?

wonderfulwat 10-25-2012 06:14 AM

Is something like this available for vb 4.2?

Davey-UK 02-23-2013 11:04 AM

Quote:

Originally Posted by bold (Post 2348675)
Is there a version for vb 4.2.0?

Quote:

Originally Posted by wonderfulwat (Post 2375815)
Is something like this available for vb 4.2?

I would also be interested in a reply to this. :o

Dorgham 04-03-2013 10:58 PM

Good job

Replicators 04-03-2013 11:20 PM

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.


All times are GMT. The time now is 09:38 AM.

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.01089 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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