Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #181  
Old 28 Mar 2011, 13:42
Bisha's Avatar
Bisha Bisha is offline
 
Join Date: Mar 2006
Thank you both

The second is ok in my case!

The number of post is under 1000 so is ok also on vb4!

Reply With Quote
  #182  
Old 28 Mar 2011, 14:42
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Lynne View Post
Maybe you are just not using commas to format large numbers on your forum? It has definitely been around since vB3 also.
After double checking I see indeed $post[posts] is formatted with commas. I was using $bbuserinfo[posts] which isn't. (but of course contains different data.)
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #183  
Old 02 Apr 2011, 01:27
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
I am trying to find the new conditions for VB4.

Old condistion:

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

I have tried this with no luck:

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

Any ideas?
Reply With Quote
  #184  
Old 02 Apr 2011, 02:56
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Try:

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

__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #185  
Old 02 Apr 2011, 03:26
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Originally Posted by BirdOPrey5 View Post
Try:

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

I tried putting the following conditions that you recommended in this code for a widget and even when it is not Wednesday it still displays. Any ideas or help would be appreciated.

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

Reply With Quote
  #186  
Old 02 Apr 2011, 14:10
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
This is the exact code I have working right now on my test forum:

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

If I change Sat to any other day, it doesn't work. Yesterday it worked with Fri instead.

I have this working in my Navbar template.

I've never used widgets, do template conditionals work in them at all?

I did notice a limitation, gmdate returns Greenwich Mean Time, so it works when it's Wednesday in Greenwich, England.
http://us.php.net/manual/en/function.gmdate.php

Unfortunately vBulletin doesn't seem to allow the regular date() function which returns the local date, so this may not work well for you anyway.

FYI- Your code pasted into my navbar works fine.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #187  
Old 14 Apr 2011, 08:53
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
is it possible to use a conditional to check whether you're viewing ONLY the very front page (CMS)?

e.g. I'd like to add a link in the footer of just the CMS's front page - but not on any other pages, not show if they're reading an article, not show if they're using forum or blogs, etc. etc. - just the front page and only the front page.
Reply With Quote
  #188  
Old 14 Apr 2011, 08:55
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Originally Posted by karlm View Post
is it possible to use a conditional to check whether you're viewing ONLY the very front page (CMS)?

e.g. I'd like to add a link in the footer of just the CMS's front page - but not on any other pages, not show if they're reading an article, not show if they're using forum or blogs, etc. etc. - just the front page and only the front page.
Try this....

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

__________________
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
"It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!
Reply With Quote
  #189  
Old 14 Apr 2011, 09:14
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Thanks HM, but that shows when reading articles too... I need the code to only show on the front page alone - not articles/comments... If you have any ideas on narrowing it down, that would be most appreciated
Reply With Quote
  #190  
Old 14 Apr 2011, 09:20
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
I'm not sure that's possible since the articles/comments run off of that same script....
__________________
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
"It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!
Reply With Quote
  #191  
Old 14 Apr 2011, 18:53
Bisha's Avatar
Bisha Bisha is offline
 
Join Date: Mar 2006
One more thing...

how to do a OR condition.

<vb:if condition="$xxx" OR condition="$yyy" >
With OR and || is not working...
Reply With Quote
  #192  
Old 14 Apr 2011, 18:56
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Bisha View Post
One more thing...

how to do a OR condition.

<vb:if condition="$xxx" OR condition="$yyy" >
With OR and || is not working...
it's...


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

__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #193  
Old 14 Apr 2011, 19:08
Bisha's Avatar
Bisha Bisha is offline
 
Join Date: Mar 2006
Thank you BirdOPrey5


Reply With Quote
  #194  
Old 18 Apr 2011, 15:31
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
I want to restrict some custom BBcodes to only certain usergroups (moderators and higher).

I tried to wrap BBcode inside this statment, but it doesn't work:


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

Any idea how BBcode use could be restricted only to certain usergroups?
Reply With Quote
  #195  
Old 18 Apr 2011, 21:14
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Conditionals like these (Template Conditionals) only work in templates, they don't work in BB Codes.

There is a mod, "Advanced BB Code Manager" that is for an older version of vBulletin but still works on the latest 4.x it has been reported.

Only way of doing this without writing your own mod.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 2 (0 members and 2 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 20:58.

Layout Options | Width: Wide Color: