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

Reply
 
Thread Tools
Create Classifieds using Easy Forms Details »»
Create Classifieds using Easy Forms
Version: 1.00, by blind-eddie blind-eddie is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.7 Rating:
Released: 03-21-2013 Last Update: Never Installs: 10
 
No support by the author.

This will show you how to use Easy Forms by bananalive in a forum as a Classifieds and only allow a form to be used when creating a new thread in the classifieds forums.

After you install easy forms, create new forums and forms for your classifieds forums.

Examples:
Cars for sale
Parts for Sale
Wanted/Trade
Misc. Items for sale.

Set the first question to be the title of what the member is selling.
( I added the four forms below, edit them to your liking)
Example: 2008 Honda Drivers Door
(This will be your thread title)
In the Thread/ PM/ Email Title Section add {q_1} ( Change 1 to question one id per form)

In the Post New Thread section, select the proper forum per form for that form to create new thread in.
Save Changes

In the Advanced Options Section, second line, Answer BBcode.
Remove[INDENT][I] from first input box, leave blank and change the second input box to \r\n\r\n
Set permissions

In the After Form is Submitted section, leave it all blank, Save Changes.

Now create your questions, remembering In the Thread/ PM/ Email Title Section add {q_1} ( Change 1 to question one id per form) as stated above.
==================================================

Now we need to hide the New thread button from showing on the classifieds forums and add the Create Ad button just for the classifieds forums.

Backup the forumdisplay template before you edit it just in case you mess up.

The edit below shows the four classifieds forums and forms.

Open the FORUMDISPLAY template

Find:
Note: There will be two instances of this & you will need to repeat this edit on the second instance also.

Code:
<td class="smallfont"><if condition="$show['newthreadlink']">
Add above:
Change the forum and form ids to reflect your classifieds forum and classifieds form id's

Code:
<if condition="$forumid == 13">
<a href="/misc.php?do=form&fid=1">
<img border="0" src="images/misc/ad.png"></a>
</if>
<if condition="$forumid == 14">
<a href="misc.php?do=form&fid=4">
<img border="0" src="images/misc/ad.png"></a>
</if>
<if condition="$forumid == 15">
<a href="misc.php?do=form&fid=5">
<img border="0" src="images/misc/ad.png"></a>
</if>
<if condition="$forumid == 16">
<a href="misc.php?do=form&fid=6">
<img border="0" src="images/misc/ad.png"></a>
</if>
<if condition="!in_array($forumid, array(13,14,15,16))">
Add </if> very end of the newthread code like this:

Again, there are two instances of this & both need </if> added.

Code:
            <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td></if>
Click Save


I also use Thread Thumbnails by Null Parameter in the classifieds forums. If you use this set the options to pick up first image.

And I also use Mark as Sold by venom2124 for the classifieds forums.



Code:
Demo: http://blind-eddie.com/forum/forumdisplay.php?f=30

Temporary Login info:
Login: Test Account One
password:00000000

Login: Test Account Two
password:00000000

Login: Test Account Three
password:00000000
Enjoy!

Download Now

File Type: xml form-id-1.xml (5.3 KB, 27 views)
File Type: xml form-id-4.xml (5.3 KB, 22 views)
File Type: xml form-id-5.xml (5.3 KB, 19 views)
File Type: xml form-id-6.xml (5.2 KB, 28 views)

Screenshots

File Type: png display.PNG (59.5 KB, 0 views)
File Type: png form_questions.PNG (40.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-27-2014, 06:53 AM
twista46 twista46 is offline
 
Join Date: Oct 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please Fix for VB 4.2.2
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:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03747 seconds
  • Memory Usage 2,233KB
  • Queries Executed 18 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (6)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete