vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2011, 07:28 AM
Morrus Morrus is offline
Member
 
Join Date: Feb 2004
Posts: 79
Default Need some help "globalizing" something

At least, I think that's what I need to do.

I'm trying to install a small mod which displays a user's credits (from vBCredits II) in the navbar. Works perfectly on the forum pages, but always shows up as zero on the vBAdvanced main page.

This is the code being used:

NAVBAR TEMPLATE

Quote:
<if condition="$bbuserinfo['userid']">
$template_hook[Vbcredits_Display]</if>
CREDITS_DISPLAY_NAVBAR_ROW TEMPLATE

Quote:
<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>
Under Main Options on the problem page, I see the bit where I should enter variables to be "globalized". I'm not sure that's the solution to the problem, but I don't know what to enter there. I've tried various things in the above code which have a $ sign in front of them (I missed the dollar sign out as instructed on the admin page), I've tried the hook name, but it doesn't seem to be working.

Any ideas what I should be doing?
Reply With Quote
  #2  
Old 04-18-2011, 03:24 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Try adding the following to the 'Portal Output Gloabl Variables' setting:
Code:
template_hook
vb4
currency
user
useramt
If that doesn't help, try adding a new plugin with the following values:
Product: vBadvanced CMPS
Hook Location: global_complete
Execution Order: 1
Plugin PHP Code:
PHP Code:
global $template_hook$vb4$currency$user$useramt
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #3  
Old 04-18-2011, 06:30 PM
Morrus Morrus is offline
Member
 
Join Date: Feb 2004
Posts: 79
Default

Nope, no workee. Still showing as zero on the front page.
Reply With Quote
  #4  
Old 04-19-2011, 09:41 AM
Morrus Morrus is offline
Member
 
Join Date: Feb 2004
Posts: 79
Default

No other ideas?

At worst, a way to just have it not show on the front page would be an improvement.
Reply With Quote
  #5  
Old 04-21-2011, 10:49 AM
Morrus Morrus is offline
Member
 
Join Date: Feb 2004
Posts: 79
Default

Should I take that as a "no", then?
Reply With Quote
  #6  
Old 04-22-2011, 01:10 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Admin CP => vBa CMPS => Default Settings => Main Options => Process PHP File Modules Within A Function
About the only other thing I can suggest would be to try disabling that setting if it's enabled.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search: Modul "User online" for "Ajax Chat" (blueimp.net) Joachim Module & Modification Discussion & Requests 1 01-19-2009 02:33 PM
"Automatically Parse Links in Text" in "Custom Field" + Firefox bug Marko777 Bugs From 2.0 RC1 1 10-18-2006 03:31 PM
"New Posts" total not updating after "Marking Forums Read" unless we "log out" Mithan Troubleshooting & Problems 3 07-12-2006 07:28 PM
Latest Topics - Combine "Show New Posts" with "Goto New Post" Tom M Add-On Modules & Modifications 2 08-08-2005 10:10 AM


All times are GMT -4. The time now is 03:31 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.