edercaz

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?

hmm

------------------------------------------------------
Hello fellows, you´r invited to enjoy Candywraps smile

itmgk

Re: Move Post new job into a admin area

u may delete button code from template
and add it's to the admin's template

Бизнес портал города магнитогорск - все о Магнитогорске: работа в Магнитогорске, недвижимость Магнитогорска, карта Магнитогорска, расписание самолетов, поездов, автобусов.

edercaz

Re: Move Post new job into a admin area

i will tray, i just have care to mess something else

------------------------------------------------------
Hello fellows, you´r invited to enjoy Candywraps smile

edercaz

Re: Move Post new job into a admin area

itmgk wrote:

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)

------------------------------------------------------
Hello fellows, you´r invited to enjoy Candywraps smile

frontst

Re: Move Post new job into a admin area

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!

raghavsoni

Re: Move Post new job into a admin area

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

frontst

Re: Move Post new job into a admin area

Great - thank you.

frontst

Re: Move Post new job into a admin area

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

putypuruty

Re: Move Post new job into a admin area

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

Code:

    var $mIsSpotlight = false;
    var $mMySqlDate = false;

- around line 823 (in the Create function), replace the following line

Code:
NOW(), 1, 0, 0, "' . $this->GenerateAuthCode() . '", 

with

Code:
NOW(), ' . $params['is_temp'] . ', '. $params['is_active'] .', 0, "' . $this->GenerateAuthCode() . '", 

2. Open page_write.php and add the following after line 95

Code:

'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.