PDA

View Full Version : Page Number


Jack
07-27-2009, 12:35 PM
http://www.backtalkk-lyts.com/myspace/backgrounds/grunge/?page=1

can you help me fix the page numbers? they seem to be next to the thumbs, instead of under the thumbs. Thanks :)

TonyaB
07-27-2009, 03:33 PM
You have an extra </div> tag in your background-builder file, search for
</div>
</div>
in the file and remove one.

Jack
07-27-2009, 03:45 PM
You have an extra </div> tag in your background-builder file, search for
</div>
</div>
in the file and remove one.


echo '<div class="center">'."\n";
foreach($SliceArr as $OBJ):

$name = ucwords(trim(strtr($OBJ, $_rep)));

$size = getimagesize($_path.'/layouts/'.$_dir.'/'.$OBJ);

echo

'<div style="background-image:url('.$PBURL.'/backgrounds/'.$_dir.'/'.$OBJ.');background-repeat:repeat;background-position:center center;margin-bottom:20px;margin-right:20px;" class="thumb1">'."\n".
'<a href="'.$_url.'/backgrounds/get_code.php?cat='.$_dir.'&background='.$OBJ.'" class="thumb2"><img src="/myspace/images/transparent.gif" border="0"></a>'."\n".
'</div>'."\n";


endforeach;

echo '</div>'."\n";

echo '<div class="clear"></div><Br><Br><Br>'."\n";

$num = 1;

echo

'<div id="pnav">'."\n".

'<span id="pages">Pages:</span>&nbsp;'."\n";


while( $num <= $pages ):

if($page != $num)
echo '<a href="?page='.$num.'" class="pnum">'.$num.'</a>'."\n";

elseif($page == $num)
echo $num."\n";

$num++;

endwhile;

echo '</div>'."\n";

if(file_exists('after.php')) include('after.php');

include( $_path . '/_theme/footer.php');

if($_caching_on == 1){
require_once( dirname(__FILE__) . '/_encoded/cache_foot.php');
}

?>




what should i take out?

TonyaB
07-27-2009, 04:15 PM
right below endforeach;

echo '</div>'."\n";

to

echo ''."\n";

Here's the code, see if it workss :)
echo '<div class="center">'."\n";
foreach($SliceArr as $OBJ):

$name = ucwords(trim(strtr($OBJ, $_rep)));

$size = getimagesize($_path.'/layouts/'.$_dir.'/'.$OBJ);

echo

'<div style="background-image:url('.$PBURL.'/backgrounds/'.$_dir.'/'.$OBJ.');background-repeat:repeat;background-position:center center;margin-bottom:20px;margin-right:20px;" class="thumb1">'."\n".
'<a href="'.$_url.'/backgrounds/get_code.php?cat='.$_dir.'&background='.$OBJ.'" class="thumb2"><img src="/myspace/images/transparent.gif" border="0"></a>'."\n".
'</div>'."\n";


endforeach;

echo ''."\n";

echo '<div class="clear"></div><Br><Br><Br>'."\n";

$num = 1;

echo

'<div id="pnav">'."\n".

'<span id="pages">Pages:</span>&nbsp;'."\n";


while( $num <= $pages ):

if($page != $num)
echo '<a href="?page='.$num.'" class="pnum">'.$num.'</a>'."\n";

elseif($page == $num)
echo $num."\n";

$num++;

endwhile;

echo '</div>'."\n";

if(file_exists('after.php')) include('after.php');

include( $_path . '/_theme/footer.php');

if($_caching_on == 1){
require_once( dirname(__FILE__) . '/_encoded/cache_foot.php');
}

?>

Jack
07-27-2009, 04:40 PM
Thank you very much Tonya!