Support Forums

Old 04-23-2007, 06:40 AM   #1
Unregistered
Guest
 
Posts: n/a
Question Classifieds & Directory?

Hi i would like to operate part of my 68 site as classifieds and part as a directory any idea how i can acheive this?
  Reply With Quote
Old 04-23-2007, 06:56 AM   #2
Senior Member
 
 
Join Date: Jan 2007
Posts: 286
Rep Power: 14
michael is on a distinguished road
Default

It's a natural and recurring question. I'm of the opinion that a classifieds site and a business directory should be run separately and that most businesses would be far more willing to pay for inclusion on a directory that was dedicated for the purpose.

To that end I am developing MKclassifieds.com as the classifieds site for Milton Keynes and once I am ready I will develop MK118.com as the corresponding business directory. (If you live in the UK you will understand the significance of the number 118.)

Just my opinion . .
__________________
v4.1 Developer


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 04-23-2007, 11:54 AM   #3
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 44
Maffo is just really niceMaffo is just really nice
Default

68 classifieds can be ran as either a classifieds site or a directory site. If you know your stuff you can operate the two together. I have several sites which operate like this.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 04-23-2007, 04:56 PM   #4
Senior Member
 
 
Join Date: Jan 2007
Posts: 286
Rep Power: 14
michael is on a distinguished road
Default

I have several sites which operate like this.
Care to share and inspire Maffo?
__________________
v4.1 Developer


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 04-23-2007, 05:58 PM   #5
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 44
Maffo is just really niceMaffo is just really nice
Default

Not in this area Michael, sorry. I see your using the v4, is v4 actually live and recommended for live sites now?
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 04-24-2007, 02:27 AM   #6
Unregistered
Guest
 
Posts: n/a
Question

Thanks for the replys any one able to tutor or point me in the direction of some instructions please?
  Reply With Quote
Old 04-24-2007, 03:14 AM   #7
Senior Member
 
midi510's Avatar
 
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 135
Rep Power: 12
midi510 is a jewel in the rough
Default

I'm not sure what you're thinking of specifically, but all you have to do is set up categories and subcategories and design your site around your vision. Where the real work comes in is setting up custom viewlisting templates. Just take viewlisting(2).tpl.php and save it with new names, then customize those templates. Viewlisting.php is the script that propagates the templates. Below is the code for determining which template is used for which category on my site.
PHP Code:
if($lDisplay==2)
{
    switch (
$section)
    {
         case 
17:
    case 
18:
             
$class_tpl->assign('body','vehicle.tpl.php');
          break;
          case 
60:
             
$class_tpl->assign('body','business.tpl.php');
          break;
          case 
63:
             
$class_tpl->assign('body','priceless.tpl.php');
          break;
          case 
73:
 case 
76:
             
$class_tpl->assign('body','residentrental.tpl.php');
          break;
          case 
79:
             
$class_tpl->assign('body','equipmentrental.tpl.php');
          break;
          case 
101:
             
$class_tpl->assign('body','furniture.tpl.php');
          break;
          case 
102:
             
$class_tpl->assign('body','rides.tpl.php');
          break;
          case 
104:
             
$class_tpl->assign('body','messages.tpl.php');
          break;
          case 
105:
             
$class_tpl->assign('body','events.tpl.php');
          break;
          case 
107:
             
$class_tpl->assign('body','churches.tpl.php');
          break;
         case 
115:
             
$class_tpl->assign('body','helpwanted.tpl.php');
         break;
         case 
133:
             
$class_tpl->assign('body','fortrade.tpl.php');
         break;
         case 
138:
 case 
139:
             
$class_tpl->assign('body','realestate.tpl.php');
         break;
          default:
             
$class_tpl->assign('body','viewlisting2.tpl.php');
         break;
 }
}
else
{
 
$class_tpl->assign('body','viewlisting.tpl.php');

I'm going kinda krazy with custom templates. The case number is the category ID. If you search the forums for all posts by Mike-N-Tosh you should be able to get everything you need. He was a great help (among others) in getting me going with custom templates.

You set up your extra fields in admin and determine which categories use which fields. The extra fields are generated as arrays that you can layout however you want. Search the forums.

If you're not good with logic, you might want to stay away from this. If you're a coder, you shouldn't have any problems. Just make sure you have a clean copy of the site to pull files off of if you screw things up.

Have fun,
__________________
Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy

Last edited by midi510; 04-24-2007 at 03:27 AM.
midi510 is offline   Reply With Quote
Old 04-24-2007, 05:20 AM   #8
Unregistered
Guest
 
Posts: n/a
Question

Many thanks, for your helpful post kirk. I can see how this can be acheived and your site is a great example of custom templates. i just need to get my head arround what needs to go where.
  Reply With Quote
Old 04-24-2007, 05:40 AM   #9
Unregistered
Guest
 
Posts: n/a
Default

I cant find vewlistings2tpl.php on my site any idea as of location i have located veiwlisting.php where i would expect to find it
  Reply With Quote
Old 04-24-2007, 07:11 AM   #10
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,259
Rep Power: 37
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Unregistered View Post
I cant find vewlistings2tpl.php on my site any idea as of location i have located veiwlisting.php where i would expect to find it
It is in your template folder. (yoursite.com/templates/yourtemplatefolder/viewlistings2.tpl.php)

If you are using a template folder other than the ones provided then you may not have that file. In cases that do not have a xxxx.tpl.php files in them, the script will automagically go to the xxxx.tpl.php files that are in the template/default folder. (yoursite.com/templates/default/...)

Hope that helps.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote

Bookmarks

Tags
None

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions to have both classifieds and biz directory Mike-N-Tosh v3.1 Modules & Modifications 7 02-14-2007 06:16 PM
Installation of 68 classifieds daniel24 v3.0 Questions & Support 1 02-09-2007 07:48 AM
Navigation points to the wrong directory BABBSELA v3.1 Questions & Support 9 11-16-2006 02:44 PM
Install a second instance of 68 as a business directory? bgordon v3.1 Questions & Support 2 09-20-2006 12:23 PM
Classifieds Unregistered Pre Sales Questions 4 07-06-2006 06:33 PM


All times are GMT -4. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0