Dynadot โ€” .com Registration $8.99

PhpBB Help

Spacemail by SpaceshipSpacemail by Spaceship
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
•••
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
•••
Wow, you are a god :D, thank you!
 
0
•••
No problem ;)
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back