Classifieds

MobileHacks

New Member
Classifieds
(Former vbFClassifieds)
This is the Full Commercial version

  • Unlimited Categories
  • Unlimited Subcategories
  • Paid or Free Ads
  • Flexible custom fields, organized in fieldsets. Cutom fields are reusable and of course you can assign each field group to one, many or all categories
  • Ability to use different price per category/subcategory
  • Sellers can accept PayPal IPN payments
  • Sellers can setup different PayPal account for each Ad
  • Sellers can sell in different currency per Ad
  • Buyers can post review and rating for Sellers
  • Top Sellers block
  • Sponsored and Premium Ads
  • Bookmarks
  • Tell a Friend
  • Report Ads
  • RSS per category/subcategory
  • You can use different template than the site's template
  • You can use different template even per category
  • Editor Choice Ads
  • vbSeo friendly
  • No time limit on use
  • This is the Full Commercial version
2.- Installation
  1. Upload all files and directories including at "vbulletin" directory to the directory where vBulletin is installed.
  2. CMOD the following directories to 777
    1. /photos (inside classifieds directory)
    2. /tmp (inside classifieds/photos directory)
    3. /thumbs (inside classifieds/photos directory)
  3. For security reasons backup your database AND turn your board off
  4. Check at your AdminCP->vBulletin Options->Plugin/Hook System that Plugin system is enabled.
  5. From your AdminCP->Plugin System->Manage Products choose Add/Import Product and import the product: product_classifieds.xml
  6. If you want to add a link to your nav bar then you must edit the NAVBAR template:
    Search For:
    Code:
    <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    Add Below:
    Code:
    <td class="vbmenu_control"><a href="classifieds.php$session[sessionurl_q]">Classifieds</a></td>
    ....or use any other word you want
  7. By default none usergroup has permissions to use vbfclassifieds, so you need to give permissions to any group. Goto AdminCP->Usergroups->Usergroup Manager and edit any usergroup you like to give permissions.
  8. If you've installed vbSEO, Login into vbSEO Control Panel, click "Custom Rewrite Rules", insert rewrite rules (attached in vbseo-rules.txt to not lose formatting) and save settings.
 

h@ck3r

New Member
Ive just installed this.. but-

By default none usergroup has permissions to use vbfclassifieds, so you need to give permissions to any group. Goto AdminCP->Usergroups->Usergroup Manager and edit any usergroup you like to give permissions.

I've just been through this with a fine tooth comb, but I see no setting.

Has ANYONE got this hack working? :(
 

h@ck3r

New Member
AND...

Somethings wrong in the installation guide!!

Step 1: Upload all files and directories including at "vbulletin" directory to the
directory where vBulletin is installed.

You don't upload the VBulletin directory- ONLY WHAT'S INSIDE IT- To your forum root!


Still doesn't work though as by default- No user groups have permission to use this hack, and there's simply nowhere to enable user groups to use it.

I think this thread needs moved to the TRASH section.
 

h@ck3r

New Member
I've installed this, and tested it- No probs so far.

But I've yet to release it to my members.

Read the release thread about this on VB.org if your unsure about it. :
 

h@ck3r

New Member
Can anyone help me to edit this template:

HTML:
<script type="text/javascript">

  $jscode



	Date.firstDayOfWeek = $firstdayofweek;

	Date.format = '<if condition="$dateformat==1">dd/mm/yyyy<else />mm/dd/yyyy</if>';

</script>

		

<form enctype="multipart/form-data" name="ad" method="post" action="classifieds.php"

          onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])">

<input type="hidden" name="adid" value="$ad[id]" />

<input type="hidden" name="do" value="savead" />

<input type="hidden" name="pagenumber" value="$pagenumber" />

<input type="hidden" name="return" value="$return" />



<table cellpadding="4" cellspacing="0" width="100%" class="tborder">

  <tr>

    <td class="tcat" align="left" height="20">

      <div class="smallfont"><b>&nbsp;&raquo;&nbsp;

      <if condition="$ad[id] == -1">$vbphrase[classifieds_newad]<else />$vbphrase[classifieds_editad]</if></div>

    </td>

  </tr>

	<tr>

		<td class="alt1">

	    <fieldset><legend>$vbphrase[classifieds_general_info]</legend>

			<table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_title]</td>

						<if condition="$allowtitlechange || $ad[active]==0">

							<td align="left"><input type="text" size="60" name="title" value="$ad[title]" /></td>

						<else />

							<td><b>$ad[title]</b></td>

						</if>

				</tr>

				<if condition="$ad[active]==0 || ($canmod && $canmoveads) || $userscanmoveads">

					<tr>

						<td>$vbphrase[classifieds_category]:</td>

						<td>

							<select name="catid" onChange="catChanged(this)">

							$categories

							</select>

						</td>

					</tr>

					<tr>

						<td>$vbphrase[classifieds_subcat]:</td>

						<td>

							<select name="subcatid" id="subcategory" onChange="subCatChanged()">

							$subcategories

						  </select>

						</td>

					</tr>

				</if>

				<tr>

					<td>$vbphrase[classifieds_status]:</td>

					<td>

						<input type="radio" name="hidden" value="0" <if condition="$ad[hidden]==0">checked</if> />&nbsp;$vbphrase[classifieds_status_show]&nbsp;&nbsp;

						<input type="radio" name="hidden" value="1" <if condition="$ad[hidden]==1">checked</if> />&nbsp;$vbphrase[classifieds_status_hide]

					</td>

				</tr>

				<tr>

					<td colspan="2">

             $vbphrase[classifieds_description]:<br />

             $messagearea

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_publishdate]:</td>

					<td>

						<input name="publishdate" id="publishdate" value="$ad[publishdate]" />&nbsp;&nbsp;

						<select name="publishhour">

							$publishhour

						</select>

						&nbsp;:&nbsp;

						<select name="publishminute">

							$publishminute

						</select>

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_expirationdate]:</td>

					<td>

						<input name="expirationdate" id="expirationdate" value="$ad[expirationdate]" />&nbsp;&nbsp;

						<select name="expirationhour">

							$expirationhour

						</select>

						&nbsp;:&nbsp;

						<select name="expirationminute">

							$expirationminute

						</select>

					</td>

				</tr>

				</table>

			</fieldset>

		</td>

	</tr>

	<tr>

		<td class="alt1">

      <fieldset><legend>$vbphrase[classifieds_billing]</legend>

			<table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_price]:</td>

					<td align="left"><input name="price" size="10" value="$ad[price]" /></td>

				</tr>

				<tr>

					<td width="20%">$vbphrase[classifieds_currency]:</td>

					<td align="left">

						<select name="currency">

						<option value="1" <if condition="$currency==1">selected</if> >Australian Dollar (AUD)</option>

					  <option value="2" <if condition="$currency==2">selected</if> >Canadian Dollar (CAD)</option>

					  <option value="3" <if condition="$currency==3">selected</if> >Swiss Franc (CHF)</option>

					  <option value="4" <if condition="$currency==4">selected</if> >Danish Krone (DKK)</option>

					  <option value="5" <if condition="$currency==5">selected</if> >Euro (EUR)</option>

					  <option value="6" <if condition="$currency==6">selected</if> >British Pound (GBP)</option>

					  <option value="7" <if condition="$currency==7">selected</if> >Hong Kong Dollar (HKD)</option>

					  <option value="8" <if condition="$currency==8">selected</if> >Japanese Yen (JPY)</option>

					  <option value="9" <if condition="$currency==9">selected</if> >Norwegian Krone (NOK)</option>

					  <option value="10" <if condition="$currency==10">selected</if> >New Zealand Dollar (NZD)</option>

					  <option value="11" <if condition="$currency==11">selected</if> >Swedish Krona (SEK)</option>

					  <option value="12" <if condition="$currency==12">selected</if> >U.S. Dollar (USD)</option>

						</select>

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_paypal]:</td>

					<td><input name="paypalemail" size="35" value="$ad[paypalemail]" /></td>

				</tr>

			</table>

      </fieldset>

		</td>

	</tr>

	<tr>

		<td class="alt1">

			<div id="extrafields">

				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="fieldset">

					$extrafields

				</table>

			</div>

		</td>

	</tr>

	<tr>

		<td class="alt1">

      <fieldset><legend>$vbphrase[classifieds_photos]</legend>

      <table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_upload_photo]:</td>

					<td align="left"><input type="file" name="photo" /></td>

				</tr>

				<if condition="!empty($pictures)">

					<tr><td>&nbsp;</td></tr>

					<tr>

						<td colspan="2">

							$pictures

						</td>

					</tr>

				</if>

			</table>

			</fieldset>

		</td>

	</tr>

  <tr>

    <td colspan="2" align="center">

      <input type="submit" value="$vbphrase[classifieds_save]" />

    </td>

  </tr>

</table>

</form>

<script type="text/javascript">

	$('#publishdate').datePicker({startDate:'01/01/0'});

	<if condition="!empty($ad[publishdate])">

		$('#publishdate').dpSetSelected('$ad[publishdate]');

	</if>

	$('#expirationdate').datePicker({startDate:'01/01/0'});

	<if condition="!empty($ad[expirationdate])">

		$('#expirationdate').dpSetSelected('$ad[expirationdate]');

	</if>

</script>

As it is currently; In fixed width styles- the page is stretched because of the editor. The smilies go way off the page making it too wide.

I had this problem with my forum text editor, but thanks to (ThePhophet, I think) I installed a mod which resolved the problem. Now I need to fix the problem with the editor in classifieds.

If anyone can help me it would be most appreciated. If it's easier- You can just make classifieds not show the smilies.

The template code I've posted here is: classifieds_editad

Cheers :)
 

basshoernchen

New Member
I have a MySQL Error :(

PHP:
Datenbankfehler in vBulletin 3.8.2:

Invalid SQL:
SELECT id, name FROM classifieds_subcategories

		WHERE categoryid= ORDER BY displayorder;

MySQL-Fehler  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY displayorder' at line 3
Fehler-Nr.    : 1064
Fehler-Zeit   : Friday, 15.05.2009 @ 17:40:44
Datum         : Friday, 15.05.2009 @ 17:40:44
Skript        : http:///classifieds.php?do=editad&catid=0&subcatid=0
Referrer      : http:///classifieds.php
IP-Adresse    : 
Benutzername  : 
Klassenname   : vB_Database
MySQL-Version : 5.0.67-community

This problem occurs when I am on my side on Class Field and then click on "Add Classified"
 

h@ck3r

New Member
basshoernchen said:
I have a MySQL Error :(

PHP:
Datenbankfehler in vBulletin 3.8.2:

Invalid SQL:
SELECT id, name FROM classifieds_subcategories

		WHERE categoryid= ORDER BY displayorder;

MySQL-Fehler  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY displayorder' at line 3
Fehler-Nr.    : 1064
Fehler-Zeit   : Friday, 15.05.2009 @ 17:40:44
Datum         : Friday, 15.05.2009 @ 17:40:44
Skript        : http:///classifieds.php?do=editad&catid=0&subcatid=0
Referrer      : http:///classifieds.php
IP-Adresse    : 
Benutzername  : 
Klassenname   : vB_Database
MySQL-Version : 5.0.67-community

This problem occurs when I am on my side on Class Field and then click on "Add Classified"

You need to first add a category via adminCP :)

......

Can anyone help me with the template edit I need?

Thank you
 

xmod4u

New Member
thank you for this mod, I am making it my main feature.

BUT

I am tryin to find a way to make free ads?
Not the fact that making a new ad is free,
IT IS what is posted that is for free.

Basically like if members would want to post free stuff to give away, and members could just click on "get it" instead of "buy it"

I can play around with this quite a bit, but can't seem to make system avoid the whole paypal thing.


edit: Basically a way to send the "sold" command that will make all data goto "my sales" like if the item was sold.
trying to skip the paypal step, click buy and it sells it without checking paypal stuff. (if i make sens)


any direction would be useful.
thanks for anyones time.

xmod
 

h@ck3r

New Member
h@ck3r said:
Can anyone help me to edit this template:

HTML:
<script type="text/javascript">

  $jscode



	Date.firstDayOfWeek = $firstdayofweek;

	Date.format = '<if condition="$dateformat==1">dd/mm/yyyy<else />mm/dd/yyyy</if>';

</script>

		

<form enctype="multipart/form-data" name="ad" method="post" action="classifieds.php"

          onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])">

<input type="hidden" name="adid" value="$ad[id]" />

<input type="hidden" name="do" value="savead" />

<input type="hidden" name="pagenumber" value="$pagenumber" />

<input type="hidden" name="return" value="$return" />



<table cellpadding="4" cellspacing="0" width="100%" class="tborder">

  <tr>

    <td class="tcat" align="left" height="20">

      <div class="smallfont"><b>&nbsp;&raquo;&nbsp;

      <if condition="$ad[id] == -1">$vbphrase[classifieds_newad]<else />$vbphrase[classifieds_editad]</if></div>

    </td>

  </tr>

	<tr>

		<td class="alt1">

	    <fieldset><legend>$vbphrase[classifieds_general_info]</legend>

			<table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_title]</td>

						<if condition="$allowtitlechange || $ad[active]==0">

							<td align="left"><input type="text" size="60" name="title" value="$ad[title]" /></td>

						<else />

							<td><b>$ad[title]</b></td>

						</if>

				</tr>

				<if condition="$ad[active]==0 || ($canmod && $canmoveads) || $userscanmoveads">

					<tr>

						<td>$vbphrase[classifieds_category]:</td>

						<td>

							<select name="catid" onChange="catChanged(this)">

							$categories

							</select>

						</td>

					</tr>

					<tr>

						<td>$vbphrase[classifieds_subcat]:</td>

						<td>

							<select name="subcatid" id="subcategory" onChange="subCatChanged()">

							$subcategories

						  </select>

						</td>

					</tr>

				</if>

				<tr>

					<td>$vbphrase[classifieds_status]:</td>

					<td>

						<input type="radio" name="hidden" value="0" <if condition="$ad[hidden]==0">checked</if> />&nbsp;$vbphrase[classifieds_status_show]&nbsp;&nbsp;

						<input type="radio" name="hidden" value="1" <if condition="$ad[hidden]==1">checked</if> />&nbsp;$vbphrase[classifieds_status_hide]

					</td>

				</tr>

				<tr>

					<td colspan="2">

             $vbphrase[classifieds_description]:<br />

             $messagearea

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_publishdate]:</td>

					<td>

						<input name="publishdate" id="publishdate" value="$ad[publishdate]" />&nbsp;&nbsp;

						<select name="publishhour">

							$publishhour

						</select>

						&nbsp;:&nbsp;

						<select name="publishminute">

							$publishminute

						</select>

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_expirationdate]:</td>

					<td>

						<input name="expirationdate" id="expirationdate" value="$ad[expirationdate]" />&nbsp;&nbsp;

						<select name="expirationhour">

							$expirationhour

						</select>

						&nbsp;:&nbsp;

						<select name="expirationminute">

							$expirationminute

						</select>

					</td>

				</tr>

				</table>

			</fieldset>

		</td>

	</tr>

	<tr>

		<td class="alt1">

      <fieldset><legend>$vbphrase[classifieds_billing]</legend>

			<table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_price]:</td>

					<td align="left"><input name="price" size="10" value="$ad[price]" /></td>

				</tr>

				<tr>

					<td width="20%">$vbphrase[classifieds_currency]:</td>

					<td align="left">

						<select name="currency">

						<option value="1" <if condition="$currency==1">selected</if> >Australian Dollar (AUD)</option>

					  <option value="2" <if condition="$currency==2">selected</if> >Canadian Dollar (CAD)</option>

					  <option value="3" <if condition="$currency==3">selected</if> >Swiss Franc (CHF)</option>

					  <option value="4" <if condition="$currency==4">selected</if> >Danish Krone (DKK)</option>

					  <option value="5" <if condition="$currency==5">selected</if> >Euro (EUR)</option>

					  <option value="6" <if condition="$currency==6">selected</if> >British Pound (GBP)</option>

					  <option value="7" <if condition="$currency==7">selected</if> >Hong Kong Dollar (HKD)</option>

					  <option value="8" <if condition="$currency==8">selected</if> >Japanese Yen (JPY)</option>

					  <option value="9" <if condition="$currency==9">selected</if> >Norwegian Krone (NOK)</option>

					  <option value="10" <if condition="$currency==10">selected</if> >New Zealand Dollar (NZD)</option>

					  <option value="11" <if condition="$currency==11">selected</if> >Swedish Krona (SEK)</option>

					  <option value="12" <if condition="$currency==12">selected</if> >U.S. Dollar (USD)</option>

						</select>

					</td>

				</tr>

				<tr>

					<td>$vbphrase[classifieds_paypal]:</td>

					<td><input name="paypalemail" size="35" value="$ad[paypalemail]" /></td>

				</tr>

			</table>

      </fieldset>

		</td>

	</tr>

	<tr>

		<td class="alt1">

			<div id="extrafields">

				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="fieldset">

					$extrafields

				</table>

			</div>

		</td>

	</tr>

	<tr>

		<td class="alt1">

      <fieldset><legend>$vbphrase[classifieds_photos]</legend>

      <table cellpadding="0" cellspacing="0" border="0" class="fieldset" width="100%">

				<tr>

					<td width="20%">$vbphrase[classifieds_upload_photo]:</td>

					<td align="left"><input type="file" name="photo" /></td>

				</tr>

				<if condition="!empty($pictures)">

					<tr><td>&nbsp;</td></tr>

					<tr>

						<td colspan="2">

							$pictures

						</td>

					</tr>

				</if>

			</table>

			</fieldset>

		</td>

	</tr>

  <tr>

    <td colspan="2" align="center">

      <input type="submit" value="$vbphrase[classifieds_save]" />

    </td>

  </tr>

</table>

</form>

<script type="text/javascript">

	$('#publishdate').datePicker({startDate:'01/01/0'});

	<if condition="!empty($ad[publishdate])">

		$('#publishdate').dpSetSelected('$ad[publishdate]');

	</if>

	$('#expirationdate').datePicker({startDate:'01/01/0'});

	<if condition="!empty($ad[expirationdate])">

		$('#expirationdate').dpSetSelected('$ad[expirationdate]');

	</if>

</script>

As it is currently; In fixed width styles- the page is stretched because of the editor. The smilies go way off the page making it too wide.

I had this problem with my forum text editor, but thanks to (ThePhophet, I think) I installed a mod which resolved the problem. Now I need to fix the problem with the editor in classifieds.

If anyone can help me it would be most appreciated. If it's easier- You can just make classifieds not show the smilies.

The template code I've posted here is: classifieds_editad

Cheers :)

Bump .
 

xmod4u

New Member
BUMP

Just FYI, I can code stuff no problem. Not a noob looking for hours of explanation. Use to be at TBDev, made mods for torrentbit source and all.

But for some reason, I just can't mod this one to simply skip the paypal step.


thanks
 

betty02

New Member
Ok ive uplaoded everything and clicked add new ad typed out my add can see them all once i click submit, but there not showing when i cctually click the Classifieds link or showing in the catorgory?
 
Top