Google Page Rank Button

Core code customizations and Smarty markup and Template design help in regards to ADP.

Moderator: pgolovko

Google Page Rank Button

Postby peci » 09/01/2007 7:36 pm

body.html
Code: Select all
{if $links}
                <!-- LINKS BELOW -->
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100%"><font size="2" color="#008000">Links</font></td>
                  </tr>
                  <tr>
                    <td width="100%" bgcolor="#008000"><img border="0" src="/images/pixel.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td align="right" width="100%">
<font size="2">{if $nav != " <B>1</B> "}{$nav}{/if}</font>
<br />
{foreach from=$links item=item key=key}
<table border="0" width="100%"><tr>
<td><font size=2><li><a href="{$item.url}"><strong>{$item.title}</strong></a> <a target="_blank" href="{$item.url}"><img border=0 src="/images/nw2.gif"></a>{if $item.recip == "1"} <img src="/images/recip.gif">{/if}<br />
{if $item.description <> ""}{$item.description}<br />{/if}</font>
<font size=1><font color=green>{$item.url}</font><br />
Date:{$item.date}, Google PR:
{if $item.gpr == "0"} <img src="/images/rank.gif">
{/if}
{if $item.gpr == "1"} <img src="/images/rank1.gif">
{/if}
{if $item.gpr == "2"} <img src="/images/rank2.gif">
{/if}
{if $item.gpr == "3"} <img src="/images/rank3.gif">
{/if}
{if $item.gpr == "4"} <img src="/images/rank4.gif">
{/if}
{if $item.gpr == "5"} <img src="/images/rank5.gif">
{/if}
{if $item.gpr == "6"} <img src="/images/rank6.gif">
{/if}
{if $item.gpr == "7"} <img src="/images/rank7.gif">
{/if}
{if $item.gpr == "8"} <img src="/images/rank8.gif">
{/if}
{if $item.gpr == "9"} <img src="/images/rank9.gif">
{/if}
{if $item.gpr == "10"} <img src="/images/recip10.gif">
{/if}
</font></td>
</tr></table>&nbsp;
{/foreach}
<font size="2">{if $nav != " <B>1</B> "}{$nav}{/if}</font>
                    </td>
                  </tr>
                </table>
                &nbsp;
{/if}

:blob:
http://www.metatagen.com
:coffee:
peci
 
Posts: 13
Joined: 07/05/2007 12:48 am


Postby bihlink » 09/03/2007 2:26 am

Cool feature, thanks for sharing it with us. :thumbleft:
bihlink
 
Posts: 67
Joined: 05/08/2007 1:53 am

Postby gc_rjauregui » 09/04/2007 2:24 pm

Nice indeed.

Something even more simple is as follows:
Code: Select all
<img src="/images/rank{$item.gpr}.gif" alt="{$item.gpr}" />

Assuming you have the picture files rank0.gif through rank10.gif it effectively works just the same, but with less code.
Best Regards,

Ryan Jauregui
geekcoders development member

laf innovative | development blog
User avatar
gc_rjauregui
Site Admin
 
Posts: 394
Joined: 03/25/2006 1:23 am
Location: Stanton, CA

HTML Buttons

Postby peci » 02/02/2008 4:26 am

Code: Select all
{if $item.gpr == "0"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="0" bgcolor="#009900"></td>
<td  width="160" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 0/10</table></table>
{/if}
{if $item.gpr == "1"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="15" bgcolor="#009900"></td>
<td  width="135" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 1/10</table></table>
{/if}
{if $item.gpr == "2"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="30" bgcolor="#009900"></td>
<td  width="120" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 2/10</table></table>
{/if}
{if $item.gpr == "3"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="45" bgcolor="#009900"></td>
<td  width="105" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 3/10</table></table>
{/if}
{if $item.gpr == "4"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="60" bgcolor="#009900"></td>
<td  width="90" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 4/10</table></table>
{/if}
{if $item.gpr == "5"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="75" bgcolor="#009900"></td>
<td  width="75" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 5/10</table></table>
{/if}
{if $item.gpr == "6"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="90" bgcolor="#009900"></td>
<td  width="60" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 6/10</table></table>
{/if}
{if $item.gpr == "7"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="105" bgcolor="#009900"></td>
<td  width="45" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 7/10</table></table>
{/if}
{if $item.gpr == "8"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="120" bgcolor="#009900"></td>
<td  width="30" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 8/10</table></table>
{/if}
{if $item.gpr == "9"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="135" bgcolor="#009900"></td>
<td  width="15" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 9/10</table></table>
{/if}
{if $item.gpr == "10"}
<table cellspacing="0" cellpadding="0" border="0" width="300">
<tr valign="middle">
<td width="160">
<table width="150" cellspacing="1" cellpadding="0" border="0" bgcolor="#C0C0C0"><tr>
<td height="9" width="150" bgcolor="#009900"></td>
<td  width="0" bgcolor="#FFFFFF"></td></td></tr></tr>Google Page Rank: 10/10</table></table>
{/if}

:blob:
peci
 
Posts: 13
Joined: 07/05/2007 12:48 am


Return to Customization & Templates

Who is online

Users browsing this forum: No registered users and 0 guests

cron