Topic: Move Post new job into a admin area
Hello guys, some one know how to move the botton of post new job into a admin area, so only the user administrator can post jobs?
![]()
Hello fellows, you´r invited to enjoy Candywraps
Welcome to jobberBase Developer Community!
You are not logged in. Please login or register.
We've just added a new category for forums dedicated to local communities.
If you're interested in starting a community in your country or even city, please write us at hello@jobberbase.com and we'll make it happen.
We're also looking for moderators on each local community -- so email us :).
Pages: 1
Hello guys, some one know how to move the botton of post new job into a admin area, so only the user administrator can post jobs?
![]()
u may delete button code from template
and add it's to the admin's template
i will tray, i just have care to mess something else
u may delete button code from template
and add it's to the admin's template
The way than you had said work perfect, but, the part of the form of apply a new job still is outside of admin area.
I just insert the button code in the header.tpl from the admin templates, but you can find the form without login to the admin area.
some idea to lock whit pass the post area?
Last edited by edercaz (2008-12-21 00:21:10)
Hi - I have a follow-up to this question.
I moved the button to post a new job to the Admin panel but I'm still seeing little links on empty categories that read "Post a new job?" ... I'd like to get rid of those as well.
You can see it here: http://www.frontst.com/jobberbase/app/
I've looked through all the template files and I can't find that line.
Please advise.
Thanks!
here is the list of tpl files with post link
error.tpl
no-job.tpl
posts-loop-city.tpl
posts-loop.tpl
these post link in above tpl files are apart from the one in header,footer and post write files
Great - thank you.
Hmm, ok, I'm looking at them (no-job.tpl in particular) and am only seeing is the {$translations.jobs.no_job} within the no-ads div ... is the "new posts" generated by that statement? Want to make sure I dont' screw anything up. Thanks
Hi, guys!
I had some spare time and I've implemented this feature - you can now also post a job from inside the administration section.
What I'm about to describe below applies only to jobberbase 1.6
Here is what you have to do to integrate it into your existing installation - I recommend that you make a backup of these files before proceeding:
1. Open _includes/class.Job.php and:
- add the following after line 38
var $mIsSpotlight = false;
var $mMySqlDate = false;
- around line 823 (in the Create function), replace the following line
NOW(), 1, 0, 0, "' . $this->GenerateAuthCode() . '", with
NOW(), ' . $params['is_temp'] . ', '. $params['is_active'] .', 0, "' . $this->GenerateAuthCode() . '", 2. Open page_write.php and add the following after line 95
'is_temp' => 1,
'is_active' => 0,
3. You will have to overwrite some files:
- /admin/page_edit_post.php with http://jobberbase.googlecode.com/svn-hi t_post.php
- /admin/_templates/edit_post.tpl with http://jobberbase.googlecode.com/svn-hi t-post.tpl
- /admin/_templates/header_tpl with http://jobberbase.googlecode.com/svn-hi header.tpl
This should do the trick. Please let me know if it works for you too.
If you discover any bugs, just post here the problem (as detailed as possible) and I will try to fix it as soon as possible.
Posts [ 9 ]
Pages: 1
Powered by FluxBB
[ Generated in 0.023 seconds, 8 queries executed ]