MyBB-Plugins Forums

Full Version: Quick Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im creating a simple plugin , was wondering how i can change the setting in the code below with an actuall value rather than use the setting itself:

Quote:if (($postcounter % $mybb->settings['setting_1']) == 0)
{

the value of the "red setting is "6" so basically i need to do this:

Quote:if (($postcounter % 6 == 0)
{

or something along those lines.
I got it :

if (($postcounter % 6) == 0)
{

lol

thanks anyway guys

No Permission

Unfortunately you do not have sufficient rights to view replies in this thread.