PDA

View Full Version : Changing font sizes and spacing issues


buyforless
08-07-2005, 06:44 PM
How do i change the font size on the main index/category page? Want to make it smaller.

Also, for some reason - when a featured link is posted - a space appears between the Title and the description

Example:
instead of this

DKDKS.com
Aadfokh a adsflh a asdljfh adflj


I get this:

DKDKS.com

Aadfokh a adsflh a asdljfh adflj

minstrel
08-07-2005, 07:15 PM
Look at the file main.css for changing font sizes.

The featured links issue is by design, I think, to make it stand out more. Try editing /templates/main.tpl to customize.

buyforless
08-10-2005, 03:12 AM
I followed the posted suggestion exactly as provided. However, it altered the layout. the --- and Hits, etc navigation went away ??? any ideas

minstrel
08-10-2005, 04:16 AM
Post your code for main.tpl

buyforless
08-13-2005, 06:28 AM
<?php
/*
* This is the main template. It displays the blog.
*
* However this file is not meant to be called directly.
* It is meant to be called automagically by b2evolution.
* To display a blog, you should call a stub file instead, for example:
* /blogs/index.php or /blogs/blog_b.php
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>

<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<title>BuyForLess.com Bargains - Bargains, coupons and rebates for the deal shopper</title>
<meta name="allow-search" content="yes">
<meta name="Robots" content="index, follow, all">
<meta name="revisit-after" content="2 days">
<meta name="distribution" content="global">
<meta name="object" content="Index, Homepage, SearchEngine">
<meta name="classification" content="shopping, business and economy, shopping and services, shop, books, movies, music, toys, games, videos, dvd, electronics, credit cards, magazines, bargains, deals, coupons, contests">
<meta name="description" content="Buy for less shoppers search the Internet for money saving bargins. Shop for books, games, movies, music, electonics, clothing, toys, more. Online shopping stores, bargains, coupons, contests, price comparisons.">
<meta name="keywords" content="Buy for less, Buy for less bargains, shopping, book, game, movie, music, toy, video, dvd, electronic, credit card, magazine, jewelry, computer, bargain, deal, coupon, contest, video game, computer game, apparel, clothing, beauty, shop, gift, ecard, email, books, games, movies, mp3, toys, videos, dvds, electronics, credit cards, magazines, bargains, computers, art and craft, art, children, food, health, vhs, travel, sports, coupons, home and garden, garden, gifts, ecards, email, directory">
<meta name="abstract" content="shopping, froogle, books, games, movies, mp3, toys, videos, dvds, electronics, credit cards, magazines, bargains, computers, coupons, gifts, shop, book, game, movie, music, toy, video, dvd, electronic, credit card, magazine, jewelry, computer, bargain, deal, coupon, contest, video game, computer game, apparel, clothing, beauty, gift, ecard, email, art and craft, art, children, food, health, vhs, travel, sports, home and garden">
<meta http-equiv="Content-Language" content="EN-US">
<meta name="author" content="Buy for less">
<meta name="distribution" content="Global">
<meta name="copyright" content="©2000-2005 The Innewvation Company, Cincinnati, Ohio">

<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/BurnThisRSS2" />
<link rel="pingback" href="<?php $Blog->disp( 'pingback_url', 'raw' ) ?>" />
<link href="blog.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="basic.css" type="text/css" />
<link rel="stylesheet" href="fpnav.css" type="text/css" />
</head>
<body>
<div class="pageHeader">
<div class="pageHeaderContent">


<?php // --------------------------- BLOG LIST INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_bloglist.php' );
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>


<div class="NavBar">
<div id="Logo"></div>
<div class="pageTitle">
<h1 id="pageTitle"><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
</div>
</div>

<div class="pageHeaderEnd"></div>

</div>
</div>

<div class="bSmallPrint">
<?php echo T_('BuyForLess.com is a free shopping news service dedicated to helping you save money. We are not a store. We are not selling any products or services. We accept no advertising. We are here to help you buy for less by finding the latest hidden bargains, deals, coupons, rebates and sales of top online stores. Hundreds of money saving offers are listed with new bargains added throughout the day - just about every day. We also post informative consumer news, timely product recalls and helpful money saving advice. Please bookmark this web site and tell your friends about BuyForLess.com. Thank you!') ?>
</div>


<div class="pageSubTitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>


<div class="main">
<div class="bPosts">
<h2><?php
single_cat_title();
single_month_title();
single_post_title();
arcdir_title();
last_comments_title();
stats_title();
profile_title();
?></h2>



<?php // ------------------------------------ START OF POSTS ----------------------------------------
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post

if( isset($MainList) ) while( $Item = $MainList->get_item() )
{
$MainList->date_if_changed();
?>
<div class="bPost" lang="<?php $Item->lang() ?>">
<?php
$Item->anchor(); // Anchor for permalinks to refer to
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
?>
<h3 class="bSmallPrint"><?php $Item->title(); ?></h3>
<div class="bSmallPrint">
<?php $Item->content(); ?>
<?php link_pages() ?>
</div>
</div>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>

<p class="center"><?php posts_nav_link(); ?></p>

<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
switch( $disp )
{
case 'comments':
// this includes the last comments if requested:
require( dirname(__FILE__).'/_lastcomments.php' );
break;

case 'stats':
// this includes the statistics if requested:
require( dirname(__FILE__).'/_stats.php');
break;

case 'arcdir':
// this includes the archive directory if requested
require( dirname(__FILE__).'/_arcdir.php');
break;

case 'profile':
// this includes the profile form if requested
require( dirname(__FILE__).'/_profile.php');
break;
}
// ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
</div>


<div class="bSideBar">

<div class="bSideItem">
<h3 class="sideItemTitle"><?php echo T_('Search Money Saving Deals by Bargain, Store, Keyword:') ?></h3>
<form name="SearchForm" method="get" class="search" action="<?php $Blog->disp( 'blogurl', 'raw' ) ?>">
<input type="text" name="s" size="30" value="<?php echo htmlspecialchars($s) ?>" class="SearchField" />

<input type="radio" name="sentence" value="AND" id="sentAND" <?php if( $sentence=='AND' ) echo 'checked="checked" ' ?>/><label for="sentAND"><?php echo T_('All Words') ?></label>
<input type="radio" name="sentence" value="OR" id="sentOR" <?php if( $sentence=='OR' ) echo 'checked="checked" ' ?>/><label for="sentOR"><?php echo T_('Some Word') ?></label>
<input type="radio" name="sentence" value="sentence" id="sentence" <?php if( $sentence=='sentence' ) echo 'checked="checked" ' ?>/><label for="sentence"><?php echo T_('Entire phrase') ?></label>
<input type="submit" name="submit" value="<?php echo T_('Search') ?>" />
</form>


<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?></p>
<p class="center"><?php posts_nav_link(); ?></p>
</div>

<div class="bSideItem">
<h3><?php echo T_('Browse Categories') ?></h3>
<form action="<?php $Blog->disp( 'blogurl', 'raw' ) ?>" method="get">
<?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_categories.php' );
// -------------------------------- END OF CATEGORIES ---------------------------------- ?>


<input type="submit" value="<?php echo T_('Get selection') ?>" />
</form>
</div>

<div class="bSideItem">




<?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_calendar.php' );
// -------------------------------- END OF CALENDAR ---------------------------------- ?>
</div>

<div class="bSideItem">
<h3><?php echo T_('Bargains By Month') ?></h3>
<ul>
<?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/_archives.php' );
// -------------------------------- END OF ARCHIVES ---------------------------------- ?>
<?php echo T_('more...') ?> (<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>)
[/list]
</div>

<div class="bSideItem">
<tr>
<td>
<div align="center">
<style>
.searchBox {
border : 1px solid #000000;
background-color : #FFFFFF;
color : #000000;
font-size : 10px;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.searchButton {
border : 1px solid #000000;
font-size : 10px;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
</style>

</div>
<form action='http://www.buyforless.com/SearchResults.html' style='margin 0px 0px 0px 0px'>
<h3><?php echo T_('Search The Internet') ?></h3>
<div align="center">
<table border=0 cellpadding=0 cellspacing=0 rules="none">
<tr>
<td>
<input type='text' name='keyword' size='20' class='searchBox'>
</td>
<td> </td>
<td>
<input type='Submit' name='Search The Internet' value='Search' class='searchButton'>
</td>
</tr>
</table>
</div>
</form>
<div align="center">

</div>
</td>

</div>

<div class="bSideItem">
<h3><?php echo T_('Free Membership Info') ?></h3>
<ul>
<?php
// Administrative links:
user_register_link( ' ', '' );
user_login_link( ' ', '' );
user_profile_link( ' ', '' );
user_logout_link( ' ', '' );
user_admin_link( ' ', '' );
?>
[/list]
</div>
<div class="bSideItem">
<h3><?php echo T_('Change Page Layout') ?></h3>
<ul>
<?php // ---------- START OF SKIN LIST ----------
for( skin_list_start(); skin_list_next(); ) { ?>
<?php skin_list_iteminfo( 'name', 'htmlbody' ) ?> (<?php skin_change_url() ?>)
<?php } // ---------- END OF SKIN LIST ---------- ?>
[/list]
</div>
<div class="bSideItem">
<h3><?php echo T_('Subscribe To BuyForLess') ?></h3>
<ul>

RSS 2.0:
<?php echo T_('Posts') ?> (<?php $Blog->disp( 'rss2_url', 'raw' ) ?>)



Content visible to registered users only. (http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=http://feeds.feedburner.com/BuyForless&amp;tt=CENTRALDIRECTORY&amp;ru=http://rss.msn.com')


Content visible to registered users only. (http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/BuyForless)


Content visible to registered users only. (http://b2evolution.net/)

[/list]
</div>

</div>

</div>



<p class="baseline">

</p>
</body>
</html>

minstrel
08-13-2005, 08:34 AM
That doesn't look like a php link directory file...

buyforless
08-14-2005, 06:21 PM
{* Calculate title from path *}
{capture name="title"}
{if count($path)>1} - {/if}
{foreach from=$path item=category name=path}
{if $smarty.foreach.path.iteration gt 2}
&gt;
{/if}
{if not $smarty.foreach.path.first}
{$category.TITLE}
{/if}
{/foreach}
{/capture}
{strip}
{assign var="in_page_title" value=$category.TITLE}
{assign var="description" value=$category.DESCRIPTION}
{include file="header.tpl"}

{include file="top_bar.tpl"}

{* Calculate the number of categories per row *}
{php}
$this->assign('cats_per_col', ceil(count($this->get_template_vars('categs'))/ CATS_PER_ROW));
{/php}

{* Display categories heading if not on homepage *}
{if $category.ID gt 0 and count($categs) gt 0}<h3>{l}Categories{/l}</h3>{/if}

{* Categories *}
<table border="0" cellpadding="0" cellspacing="2"><tr>
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td>{/if}
<h2>{$cat.TITLE} ({if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{else}index.php?c={$cat.ID}{/if}){if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}</h2>

{* Display subcategories *}
<p class="subcats">
{if $cat.SUBCATS}
{foreach from=$cat.SUBCATS item=scat name=scategs}
<a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{$scat.TITLE_URL}/{else}index.php?c={$scat.ID}{/if}">
{$scat.TITLE}</a>, {/foreach} ...
{/if}
</p>
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
</tr></table>
{if $smarty.const.FTR_ENABLE==1 and count($feat_links) gt 0}
<h3>{l}Featured Links{/l}</h3>
{foreach from=$feat_links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}
{/if}
{* Links heading and sorting*}
{if ($qu or $category.ID gt 0 or $p) and count($links) gt 0}
<h3>{l}Links{/l} {if not $p}<span class="small" style="margin-left: 50px">{l}Sort by{/l}:
{if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'}<span class="sort"> {l}PageRank{/l}</span>{else} {l}PageRank{/l} (?s=P{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $qu}&q={$qu}{/if}){/if} |{/if}
{if $sort eq 'H'} <span class="sort">{l}Hits{/l}</span>{else} {l}Hits{/l} (?s=H{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $qu}&q={$qu}{/if}){/if}
{if $sort eq 'A'} | <span class="sort">{l}Alphabetical{/l}</span>{else} | {l}Alphabetical{/l} (?s=A{if not $smarty.const.ENABLE_REWRITE}&c={$category.ID}{/if}{if $qu}&q={$qu}{/if}){/if}
</span>{/if}</h3>
<div id="links">
{foreach from=$links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}
</div>
{/if}

{* Javascript for tracking link clicks *}
<script>
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i=0; i<a.length; i++)if(a[i].id != '')
a[i].onclick = count_link;
function count_link(){
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
</script>

{include file="footer.tpl"}
{/strip}

Ap0s7le
08-14-2005, 06:31 PM
Hello again buyforless. Nice to have you back.

If you would like I'll take a deeper look into your problem.

Just contact me privately if interested.

Thanks

-Casey