2009-06-08, 02:06 PM
Hi,
In this tutorial I teach you how to appear stars in two differents rows in postbit.
Open inc/functions_post.php and go on 255 row
Now modify this part
Only one problem, you must insert number of stars divisible for 2
Bye
In this tutorial I teach you how to appear stars in two differents rows in postbit.
Open inc/functions_post.php and go on 255 row
Now modify this part
if($usergroup['stars'])
{
$post['stars'] = $usergroup['stars'];
}
if(!$post['starimage'])
{
$post['starimage'] = $usergroup['starimage'];
}
$post['starimage'] = str_replace("{theme}", $theme['imgdir'], $post['starimage']);
for($i = 0; $i < $post['stars']; ++$i)
{
$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />";
}
}
With thisif($usergroup['stars'])
{
$post['stars'] = intval($usergroup['stars']);
$post['new_stars'] = $post['stars']/2;
}
if(!$post['starimage'])
{
$post['starimage'] = $usergroup['starimage'];
}
$post['starimage'] = str_replace("{theme}", $theme['imgdir'], $post['starimage']);
for($i = 0; $i < $post['new_stars']; ++$i)
{
$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />";
}
$post['userstars'].= "<br />";
for ($i = 0; $i < $post['new_stars']; ++$i) {
$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />";
}
Only one problem, you must insert number of stars divisible for 2
Bye