Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #121  
Old 04 Sep 2010, 11:38
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Real name: Paul
Originally Posted by moonclamp View Post
I'll have a go with the above a bit later (when nobody is on my site), thanks
That didn't work either. I don't think the problem is the actual conditional though ... I just think that the plugin isn't accessing the profile information in order to apply it.
Reply With Quote
  #122  
Old 13 Sep 2010, 16:29
derbi derbi is offline
 
Join Date: Jun 2007
Originally Posted by malmazan View Post
I all templates i edit the above did not work.

What did work was:

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

Though your conditional may work in some other templates.
thanks for the correct code!
Reply With Quote
  #123  
Old 13 Sep 2010, 21:15
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by derbi View Post
thanks for the correct code!
There is no possible way the code you quoted works... It starts of as VB3 condition with just: <if condition="..."> and ends with the VB4 conditional </vb:if>... so that code won't work in any version... In VB3 you don't use the "vb:" at all, in VB4 you need to use it every time.
__________________
-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
  #124  
Old 28 Sep 2010, 12:56
utahwildlife utahwildlife is offline
 
Join Date: Aug 2010
inserting a IMG as a template conditinal?

I am trying to insert a an unique image heard for each of main page, HOME, Forum, What's New etc. How would you do that with condition?

Fore example: If you are on the Home page include home heard image, If you are on the Forum page include Forum image, and so on.

Please see attachments.
Attached Images
File Type: jpg homeHeaderIMG.jpg (149.4 KB, 16 views)
File Type: jpg forum_headerIMG.jpg (140.9 KB, 15 views)
Reply With Quote
  #125  
Old 28 Sep 2010, 15:34
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by utahwildlife View Post
I am trying to insert a an unique image heard for each of main page, HOME, Forum, What's New etc. How would you do that with condition?

Fore example: If you are on the Home page include home heard image, If you are on the Forum page include Forum image, and so on.

Please see attachments.
You'd use this condition:


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

You need to find out what the script names are for each page you want to show... I think home is "index" and forums is "forumdisplay"

So basically...

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

Any other pages (like "showthread" and "calendar") won't show an image at all...

--------------- Added 28 Sep 2010 at 19:46 ---------------

NEW POST HERE-- Stupid Auto Merge


FYI This is a useful conditional if you want to hide the Facebook Like button in forums that aren't open to the public. If someone "Likes" a thread in a private forum people will be greeted with a no-permission "have to register" message which usually people will just get annoyed at rather than register. In fact if it's a private forum they may not even have access even after registering.

To use this conditional edit the SHOWTHREAD template... find the code:

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

and change it too:

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

Where 3,4,5 are forum id's of the forums you want to hide the button in.
__________________
-Joe
Former vb.org Moderator. Retired.

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

Last edited by BirdOPrey5; 02 Jul 2011 at 05:47. Reason: Auto-Merged DoublePost
Reply With Quote
  #126  
Old 22 Oct 2010, 12:34
adom7's Avatar
adom7 adom7 is offline
 
Join Date: Aug 2007
any "if condition" to show text/html only once on a certain place?

I am using CMS on my live site, and it has 1x2 content column on front page. I tried to place text/html/adsense code after first column however it always displays the text on all columns.

Any recommendations for that?
__________________
Need for mods
Reply With Quote
  #127  
Old 15 Dec 2010, 23:33
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Real name: David Smith
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Show this to user group 1, 2, and 3</vb:if>

what if I move someone to a group and then i wanted to show an image in the postbit for everyone to see IF that member is in a certain group.
Reply With Quote
  #128  
Old 16 Dec 2010, 02:39
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
In postbit you can use this to see if a member is in usergroup x.


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
  #129  
Old 19 Dec 2010, 11:54
bond010007's Avatar
bond010007 bond010007 is offline
 
Join Date: Sep 2008
Real name: AHMED EL-SAYED
Great work i love it
__________________
http://www.ghawyy.com/forum

we are rocking the web
Reply With Quote
  #130  
Old 06 Jan 2011, 20:45
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
I have tried this code below in my footer ad location and it display in all my usergroups. Is there something wrong with the code?


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

Reply With Quote
  #131  
Old 06 Jan 2011, 21:58
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by attroll View Post
I have tried this code below in my footer ad location and it display in all my usergroups. Is there something wrong with the code?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
What did the code you used look like?
__________________
Reply With Quote
  #132  
Old 07 Jan 2011, 00:26
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by attroll View Post
I have tried this code below in my footer ad location and it display in all my usergroups. Is there something wrong with the code?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This exact code is working fine in my footer, only issue would be is if you somehow pasted it in-between some other <if> code... Also are you sure you are using vBulletin 4.x? This won't work on 3.x.
__________________
-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
  #133  
Old 07 Jan 2011, 04:35
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Damn, my bad. this web site that I am trying to get it to work on is VB3. Sorry guys. Thanks for the help anyways. It will have to wait until i upgrade to VB4.

Thnaks
Reply With Quote
  #134  
Old 07 Jan 2011, 04:53
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by attroll View Post
Damn, my bad. this web site that I am trying to get it to work on is VB3. Sorry guys. Thanks for the help anyways. It will have to wait until i upgrade to VB4.

Thnaks
The code for VB3 is very similar...


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
  #135  
Old 07 Jan 2011, 05:35
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
BirdOPrey5

Thank you very much. that will hold me over until I update to VB4.
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 21:28.

Layout Options | Width: Wide Color: