![]() |
|
Article Options |
#196
|
||||
|
||||
Thank you. It would be good if someone makes new mod for managing BBcode. Hopefully someone would...
No members have liked this post.
|
#197
|
|||
|
|||
Is there a condition for all pages/content with a certain section of the cms?
__________________
creative writing forums and writing workshops No members have liked this post.
|
#198
|
||||||||
|
||||||||
Some more conditions you can add to your list:
Show only if vBulletin notices are not shown
For use in template navbar: Show only in Forum ID X
But I have one question. Is there a condition to show something only in the second post of each thread and page? Something like "isfirstshown" just for the second post? No members have liked this post.
|
#199
|
||||
|
||||
There's no condition specifically for 2nd posts but if you set your forum to a set number of posts per page you could make a condition like:
...and so on... Assuming 10 posts per page- Yeah at some point the condition won't work anymore but how many threads really go X number of pages anyway. I assume you want it to show an ad so if it works in 95% of thread pages it should be good enough. Otherwise I'd imagine a plugin could be written to keep count and be true only for 2nd posts.
__________________
-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.
|
#200
|
||||
|
||||
how is conditional syntax for the thread that has been closed?
example: <vb:if condition="closed thread???"> show message cause thread that has been closed </vb:if>
__________________
Salam Hangat Selalu No members have liked this post.
Last edited by Hasanudin; 26 May 2011 at 15:30. |
#201
|
||||||||
|
||||||||
In the showthread template there is this code:
So
is the condition but if it's TRUE the thread is OPEN, if it's FALSE the thread is closed... at least that is what it looks like to me.
__________________
-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.
|
#202
|
||||
|
||||
This conditional is being placed in a forum block, but doesn't work correctly. I only wish to display the code to members who are logged in. Not guests.
Here's what I have:
What's the correct way of writing this? Thanks! No members have liked this post.
|
#203
|
||||
|
||||
@BirdOPrey5
thx, but its not work to me.. ![]() * my code at postbit_legacy @tundrasoul may be this..?
__________________
Salam Hangat Selalu No members have liked this post.
Last edited by Hasanudin; 26 May 2011 at 22:49. |
#204
|
|||
|
|||
No members have liked this post.
|
#205
|
||||
|
||||
or this.. ?
usergroup 1 = guest
__________________
Salam Hangat Selalu No members have liked this post.
|
#206
|
||||
|
||||
Originally Posted by Hasanudin
It makes no sense, it should be but it doesn't. vB 4.13.![]()
The code still displays to everyone including guests. No members have liked this post.
|
#207
|
||||
|
||||
@tundra
this is worked for me :
__________________
Salam Hangat Selalu No members have liked this post.
|
#208
|
||||
|
||||
Originally Posted by Hasanudin
![]()
Did you try it in the forum block code? It doesn't work there for me, using vB 4.13. No members have liked this post.
|
#209
|
||||
|
||||
Originally Posted by Hasanudin
Both you guys are probably having the same issue, the variable isn't used in your template by default so you must register it there. There's another article here on how to register variables for use in templates: http://www.vbulletin.org/forum/showthread.php?t=228078![]()
For example the closedthread check is only done in showthread, not postbit, so you have to pre-register it for postbit.
__________________
-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.
|
#210
|
|||
|
|||
hi
how to display Google ads to the guest and in home page only? 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 23:53.