Quote:
Thank you so very much!! |
Quote:
|
Quote:
you will need to do this in the php file example would be... Code:
Reason For Turning Forum Off in Admincp |
Quote:
|
Quote:
Code:
<vb:if condition="$vboptions['bbactive']"> |
Quote:
as $vboptions['bbclosedreason'] |
Folks, Is there a conditional for member of infraction groups?
I want to show specific avatars for infraction groups. I tried the following <vb:if condition="$bbuserinfo['infractiongroupid'] ==1" /> also tried <vb:if condition="is_member_of($infractiongroupid, 1)" /> |
Quote:
|
I'm trying to get link forum links to open in a new window or tab, so here's what I have in forumhome_forumbit_level2_nopost
This is the code for the forum title link, and I've added a vb:if condition: PHP Code:
vB is telling me I have a malformed conditional and the code is not working, but damned if I can figure out why. |
Quote:
|
I'm sorry, I thought it was pretty obvious. It's within the forum title link and the conditional I added is the only one in the statement, but here's my whole code for forumhome_forumbit_level2_nopost
PHP Code:
--------------- Added 24 Nov 2012 at 23:09 --------------- The conditional I added was this: PHP Code:
|
Not that it should make a difference but did you try putting spaces outside the conditional?
Code:
"forumtitle" <vb:if condition="in_array($forum['forumid'], array(22,24))"> target="_blank"</vb:if> >{vb:raw .title}</a></h2> |
This worked fine for me:
HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" class="forumtitle" <vb:if condition="in_array($forum['forumid'], array('22','24'))"> target="_blank"</vb:if> >{vb:raw forum.title}</a></h2> |
Thank you both. :)
I got it to work by posting the same code in forumhome_forumbit_level2_post For some reason I was thinking it was using forumhome_forumbit_level2_nopost Thanks again! :) |
How to Usergroups able to view but can not use ?
Code:
<vb:if condition="is_member_of($bbuserinfo, 6,7,9,10,16)"> |
How do I get these two conditional work properly in a single task. I can not make it work.
Can someone help me? PHP Code:
|
You just use AND to join two conditions that both must be true.
Code:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7,42,43) AND $post['currentactivity']"> |
Quote:
|
Do you mean a widget template? Because template conditionals won't work in widget PHP code.
My guess is regardless, $post is a variable only available inside posts (the postbit template) and would not be available in any CMS template, so it would always return FALSE. |
Quote:
|
in temp forumhome_lastpostby
Quote:
|
Hi All,
I would want to plugin an optimizer code only in this forum page - http://www.indusladies.com/forums/married-life/ the code will go only in this forumdisplay page and not even in the showthread pages of htis forum - threads in this forum. Can anyone let me know the template conditional to do the same? Thanks. |
This is a must have for folks like me that are trying to learn so that they can be self sufficient in taking care of their site.
Thanks ! |
Quote:
|
Hello, I'm looking for a conditional that will highlight a reported post (in report thread), but not yet replied in the report thread.
The following code works to show a reported post Code:
<vb:if condition="$post['reportthreadid'] > 0"></vb:if> |
Quote:
|
Quote:
I'm in postbit legacy. What I'm trying to do is to highlight posts to let users know that the post has been reported and waiting moderators review. This will prevent users from quoting or replying to such post until someone has taken a look. We have a dedicated forum for reported posts. So What I want to do is create a conditional in postbit that will 1) highlight the reported post (the code I posted earlier does that) <vb:if condition="$post['reportthreadid'] > 0">THIS POST IS REPORTED</vb:if> 2) remove the highlight once there is a reply to the report in reported post forum (I was hoping the ">1" will do that, but that's not the case) Does this explanation help please? |
Quote:
|
Quote:
|
Quote:
|
I want to use day conditional. Please advise how to use it.
PHP Code:
|
Quote:
|
Quote:
How can I get registration on/of condition. Is it like <vb:if condition="$vboptions== 1"> ? I want to use registration on/off condition. Please help. |
that would be the variable $vboptions['bbactive']
|
Quote:
Is it like <vb:if condition="$vboptions>registration['active']"> |
Quote:
Quote:
|
Hello Lynne and everyone,
The smiliebox is causing havoc for me, so there are a couple of pages where I'd like it not to appear. I've worked out how to make it disappear for one of them, but I don't know how to make this happen for both. Editing the template editor_ckeditor, every time it says 'if smiliebox' I add an extra condition: <vb:if condition="$smiliebox" AND condition="THIS_SCRIPT != 'profile'"> That fixes it for the edit signature box. Smiliebox gone, editor full width. But how can I make it so that the condition applies if there is a smiliebox and if I'm not on either the profile page or the showwiki page? Huge thanks for any help. ~~~~~ Update: I was using 'AND' because an earlier post on this thread said it was possible. Well... at least for me, it didn't work. I tried it both with and without the 'condition=' following. The result's always the same: only the final condition before the > is applied, none of the others. The example I gave above did indeed remove the smiliebox from the profile, but it had removed the first condition (which meant the smiliebox was appearing in all other editors eg quickreply). Didn't notice that until later... The only way I found to apply three conditions was to create three nested 'ifs'. Not pretty, but it works. Thanks to BBR-APBT for the original post! |
I'm wanting to hide some coding for my advertisements for a specific usergroup. How do I do this?
I originally used the show for usergroup code, but apparently that's no longer working right. |
What happens with
Code:
<vb:if condition!="is_member_of($bbuserinfo, 1)">ad code here</vb:if> |
Quote:
PHP Code:
|
All times are GMT. The time now is 12:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|