Can this be shortened? - 08/23/2003 2:20 AM
Hi,
I can't find a way - but just wondered if this piece of code could be shortned in any way?
I have curtailed the example above otherwise it would have been far too long - but essentially I could have 70 + groups that would result in the leaguelink being set to a particular URL.
As I have 30 different possible links, I am going to have some very long lines in ubbt.inc.php - so just wondered if the string can be written better?
I can't find a way - but just wondered if this piece of code could be shortned in any way?
Code
<br /><br />elseif ( (strstr($user['U_Groups'], '-5-')) || (strstr($user['U_Groups'], '-501-')) || (strstr($user['U_Groups'], '-502-')) || (strstr($user['U_Groups'], '-522-')) ) {<br />$leaguelink = "<a href = \"$phpurl/conference\" $target>Conference Forums</a> | ";<br /><br />
I have curtailed the example above otherwise it would have been far too long - but essentially I could have 70 + groups that would result in the leaguelink being set to a particular URL.
As I have 30 different possible links, I am going to have some very long lines in ubbt.inc.php - so just wondered if the string can be written better?