Initial Configuration
From KitchenTwo
Contents |
J-Board Usage
J-Board uses a mix of in-line and admin sections for configuration.
The admin section lets you manage the configuration of J-Board. In-line admin means that you can manage most day to day operations in the front end of J-Board. For instance if you are logged in as admin the listings on the home page have some extra links displayed like this:
You can see an edit and suspend link, this enables you to edit and suspend the listing right from the front page or listing page.
If you click through to a listing you will see these links again plus an extra link to delete a listing, like this
The main admin screen to manage configuration settings looks like this Larger Screenshot Here
Creating a Category
To add a new category click the ‘category’ link in the right sidebar or at the top of the admin page. If you are logged in as admin you will see a form to add a new category, it looks like this.
Create a Basic Page
You will notice at the bottom of each page links to terms, privacy and about pages.
These pages are user defined and you can add/create your own.
In the themes/jboard/ folder you will see a folder called ‘pages’ If you take a look in here you will see the three pages mentioned above. You can edit these to your liking or create your own.
To create a page you need to do at least the following in a blank file and upload to the pages folder:
<?php require_once (ABSPATH.'/themes/'.SITE_THEME.'/header.php'); ?> <div id='content'> <div id="latest"> <h3>Your New Page</h3> <p>Here you can put your content</p> </div> </div> <?php require_once (ABSPATH.'/themes/'.SITE_THEME.'/sidebar.php'); ?> <?php require_once (ABSPATH.'/themes/'.SITE_THEME.'/footer.php'); ?>
Name the page as you wish as long as it ends .php and upload to the pages folder.
You can now link to that page like this:
page.php?p=your_page_name
Where ‘your_page_name’ is the name you called your page.
Manage Users
When logged in as admin you can manage users, edit and suspend them. To do so hit the link in the right sidebar.
You will then see a list of all users you can edit/suspend. You will notice the first user added has a blank username and password and is set to suspended, do not delete or change the status of this user.
Setting J-Board to Free Mode
If you want to give free listings for your J-Board just change the setting in the admin page.
I’m Admin I Don’t Want to Pay to List
Of course if you are admin you may need to add listings on behalf of clients, for this ensure the setting in admin is set to Free for Admin.
Language File
The language file is located in the ‘lang’ folder.
Theme
The theme is located in the themes/jboard/ folder
Widgets
To use the widget you need to add a piece of JavaScript to the site where you want it displayed. This code looks like this:
<script type="text/javascript" src="http://yoursite.com/scripts/widget.php?le=10"></script>
Where yoursite.com is the domain your J-Board is installed.
You will notice that there is a variable ‘le’ set, this variable sets the amount of listings to show, so 10 would show the latest 10 listings added. You can also pass over the following variables.
UID
'uid' – this is the userid of a user/company and if set the widget will just output listings from that user
CAT
'cat' – this is the id of a category and if set will just output listings from that category
LOC
‘loc' this is the name of a location and if set will just output listings from that location
SEARCH
'search' this is a search term and if set will just output listings matching that search term
Here are some examples.
For Category 1 <script type="text/javascript" src="http://yoursite.com/scripts/widget.php?le=10&cat=1"></script> For user 1 <script type="text/javascript" src="http://yoursite.com/scripts/widget.php?le=10&uid=1"></script> For Location London, UK <script type="text/javascript" src="http://yoursite.com/scripts/widget.php?le=10&loc=London,%20UK"> </script> For Search term PHP <script type="text/javascript" src="http://yoursite.com/scripts/widget.php?le=10&search=php"> </script>






