RedJumpsuit

jobberBase custom development and support

 

Code School

Allow Social Bookmarking on Jobs

first, download this social bookmarking image then save it on your /img folder.

socializer

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.

18 Comments

Code School

  1. Where should I see this?

  2. hi, when you click on the job, it should display after the job description and before the ‘apply’ button.

  3. It isnt work, im not seeing it come up?

  4. the bookmark appears at the bottom of the job ad

  5. http://www.test.werkict.com

    Still can’t get it working please look at my test site. Would like to se it working but got not a clue what to do.

    Thanks

  6. Sorry but I’ve already fixed it. I’ve missed this small piece in translations.ini

    [publish]
    tags =”Tags”
    tags_warning = “Separate each tags by comma or space”

  7. Notice: Undefined property: Job::$mMySqlDate in /home/w9707326/domains/werkict.com/public_html/test/_includes/class.Job.php on line 118

    Notice: Undefined property: Job::$mIsSpotlight in /home/w9707326/domains/werkict.com/public_html/test/_includes/class.Job.php on line 125

    Fatal error: Call to a member function fetch_assoc() on a non-object in /home/w9707326/domains/werkict.com/public_html/test/_includes/class.Job.php on line 1185

    These are the current errors I’m receiving when posting a job on my test site. Note I’ve also tried to make social bookmarking to work maybe It’s conflicting with that faile instalation

  8. Sorry bur my last two posts are wrong placed. They shoulld go here.
    http://www.redjumpsuit.net/2009/04/18/add-tags-when-posting-a-job/
    I am sorry for the inconvenience

  9. hey Redjumpsuit,

    Sorry for all my posts but i’ve got this working thanks for this add on

  10. Just thought you should know, this works in 1.8

  11. Nope..this code will break if you try to edit job url structure. Will need a small tweak.

  12. Lost my css styling after following steps.. What happened

  13. edited wroong css and replaced admin css code for main css file.. This is a trick for novices..

  14. Excellent work.. Got it working.. Thanks for the help.. one comment would to add more detail for the file paths.. for novices like me

    ie there are two .cc files for Admin and the default and djob-details

  15. You should add the attr rel=’nofollow’ for all of those links. Great tip though, I will be adding this once my install is done.

  16. I have followed all the steps but I am not getting it. When i roll my mousee over the space where it should be placed it shows all the links but the buttons are not visible.

  17. just duplicate the photo field and apply the same changes as for the 1 upload field.

Leave a Response