Not Solved PHP in Templates and Template Conditionals
#71
Not Solved
(2010-01-28, 02:08 PM)HubSeo Wrote: I have installed this plugin and I would say its awesome.

Yes, this is an amazing plugin.

(2010-01-28, 02:08 PM)HubSeo Wrote: What I am trying to achieve is something like this :

If forum id = X then this else bla bla

I think you can do that like this:

<if $forum['fid'] == X then>
This
<else>
bla bla
</if>
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#72
Not Solved
Thanks you!!

(2010-01-28, 07:41 PM)RateU Wrote:
(2010-01-28, 02:08 PM)HubSeo Wrote: I have installed this plugin and I would say its awesome.

Yes, this is an amazing plugin.

(2010-01-28, 02:08 PM)HubSeo Wrote: What I am trying to achieve is something like this :

If forum id = X then this else bla bla

I think you can do that like this:

<if $forum['fid'] == X then>
This
<else>
bla bla
</if>
Reply
#73
Not Solved
how add avatar and another features to the showteam list
Exclamation MyBB-Es.Com, spanish support for MyBB Wink
Reply
#74
Not Solved
There's no *good* way to do that with this plugin.
Reply
#75
Not Solved
(2010-01-31, 04:40 AM)Yumi Wrote: There's no *good* way to do that with this plugin.

for me is ok.
Reply
#76
Not Solved
Fantastic. This plugin works in MyBB 1.6 SVN. Thank you very very much, Yumi.
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#77
Not Solved
Hi,

I want to add a condition to a content in the header of MyBB.

I have enabled the PHP and templates conditionals and I need to add the code manyally, here is the code:

<if condition="!in_array($GLOBALS[forumid],array(2))">
Here is the content.
</if>

What I want to do is enable the code with the exception of the array code in this case 2.

Thanks.
vBulletin/Wordpress/Magento/MyBB
Developer and Designer
Reply
#78
Not Solved
(2009-05-12, 09:36 PM)Anman Wrote: Is there a list of available conditions somewhere?

Yeha I support u

Im so interesting on this plugin and i need to know all available conditions... so anybody has it?
Reply
#79
Not Solved
I think it is a bit hard to list all available conditions. As long as we know what variable loaded in a page or in a template, I think we can use it as condition in that page or in that template, depend on what condition needed. And we can find some variables in the templates too.
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#80
Not Solved
Hello

i think that your plugin have some wrong string

else
					return parent::get($title, $eslashes, $htmlcomments);
			}
		}
	');




it is on line 43 ...

regards

bosss
Reply


Forum Jump:


Users browsing this thread: 44 Guest(s)