Topic: Enable Social Bookmarking on Ads
Here's how to enable social bookmarking on your ads:
first, download the social bookmarking image here then save it on your /img folder.
then on /css/screen.css, add anywhere:
#socialjob {
width:263px;
height:20px;
margin-bottom:5px;
padding:5px;
padding-left:0px;
background:url(../img/socializer.png) no-repeat;
}
#socialjob a {
text-decoration: none;
}
#socialjob a:hover {
text-decoration: none;
background-color: transparent
}
.sociallink {
display:block;
float:left;
margin-left:5px;
height:24px;
text-decoration:none;
border:0px;
width:9px;
}
on /page_job.php, add before $template = 'job.tpl';
$joburl = BASE_URL . 'job/' . $id . '/' . $info['url_title'] . '/';
$jobtitle = ucwords($info['title']);
$smarty->assign('socialurl', $joburl);
$smarty->assign('socialtitle', $jobtitle);
and on /_templates/job-details.tpl, under
<div id="job-description">
{$job.description}
</div>
add the following lines
{if $socialurl != NULL}
<br />
<div id="socialjob">
<a class="sociallink" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url={$socialurl}&Title={$socialtitle}" title="blinklist" target="_blank"></a>
<a class="sociallink" href="http://del.icio.us/post?url={$socialurl}&title={$socialtitle}" title="delicious" target="_blank"></a>
<a class="sociallink" href="http://digg.com/submit?phase=2&url={$socialurl}" title="digg" target="_blank"></a>
<a class="sociallink" href="http://www.facebook.com/sharer.php?u={$socialurl}" title="facebook" target="_blank"></a>
<a class="sociallink" href="http://www.furl.net/storeIt.jsp?u={$socialurl}&t={$socialtitle}" title="furl" target="_blank"></a>
<a class="sociallink" href="http://www.google.com/bookmarks/mark?op=edit&bkmk={$socialurl}&title={$socialtitle}" title="googlebookmarks" target="_blank"></a>
<a class="sociallink" href="http://ma.gnolia.com/bookmarklet/add?url={$socialurl}&title={$socialtitle}" title="magnolia" target="_blank"></a>
<a class="sociallink" href="http://www.mixx.com/submit?page_url={$socialurl}" title="mixx" target="_blank"></a>
<a class="sociallink" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u={$socialurl}&t={$socialtitle}" title="yahoo! my web" target="_blank"></a>
<a class="sociallink" href="http://reddit.com/submit?url={$socialurl}&title={$socialtitle}" title="reddit" target="_blank"></a>
<a class="sociallink" href="http://www.stumbleupon.com/submit?url={$socialurl}&title={$socialtitle}" title="stumbleupon" target="_blank"></a>
<a class="sociallink" href="http://technorati.com/faves/?add={$socialurl}" title="technorati" target="_blank"></a>
<a class="sociallink" href="http://twitter.com/home?status={$socialurl}" title="twitter" target="_blank"></a>
<a class="sociallink" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url={$socialurl}&top=1" title="windows live" target="_blank"></a>
</div>
{/if}
that should do it.
RedJumpsuit
Last edited by redjumpsuit (2009-02-14 01:10:17)
Monetize your job board using PayPal Payment Solution for jobberBase 1.9.1!