Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Sep 2015, 00:19
bartek24m bartek24m is offline
 
Join Date: Nov 2005
more variable in my conditional

i would like modyfy just one line of php code in my hook


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


It works when is written only one forum id.
i would like to add up more numbers to this conditional but i dont know how.


i tried change code in to this:
$isforumid = array(1,2,3,4,5,189) === $thread['forumid'];
but it doesnt work

any ideas?
Reply With Quote
  #2  
Old 02 Sep 2015, 00:22
Dave Dave is online now
 
Join Date: Jun 2010
Real name: Dave
$isforumid is a boolean right? (true or false)


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

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 02 Sep 2015, 00:28
bartek24m bartek24m is offline
 
Join Date: Nov 2005
It works !
Thank you very much !!


I have another question:

If it's possible to use this condition in my custom template: zippyshare_player_user which is combined with hook located in bbcode_fetch_tags ?
When i try to use this code it didn't work


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

In post: the code above causes :

Last edited by bartek24m; 02 Sep 2015 at 00:44.
Reply With Quote
  #4  
Old 02 Sep 2015, 04:22
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Originally Posted by Dave View Post
$isforumid is a boolean right? (true or false)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
"You must 'Like' someone else's post before liking any more by Dave." So instead I shall comment and +1 you now .

Originally Posted by bartek24m View Post
It works !
Thank you very much !!


I have another question:

If it's possible to use this condition in my custom template: zippyshare_player_user which is combined with hook located in bbcode_fetch_tags ?
When i try to use this code it didn't work


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

In post: the code above causes :
Is this conditional being used in the bbcode? You cannot use conditionals in BB Codes in such a way.... this one time... I swear there was a mod for that though allowing you to specify conditionals, if I recall and locate the link I will return, if not then I know its out there, might be vB4 though or I might be wrong and it could be for including something else in bbcodes its a long shot, ok ok shutting up now .
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
Reply



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

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 01:37.

Layout Options | Width: Wide Color: