Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #46  
Old 11 Feb 2010, 21:25
Adam H Adam H is offline
 
Join Date: Apr 2008
Real name: Adam
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
__________________
:: Rivmedia - Small Business services including Web design, Wordpress, vbulletin and Xenforo
:: Mammoth Host - UK Small Business Premium Hosting - 24 hour R1 Soft Off site Backup with every plan.
Reply With Quote
  #47  
Old 19 Feb 2010, 09:16
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
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
__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #48  
Old 21 Feb 2010, 16:16
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
lol Wish I would have saw this before. Oh well, I figured it out :P Thanks for this though!
__________________
Xbox 360 Mods
Reply With Quote
  #49  
Old 25 Feb 2010, 04:41
smartkidbk5 smartkidbk5 is offline
 
Join Date: May 2009
Originally Posted by egyptsons View Post
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?
__________________
http://www.exngaming.com
AIM- eXn GraViTY
Skype- smartkidbk5
Email- [email protected]
Reply With Quote
  #50  
Old 25 Feb 2010, 12:52
Alp Ozdemir Alp Ozdemir is offline
 
Join Date: Sep 2004
Try this;


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

Reply With Quote
  #51  
Old 04 Mar 2010, 09:24
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Real name: Edward
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...

__________________

My vBulletin Mod Hacks
Along With Some Helpful vB.Org Genious Coders & Designers, I Release This Modification...Please Don't Hesitate To PM Me For Support As Long As I Can.
Reply With Quote
  #52  
Old 06 Mar 2010, 23:47
hatchet hatchet is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #53  
Old 11 Mar 2010, 06:54
boatdesign's Avatar
boatdesign boatdesign is offline
 
Join Date: Nov 2001
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)
Reply With Quote
  #54  
Old 11 Mar 2010, 11:50
DesignWerks DesignWerks is offline
 
Join Date: Apr 2009
Originally Posted by M4tEUSh View Post
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?

Last edited by DesignWerks; 11 Mar 2010 at 11:52. Reason: Auto-Merged DoublePost
Reply With Quote
  #55  
Old 12 Mar 2010, 04:59
boatdesign's Avatar
boatdesign boatdesign is offline
 
Join Date: Nov 2001
Originally Posted by boatdesign View Post
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.
Reply With Quote
  #56  
Old 13 Mar 2010, 22:22
kingMOB kingMOB is offline
 
Join Date: Nov 2007
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? =)
Reply With Quote
  #57  
Old 15 Mar 2010, 23:12
nack nack is offline
 
Join Date: Nov 2005
Hi, how would you direct guests to login with <if condition>?
Reply With Quote
  #58  
Old 16 Mar 2010, 11:10
MrToasty MrToasty is offline
 
Join Date: May 2004
Real name: Warren
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?
Reply With Quote
  #59  
Old 19 Mar 2010, 04:03
cmiller1014 cmiller1014 is offline
 
Join Date: May 2004
What about a conditional to have an ad appear after every 2 posts? used to be easy in vb 3.8, not now!
Reply With Quote
  #60  
Old 19 Mar 2010, 07:44
meonet meonet is offline
 
Join Date: Feb 2010
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?

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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:33.

Layout Options | Width: Wide Color: