vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Portal Software - [Chris] Classifieds (https://vborg.vbsupport.ru/showthread.php?t=297847)

Christos Teriakis 05-04-2013 10:00 PM

[Chris] Classifieds
 
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

Christos Teriakis 05-05-2013 04:47 PM

More screenshoots........

ProFifaLeagues 05-05-2013 05:02 PM

Not something we would need at Present ChrisTERiS But another great Release from you for the community Well done Sir!!!!

RedTurtle 05-05-2013 05:43 PM

Thank you for putting so much time and effort into releasing amazing products like this one.

Christos Teriakis 05-05-2013 05:53 PM

Quote:

Originally Posted by RedTurtle (Post 2420094)
Thank you for putting so much time and effort into releasing amazing products like this one.

As I said I'm coding them for my own use. And for my site I want the best. If this also helps you, then great. I'll be happy knowing that my mods are runing in sites worldwide.

Chris

Preech 05-05-2013 07:27 PM

What's the possibility of me using this not as a classified section, but as a way to showcase underground artist music. My only issue is being able to have in the post a way to play their material.
I really like what I see.

joeychgo 05-05-2013 11:54 PM

Hmmm, I like this and have to dig into it a bit. Do you have plans for upgrades, more features, etc?

ibrahimkoky 05-06-2013 12:25 AM

great mod. Tagged for soon use. And thanks for sharing your product with us.

joeychgo 05-06-2013 12:45 AM

I get an error when I go to Classified Catagories and Classified Extra Fields

HTML Code:

Warning: require_once([path]/classifieds/includes/functions.php) [function.require-once]: failed to open stream: No such file or directory in [path]/admincp/classifieds_admin.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/home/lvc/public_html/forum/classifieds/includes/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lvc/public_html/forum/admincp/classifieds_admin.php on line 16


hoangserip 05-06-2013 01:01 AM

great mod. Tagged for soon use.

sadiq6210 05-06-2013 04:29 AM

This is what I need, great

Chris,
Can I install it with your old classified mod in same database? or I need to uninstall the old classified first?

Christos Teriakis 05-06-2013 04:29 AM

Quote:

Originally Posted by Preech (Post 2420108)
What's the possibility of me using this not as a classified section, but as a way to showcase underground artist music. My only issue is being able to have in the post a way to play their material.
I really like what I see.

So you mean a case where the user uploads audio files and then the visitors can listen to these files by using an embeded audion player? If yes this is not for you, but my Articles addon (still in dev status) will has this feature.

Chris

Christos Teriakis 05-06-2013 04:30 AM

Quote:

Originally Posted by sadiq6210 (Post 2420154)
This is what I need, great

Chris,
Can I install it with your old classified mod in same database? or I need to uninstall the old classified first?

Wowww Sadiq :)
Yes you can do it. It's a totally re-written addon. Not copy & paste from the old one. So new tables, new field names. Nothing to worry for messing your system.

Chris

Christos Teriakis 05-06-2013 04:34 AM

Quote:

Originally Posted by joeychgo (Post 2420132)
I get an error when I go to Classified Catagories and Classified Extra Fields

HTML Code:

Warning: require_once([path]/classifieds/includes/functions.php) [function.require-once]: failed to open stream: No such file or directory in [path]/admincp/classifieds_admin.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/home/lvc/public_html/forum/classifieds/includes/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lvc/public_html/forum/admincp/classifieds_admin.php on line 16


Opppssssss........ seems that search and replace didn't worked well.:(. I've changed the directory name to christeris/classifieds/includes/.
Please download the attached file and upload it at your admincp/ directory.

Sorry for troubles
Chris

Christos Teriakis 05-06-2013 04:39 AM

Quote:

Originally Posted by joeychgo (Post 2420126)
Hmmm, I like this and have to dig into it a bit. Do you have plans for upgrades, more features, etc?

Yes and No. Everything is about priorities. This addon has the features that I want for my site. So I'll focus on finishing some other "SlimLine" addons that I need, and then yes, I'll add some extra features depending on the feedback. But don't expect "exotic" features. For example: Adding extra fields in the search form is on my todo list. But adding online payments for sellers etc etc, sorry they're not in my plans.

Chris

sadiq6210 05-06-2013 04:56 AM

Quote:

Originally Posted by ChrisTERiS (Post 2420156)
Wowww Sadiq :)
Yes you can do it. It's a totally re-written addon. Not copy & paste from the old one. So new tables, new field names. Nothing to worry for messing your system.

Chris

You are our hero :D

I will install it today, looks lite, simple and great
We need something like this, no more complicated

Well done Chris :)

sadiq6210 05-06-2013 06:56 AM

When I try to add new classified, I get this error

Warning: require_once() [function.require-once]: Unable to access [path]/classifieds/includes/class.upload.php in [path]/classifieds_usercp.php on line 531

Warning: require_once([path]/classifieds/includes/class.upload.php) [function.require-once]: failed to open stream: No such file or directory in [path]/classifieds_usercp.php on line 531

Fatal error: require_once() [function.require]: Failed opening required '/home/user/public_html/forum/classifieds/includes/class.upload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/forum/classifieds_usercp.php on line 531

joeychgo 05-06-2013 07:48 AM

Ok, a few things.

When I make a test ad, upon clicking "submit" I get this

Code:

Warning: require_once([path]/classifieds/includes/class.upload.php) [function.require-once]: failed to open stream: No such file or directory in [path]/classifieds_usercp.php on line 531

Fatal error: require_once() [function.require]: Failed opening required '/home/lvc/public_html/forum/classifieds/includes/class.upload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lvc/public_html/forum/classifieds_usercp.php on line 531


Second, I have it set to allow upload 5 of photos. But under the Additional Photos section I get "You do not have permission to upload more photos."

Third, I dont see a way to add my "Terms of use"

Christos Teriakis 05-06-2013 07:58 AM

Hello,

There were 2 bugs (wrong directories) which fixed in version 1.1.0. Please download and upload:

classifieds_usercp.php to forum root directory
classifieds_admin.php to your admincp

Finally (optional) import the xml file just to update the version number.

Sorry for troubles.
Chris

joeychgo 05-06-2013 08:01 AM

Quote:

Originally Posted by ChrisTERiS (Post 2420181)
Hello,

There were 2 bugs (wrong directories) which fixed in version 1.1.0. Please download and upload:

classifieds_usercp.php to forum root directory
classifieds_admin.php to your admincp

Finally (optional) import the xml file just to update the version number.

Sorry for troubles.
Chris

No need to be sorry, its a new script, bound to be little bugs

Christos Teriakis 05-06-2013 08:01 AM

Quote:

Originally Posted by joeychgo (Post 2420177)
Third, I dont see a way to add my "Terms of use"

Errors for wrong directories fixed in ver. 1.1.0. As for the terms. You need to edit with a text editor the file christeris/includes/terms.php
You can add any html text there. When finish upload this file to:
your_vb_installation/christeris/includes/

Chris

sadiq6210 05-06-2013 08:09 AM

Thanks dear

mmm will you support RTL chris? :o
Or I should start changing the direction in all templates manually?

joeychgo 05-06-2013 08:15 AM

OK, I got an ad to post.

However, still cant upload more then 1 photo, and the 1 photo it allowed me to upload didnt display, just a red x.

Also, the ad keeps defaulting to expire in 0 days every time I try to edit the ad. Additionally, that section doesnt have a max duration set - it says:

Quote:

Set the number of days that your ad will be available. After this period the ad will be close. (Max: days)

sadiq6210 05-06-2013 08:30 AM

+1

I tried to upload photo but I got this error

Code:

Warning: sscanf() has been disabled for security reasons in [path]/christeris/classifieds/includes/class.upload.php on line 3065

joeychgo 05-06-2013 08:34 AM

IM also getting a DB error, about once an hour.

Code:

Invalid SQL:
SELECT * FROM LVC_classifieds_items WHERE ends<timelimit AND status=4;

MySQL Error : Unknown column 'timelimit' in 'where clause'
Error Number : 1054
Request Date : Monday, May 6th 2013 @ 05:33:03 AM
Error Date : Monday, May 6th 2013 @ 05:33:03 AM
Script : http://www.lincolnvscadillac.com/forum/cron.php?rand=1367832779


sadiq6210 05-06-2013 08:39 AM

Quote:

Originally Posted by joeychgo (Post 2420192)
IM also getting a DB error, about once an hour.

Code:

Invalid SQL:
SELECT * FROM LVC_classifieds_items WHERE ends<timelimit AND status=4;

MySQL Error : Unknown column 'timelimit' in 'where clause'
Error Number : 1054
Request Date : Monday, May 6th 2013 @ 05:33:03 AM
Error Date : Monday, May 6th 2013 @ 05:33:03 AM
Script : http://www.lincolnvscadillac.com/forum/cron.php?rand=1367832779


I received the same error 3 times in my inbox (11:30AM - 12:00PM - 12:30PM)

All times are +3:00 GMT

Christos Teriakis 05-06-2013 08:52 AM

I'll check it as I got the same error twice today. It from the cronjob. The one error post by @joeychgo is easy.... Forgot the variable sign ($) ... must be ends<$timelimit.
But the error that I'm getting is different. Maybe it comes from another cronfile that is not in use anymore.
To speedy the solution upload the attached file to: vb_install/includes/cron/

Christos Teriakis 05-06-2013 08:59 AM

Quote:

Originally Posted by joeychgo (Post 2420190)
OK, I got an ad to post.

However, still cant upload more then 1 photo, and the 1 photo it allowed me to upload didnt display, just a red x.

Have you cmod 777 the directories as I'm saying to my main post?

Quote:

Originally Posted by joeychgo (Post 2420190)
Also, the ad keeps defaulting to expire in 0 days every time I try to edit the ad. Additionally, that section doesnt have a max duration set - it says:

Have you set the duration in usergroups permission?

Christos Teriakis 05-06-2013 09:00 AM

Quote:

Originally Posted by sadiq6210 (Post 2420191)
+1

I tried to upload photo but I got this error

Code:

Warning: sscanf() has been disabled for security reasons in [path]/christeris/classifieds/includes/class.upload.php on line 3065

I think that this is something that you need to ask to your hosting provider. Most probably is a function which resizes and then crops the uploade photo.

joeychgo 05-06-2013 09:01 AM

Quote:

Originally Posted by ChrisTERiS (Post 2420196)
Have you cmod 777 the directories as I'm saying to my main post?


Have you set the duration in usergroups permission?


Yes, I set that to 30

joeychgo 05-06-2013 09:08 AM

Just checked it again. Set a new ad for 30 days, immediately shows it expiring today

Christos Teriakis 05-06-2013 09:08 AM

Quote:

Originally Posted by sadiq6210 (Post 2420189)
Thanks dear

mmm will you support RTL chris? :o
Or I should start changing the direction in all templates manually?

What if you become the pioneer in Arabic world and start using LTR? :rolleyes::D. Sorry, I'm kidding. It's true that I'm always forgeting to use that align="{vb:stylevar left}", but if I remember well, in most cases i didn't used align at all.
I'll try to have the update version using the stylevars.

Chris

Christos Teriakis 05-06-2013 09:10 AM

Quote:

Originally Posted by joeychgo (Post 2420199)
Just checked it again. Set a new ad for 30 days, immediately shows it expiring today

Let me check it. If I did so novice-idiot mistake in calculations, I have to stop coding and start reading :)

tbworld 05-06-2013 09:10 AM

Quote:

Originally Posted by ChrisTERiS (Post 2420197)
I think that this is something that you need to ask to your hosting provider. Most probably is a function which resizes and then crops the uploade photo.

'ChrisTERis;' is right, that problem relates to a vulnerable PHP version. Talk to you host and update to a later version of PHP, anything above version 5.1.14. It was wise that they disabled 'sscanf' for that version of PHP.

http://web.nvd.nist.gov/view/vuln/de...=CVE-2006-4020


ChrisTERis - Thanks for sharing your hard work! :)

Christos Teriakis 05-06-2013 09:30 AM

Quote:

Originally Posted by joeychgo (Post 2420198)
Yes, I set that to 30

Sorry, I can't reproduce it as you can see at: http://www.christeris.net/dev42/classifieds.php
I added 4 ads, all different types. Expiration was ok. Then I edited all of them one by one by changing the duration (you can see in title saying (+3)..(+2) etc). All ok.
So let's try to find what's wrong in your side. In the place where you need to add the days there is a description below. What it says? If you've set as max 30, must says something like "Max 30 days". Does it says it?. Also are you sure that you've entered something in the days field. By letting it to "0" does not means that it will takes the maximum duration of 30 days.

joeychgo 05-06-2013 09:37 AM

See: Notice there is no number next to Max

sadiq6210 05-06-2013 09:39 AM

Quote:

Originally Posted by ChrisTERiS (Post 2420200)
What if you become the pioneer in Arabic world and start using LTR? :rolleyes::D. Sorry, I'm kidding. It's true that I'm always forgeting to use that align="{vb:stylevar left}", but if I remember well, in most cases i didn't used align at all.
I'll try to have the update version using the stylevars.

Chris

Hah :p
With Arabic people? Impossible :D
I will be alone in my website : p

I will wait that update Chris and appreciate it :rolleyes:

BTW, these pages is already supported RTL:
- Post classified
- My classifieds
- Moderate classifieds

Christos Teriakis 05-06-2013 10:01 AM

Quote:

Originally Posted by joeychgo (Post 2420207)
See: Notice there is no number next to Max

Strange. Is this user having additional membergroupids or belongs just to one usergroup?

Christos Teriakis 05-06-2013 10:23 AM

Quote:

Originally Posted by joeychgo (Post 2420207)
See: Notice there is no number next to Max

Don't waste your time anymore. I found the bug and need some time to fix it. The max is empty only to users who belong to more than one usergroups. Even if I'm checking all the usergroups to get the maximum allowed value, maybe I've something wrong in calculation.

Hold on...........

Christos Teriakis 05-06-2013 10:52 AM

I just realized that I left some templates uncached. I'll release an update later today.

Chris


All times are GMT. The time now is 06:30 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.01958 seconds
  • Memory Usage 1,864KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete