Version: 1.00, by toolblast
Developer Last Online: Mar 2019
Category: Mini Mods -
Version: 3.6.2
Rating:
Released: 10-13-2006
Last Update: Never
Installs: 32
No support by the author.
Module for SR Classifieds in VB CMPS
Hi all. The point of this is quite simple, I wanted a module for VB CMPS to show random ads from Gio~logist's SR Classifieds script.
Note: I take no credit for the coding within this hack... Gio~logist is the creator of SR Classifieds, and it is his code. I simply tweaked it to make it into a module for cmps... it is quite a simple job and only took a few minutes.
The code I am working off of is the free 'lite' version of the script.
This will let you add a module to your vbadvanced CMPS portal that will randomly show ads in your classifieds database.
your pho file contains unnessecary code for example:
PHP Code:
// ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'sr_classifieds');
// ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( 'sr_classifieds', 'threadmanage', 'posting' );
//The Code Below May Not Be Taken Off Or Legal Action May Be Taken $footer = "$vbphrase[sr_classifieds_copyright]$footer";
// Check To See If Usegroup Can Use System if(!($permissions['sr_classifieds'] & $vbulletin->bf_ugp['sr_classifieds']['canuse'])){ print_no_permission(); }
// ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### if (empty($_REQUEST['do'])) { $_REQUEST['do'] = 'main'; }
// ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### if ($_REQUEST['do'] == 'main'){
// Newest Ads $newads_get = $vbulletin->db->query_read(" SELECT classified.classifiedid AS classifiedid, classified.categoryid AS categoryid, classified.userid AS userid, classified.dateline AS dateline, classified.timeframe AS timeframe, classified.title AS title, classified.price AS price, classified.type AS type, user.*, upload.classifiedid, upload.image AS image FROM " . TABLE_PREFIX . "sr_classifieds AS classified LEFT JOIN " . TABLE_PREFIX . "sr_classifieds_uploads AS upload ON (upload.classifiedid=classified.classifiedid) LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=classified.userid) ORDER BY dateline DESC LIMIT $newadlimit ");
I thought quaterbore (sp) released a similar hack on the sr classifieds forums
Ya, he PM'd me about releasing some code me made to Gio~logist to put in the pro version... but I never saw that code and I only have the lite version. I wasn't able to find anything released on vb.org. What is the url to it on vb.org? I'd much rather use a proper hack than the quick one I stuck together in a few minutes. As long as it works im happy
Thanks to all and yes I had created a module for the "premium version" and I have the code as it was posted on that other site that is now turned off. I have a new project that I am trying to start that this code will be used with...
I am just getting started but I hope to have a version of my own classifieds script out in the near future. Feedback is welcome at vbclassified.com but I don't have a product I can share yet...
Thanks to all and yes I had created a module for the "premium version" and I have the code as it was posted on that other site that is now turned off. I have a new project that I am trying to start that this code will be used with...
I am just getting started but I hope to have a version of my own classifieds script out in the near future. Feedback is welcome at vbclassified.com but I don't have a product I can share yet...