Re: Widgets demo [ Started by mattinsa in General support : 4 replies ]

Here's a demo: [url=http://chronoscripts.com/widget.html]http://chronoscripts.com/widget.html[/url]. Though it's not written down, localhost should be replaced by the domain where JB is installed, it seems many users still use the default one atm.

The sourcecode:
[code]<head>
<style>
ul.jobber-list {
list-style-type: none;
margin: 0;
padding: 0;
}
ul.jobber-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<script src="http://telefonischwerk.nl/api/api.php?action=getJobs&type=0&category=0&count=5&random=1&days_behind=7&response=js" type="text/javascript"></script>
<script type="text/javascript">showJobs('jobber-container', 'jobber-list');</script>
</body>[/code]

To place it at a specific spot, simply place a div named "jobber-container" somewhere, and add some more stylesheet information. …

Re: Changing text/stings [ Started by red_5 in General support : 9 replies ]

It's still hardcoded (fixed in 1.8), so it doesn't appear in translations.ini. To add it, do the following steps:

[b]1. In file "translations.ini"[/b]

[u]Find:[/u]
[code] recent_jobs = "Most recent job offers"[/code]
[u]Add above:[/u]
[code] spotlight_jobs = "Spotlight Jobs"[/code]

[b]2. In file "_templates/home.tpl"[/b]

[u]Find:[/u]
[code] <h2>Spotlight Jobs</h2>[/code]

[u]Replace with:[/u]
[code] <h2>{$translations.homepage.spotlight_jobs}</h2>[/code]

Re: Changing text/stings [ Started by red_5 in General support : 9 replies ]

Appears to be {$translations.homepage.at} you're looking for, so under translations.ini it should be under the category [homepage] and the settingname "at".

Re: Database: Can I use the same db for more than 1 website? [ Started by keskese in General support : 14 replies ]

I've added Prefix support for JB, you can check the changelog for the SVN update to manually update your files. I'm afraid writing an automatic installer would be more work than writing the functionality itself, so you'll have to do the replacing yourself.

In upcoming releases an installer script should take care of creating the tables with their prefix, for now you can use PHPMyAdmin. Go to each table, go to 'Operations' and use the 'Rename table to' functionality.

Except for the config.php adjustment, all other replacements are mostly '.DB_PREFIX.'. Here's the log of changed files:

http://code.google.com/p/jobberbase/source/detail?r=167

Re: Jobberbase Duplicate? [ Started by navjotjsingh in General discussion : 3 replies ]

Obviously a slightly adjusted JB, heck it even uses the same example jobs. Pretty lame, but I guess it is permitted with the license model JB uses..

Re: Database: Can I use the same db for more than 1 website? [ Started by keskese in General support : 14 replies ]

Hmm. It would be fairly easy to do, if there was support for a database prefix (you would have 'site1_jobs', site2_jobs' etc. tables). Even though it's fairly simple to write, all the queries in functions.php, class.Job.php and perhaps some other files need to have some code added.

I'll add it to my tasks for 1.8, as well as make a guide for existing users (I'll include an automatic installer for the search/replace). Perhaps I'll get to it today, otherwise should't be long. Good suggestion :)

Re: Environmental Jobs Finder [ Started by cobano in Show off : 1 replies ]

I like the general clean interface you've used for the websites. I found a couple of things though, like a typo in the image at 'Environmental Jobs Finder, where search is spelled 'Serach'.

Also at the London Jobs site, a fix is needed for the search suggestions. Simply place a div around:
[code]<label class="suggestionTop">Keywords, job title or company</label>[/code]

Good luck with your sites :)

Re: Category page heading [ Started by greencode in General support : 7 replies ]

Thanks Evert, I've updated the post :)

Re: Category page heading [ Started by greencode in General support : 7 replies ]

I noticed a small bug in the code and adjusted the first post. Since you already applied the fix, also do step #3 and make sure you adjust "page_category.php" to contain the following:

[code]$smarty->assign('current_category', $id);
$smarty->assign('current_category_name', get_categ_name_by_varname($id));[/code]

Re: Category page heading [ Started by greencode in General support : 7 replies ]

Made a quick fix for it, I'll make sure it'll find it's way into the next release.

[u]1. In file "page_category.php" [/u]

[b]Find:[/b]
[code]$smarty->assign('current_category', $id);[/code]

[b]Add below:[/b]
[code]$smarty->assign('current_category_name', get_categ_name_by_varname($id));[/code]

[u]2. In file "_includes/functions.php" [/u]

[b]Find:[/b]
[code]function get_categ_id_by_varname($var_name)
{
global $db;
$sql = 'SELECT id FROM categories WHERE var_name = "' . $var_name . '"';
$result = $db->query($sql);
$row = $result->fetch_assoc();
return $row['id'];
}[/code]

[b]Add below:[/b]
[code]function get_categ_name_by_varname($var_name)
{
global $db;
$sql = 'SELECT name FROM categories WHERE var_name = "' . $var_name . '"';
$result = $db->query($sql);
$row = $result->fetch_assoc();
return $row['name'];
}[/code]

[u]3. In file "_templates/category.tpl"[/u]

[b]Find:[/b]
[code]{$translations.category.jobs_for} {$current_category}[/code]

[b]Replace with:[/b]
[code]{$tra …

Re: Spotlight Jobs v2 - Timer based! [ Started by Chronos in Tutorials : 16 replies ]

Did you clear the cache, to make sure the old JS file has been refreshed?

Re: Search Rewritten - Pagination support [ Started by Chronos in Tutorials : 3 replies ]

Will do, but I'll wait for some people to have it running, to make sure it's bug-free :)

Re: Search does not work with more that a couple 1000 jobs posted [ Started by ninjarage in Bug reports : 19 replies ]

I've already written the filter function for an advanced search a while back, I'll just need to write a page with a form for it to get it done. I'll probably have a look at that later on this week.

Re: Search does not work with more that a couple 1000 jobs posted [ Started by ninjarage in Bug reports : 19 replies ]

I've released the source at: http://chronoscripts.com/search-rewritten-for-pagination/. Please try it out and let me know if any bugs appear!

Topic: Search Rewritten - Pagination support [ Started by Chronos in Tutorials : 3 replies ]

This modification replaces the default search function with one that adds pagination support. Although it does not use ‘Full Text’ search, it loads quickly regardless of the amount of jobs in the database.

I’ve included two search methods, you can choose and test both at the config.php. Both have pagination. They are:

[b]1. Classic JB Search:[/b] The default of JB 1.7. I don’t think it’s very user-friendly, as it only seems to work good when searching in the format of “keyword1 keyword2″ or “keyword1, cityname”.

[b]2. Chronos Modified Search:[/b] Keywords are seperated by spaces, each of them must be in either the title, cityname or description. There are likely more results than the classic search, but a user can give as many keywords as he likes.

[b]Modification Features:[/b]
* Adds pagination support to the search function
* Two search methods are included
* Supports large databases (Full Text may follow if needed)
* Allows user to go back and forth from search p …

Re: Search does not work with more that a couple 1000 jobs posted [ Started by ninjarage in Bug reports : 19 replies ]

Fixed the bug. While it's possible to make it search within a category, I'm not sure if it's clear to the user.. an extra 'advanced search' option might be better?

Re: Search does not work with more that a couple 1000 jobs posted [ Started by ninjarage in Bug reports : 19 replies ]

It's almost finished, currently without Full Text usage though.. But it's loading a 3000 result page within a second. Please try it out at the URL below, so that any bugs are found quickly while I finish the thing.

[url=http://chronoscripts.com/jobberboards/topbijbaan/]http://chronoscripts.com/jobberboards/topbijbaan/[/url]

Re: I want to add a forum like FluxBB to my site [ Started by scubasteve in General support : 3 replies ]

It depends on how advanced you want it to be. PhpBB is probably the most popular and advanced free solution (plenty of mods etc.), but only really useful if you expect heavy forum usage.

FluxBB is a good light-weight solution, though some would probably prefer to have a BB code editor. Some alternatives are found here: [url=http://webtecker.com/2008/05/02/8-popular-open-source-forums/]http://webtecker.com/2008/05/02/8-popular-open-source-forums/[/url]

Re: I want to add a forum like FluxBB to my site [ Started by scubasteve in General support : 3 replies ]

You don't need seperate databases, especially if you let FluxBB add a prefix to the tables (flux_users etc).

To add the headers and such, you'll need to adjust the template files of FluxBB to the same <div> structure of the JB source, as well as load parts of the CSS. It's easy to do for most programmers and designers, but might be a bit tricky if you're unfamiliar with CSS though.

Also note that links and such in the header / footer will be static though (so after changing them in JB, you will have to adjust them in the FluxBB template files too).

Re: how do i remove the jobber from the background... [ Started by scubasteve in General support : 11 replies ]

You're sure you replaced the image? Perhaps the old version is still loaded from the cache, try a ctrl-f5?

Re: Search does not work with more that a couple 1000 jobs posted [ Started by ninjarage in Bug reports : 19 replies ]

I've checked the search engine some yesterday, and came to the conclusion that the search function itself was fairly quick to get the array with results (150~200ms with 3000 results), but the major delay was caused by the loop that creates new $job instances for each result (it loads each ID found with it's own query). This would mean Full Text would only help for a very minimal part.

I've rewritten the search function so it has pagination support, which seems to solve the issue just fine. I will need to finish some last points before I can release it, but expect it this weekend. I also wrote an extra search function that simply searches for each keyword given, each will have to be found in either the title, description or city.

[b]Update:[/b] On second thought, I only tested large amount of jobs, but with fairly descriptions. I believe the Full Text update + pagination support will solve both the search delay as the loading of the found jobs delay. I'll test it tonight. …

Re: how do i remove the jobber from the background... [ Started by scubasteve in General support : 11 replies ]

You'll have to edit (or replace) the file '/img/bg-box.png' in a photo-editing program. As no source files for JB images are available, the easiest way is to replace it with an image of the same size I guess.

Another option is to edit the "div#box" in the css file.

Re: this is what I see when i view source [ Started by scubasteve in General support : 5 replies ]

One possibility would be to make a second translations.ini especially for JavaScript usage, and load that in the I18n array instead. Shouldn't be too hard for a programmer to make the adjustments, I may look at it later, but it's not a priority for me atm.

Re: this is what I see when i view source [ Started by scubasteve in General support : 5 replies ]

That's the translation.ini loaded in javascript. Without it you wouldn't be able to set translations for messages inside JavaScript functions (you'd have to edit the .js files instead).

It doesn't do much good for SEO I'm afraid, it would be better to only load the translations that are actually used in JS files.

Topic: 'Apply Online' by Redjumpsuit - Admin support [ Started by Chronos in Tutorials : 0 replies ]

This modification expands the simple, but effective, modification by RedJumpsuit: “[url=http://www.redjumpsuit.net/2009/04/20/allow-online-applications/]Allow Online Applications[/url]“. After installation you will have the ability to adjust the ‘apply-online’ setting in the admin panel, as well as when creating new jobs from there.

You will need to have this mod installed, or this guide will not work. Full credits for the original mod to [url=http://www.jobberbase.com/forum/user1302.html]RedJumpsuit[/url]!

[b]Modification Features:[/b]
* Ability to adjust the ‘apply-online’ setting for existing jobs in the admin panel
* Ability to set the ‘apply-online’ setting for new jobs in the admin panel

[b]Full guide:[/b] [url=http://chronoscripts.com/apply-online-admin-update/]Apply Online - Admin Panel Update[/url]