<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>jobberBase Community - Move Post new job into a admin area</title>
		<link>http://www.jobberbase.com/forum/topic950-move-post-new-job-into-a-admin-area.html</link>
		<description>The most recent posts in Move Post new job into a admin area.</description>
		<lastBuildDate>Sat, 21 Mar 2009 17:17:27 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post4673.html#p4673</link>
			<description>Hi, guys!

I had some spare time and I&#039;ve implemented this feature - you can now also post a job from inside the administration section.

[b]What I&#039;m about to describe below applies only to jobberbase 1.6[/b]

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 [b]_includes/class.Job.php[/b] and:

- add the following after line 38
[code]
	var $mIsSpotlight = false;
	var $mMySqlDate = false;
[/code]

- around line 823 (in the [b]Create[/b] function), replace the following line
[code]NOW(), 1, 0, 0, &quot;&#039; . $this-&gt;GenerateAuthCode() . &#039;&quot;, [/code]
with
[code]NOW(), &#039; . $params[&#039;is_temp&#039;] . &#039;, &#039;. $params[&#039;is_active&#039;] .&#039;, 0, &quot;&#039; . $this-&gt;GenerateAuthCode() . &#039;&quot;, [/code]

2. Open [b]page_write.php[/b] and add the following after line 95
[code]
&#039;is_temp&#039; =&gt; 1,
&#039;is_active&#039; =&gt; 0,
[/code]

3. You will have to overwrite some files:

-  /admin/page_edit_post.php with http://jobberbase.googlecode.com/svn-history/r126/trunk/app/admin/page_edit_post.php

- /admin/_templates/edit_post.tpl with http://jobberbase.googlecode.com/svn-history/r126/trunk/app/admin/_templates/edit-post.tpl

- /admin/_templates/header_tpl with http://jobberbase.googlecode.com/svn-history/r126/trunk/app/admin/_templates/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.</description>
			<author>dummy@example.com (putypuruty)</author>
			<pubDate>Sat, 21 Mar 2009 17:17:27 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post4673.html#p4673</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post4669.html#p4669</link>
			<description>Hmm, ok, I&#039;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 &quot;new posts&quot; generated by that statement? Want to make sure I dont&#039; screw anything up. Thanks</description>
			<author>dummy@example.com (frontst)</author>
			<pubDate>Fri, 20 Mar 2009 19:39:26 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post4669.html#p4669</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post4668.html#p4668</link>
			<description>Great - thank you.</description>
			<author>dummy@example.com (frontst)</author>
			<pubDate>Fri, 20 Mar 2009 19:36:18 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post4668.html#p4668</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post4667.html#p4667</link>
			<description>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</description>
			<author>dummy@example.com (raghavsoni)</author>
			<pubDate>Fri, 20 Mar 2009 19:32:59 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post4667.html#p4667</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post4666.html#p4666</link>
			<description>Hi - I have a follow-up to this question.

I moved the button to post a new job to the Admin panel but I&#039;m still seeing little links on empty categories that read &quot;Post a new job?&quot; ... I&#039;d like to get rid of those as well.

You can see it here: http://www.frontst.com/jobberbase/app/

I&#039;ve looked through all the template files and I can&#039;t find that line.

Please advise.

Thanks!</description>
			<author>dummy@example.com (frontst)</author>
			<pubDate>Fri, 20 Mar 2009 19:16:34 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post4666.html#p4666</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post3251.html#p3251</link>
			<description>[quote=itmgk]u may delete button code from template
and add it&#039;s to the admin&#039;s template[/quote]

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?</description>
			<author>dummy@example.com (edercaz)</author>
			<pubDate>Sun, 21 Dec 2008 00:18:43 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post3251.html#p3251</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post3250.html#p3250</link>
			<description>i will tray, i just have care to mess something else</description>
			<author>dummy@example.com (edercaz)</author>
			<pubDate>Sat, 20 Dec 2008 23:33:15 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post3250.html#p3250</guid>
		</item>
		<item>
			<title>Re: Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post3248.html#p3248</link>
			<description>u may delete button code from template
and add it&#039;s to the admin&#039;s template</description>
			<author>dummy@example.com (itmgk)</author>
			<pubDate>Sat, 20 Dec 2008 23:01:20 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post3248.html#p3248</guid>
		</item>
		<item>
			<title>Move Post new job into a admin area</title>
			<link>http://www.jobberbase.com/forum/post3243.html#p3243</link>
			<description>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?

:/</description>
			<author>dummy@example.com (edercaz)</author>
			<pubDate>Sat, 20 Dec 2008 18:59:05 +0000</pubDate>
			<guid>http://www.jobberbase.com/forum/post3243.html#p3243</guid>
		</item>
	</channel>
</rss>
