View Full Version : multiple questions
nevets
07-13-2006, 01:58 AM
I am using v1.2 GreenLeaves template and I have a few questions.
Can I delete the search box and move the built in adsense code in its place? If so, I think the gradient green area may be a problem because I can't make the ads display the gradient. Where do I change it to a solid color?
What html codes are ok to use in the "manually add link" Description section. (I already know about [b] [i] [u])
Is it possible to change the color of the text in the description area? I am looking to make certain words in different colors.
How do I remove the "Statistics" are from the bottom area of all the pages
Can I remove "(Clicks: 1; Link added: Jul 12, 2006)" from every listing?
All in all I'd like to add some color and excitement to my listings.
#5. Open link-display.tpl file
around line #23 find code:
<div class="stat">({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
Remove next lines:
({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
Save file.
#4. Open index.tpl file
Around line #84 find code:<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">{$lang.statistics}</div>
</div>
</div>
<div class="box-content">
<table cellpadding="2" cellspacing="2">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
</div>
</div>
</td>
Remove this part:
<td valign="top">
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">{$lang.statistics}</div>
</div>
</div>
<div class="box-content">
<table cellpadding="2" cellspacing="2">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
</div>
</div>
</td>
Save file.
#1. To get rid of background image open your templates/GreenLeaves/css/style.css file.
Around line #168 find block of code:div.search-form
{
font-size: 0.80em;
font-weight: bold;
height: 62px;
border-top: 1px solid #FFF;
border-bottom: 1px solid #FFF;
background-image: url('../img/search-bg.gif');
background-position: top;
background-repeat: repeat-x;
background-color: #AED651;
}
Remove these three lines: background-image: url('../img/search-bg.gif');
background-position: top;
background-repeat: repeat-x;
To change color just change: background-color: #AED651; to whatever you want it to be.
To replace actual search form with existing Adsense open your header.tpl file
All the way on the bottom find code:{$adsense}
Highlight and cut it.
Now scroll up near line #49 and find block of code: <div class="search-form">
<form action="{$config.base}{$config.dir}search.php" method="get">
<table cellpadding="0" cellspacing="0" align="center" style="margin-top: 20px;">
<tr>
<td rowspan="2" align="left">
<ul class="search">
<li><a href="{$config.base}{$config.dir}search.php">{$lang.advanced_search}</a></li>
</ul>
</td>
<td style="color: #FFF; size:14px; text-transform: uppercase;">{$lang.search}</td>
<td colspan="2" valign="middle" style="padding: 0 5px 1px 7px;"><input type="text" class="what" name="what" size="40" /></td>
<td colspan="2"><input type="image" src="{$img}btn-search.gif" name="search_top" value="GO" /></td>
<td>
{if $category.id}
<a href="{$config.base}{$config.dir}plugins/rss/feed.php?id={$category.id}"><img src="{$img}xml.gif" style="padding: 2px 0 0 10px;" alt="XML syndication" /></a>
{/if}
{if $tab eq 'popular-links'}
<a href="{$config.base}{$config.dir}plugins/rss/feed.php?list=popular"><img src="{$img}xml.gif" style="padding: 2px 0 0 10px;" alt="XML syndication" /></a>
{/if}
{if $tab eq 'new-links'}
<a href="{$config.base}{$config.dir}plugins/rss/feed.php?list=new"><img src="{$img}xml.gif" style="padding: 2px 0 0 10px;" alt="XML syndication" /></a>
{/if}
{if $tab eq 'top-links'}
<a href="{$config.base}{$config.dir}plugins/rss/feed.php?list=top"><img src="{$img}xml.gif" style="padding: 2px 0 0 10px;" alt="XML syndication" /></a>
{/if}
</td>
</tr>
</table>
</form>
</div>
Remove everything between <div class="search-form"> </div> tags and paste your Adsense code in there.
Your final result should look like this:<div class="search-form">{$adsense}</div>
Save and close file.
Dave Baker
07-13-2006, 04:27 AM
#3. You can use <span> tag for make certain words in different colors.
For this open link in edit mode and add <span> tag in necessary place.
ex: <span style="color: #555;">certain word</span>
Dave Baker
07-13-2006, 05:18 AM
If you have esc_tags functionality disabled in your configuration you can use HTML tags..
nevets
07-14-2006, 12:01 AM
Thanks for your quick responses. I was doing a little searching at http://www.esyndicat.com/docs/ and I found the eSyndiCat Wiki Manual here (http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext).
I typed in "html" into the search box and the following came up. I have tried several in the "Description" area of "edit link".
-----------------------------------------------------------------------
<b> Use boldface type. Equivalent CSS: {font-weight: bold}
<big> </big> Creates bigger text. Equivalent CSS: {font-size: larger}.
<blockquote> Contains quoted material when the quotation itself includes block level elements (for instance, quoting several paragraphs). The cite attribute may give the source, and must be a fully qualified URI. The blockquote element is often misunderstood. It is an element meant to contain quotations that are themselves block level. In other words: to contain a complete paragraph or many paragraphs. In HTML strict DTDs inline elements are prohibited from blockquote elements. For quotations not containing block level elements see the quote (q) element.
<br> <br/> (XML compatible) Specifies a line-break. Can also be done with CSS: {break: left|right|all}
<caption> </caption> Specifies a caption for the entire table.
<center> <center> (deprecated) Creates a block-level centered division. May also center-align all text. Deprecated in favor of <div> or another element with centering defined using CSS.
<cite> </cite> A citation. Reference for a quote or statement in the document.
<code> </code> A code snippet. Conventionally rendered in a monospace font: Code snippet.
<dd> </dd> Creates a definition.
<div> </div> Creates a block logical division. This may be used to identify a part of the HTML document, for example so as to apply an id or class attribute, which can then be referenced from CSS or DOM calls. Like most HTML elements, div also supports inline CSS in its optional style attribute).
<dl> </dl> Creates a definition list (consisting of definition terms paired with definitions). Can also be used to specify speakers and quoted text.
<dt> </dt> Creates a definition term.
<em> </em> Emphasis (conventionally displayed in italics)
<font>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6> Section headings at different levels. Use <h1> for the highest-level heading (the major sections), <h2> for the next level down (sub-section), <h3> for a level below that, and so on. The lowest level heading is <h6>. Most web browsers will show <h1> as large text in a different font, and <h6> as small bold-faced text, but this can be overridden with CSS. The heading elements are not intended merely for creating large or bold text: they describe something about the document's structure and organization. Some programs use them to generate outlines and tables of contents.
<i> </i> Use italic type. Equivalent CSS: {font-style: italic}
<li> </li> Creates a list item in ordered and unordered lists.
<p> </p> Creates a paragraph, perhaps the most common block level element.
<pre> </pre> Creates pre-formatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file (see ASCII art). Whereas browsers ignore white space (for example, hard returns, carriage-returns, line-feeds, tabs, and repeated-spaces) for all of the other HTML elements, the pre element signals that this white space should be rendered as authored. With the CSS properties: {white-space: pre; font-family: monospace;}, other elements can be presented in the same way. This element can contain any inline element except: image (img), object (object), big font size (big), small font size (small), superscript (sup), and subscript (sub).
<small> </small> Creates smaller text. Equivalent CSS: {font-size: smaller}
<strike> <strike> (deprecated) Create strike-through text: Strikethrough Equivalent CSS: {text-decoration: line-through}
<strong> </strong> strong emphasis (conventionally displayed bold). An aural user agent may use different voices for emphasis.
<sub> </sub> Create subscript text: Equivalent CSS: {vertical-align: sub} or {vertical-align: super}
<sup> </sup> Create superscript text: Equivalent CSS: {vertical-align: sub} or {vertical-align: super}
<table> </table> Creates a table
<td> </td> Creates a table data cell within a row.
<th> </th> Creates a table header cell within a row; contents are conventionally displayed bold and centered. An aural user agent may use a louder voice for these items.
<tr> </tr> Creates a row in the table.
<tt> </tt> Use a typewriter-like (fixed-width) font. Equivalent CSS: {font-family: monospace}
<ul> </ul> Creates an ordered (enumerated) or unordered (bulleted) list. With ol, the type attribute can be used to specify the kind of ordering, but CSS gives more control: {list-style-type: foo}. The default is Arabic numbering. For ul, CSS can be used to specify the list marker: {list-style-type: foo}. The default marker is a disc.
<var> </var> Variable ??
<!-- ... --> Encloses a comment. This is an SGML tag and not limited to HTML, so it may appear anywhere in the document, even before the DTD or after </html>. A client should render none of its enclosed contents. The closing ">" is required. For compatibility with some pre-1995 browsers, SGML comments are sometimes used inside <style> or <script> tags, but this is not necessary and may in fact cause undesired effects.
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.