<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Problems with $cfg[]</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 19:24:58 -0000</pubDate>

		<item>
			<title>TwistedGA</title>
			<description><![CDATA[EDIT// That fixed it. At some point, my editor saved the file do the desktop and under .inc format, never changed the highlighter or anything so I didnt even notice. Spotted it hanging out when I decided to take a break frm the stress... I made over 75 usernames trying different things to get it to work and it was all for nothing! LOL... Don't tell anyone, K? <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/tongue.gif" alt=":-P" />]]></description>
			<pubDate>Mi, 08 Apr 2009 07:23:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2569&d=0#post11198]]></link>
		</item>
		<item>
			<title>Elgan</title>
			<description><![CDATA[<pre class="code">
   1. //Added Function for User_Display Creation
   2. function Split_String($namesplit) {
G&#091;color=#EF2929&#093;global $cfg;&#091;/color&#093;
   3.     $STR_LEN = strlen($namesplit);
   4.     $newdisplay = &quot;&quot;;
   5.     for ($i = 0; $i &lt; $STR_LEN; $i++) {
   6.         $newdisplay .= &quot;&lt;span style=\&quot;color:#&quot;.$cfg&#091;'defaultcolor'&#093;.&quot;\&quot;&gt;&quot; . $namesplit{$i} . &quot;&lt;/span&gt;&quot;;
   7.     }
   8.     return $newdisplay;
   9. }
  10. $displayname = &quot;&quot;.$ruserdisplay.&quot;&quot;;
  11. //Added Function for User_Display Creation
</pre>
<br />
red is what i added.<br />
<br />
<br />
EDIT: it dindt show up right. Could colours work in codes? bug not meant to?<br />
<br />
so, you need to add a global to call cfg. so<br />
glboal cfg; before its needed will work. make sense? php.net may explain better.]]></description>
			<pubDate>Mi, 08 Apr 2009 05:53:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2569&d=0#post11196]]></link>
		</item>
		<item>
			<title>TwistedGA</title>
			<description><![CDATA[Alright guys, having a little trouble getting a call to a configuration to work properly.<br />
<br />
I am able to echo <div class="highlight"><pre class="php">$cfg&#091;'defaultcolor'&#093;</pre></div> into the page, but when I try to use it in the string I need to, it doesn't insert the value it echo's like I need it to. The code is below, any help at all would be greatly appreciated. It's really odd that it will echo to the page and but wont insert into the string.<br />
<div class="highlight"><pre class="php">
//Added Function for User_Display Creation
function Split_String($namesplit) {
    $STR_LEN = strlen($namesplit);
    $newdisplay = &quot;&quot;;
    for ($i = 0; $i &lt; $STR_LEN; $i++) {
        $newdisplay .= &quot;&lt;span style=\&quot;color:#&quot;.$cfg&#091;'defaultcolor'&#093;.&quot;\&quot;&gt;&quot; . $namesplit{$i} . &quot;&lt;/span&gt;&quot;;
    }
    return $newdisplay;
}
$displayname = &quot;&quot;.$ruserdisplay.&quot;&quot;;
//Added Function for User_Display Creation
</pre></div>]]></description>
			<pubDate>Mi, 08 Apr 2009 05:09:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2569&d=0#post11194]]></link>
		</item>
	</channel>
</rss>