<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038475" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038475</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-php-script#comment-1219369</link>
    <description> &lt;p&gt;Works great, many thanks Greg.&lt;/p&gt;
 </description>
     <pubDate>Fri, 18 May 2007 21:34:22 +0000</pubDate>
 <dc:creator>msaz87</dc:creator>
 <guid isPermaLink="false">comment 1219369 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-php-script#comment-1219356</link>
    <description> &lt;p&gt;For what you are wanting, you need to not only modify the PHP file you have here, but also the javascript that uses it.&lt;/p&gt;
&lt;p&gt;In the PHP code you gave (1st one), where you have the following line:&lt;/p&gt;
&lt;p&gt;[=&quot;Courier New&quot;]&lt;strong&gt;echo &#039;galleryarray[&#039; . $curimage .&#039;]=[&quot;&#039; . $file . &#039;&quot;, &quot;&#039;.$filedate.&#039;&quot;];&#039; . &quot;\n&quot;;&lt;/strong&gt;[/]&lt;/p&gt;
&lt;p&gt;add these two lines right before it&lt;/p&gt;
&lt;p&gt;[=&quot;Courier New&quot;]&lt;strong&gt;$dispname = substr($file,0,-4); // Gets rid of the .jpg extension&lt;br /&gt;
$dispname = str_replace(&#039;_&#039;,&#039; &#039;,$dispname); // Converts underscores to spaces&lt;/strong&gt;[/]&lt;/p&gt;
&lt;p&gt;and then modify that line to be&lt;/p&gt;
&lt;p&gt;[=&quot;Courier New&quot;]&lt;strong&gt;echo &#039;galleryarray[&#039; . $curimage .&#039;]=[&quot;&#039; . $file . &#039;&quot;, &quot;&#039;.$filedate.&#039;&quot;, &quot;&#039;.$dispname .&#039;&quot;];&#039; . &quot;\n&quot;;&lt;/strong&gt;[/]&lt;/p&gt;
&lt;p&gt;Then on the webpage, in the javascript, change this line:&lt;br /&gt;
[=&quot;Courier New&quot;]&lt;strong&gt;tempcontainer+=&#039;&#039;+galleryarray[i][0]+&#039;&#039;&lt;/strong&gt;[/]&lt;br /&gt;
to be&lt;br /&gt;
[=&quot;Courier New&quot;]&lt;strong&gt;tempcontainer+=&#039;&#039;+galleryarray[i][2]+&#039;&#039;&lt;/strong&gt;[/]&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Fri, 18 May 2007 17:24:36 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1219356 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
