How to Admin the Daily Quotes
Add daily quotes to your home page.
Requirements
You need to make sure you have the correct set up and that you can login to the admin panel.
Instructions
There two parts to this. The first part is to make sure you have quotes entered in your daily quotes list. To do this:
1. Login to your admin and go to Tools > Random Quotes
2. To add a quote just click on the Add New link.
3. You will be presented with a two text boxes, one for quotes and the other one for author. Note: Quotes is incorrectly spelt as "Qutes" in 6.0003.
4. Click the insert button and it will should save the quote.
5. It should then show up on the lis.
Once you've done that, you need to go to your Dolphin folders to add some script to your pages. You will be working with the index.php page and the page_1.html page.
It requires that you add
$_page_cont[$_ni]['daily_quotes'] = quote_get();
in your index.php page located in templates/tmpl_uni/scripts/ on or about line 82 just after $_page_cont[$_ni]['promo_code'] = getPromoCode();. So that it looks something like this:
...
}
else
{
$_ni = $_page['name_index'];
$_page_cont[$_ni]['promo_code'] = getPromoCode();
//jt note daily quotes
$_page_cont[$_ni]['daily_quotes'] = quote_get();
$_page_cont[$_ni]['compose_index_col1'] = PageCompCreateBlocks( 1 );
$_page_cont[$_ni]['compose_index_col2'] = PageCompCreateBlocks( 2 );
$_page['extra_js'] = '<script type="text/javascript">urlIconLoading = "'.getTemplateIcon('loading.gif').'";</script>';
// --------------- [END] page components
PageCode();
}
// --------------- page components functions
..
Then you need to open up page_1.html and add this:
<div style="width:754px; margin-left: auto; margin-right: auto;">__daily_quotes__</div>
page_1.html is located in templates/tmpl_uni/
If you want to update or change the display of the quotes, you need to edit the quotes.inc.php file located in the "inc" folder located at the root of your install. For example, if you installed your site like this http://www.yourdomain.com/dolphin/ then your root would be the dolphin folder and the inc folder would be located http://www.yourdomain.com/dolphin/inc/.
A Bit More About Quotes
You can actually change the display of the quotes by applying a different value to the __daily_quotes__ token.
You can do this by opening up the quotes.inc.php file located in the inc folder.
On line on or about 31 you will see the start and end tags:
$quote_html = <<<EOS
<!-- QUOTES [begin] -->
<table width="754" cellpadding=5 cellspacing="0" class="text">
...
<!-- QUOTES [ end ] -->
EOS;
Whatever you put between those comment tags is what will appear in the daily quotes. For example:
$quote_html = <<<EOS
<!-- QUOTES [begin] -->
<table width="754" cellpadding=5 cellspacing="0" class="text">
<tr>
<td colspan="2" align=right valign="middle" class="quotes_text"><hr></td>
</tr>
<tr>
<td width="377" align=right valign="middle" class="quotes_text"><div align="right"><i>%Text%</i></div></td>
<td width="377" align=right valign="middle" class="quotes_text"><div align="left"><b>%Author%</b></div></td>
</tr>
<tr>
<td colspan="2" align=right valign="middle" class="quotes_text"><hr></td>
</tr>
</table>
<!-- QUOTES [ end ] -->
EOS;
It will give you a formatted table.
Download(s)
N/A
Addendum
N/A

|