Allow Social Bookmarking on Jobs
first, download this social bookmarking image 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.






Where should I see this?
hi, when you click on the job, it should display after the job description and before the ‘apply’ button.
It isnt work, im not seeing it come up?
the bookmark appears at the bottom of the job ad
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
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”
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
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
hey Redjumpsuit,
Sorry for all my posts but i’ve got this working thanks for this add on
Just thought you should know, this works in 1.8
Nope..this code will break if you try to edit job url structure. Will need a small tweak.
1.8 Tweak posted at http://www.jobberbase.com/forum/post7112.html#p7112
Lost my css styling after following steps.. What happened
edited wroong css and replaced admin css code for main css file.. This is a trick for novices..
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