Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #91  
Old 27 Jul 2010, 00:49
fitnesshealth fitnesshealth is offline
 
Join Date: Oct 2006
I have a piece of code added to the end of footer template but I want this piece of code to be visible only when i'm reading a thread (any thread).

May I ask if there's any conditional for this?

Last edited by fitnesshealth; 27 Jul 2010 at 00:56.
Reply With Quote
  #92  
Old 27 Jul 2010, 02:05
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by fitnesshealth View Post
I have a piece of code added to the end of footer template but I want this piece of code to be visible only when i'm reading a thread (any thread).

May I ask if there's any conditional for this?
try this:


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
  #93  
Old 27 Jul 2010, 07:41
fitnesshealth fitnesshealth is offline
 
Join Date: Oct 2006
Thanks, works great!
Reply With Quote
  #94  
Old 31 Jul 2010, 21:11
encryption's Avatar
encryption encryption is offline
 
Join Date: Sep 2005
I would really benefit from a similar list of conditionals from php code, rather than conditionals. I can do nearly anything I want in a template thanks to this list, but trying to determine if a user is a member of a usergroup via php code is still foreign to me. Does anybody know of a list of these, or is anybody willing to translate this list to a php counterpart list?
__________________
www.MJWebhosting.com - (Vbulletin Forum Hosting, free migrations and free vb upgrades)
www.MercuryServer.com - (Our vBulletin forum Managed & hosted by MJWebhosting)
Reply With Quote
  #95  
Old 07 Aug 2010, 07:40
ICannt.org ICannt.org is offline
 
Join Date: Jan 2010
Originally Posted by ICannt.org View Post
Hello all,

How would I be able to make a mix of this? ie: Show in all forums except for 40, 41, and 42?

Cheers
Any idea on this?
Cheers
Reply With Quote
  #96  
Old 07 Aug 2010, 11:54
adom7's Avatar
adom7 adom7 is offline
 
Join Date: Aug 2007
Can anyone assist me how to show a few texts on a certain time?
Let me explain,
I want my users see some texts displaying on site in the morning, however in the evening they will see another text on site.

Is there a conditional for that?
__________________
Need for mods
Reply With Quote
  #97  
Old 07 Aug 2010, 15:24
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by ICannt.org View Post
Any idea on this?
Cheers

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

Originally Posted by adom7 View Post
Can anyone assist me how to show a few texts on a certain time?
Let me explain,
I want my users see some texts displaying on site in the morning, however in the evening they will see another text on site.

Is there a conditional for that?
I think you are going to require more than a condition. You'll have to write plugin that takes TIMENOW (the current time in unix time) and converts it to the users time (don't forget that there are timezones to consider here) and then use the result there in your condition. You can look in the API here - http://members.vbulletin.com/api/ - for vbdate and that should help.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #98  
Old 07 Aug 2010, 18:09
adom7's Avatar
adom7 adom7 is offline
 
Join Date: Aug 2007
Originally Posted by Lynne View Post

Can anyone assist me how to show a few texts on a certain time?
Let me explain,
I want my users see some texts displaying on site in the morning, however in the evening they will see another text on site.

Is there a conditional for that?
I think you are going to require more than a condition. You'll have to write plugin that takes TIMENOW (the current time in unix time) and converts it to the users time (don't forget that there are timezones to consider here) and then use the result there in your condition. You can look in the API here - http://members.vbulletin.com/api/ - for vbdate and that should help.
Thank you, Lynne
But I can't do that by myself. I hope someone handle it
I would like to use it for adsense.
__________________
Need for mods
Reply With Quote
  #99  
Old 11 Aug 2010, 18:47
Come2Daddy Come2Daddy is offline
 
Join Date: May 2008
Beautiful
Reply With Quote
  #100  
Old 13 Aug 2010, 21:02
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Please Help.
I am unable to duplicate results in other Templates

I have been able to set linked images to show in the postbit_legacy template for custom profile fields with no problem using


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

I tried

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

But this shows the user who is viewing the informations link (if set) as apposed to the member who's profile they are viewing

So what I am asking is, is there an alternative conditional for?

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

or is there something I am missing else where?

Thank you in advance for any help....
Reply With Quote
  #101  
Old 19 Aug 2010, 14:00
nymyth nymyth is offline
 
Join Date: Jun 2002
does AND still work if I want to combine statements, for example if I want to combine if a person is a guest and the forum is 1, show this else show something else...how would I do that?
Reply With Quote
  #102  
Old 19 Aug 2010, 16:31
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Just use 'AND'


<vb:if condition="$forum[forumid] == 5 AND $show['member']">Show this if forum id is 5 and user is a member.</vb:if>
__________________
-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
  #103  
Old 19 Aug 2010, 21:08
nymyth nymyth is offline
 
Join Date: Jun 2002
yeah, thats what I tried, but I cannot seem to get the forumid thing to work, I am using one of the ad templates
Reply With Quote
  #104  
Old 19 Aug 2010, 21:46
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You could try putting the condition in the header / footer or navbar template instead of the ad location... it will have the same ultimate effect.
__________________
-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
  #105  
Old 25 Aug 2010, 12:03
ICannt.org ICannt.org is offline
 
Join Date: Jan 2010
So in the template FORUMDISPLAY I've done this:

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

Except it isn't working, is there something I'm missing by some chance?

Cheers.
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 15:01.

Layout Options | Width: Wide Color: