Topic: edit job trough admin
It would be very very easy if we could edit a job trough the admin panel.
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
It would be very very easy if we could edit a job trough the admin panel.
I second this request. Not being able to edit a job through the admin is a major pain.
Think so too... when someone adds something that is not a valid job post but just spam you should have the option of removing and/or editing it..
I was not able to use admin from the beginning but I found it very easy to replace all data through MySql
I think some hosting plans just are not suitable for jobber - no matter how much you try and whatever you do...
Hi, guys.
If time permits me, I'll implement editing a job in admin. I'll let you know when it's done, together with instructions on how to integrate it in you site.
That would be absolutely great!
Hi.
I've had some time these days and I've implemented this feature
It allows you to edit exactly the same data as when posting a new job. You can also preview the changes before saving.
I'll post here what you have to do in order to have edit job in your admin section.
I'd really appreciate it if some of you guys could give it a try and report any problems. I've tried to keep the number of changes you have to make to a minimum and thus the code is a little bit ugly ![]()
First, you will have to edit some existing files:
1. open /admin/index.php and add the following lines before the 'default' keyword (before line 162):
case 'edit-post':
if(!isset($_SESSION['AdminId']))
{
redirect_to(BASE_URL);
exit;
}
require_once 'page_edit_post.php';
$flag = 1;
break;
You should now have something similar to this:
case 'edit-post':
if(!isset($_SESSION['AdminId']))
{
redirect_to(BASE_URL);
exit;
}
require_once 'page_edit_post.php';
$flag = 1;
break;
default:
$flag = 0;
break;
2. open /admin/_templates/header.tpl and add the following lines before the line '{foreach from=$js item=j}':
<script src="{$BASE_URL}js/jquery.validate.pack.js" type="text/javascript" charset="iso-8859-1"></script>
<script src="{$BASE_URL}js/browser_detect.js" type="text/javascript"></script>
3. open /admin/_templates/posts-loop.tpl and add the following line before '{if $job.is_active == 0}':
<a href="{$BASE_URL_ADMIN}edit-post/{$job.id}/" title="edit"><img src="{$BASE_URL}img/icon_edit.gif" alt="edit" /></a>
After you make these changes, you will have to download some files from the jobberbase source code repository:
1. save http://jobberbase.googlecode.com/svn/tr
n_edit.gif to /img folder
2. save http://jobberbase.googlecode.com/svn/tr
t_post.php to /admin folder
3. save http://jobberbase.googlecode.com/svn-hi
review.tpl to /admin/_templates folder
4. save http://jobberbase.googlecode.com/svn-hi
t-post.tpl to /admin/_templates folder
After all these steps are done, you will have an 'edit post' icon next to every posting in the admin section.
Let me know how it works.
PS: I've tried to test it as best as possible. You should backup your data before testing or best, you could try it on a local machine.
Last edited by putypuruty (2008-11-22 16:13:19)
Will we get to see this in an upgrade release?
Yes, it should be part of the next release. But until then, maybe you could give it a try ![]()
I was able to get this added, and I am by no means a coder. ![]()
Very simple, thanks for the detailed instructions.
I did see this error show up on the admin page when I selected a job to edit:
Notice: Undefined variable: translations in /home/gjh11/html_test/beta/admin/page_edit_post.php on line 126
Hi guys!
I'm happy that it works ![]()
That warning message that you get has no impact on the edit post functionality. You get it because we have added internationalization (i18n) support also for the admin section. But this code is not part of jobberbase 1.5 beta 1.
It will be in the next release.
Hi guys.
Whilst making the edit-job feature, I've introduced a subtle bug
(but it doesn't affect editing a post).
I'll ask all of you who have implemented the 'edit post' feature in their admin section to repeat the first step - I have updated the mini-tutorial, please take the code from here.
Posts [ 13 ]
Pages: 1
Powered by FluxBB
[ Generated in 0.033 seconds, 7 queries executed ]