vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=231525

Adam H 11 Feb 2010 22:25

Can any one tell me what i would have to use to get a sign to come up only when a thread is closed ?

So basically if a thread is closed i want a certain peace of HTML to show up

TheSupportForum 19 Feb 2010 10:16

i need some help with the variables below to work with certian group and also an option not to show to certian groups can anyone help

so far i have this




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i need to where to add the section to not allow certain groups
i hope i got the code in the correct order so far

i wanna add {vb:raw vboptions.wmf_grp_noperm}

but not sure where to put it and if i need to add anything else to my exist code after the one i want inserted

AzzidReign 21 Feb 2010 17:16

lol Wish I would have saw this before. Oh well, I figured it out :P Thanks for this though!

smartkidbk5 25 Feb 2010 05:41

Quote:

Originally Posted by egyptsons (Post 1972657)
Thanks for your article

I want to add advertisement after the first post in some special forums
so I edit the "ad_showthread_firstpost" Template and add this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But nothing change in the special forums and the ads not appear

also if I used this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

it's appear in all forums not only the special (1,2,3)

Can you advice me plz ?

Best regards

Same with me. Anyone know the correct conditionals?

Alp Ozdemir 25 Feb 2010 13:52

Try this;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


princeedward 04 Mar 2010 10:24

:erm: errrmmm... hi

how about showing something here to a thread starter but not to his first post....is there any conditional on this please?

appreciate any help

thanks and best regards...

:p

hatchet 07 Mar 2010 00:47

Is there anything that I can pull the date of the last post of a thread?
$thread['lastpostdate'] or something like that. I'm trying to see if the last post date is older than 90 days and if so - output a custom phrase.
Thanks.

boatdesign 11 Mar 2010 07:54

I'm trying to use a conditional to color code certain forums in the What's New and Search Results.

In search_threadbit I've tried the following, with no success (only the else shows for threads in these forums too.)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I thought that since forumid is actually in the link, it would be a piece of cake, but it's a no go as above. I must be missing something obvious.

I read here about assigning a variable to a template, so tried creating a new plugin to do so, but can't seem to make that work either. One question is that the template is labeled search_threadbit but that's not a choice in the add plugin screen for a hook location - only search_results_threabit which doesn't seem to exist as a template. So I'm a bit lost there.

Any guidance? Many thanks.
(new to VB4 today)

DesignWerks 11 Mar 2010 12:50

Quote:

Originally Posted by M4tEUSh (Post 1993295)
So how to properly construct a condition with {vb:raw var}?

Bumping this question. I have my conditional working but it would be more efficient if I could use it with a plugin for an external php page which updates several areas of my site at once so <vb:if condition="!is_member_of($bbuserinfo, 12)">{vb:raw includemyexternalpage}</vb:if> hides the section from usergroup 12.

Is it possible to put the condition in the plugin?

boatdesign 12 Mar 2010 05:59

Quote:

Originally Posted by boatdesign (Post 2001366)
I'm trying to use a conditional to color code certain forums in the What's New and Search Results.

In search_threadbit I've tried the following, with no success (only the else shows for threads in these forums too.)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I thought that since forumid is actually in the link, it would be a piece of cake, but it's a no go as above. I must be missing something obvious.

I read here about assigning a variable to a template, so tried creating a new plugin to do so, but can't seem to make that work either. One question is that the template is labeled search_threadbit but that's not a choice in the add plugin screen for a hook location - only search_results_threabit which doesn't seem to exist as a template. So I'm a bit lost there.

Any guidance? Many thanks.
(new to VB4 today)

Sorry - I got lost and couldn't see the forest for the trees. Thanks to Lynne for pointing out that for the search_threadbit template $thread[forumid] not $foruminfo[forumid] was the ticket.

kingMOB 13 Mar 2010 23:22

Is there an "at least this" conditional?

I have this conditional to list just the blogs from a specific category:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It works well, but only if the blog entry is marked with only this category (6). If I choose one more category to the blog, let's say 5 and 6, this conditional no longer works.

Any help? =)

nack 16 Mar 2010 00:12

Hi, how would you direct guests to login with <if condition>?

MrToasty 16 Mar 2010 12:10

I have a custom template being called at the template hook in the postbit called postbit_userinfo_right_after_posts which works fine with static text from the template outside of conditionals, however when I try to use text in a conditional or pull a field such as {vb:var post.fieldX}, nothing happens...

I am able to call conditionals in the postbit template without any problems, just not in the custom template.

The conditional and field I'm trying to use is:-


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any ideas?

cmiller1014 19 Mar 2010 05:03

What about a conditional to have an ad appear after every 2 posts? used to be easy in vb 3.8, not now! :( :(

meonet 19 Mar 2010 08:44

Hello,

I would like to show different size ads for memvers and guests, someone can help me to see if this code it's correct?

Quote:

<vb:if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))">
advert here
</vb:if>
Thanks


All times are GMT. The time now is 02:58.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.