NameSilo

PhpBB Help

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Kadenz

Resistance is FutileEstablished Member
Impact
29
OK I need some help in phpBB

I have this:
PHP:
$handle = opendir('templates');
   while (false !== ($category = readdir($handle))) {
   $category = str_replace('.', '' ,$category);
   $category = str_replace('png', '' ,$category);
   $category = str_replace('indexphp', '', $category);
   $category = str_replace('Thumbsdb', '', $category);
   $category1 = str_replace(' ', '%20', $category);
   if ($category != '') {
	echo '<option value="'.$category.'">'.$category.'</option>';
}
   }
   closedir($handle);

And I want the output to go into this:
PHP:
$template->assign_vars(array(
	'L_VSIG_TITLE' => 'Create Your Sig!', 
	'L_VSIG_CATEGORY' => 'THAT CODE RIGHT HERE',
	)
);

Any help is appreciated. Thank You
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PHP:
$handle = opendir('templates');

$ignore = array('.',
    '..',
    'png',
    'index.php',
    'Thumbs.db'
);

$cat_list = '';

while (false !== ($category = readdir($handle)))
{
    if (!in_array($category, $ignore))
    {
        $category1 = str_replace(' ', '%20', $category);
        
        if ($category != '')
        {
            $cat_list .= '<option value="' . $category . '">' . $category . '</option>';
        }
    }
}
closedir($handle);
PHP:
$template->assign_vars(array(
    'L_VSIG_TITLE' => 'Create Your Sig!', 
    'L_VSIG_CATEGORY' => $cat_list,
    )
);
 
0
Close
Wow, you are a god :D, thank you!
 
0
Close
No problem ;)
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back