Topic: admin page [ Started by elgreco in Feature requests : 1 replies ]
admin page should be improved with a "search" to easy delete ads related to a company.
now its really difficult to track the ads and edit or delete if asked so
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 :).
jobberBase Community » Posts by elgreco
admin page should be improved with a "search" to easy delete ads related to a company.
now its really difficult to track the ads and edit or delete if asked so
Great! Thanks again for your great help! I will do it tonight and test.
I remeber that once upon a time i saw here in the forum how to implement the search button and disable the automatic one, but i just cant find it!
does anybody have a tip or help?
thanks
is it possible that the spotlights are shown also in the appropriate category?
e.g there is a spotlight for "web designers" category the spotlight should be on the front page and if pressing the "web designers" should be shown also there
It does work! please check your mail....
[quote=elbsailor]I tried to find out where to enter the code - but it does not work....
This is the code how I modified it according to elgreco:
<?php
/**
* jobber job board platform
*
* @author Filip C.T.E. <http://www.filipcte.ro> <me@filipcte.ro>
* @license You are free to edit and use this work, but it would be nice if you always referenced the original author wink
* (see license.txt).
*
* Postman class is a generic class that handles all e-mail operations
*/
class Postman
{
var $mAdminEmail = ADMIN_EMAIL;
function __construct()
{ }
// Send a job post to a friend
public function MailSendToFriend($friend_email, $my_email)
{
$headers = "MIME-Versin: 1.0\r\n" .
"Content-type: text/plain; charset=UTF-8; format=flowed\r\n" .
"Content-Transfer-Encoding: 8bit\r\n" .
"From: $my_email\r\n".
"X-Mailer: PHP" . phpv …
i changed you the first two, change the others as the first one :)
[quote=elbsailor]Here we go: :-)
<?php
/**
* jobber job board platform
*
* @author Filip C.T.E. <http://www.filipcte.ro> <me@filipcte.ro>
* @license You are free to edit and use this work, but it would be nice if you always referenced the original author ;)
* (see license.txt).
*
* Postman class is a generic class that handles all e-mail operations
*/
class Postman
{
var $mAdminEmail = ADMIN_EMAIL;
function __construct()
{ }
// Send a job post to a friend
public function MailSendToFriend($friend_email, $my_email)
{
$headers = "MIME-Versin: 1.0\r\n" .
"Content-type: text/plain; charset=UTF-8; format=flowed\r\n" .
"Content-Transfer-Encoding: 8bit\r\n" .
"From: $my_email\r\n".
"X-Mailer: PHP" . phpversion();
$subject = '我推荐给您一份招聘广告';
$msg = $_SERVER['HTTP_REFERER'];
$msg .= "\n\n …
thanks for your reply, i guess i can change it to suit my needs
[quote=putypuruty]Hi.
The only thing that I know to be similar to what you are saying is this http://www.redjump.co.cc/2009/04/16/list-jobs-of-the-same-company-on-the-ad/
Hope it helps![/quote]
i remember that i saw once a post saying how to implement a "similar jobs to your search" or " you may be interested also in" showing on the jobs page under the showing ad
but i cant find it on the forum anymore....any help?
And how will the users keep update with your release?
they will download your releases..and thats already a fork :)
its not just a template change its a code change. I also did some improvements, but i share them with the coders and if they find it ok, they post them.
[quote=evertsemeijn]In my eyes it's not a fork and not intended that way. I only see that there are a lot of troubles integrating all the customisations and hacks that I think it's a good way to give the something back. And I'm also doing it for the development of my own sites, so why not share it with the world?[/quote]
why to do a fork o jobberbase
i suggest you to speak with filip other developers active on the project to add some code to the next releases
[quote=evertswhemeijn]At the moment I'm updating JB 1.7, because I think there is still a lot that needs to be fixed first at the basics before going to JB Pro. What I'm working on is the following:
Basic:
* adding all hardcoded text to language file;
* removing all tables and replacing them with div's;
* compressing as much as possible (that includes both .tpl, .js and .css files);
* CSS sprites;
* make everything valid XHTML 1.0 Strict and valid CSS 2.1;
* update .js files where possible;
* replace some .js with Smarty tags;
* no more <br /> for alignment;
* fix date error in RSS;
* rewrite config for fast deployment on multiple domains;
* update default SQL data;
Extentions:
* Company cloud (N2S);
* Number of ads, companies and applications on frontpage (Redjumpsuit);
* Spotlight v2.0 (Chronos);
* Salary range (Redjumpsuit);
* Extend ads f …
[quote=elbsailor]Thanks!
That at least deleted the error message.
But the mails still offer wired charakters - except the one which is sent to the company if someone applied.
Could you modify MY code according your suggenstions? I am struggling to decide where I have to include which of your recommended codes.
Thank you!
Dirk[/quote]
post the code and i will change it as soon as i find time!
[quote=elbsailor]Not sure what you mean...[/quote]
in notepad++ editor convert the file from ansi to utf-8 without BOM
Your page should be encoded in utf-8 without BOM for the start...
[quote=elbsailor]hi elgreco,
could you modify the code of my file and post it here? I tried it and it does not work.
Thanks!
Dirk[/quote]
i would change the [code]
2. page_apply.php - add this code in the validation section (before if ($apply_name =='')):
if ($_POST['secure'] != $_SESSION['security_number'])
{
$errors['spam'] = 'Bye-bye, robot!';
}[/code]
with[code]
2. page_apply.php - add this code in the validation section (before if ($apply_name =='')):
if ($_POST['secure'] != $_SESSION['security_number'])
{
$errors['spam'] = 'Bye-bye, robot!';
}
if ($_POST['secure'] != $_SESSION['security_number']) {
// clear to prevent re-use
unset ($_SESSION['security_number']);
} else {
$errors['spam'] = $translations['apply']['name_error'];
}
[/code]
please comment on it.
[quote=Adnetto]Here you are!
First you need to upload the image.php file, i put it in the /math_capcha
folder.
1. _templates/job_details.tpl - add this code inside the apply form
<table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colsp …
its more simple that it look like
to fix your mail encondings you have to do the following:
on the functions that use mail only add the $headers and add the $headers in the if(mail(....
[code]
// Send a job post to a friend
public function MailSendToFriend($friend_email, $my_email)
{
$headers = "MIME-Versin: 1.0\r\n" .
"Content-type: text/plain; charset=UTF-8; format=flowed\r\n" .
"Content-Transfer-Encoding: 8bit\r\n" .
"From: $my_email\r\n".
"X-Mailer: PHP" . phpversion();
$subject = 'bla bla bla bla';
$msg = $_SERVER['HTTP_REFERER'];
$msg .= "\n\n---\nblal bla bla το e-mail από " . $my_email;
if ($friend_email != '' && $my_email != '' && validate_email($friend_email) && validate_email($my_email))
{
if (mail($friend_email, $subject, $msg, $headers))
{
[/code]
in the function that uses phpmailer add : $mail->CharSet = 'UTF-8';
[code]
$mail->From = stripslashes($data['apply_email …
the 1.7 version you can download from the web, is using the old class.phpmailer
in the subversion you added a new one.
So i can confirm that there is a bug with the new class.phpmailer and the latest commits on the subversion.
regards
hi!
ok, what should i say..i just updated the svn and tried again...but i get the same error
[code]
Could not access file: C:\xampp\htdocs\jobberbase\app\uploads/
[/code]
can someone reproduce the same error?
hi i dont think its a problem with the smtp address
when i comment out the [code]
if ($data['attachment_path'])
{
$mail->AddAttachment($data['attachment_path'], $data['attachment_filename']);
} [/code]
it works. So i guess phpmailer has a problem with the path
You changed in page.apply.php the attach var to attachment
r u sure you commited tall the changes to the SVN?
yes i did
i downloaded phpmailer 5.0.2 and on my hosting and on local pc XAMP i get the same error (my php is 5.2.9)
if i download the phpmailer 2.0.4 (for php4) it works like a charm....
hope it helps
the bug is not in jobberbase but in the latest update to phpmailer class
ok, i just downgraded to 1.6 version and it works like a charm!
The problem is with the latest 1.7 version downloaded from the repository.
Example on 1.7:
Press Apply-now and fill the form without adding the attachment.
The server will respond with (Could not access file: /domains/jobberbase/public_html/uploads/)
these does not have anything to do with chmod 777 since i didnt attach anything.
I guess the the page-apply.php has a bug where it check to do sometging with an attachment, but the atachment does not exists...
putypuruty what do you thing?
i customized my jober but now with the last version i started experiencing errors while pressing apply now on a job.
i get the error: Could not access file: /domains/jobberbase/public_html/uploads/
i did a fresh install of jobberbase from the original repository and i get the same error.
If i select a CV attachment the job is send buy the email never cames...
hi!
The number Total is the total number of jobs posted as fake. it should increase in number if you report a new job. If you click on one existing job, it will just increase the count of it.
I will add the delete function in a while, but till then you can use the the manage jobs to deactivate or delete it. :)
[quote=Tokyoj]elgreco,
Thank you. I'll added your code and it works but one minor issue.
In mine,
<li>Total: {$reports.count}</li>
remains at the original '4', but doesn't increase with new reports. The # per job works fine.
A suggestion, IMHO, the ability to manually delete jobs from the list would be helpful. I image after 1,2,3 yrs the list might be pretty long. What do you think?[/quote]
since it is nice to follow if there is any fake job reported..i made a small addon to check it out.
1. /admin/index.php add
[code]
// spam
case 'spam':
if(!isset($_SESSION['AdminId']))
{
redirect_to(BASE_URL);
exit;
}
require_once 'page_spam.php';
$flag = 1;
break;
[/code]
2. in \admin\templates\header.tpl add after approx line 51
[code]
<li {if $current_category == 'spam'}class="selected"{/if}><a href="{$BASE_URL_ADMIN}spam">Fake Reports</a></li>
[/code]
3. create page_spam.php in \admin\
[code]
<?php
class Spam
{
function __construct()
{ }
public function Reports()
{
global $db;
$sql = 'SELECT count(distinct job_id) AS totalNumberOfReports
FROM spam_reports';
$result = $db->query($sql);
$row = $result->fetch_assoc();
$totalNumberOfReports = $row['totalNumberOfReports'];
$sql = 'SELECT DISTINCT b.title AS title, b.company AS company, a.job_id AS job_id,sp.counter as counter
…
Page [ 1 of 2 ] Posts by elgreco [ 1 to 25 of 50 ]
jobberBase Community » Posts by elgreco
Powered by FluxBB
[ Generated in 0.020 seconds, 4 queries executed ]