![]() |
|
Article Options |
#91
|
|||
|
|||
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? No members have liked this post.
Last edited by fitnesshealth; 27 Jul 2010 at 01:56. |
#92
|
||||
|
||||
Originally Posted by fitnesshealth
try this:![]()
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#93
|
|||
|
|||
Thanks, works great!
No members have liked this post.
|
#94
|
||||
|
||||
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) No members have liked this post.
|
#95
|
|||
|
|||
Originally Posted by ICannt.org
Any idea on this?![]()
Cheers No members have liked this post.
|
#96
|
||||
|
||||
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 No members have liked this post.
|
#97
|
||||
|
||||
Originally Posted by adom7
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.) No members have liked this post.
|
#98
|
||||
|
||||
Originally Posted by Lynne
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 No members have liked this post.
|
#100
|
||||||||||||
|
||||||||||||
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
I tried
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?
or is there something I am missing else where? Thank you in advance for any help.... No members have liked this post.
|
#101
|
|||
|
|||
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?
No members have liked this post.
|
#102
|
||||
|
||||
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. No members have liked this post.
|
#103
|
|||
|
|||
yeah, thats what I tried, but I cannot seem to get the forumid thing to work, I am using one of the ad templates
No members have liked this post.
|
#104
|
||||
|
||||
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. No members have liked this post.
|
#105
|
||||
|
||||
So in the template FORUMDISPLAY I've done this:
Except it isn't working, is there something I'm missing by some chance? Cheers. No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:04.