![]() |
Try $GLOBALS['forumid'] instead of $forum[forumid].
|
You da man ozzy! Worked perfectly! Thanks!
|
Excellent, glad to hear. :)
|
I have a conditionals question. I need to use two else statements within one area like this:
Code:
<vb:if condition="$GLOBALS['forumid'] == 2"><h1>This is my header</h1></vb:else> |
I think this should work:
Code:
<vb:if condition="$GLOBALS['forumid'] == 2"><h1>This is my header</h1> |
Thanks Kevin that worked! :)
|
Thanks for the help you provide in this post. I am looking for one conditional I haven't found in this topic.
The idea is to have a conditional in the blogs, showing a content only if it is one blog. <vb if condition="blog user id = 3954">show this<vb if/> But i don't know the variable to use in: "blog user id = 3954" I want to put this in the sidebar to show special logo for the blog of each user. Any help would be great!!! Thanks, |
I'm re-coding my forum leaders page and I need a conditional to call the avatar & username of a staff member. How do I go about doing this exactly? I'm creating 3 columns and putting a user in each column coding it myself in the template but I want the ability for the avatars & usernames to change automatically if the staff member changes it in their profile. This is a custom coded page so I'm not planning on using the default vB 4 group id codes that are found in the showgroups template.
|
we have a section with 3 different Prefix - so they have a SAME forum ID but different prefix.
is it possible to have one message to ALL posts in that forum but only with one specific of those 3 prefixes ??? Thanks |
hi i need show only by ['threadid']
|
Anyone happen to know the condition (for mod/supers) that IF can view user profile?
|
Do you mean this:
HTML Code:
<vb:if condition="can_moderate()">Show this to all moderators</vb:if> |
hello sir i need to hide Adsense from 5 or 7 forums can you give me the code of hiding from several forums
--------------- Added [DATE]1457256110[/DATE] at [TIME]1457256110[/TIME] --------------- Quote:
|
For multiple forums use this:
HTML Code:
<if condition="!in_array($GLOBALS[forumid], array(1,2,3,4,5...))> |
Quote:
Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(1,2,3...))> |
Quote:
Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(1,2,3))> |
Quote:
|
You need to close the condition with a double quote:
HTML Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(1,2,3))"> |
Quote:
Edit: That worked, thanks Mark! |
I want to show image with link only in specific language and not to show in specific script.
This is my code: (works only with language) I see image in register.php Code:
<vb:if condition="$bbuserinfo[languageid] == 2"> |
Put your code into place on your test site, and I'll take a look. It looks to me like it should work, although I would combine the two conditions personally. :)
|
Quote:
|
Quote:
|
Quote:
Thanks Mark. if you see that code is ok, than i will test again to see whats up |
I would combine the conditions as follows:
HTML Code:
<vb:if condition="$show['guest'] AND $bbuserinfo[languageid] == 1 AND THIS_SCRIPT != 'register'"> |
Thank you Mark it works, I do not know why the above does not, Any way the results matter. :)
|
Quote:
|
Yes :)
For my knowledge and may be in use, how to put more than one Script I need Lets say 'register' and "login" Thanks |
Try:
PHP Code:
PHP Code:
|
I have a problem with this
HTML Code:
THIS_SCRIPT != 'tags' Anyway, is there a way to block showing ads for tags within default mobile style? Which template is used in default mobile style to show /tags/some_tag/ link, which shows all threads with that tag? |
What do i wrong here ? :eek:
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1) AND THIS_SCRIPT == 'commerce_cart'"> |
I would use the condition:
HTML Code:
$show['guest'] |
Oh yes, thanks for your hint Mark :up:
|
I need to have a conditional that shows only on the vbcms index page only, can this be done ?
|
Hello,
Is it possible to remove adsense code spesific thread ? Regards |
Quote:
Nobody ??? |
Code:
|
Quote:
Code:
<vb:if condition="$GLOBALS['forumid'] == x">Show this if forum id is x</vb:if> |
Quote:
|
And thanks from me as well. This worked perfectly...
|
All times are GMT. The time now is 12:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|