Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Chris] Classifieds Details »»
[Chris] Classifieds
Version: 2.2.0, by Christos Teriakis Christos Teriakis is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Portal Software - Version: 4.2.x Rating:
Released: 05-04-2013 Last Update: 08-14-2013 Installs: 64
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Classifieds
by Christos Teriakis
aka ChrisTERiS


Please note that from
11 Aug 2013

you can get support only in my site

http://www.teriakis.com


Demo: http://www.christeris.net/dev42/classifieds.php
Demo Accounts:
demouser1 / demopass1
demouser2 / demopass2
demouser3 / demopass3

1.- What's this mod?

Is better to say what is NOT this mod . For those who have used MarysClassifieds, I can say that they are 2 products which you can't compate. MarysClassifieds had dozens of features, but when I installed in my site I realized that I need only 10% of those features. Maybe less. This is SL Classifieds. A minimalist version of MarysClassifieds, but I bet that 70% of the webmasters will find this one more pretty, more usefull.
  • It supports 4 types of Classifieds:
    • For Sale
    • Wanted
    • For Trade
    • Free Offers
  • Supports unlimited categories
  • Supports Extra fields (but not searchable)
  • Has PM templates for:
    • PM user when admin approves his Classifieds
    • PM user when admin rejects Classified
    • PM seller when a user Makes an Offer
    • PM seller when a user clicks Buy it
    • PM seller when a use uses the contact form
  • Supports 5 statuses:
    • Open
    • Hidden
    • Reserved
    • Expired
    • Sold
    • Please note that unlike my old mod, here nothing is automatic. The seller has to take care to switch between statuses.
  • There are listings for:
    • Category classifieds
    • Timeframe (What's New) Classifieds
    • Seller Classifieds
    • Search Results
  • In view Ad page the visitor can see also:
    • Other classifieds from the same seller
    • Similar classifieds from the same category
  • In all pages there are available the follow blocks having the appearance of widgets:
    • Category Menu
    • Search Form
    • Statistics
    • Latest classifieds
    • Popular classifieds
    • Soon to expire classifieds.
  • Version 1.5 additions:
    • Facebook Like Advanced (Shows users who liked it)
    • RSS Feeds of last 10 Classifieds
    • Seller has the ability to not mark a classifieds as reserved when a user clickc BuyNow, in case that he has stock of the same items and he wants to keep classifieds active.
    • Added description in extra fields appearing as help text in add/edit form.
    • In case that a category has no subcategories, beside the "No more categories" added an icon/link to previous category level.
2.- How you can make (a bit) money with it.

Using vBulletin's Subscriptions Manager you can set subscription which will upgrade the subscribers to a higher usergroup with more privilenges in SL Classifieds. eg:
  • To restrict post in specific categories. The system works such a way that for each category you can set who can post:
    • All usergroups
    • None usergroup
    • Specific usergroup(s).
  • To allow more days for postings. eg usergroup A can set a maximum of 15 days before the Ad will remove from the system, while usergroup B can set the Ad's duration for 45 days etc.
  • Concurrent Ads. eg Register users can have only 1 active ad, while your VIP usergroup can has 5 ..or 10 ... or whatever you want.
  • More photos per Ad
3.- Installation
  1. Download and unzip the file Classifieds_XXXX.zip
  2. Upload the content of upload folder to the directory where your vB installation is. As a check: classifieds.php must be on the same directoru as global.php, forum.php etc. SL Classifieds are not working out of vB installation directory.
  3. CMOD 777 the directories:
    1. christeris/classifieds/photos
    2. christeris/classifieds/photos/thumbs
    3. christeris/classifieds/photos/tmp
  4. Goto Admincp and import product-classifieds.xml. Double check before if you have another product with the same name.
  5. Set the various settings in Classifieds->General settings
  6. Set usergroup permissions
  7. Check and modify if you want PM templates.
  8. Set categories
  9. Set Extra fields (in case that you want them).
4.- SEO URLs
  • If you're using vbSeo open the file Classifieds_vBSEO_Custom_Rewrite_Rules.txt and add them to your vbSeo installation.
  • If you're using .htaccasse file copy the contents of htaccess.txt and add it to your current .htaccess files. If you don't have such file and your server is compatible with such files, upload htaccess.txt to your vB directory and rename it to: .htaccess
5. CMS Widget / Forum Sidebar Block for Latest Classifieds
  1. Shows latest 5 Classifieds. If you want to change the number to another value change at 1st line: $maxitems = 5;
  2. Installation as CMS Widget
    1. Goto Admincp-> vBulletin CMS-> Widgets
    2. Click "Create New Widget" at the list bottom
    3. Set Widget Type: PHP Direct Execution
    4. Give a Title which appears at the widget. eg Last Classifieds, or.. Last 5 Classifieds etc
    5. Click SAVE
    6. Find in the list the new widget and click configure at the right side
    7. Replace the example code, with the code from Widget_Latest_Classifieds.txt
    8. Click Save
    9. Goto Layout and add it in any section you want
    10. Click Save (Layout)
  3. Installation as Forum sidebar Block
    1. Goto Admincp-> Forums & Moderators -> Forum Block Manager
    2. Click Add Block
    3. In the next screen "Select block type: Custom HTML/PHP"
    4. Click Continue
    5. Title: Latest Classifieds
    6. Content Type: PHP
    7. Content: Copy & Paste the code from Widget_Latest_Classifieds.txt
    8. Click Save. The block will be now visible to your forum sidebar
6.- Copyright Link

Since the time that DBTech released their Copyright Manager, I've removed my own copyrights. I found their action insulting me to maximum. Their wording "Site is powered by vBulletin AddOns and Modules by Dragonbyte Tech" (and not "Some parts of this site"), means that everything there is their own work, ignoring on the worst way the fact that there are 100's of other coders and designers who are supporting this community for years. So, I'm letting the glory to them. No copyrights from my side.

Enjoy it
Christos Teriakis
aka ChrisTERiS

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
12 благодарности(ей) от:
eTiKeT?, goxy63, Mickie D, nhawk, Prober, Ramsesx, RedTurtle, t-j, tbworld, Toorak Times, warlord0, xorex

Comments
  #322  
Old 05-24-2013, 09:18 PM
nivek911 nivek911 is offline
 
Join Date: Nov 2011
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Chris,
Looked over everything closer and made a few changes - and working great!

I know you said the only way to delete an ad is to have it moderated before posting. If there is not a way to override the ad once it is posted, is there a path to where the AD is stored? And then manually remove it?

Otherwise it's working great right now!

Thanks !!
Reply With Quote
  #323  
Old 05-24-2013, 09:24 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about adding new ads to new posts / today's posts?
Reply With Quote
  #324  
Old 05-25-2013, 04:24 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nivek911 View Post
Thanks Chris,
Looked over everything closer and made a few changes - and working great!

I know you said the only way to delete an ad is to have it moderated before posting. If there is not a way to override the ad once it is posted, is there a path to where the AD is stored? And then manually remove it?

Otherwise it's working great right now!

Thanks !!
Wait, you mean the admin cannot delete any classified in his website?
I don't want to moderate the classifieds before posting, let my users to post anything and see it direct after posting but in some cases the admin may need to delete a classified or even modified it to change the category, the title, ....etc

Please Chris, we want to have control in our website classifieds, at least give the permissions to the admin (user id=1)
Reply With Quote
  #325  
Old 05-25-2013, 05:54 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good, ill take a look but what about -

latest auction in

activity stream
whats new
forum side block

thanks
Reply With Quote
  #326  
Old 05-25-2013, 06:25 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AURFSCAN View Post
latest auction in
This is the thread for Classifieds, so my reply is for Classifieds

Quote:
Originally Posted by AURFSCAN View Post
activity stream
Didn't found any documentation for it, and I don't think that not native vb content can be add there.

Quote:
Originally Posted by AURFSCAN View Post
whats new
It has its own What's new menu

Quote:
Originally Posted by AURFSCAN View Post
forum side block
Already exists as CMS Widget and Block for Forum sidebar
Reply With Quote
  #327  
Old 05-25-2013, 07:08 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry man youve got too much going on.. kinda like me.. my bad ill repost in proper thread

please disregard the above
Reply With Quote
  #328  
Old 05-25-2013, 08:52 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
Chris,
Is there a simple way to add color to ([for sale] - [wanted] - [for trade] - [free offer])

I mean how can I make [for sale] in green color everywhere and [wanted] in red color everywhere in the classifieds. (In main, categories, right menu, view items ...)
Quote:
Originally Posted by Christos Teriakis View Post
@Rich
@sadiq
------------
For a coder is very easy... For an average admin is not. Needs additional code in php file (files for sadiq) and template (templates for sadiq).

Chris
I believe it is not the ideal way to do this, but it is working ^_^

This is the result
The screenshot is for my forum (RTL) but it is working in (LTR)




Until Chris add this feature, I will share it here if anybody need it

In template (classifieds_categories_bit)

Find:
Code:
<a href="{vb:raw adlink}"><span>{vb:raw title}</span></a>
Above, add:
Code:
                
{vb:raw adtype}
{vb:raw adtypecolor}

In file (classified.php)

Find:
Code:
              if ($classified["adtype"] == 1)
               {
                   if ($classified["price"] > 0)
                   {
                       $price = getFormatShortPrice($classified["price"]);
                   } else {
                       $price = $vbphrase["classifieds_make_offer"];
                   }
               }
               if ($classified["adtype"] == 2)
               {
                   $price = $vbphrase["classifieds_wanted"];
               }
               if ($classified["adtype"] == 3)
               {
                   $price = $vbphrase["classifieds_fortrade"];
               }
               if ($classified["adtype"] == 4)
               {
                   $price = $vbphrase["classifieds_freeoffer"];
               }

Replace it with:

Code:
              if ($classified["adtype"] == 1)
               {
                   if ($classified["price"] > 0)
                   {
					   $adtypecolor = '<font color="green"> ['.$vbphrase["classifieds_forsale"].']</font>';				   				   
                       $price = getFormatShortPrice($classified["price"]);
                   } else {
                       $adtypecolor = '<font color="green"> ['.$vbphrase["classifieds_forsale"].']</font>';				   
                       $price = $vbphrase["classifieds_make_offer"];
                   }
               }
               if ($classified["adtype"] == 2)
               {
                   $adtypecolor = '<font color="red"> ['.$vbphrase["classifieds_wanted"].']</font>';
				   $price = $vbphrase["classifieds_wanted"];
               }
               if ($classified["adtype"] == 3)
               {
                   $adtypecolor = '<font color="gray"> ['.$vbphrase["classifieds_fortrade"].']</font>';
				   $price = $vbphrase["classifieds_fortrade"];
               }
               if ($classified["adtype"] == 4)
               {
                   $adtypecolor = '<font color="blue"> ['.$vbphrase["classifieds_freeoffer"].']</font>';
                   $price = $vbphrase["classifieds_freeoffer"];
               }

Find:
Code:
$templater->register('adtype', $item["adtype"]);
Add after:

Code:
$templater->register('adtypecolor', $adtypecolor);
Done.
Reply With Quote
  #329  
Old 05-25-2013, 10:22 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
Until Chris add this feature, I will share it here if anybody need it
Please allow me to add some goodies to a special version for those who paid (including you) for Copyright removal.

Thank you
Reply With Quote
  #330  
Old 05-25-2013, 12:00 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Christos Teriakis View Post
Please allow me to add some goodies to a special version for those who paid (including you) for Copyright removal.

Thank you
Thanks Chris, we are waiting

This is my suggestions list (Dream List )
- Admin can moderate all classifieds i.e delete/edit/stick/....
- Profile tab
- Classifieds prefix (with color)
- The closed classifieds should be disappeared but keep all classifieds as archive and do not delete any page. If I enter the profile of any user I want to see if he posted before in classifieds or not.
- The admin should know how many items sold, offered, how many pending? ...... etc. The admin should know everything about his website classifieds.
- The user can see his pending classifieds - closed classifieds - ....etc


It is just my suggestions list .. not more
Reply With Quote
  #331  
Old 05-25-2013, 04:56 PM
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
Thanks Chris, we are waiting

This is my suggestions list (Dream List )
- Admin can moderate all classifieds i.e delete/edit/stick/....
- Profile tab
- Classifieds prefix (with color)
- The closed classifieds should be disappeared but keep all classifieds as archive and do not delete any page. If I enter the profile of any user I want to see if he posted before in classifieds or not.
- The admin should know how many items sold, offered, how many pending? ...... etc. The admin should know everything about his website classifieds.
- The user can see his pending classifieds - closed classifieds - ....etc


It is just my suggestions list .. not more
wait for it,, :up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not 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

Forum Jump


All times are GMT. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05137 seconds
  • Memory Usage 2,353KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete