• Only accept listings with a URL

    A standard GoldRoo directory installation allows you to accept listings from businesses or organizations who do not have a website.
    If you only want to accept submissions from organizations with a website, then follow these steps to modify your script.
    1. In wdcfg.php, find WDURLOPTIONAL and comment like this
      Code:
      //define('WDURLOPTIONAL', 1);
    2. Download the urlonly.zip file
    3. Replace your index.php file with the one in the Zip file
    4. In t!wdviewhome.html replace
      Code:
      <div id="featuredBox">
      <h2>Featured listing:</h2>
      <div id="featuredEntry">
      <a href="%7b$moreInfo%7d" title="{$entryTitle}"><img src="uploads/{$entryID}_th.jpg" alt="{$entryTitle}" class="thumb" /></a>
      <h3><a href="%7b$moreInfo%7d" title="More information for: {$entryTitle}">{$entryTitle}</a></h3>
      <div class="entdescF">{$entryDesc}</div>
      <div class="lnkurlF">{$entryURL}</div>
      <div class="lnkop"><a href="%7b$moreInfo%7d" title="More information for: {$entryTitle}">More info</a> | <a href="%7B$catURL%7D">More like this</a></div>
      </div></div>
      with
      Code:
      <div id="featuredBox">
      <h2>Featured listing:</h2>
      <div id="featuredEntry">
      <a href="%7b$entryURL%7d" title="{$entryTitle}"><img  src="uploads/{$entryID}_th.jpg" alt="{$entryTitle}" class="thumb"  /></a>
      <h3><a href="%7b$entryURL%7d">{$entryTitle}</a></h3>
      <div class="entdescF">{$entryDesc}</div>
      <div class="lnkurlF">{$entryURL}</div>
      <div class="lnkop"><a href="%7b$moreInfo%7d" title="More  information for: {$entryTitle}">More info</a> | <a  href="%7B$catURL%7D">More like this</a></div>
      </div></div>
    5. In t!wdmod.html replace
      Code:
      <input type="text" name="URL__url_max100" id="URL__url_max100" value="{$url}" size="40" maxlength="100" tabindex="5" {$readOnly}/>
      with
      Code:
      <input type="text" name="URL__req_url_max100" id="URL__req_url_max100" value="{$url}" size="40" maxlength="100" tabindex="5"/>
    6. In t!wdadd.html replace
      Code:
      <input type="text" name="URL__url_max100" id="URL__url_max100" value="{$url}" size="40" maxlength="100" tabindex="1"/>
      with
      Code:
      <input type="text" name="URL__req_url_max100" id="URL__req_url_max100" value="{$url}" size="40" maxlength="100" tabindex="1"/>
    7. You might have to clear the cache to see your changes.