Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #376  
Old 26 Feb 2014, 11:39
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Are you making it in a sidebar template? It's not going to work in static HTML.
__________________
-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
  #377  
Old 26 Feb 2014, 22:18
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Originally Posted by BirdOPrey5 View Post
Are you making it in a sidebar template? It's not going to work in static HTML.
I'm not sure on how to do that. Any guide on how I can do that without messing anything up in the process?
Reply With Quote
  #378  
Old 27 Feb 2014, 00:20
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by GameOverViper View Post
I'm not sure on how to do that. Any guide on how I can do that without messing anything up in the process?
Just copy everything from the (block_html) in your templates and create a new template and rename it to something like (block_html_user).

Then you wrap it in the conditional like this:


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

Once you do that, create a new forum block and in the "Template To Use" option add the new template you cloned, in this case "block_html_user"

And you are good to go! Make sure you replace the red "x" with the usergroups you which to only show it to.
Reply With Quote
  #379  
Old 27 Feb 2014, 00:37
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Appreciate the help CheechDogg! I believe it worked for me
Reply With Quote
  #380  
Old 27 Feb 2014, 01:55
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Good stuff Game glad it worked buddy...
Reply With Quote
  #381  
Old 25 Mar 2014, 17:25
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
If you want to show something to somebody with less than 10 posts, what's the conditional for that?
Reply With Quote
  #382  
Old 26 Mar 2014, 03:43
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Originally Posted by g00gl3r View Post
If you want to show something to somebody with less than 10 posts, what's the conditional for that?
This should do it.


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

Reply With Quote
  #383  
Old 31 Mar 2014, 04:40
biftek biftek is offline
 
Join Date: Apr 2005

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


does that code look right?
__________________
Ausbb - Australian BodyBuilding

Last edited by TheLastSuperman; 31 Mar 2014 at 12:13.
Reply With Quote
  #384  
Old 31 Mar 2014, 12:17
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Cool

Originally Posted by biftek View Post
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


does that code look right?
Try:

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

The !is means that it this condition is read as "If the user is not a member of usergroup #11 allow them to see this".
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #385  
Old 16 Apr 2014, 21:54
furnival furnival is offline
 
Join Date: Mar 2008
This works and should replace the non-working code given in the first post. Thank you Alp Ozdemir!
Originally Posted by Alp Ozdemir View Post
Try this;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Reply With Quote
  #386  
Old 24 May 2014, 10:15
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
hello! I want to show in some groups (1,2,3,4,5,6) postbit banner but don't know how to do it as this conditions are only to show TO groups but not FROM groups please help!
__________________
WBR`s
M.C.
Reply With Quote
  #387  
Old 24 May 2014, 15:56
vbxmod vbxmod is offline
 
Join Date: Aug 2012
Originally Posted by M.C. View Post
hello! I want to show in some groups (1,2,3,4,5,6) postbit banner but don't know how to do it as this conditions are only to show TO groups but not FROM groups please help!
Try this:

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

Reply With Quote
  #388  
Old 26 May 2014, 23:25
el3reef el3reef is offline
 
Join Date: Dec 2011
$bbuserinfo['userid']

or

$vbulletin->userinfo['userid']

not work in vb4
Reply With Quote
  #389  
Old 27 May 2014, 00:10
tbworld tbworld is offline
 
Join Date: Oct 2008
Please post your whole conditional statement and associated references.

What template?
What line number in that template?
What version of vBulletin?

There is no way we can determine anything from the data you have given us.
Reply With Quote
  #390  
Old 29 May 2014, 09:30
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
Originally Posted by vbxmod View Post
Try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This condition to show content TO usergroups in list but I want to show content if post FROM usergroup...

tbworld,

here is example: http://www.rcgroups.com/forums/showt...16#post7877841

this is vb3 forum but...

I want in postbit_legacy template for some groups add banner and change background as it's done in above forum

So my code should look like:

<div id="postbit_legacy_left">
avatar...
info...
<vb:if condition="IF USER WHO POST THIS FROM GROUPS: IDs OF PREMIUM GROUPS (1,2,3)">HERE COMES BANNER CODE</vb:if>
</div>

is it more clear now? Thanks
__________________
WBR`s
M.C.
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 08:34.

Layout Options | Width: Wide Color: