Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #31  
Old 28 Aug 2006, 12:56
Majed37 Majed37 is offline
 
Join Date: Oct 2005
Originally Posted by toolblast
Variables you want to be able to use in any template need to be defined globally on vbulletin...

Some urls that may help:
link 1, link 2, link 3
thank you. I will read these pages .
Reply With Quote
  #32  
Old 30 Aug 2006, 13:01
The-Ensemble's Avatar
The-Ensemble The-Ensemble is offline
 
Join Date: Jul 2006
Real name: Jaymes
Thanks!
I thought nothing in here would be useful to me but those IF conditions really helped me out.
Cheers! ^_^
Reply With Quote
  #33  
Old 03 Aug 2007, 14:13
toolblast's Avatar
toolblast toolblast is offline
 
Join Date: Mar 2004
Real name: Chad
Glad this thread has been helpful to people
__________________
~~My Portfolio~~
Reply With Quote
  #34  
Old 18 Aug 2007, 15:43
punchbowl punchbowl is offline
 
Join Date: Nov 2006
best thread ever!
Reply With Quote
  #35  
Old 24 Dec 2007, 03:41
wisebread's Avatar
wisebread wisebread is offline
 
Join Date: Dec 2007
$foruminfo[] array

Hi all,

What are the variables available in the $foruminfo[] array? I'm looking to linkify the forum description box, so the name of the forum links to the forum.

TIA!
Reply With Quote
  #36  
Old 26 Dec 2007, 16:21
hrk's Avatar
hrk hrk is offline
 
Join Date: May 2007
thanks for sharing.
really help me a total newbie get started.
this should incl in the manuals.

i have one doubts .
normally we add standard css inline.

how do i direct the template to external css? and which file in edit in this?
can the standard import command be used ?

thanks
Reply With Quote
  #37  
Old 28 Dec 2007, 00:17
toolblast's Avatar
toolblast toolblast is offline
 
Join Date: Mar 2004
Real name: Chad
ebook

Hi everyone!

Thanks for reading this thread and I hope you found it helpful. I'm currently putting together an ebook to help people get started with customizing vbulletin with their own pages and products/plugins. Step by step instructions (with screenshots) on how to create your very first custom product (introduction to custom php files, plugins, hooks, style templates, integrating user information, etc), as well as tips, tricks, and code snippets that you can use to get some commonly asked things done... and all in simple to understand english

If interested, shoot me a private message.

Customizing vBulletin can be fun! Let us show you how

Update:In the meantime, be sure to check out vb.org's articles section, and the vBulletin Manual.
__________________
~~My Portfolio~~

Last edited by toolblast; 28 Dec 2007 at 00:28.
Reply With Quote
  #38  
Old 28 Jan 2008, 16:05
petteyg359 petteyg359 is offline
 
Join Date: Dec 2007
You have $vbulletin->userinfo['username']. Where is $bbuserinfo['field6'] via the function call?
Reply With Quote
  #39  
Old 30 Jan 2008, 19:39
Supramania's Avatar
Supramania Supramania is offline
 
Join Date: Mar 2006
Real name: Michael Donohue
This is good stuff. I do have a question that isn't covered.

Say I have a multiple choice custom user profile field that is stored bitwise in the database.

Example:

Choice 1 = 1
Choice 2 = 2
Choice 3 = 4
Choice 4 = 8
Choice 5 = 16

So if a user selected choices 4 and 5, the stored value would be 24.

How could I evaluate this easily with an If/Then statement so that I could display the appropriate icons under the username in the postbit based upon each choice.

For example, the for the user above it would need to display two icons that correspond to choices 4 and 5.

If an user had selected ALL fields, the value would be 31, and it would need to display 5 icons.

I've done plenty of the <if condition="is_member_of($post, X)"> logic when it comes to usergroup membership, but this bitwise storage is confusing.

Can anyone show me a quick sample that would help clear this up for me?

Edit: I figured it out. Here's the answer for anyone looking for it:


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

__________________

Last edited by Supramania; 30 Jan 2008 at 21:09.
Reply With Quote
  #40  
Old 03 Mar 2008, 00:45
zmmmzz zmmmzz is offline
 
Join Date: Nov 2007
this thread helps so much
what about that ebook?
Reply With Quote
  #41  
Old 11 Jul 2008, 03:49
aisais aisais is offline
 
Join Date: Jan 2005
Excellent thread. Thanks
Reply With Quote
  #42  
Old 15 Aug 2008, 16:56
katwomanofsteel's Avatar
katwomanofsteel katwomanofsteel is offline
 
Join Date: Dec 2007
Just read your variables article and it was very helpful! However, I still can't figure out how to pull into the postbit template, a poster's paid subscription information in 3.5.8.

Tried an if condition to check for $user['donator'] (hoping this would grab the check for paid subscriptions field in the user table) but that isn't working and I can't figure out where in the db the field is for the user's paid subscriptions...

Any ideas?
Reply With Quote
  #43  
Old 18 Aug 2008, 04:22
ForgotenDynasty ForgotenDynasty is offline
 
Join Date: Jul 2008
if i want to use these on a nonvb page all i need to do is include the global.php correct?
Reply With Quote
  #44  
Old 02 May 2009, 12:22
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Real name: Kiera
Originally Posted by aisais View Post
Excellent thread. Thanks
ditto! And Thanks!

Another Question (this thread seems appro): those pesky 'lil "phrase variables" embedded within vB phrases (ie: the ones that look like {1} and ofttimes come with plugins) what's the easiest way to add more or change 'em?

Forgive if stupid question,

Rabbit
Reply With Quote
  #45  
Old 24 Feb 2010, 21:44
mokonzi's Avatar
mokonzi mokonzi is offline
 
Join Date: Nov 2007
Sorry to resurrect a seriosuly old article, but since I found this useful in 3.7 and 3.8, it might be nice to get some updated info in here...

So...

My question is what is the proper {vb:raw} expression to put a profile field into a template?
__________________
Mokonzi

www.thexuniverse.com, home to the Xtended Mod and fansite for the X²: The Threat and X³: Reunion by Egosoft.
Reply With Quote
Reply



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

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


New To Site? Need Help?

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

Layout Options | Width: Wide Color: