Quote:
Regards, Kether --------------- Added [DATE]1309015535[/DATE] at [TIME]1309015535[/TIME] --------------- Just a follow-up update: I finally figured it out with your help, Joe. I went to the template and just started deleting bits and checking to see what was displayed. I found the bit that was causing the information to be displayed to everyone even though we told it to only display to the admin and user. After removing that code. It all worked!! Thanks again for your help. I appreciate it very much. Kether |
Hello,
Am looking for a template conditional for Blog pages. I tried this: Quote:
but this works only for the blog home page. I would want a template conditional that applies to all the blog pages. Thanks. |
Quote:
I try to modify and create the ad-placements with a precheck, wether there are more then X posts on a showthread page or not. Dependencies:
PHP Code:
Any help appreciated. |
Hello,
Am looking for a template conditional: In Showthread page - postbit, the username of the poster needs to be in red color if she belongs to a particular usergroup id - 34, I tried this PHP Code:
Let me know the correct conditional that needs to go there. BTW the conditional to check if the page is a blog page including the blog index use the below: PHP Code:
|
Quote:
|
Hello Marv,
Thanks for the response. Guess you are talking about the "Username HTML markup". But this user has the usergroup id - 34 as her secondary user group ( and not primary user group). Hence the HTML markup - color code set in the usergroup setting is not output in the postbit. let me know how to obtain this. Thanks in advance. |
I think the condition is correct. Are you using post.musername or post.username? post.musername includes the group markup, which is probably overriding your color, so try post.username.
|
Quote:
memberaction_dropdown is called from many different templates, not just the postbit. |
Oh, good point Joe, I saw postbit and missed memberaction_dropdown. Sorry induslady.
ETA: Actually I think you might be able to substitute $memberinfo for $post. You still may have to use username instead of musername. |
How can I insert a banner in the first post of the every pages of the thread ?
|
Quote:
find {vb:raw post.message} Either directly above it or below it add this code: Code:
<vb:if condition="$post['isfirstshown']"> |
Quote:
thanks alot it is worked perfectly:D is there any way to put the banner between the content of thread? ie: among words of post not before nor after thanks again |
Not with a template conditional... that would require some custom coding beyond the realm of this article.
|
Quote:
|
Hi,
I created a profile field that I'd like each usergroup to view but only want 3 usergroups to use. How do I go about that in postbit legacy? Here's what I have so far: Code:
<vb:if condition="$post[field27] != ''"><img src="images/favthings/{vb:raw post.field27}.png" title="Favorite Things" align="left" border="0" /></vb:if> |
Quote:
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3) AND $post[field27] != ''"><img src="images/favthings/{vb:raw post.field27}.png" title="Favorite Things" align="left" border="0" /></vb:if> |
Thank you SO much!! :)
|
Quote:
|
^^Regarding the same code above, is there a way to let the image show to everyone but only usable for certain usergroups? Meaning the image will only be active in 4 usergroups' postbit but everyone can view the image.
Not sure if I'm explaining it well... |
I'm trying to make the tab to collapse the sidebar only visible to paid members, I want everyone else to be unable to collapse it.
Would this be the correct edit to the forumhome template? Code:
<a id="sidebar_button_link" href="#"> thanks in advance |
Hello guys,
Maybe someone can help me... I have this code: PHP Code:
I need that: - the link only shows when the user have threads at least in one of that two forums. - If not, the link doesn't appear. Is there any syntax for this? Or else, I had another idea... The links only appear If the user belongs to a specific group. |
Quote:
|
How do you use conditionals to hide a thread by use of it's thread id or a combination of thread ids?
Say for instance, I have a thread in a forum that I don't want guests to view but I want guests to be able to view the whole subforum and it's other threads. |
Awesome, thanks!
|
Is this the most efficient way to do a multi-THIS_SCRIPT if conditional?
Code:
<vb:if condition="in_array(THIS_SCRIPT, array('search' , 'calendar' , 'usercp' , 'online' , 'faq' , 'album' , 'profile' , 'member' , 'misc' , 'subscription' , 'private' , 'showgroups'))"> |
^yes, that is how I would do it.
|
Quote:
It might not be a bad idea to have that added to the article, it took me awhile to figure out how to do. :mad: |
any condition for article in CMS ???
|
What is the correct syntax for a conditional that is a member with at least 'X' posts/threads made in the last 30 days?
Any ideas? TIA! |
You cannot use a template conditional for posts within x days, you would need a plugin to calculate this value.
|
Quote:
;D |
What is the variable for displaying the total amount of registered members on vBulletin 4?
|
I would like to insert some ad code in the CMS home, between the articles preview, but I would like to know the conditional to show this ads only after the preview article position I like.
I have the 1+2 colums selected, so i wouuld like to show, 1 article_preview, AD CODE 2 article preview 3 article preview 4article preview 5 article preview AD CODE 6 article preview 7 article preview 8article preview 9 article preview AD CODE At the moment I know to add the AD CODE at the end of all the previews (Template article_preview). Any help of what conditional and in which template have I to use? Thanks! |
What conditional would I use for my postbit to only show the Blog Entries if the user has posted a blog?
|
Quote:
Code:
<vb:if condition="$post['entries'] > 0"></vb:if> |
I wonder what is the if condition for the mobile phones (any type smart or not ) that can be used ?
|
Hi,
thanks for the great posts so far, they helped me a lot with integrating different advertising-codes for different pages (IVW) into the header template. I still need 2 conditions: 1. a conditional for announcements to render something into the header template in all announcements 2. a conditional that effects all sub-forum of a parent forum or category as I don`t want to use an array with all the forum IDs because the list of IDs is very long and might change from time to time would be great if someone has a solution for those 2. thank you - all the best, Sacha |
In user profile options I want to make and option only viewable to be accessed by a certain usergroup. How would you achieve this ?
--------------- Added [DATE]1336340365[/DATE] at [TIME]1336340365[/TIME] --------------- Quote:
https://vborg.vbsupport.ru/showthread.php?t=132716 Then in the html box insert what you need per forum. |
Another conditional in my case I'm using to make improvements in the sharing of urls in topics:
<vb:if condition="$bookmarksites"> show only if showing bookmarks </vb:if> |
If there a conditional that can be used for CMS home page, which would not have an bearing on rest of the CMS pages?
|
All times are GMT. The time now is 11:19 PM. |
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:
|