2011-01-12, 01:56 PM
Peace,
Its me again
Look at the following codes
If a user inserts "lol,publish_stream" in fbconnect8, i get "Pass". If he enters only "publish_stream", i get fail. I guess this is because the count begins at 0. How would i be able to get something like this done in some another way?
Its me again
Look at the following codes
$publishperm = strpos($mybb->settings['fbconnect8'],"publish_stream");
if($publishperm)
{
echo "Pass";
}
else
{
echo "Fail";
}
I want certain codes to run only if the user has entered "publish_stream" (w/o quotes) in setting fbconnect8. He may enter other things as well separated by commas.If a user inserts "lol,publish_stream" in fbconnect8, i get "Pass". If he enters only "publish_stream", i get fail. I guess this is because the count begins at 0. How would i be able to get something like this done in some another way?