Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Dec 2009, 17:35
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
[TEMPLATE SYNTAX] vb:each from piece of an array

I have an array:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I then render a template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In my template I can use this code fine:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But this template code would give me an error:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The error that I get is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Does anybody know what would be the correct syntax to use for this (from="binary.groups" is probably incorrect)? Or have I found a vBulletin bug?

--------------- Added 12 Dec 2009 at 22:11 ---------------

I figured this out.
I must use this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(from="binary['groups']" instead of from="binary.groups")
Just incase anyone is wondering, or searching for the same answer.

Thanks to whoever looked.

--------------- Added 12 Dec 2009 at 22:17 ---------------

That info also comes in handy if you're trying to use any arrays inside of a curly bracket.
For example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________

Last edited by rossco_2005 : 12 Dec 2009 at 22:17. Reason: Auto-Merged DoublePost
Reply With Quote
  #2  
Old 02 May 2010, 22:47
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
THank ya.

I thought it was dot syntax, too, heh.

Anyone know why it's not?
Reply With Quote
  #3  
Old 03 May 2010, 04:53
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Originally Posted by rossco_2005 View Post
Or have I found a vBulletin bug?
Yes you did.

http://www.vbulletin.com/forum/proje...?issueid=37479
Reply With Quote
  #4  
Old 16 Jun 2011, 09:33
arvid arvid is offline
 
Join Date: May 2003
Real name: Arvid Björkström
This post has helped me a lot of times. (I keep forgetting )
Reply With Quote
  #5  
Old 11 Nov 2011, 23:57
LuisMontemayor LuisMontemayor is offline
 
Join Date: Oct 2009
Thanks so much! this should be in the manual
Reply With Quote
Reply


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

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


New To Site? Need Help?

All times are GMT. The time now is 15:44.

Layout Options | Width: Wide Color: