Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

how to add one more variable in q_list_item function

0 votes

currently function q_list_item has only one variable but i want to add one more varialbe through layer in plugin

I just change the function defination like this 

q_list_item($q_item ,$var )

{

...

..

}

It works perfectly but if i disable plugin it creates error.

Can anybody pls help me out!!!

Q2A version: 1.5
asked Feb 1 in Plugins by rajul885

1 Answer

0 votes

I'm not sure why you're having the problem you describe, but an easier way to do it is just add a new key/value to the $q_item array. Make sure you name it using your plugin name as a prefix, so that it won't clash with anything else in future.

answered Feb 2 by gidgreen