Create Classifieds using Easy Forms
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']"> 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))"> 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&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td></if> 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 Download
form-id-1.xml (5.3 KB, 29 downloads) Screenshots |
Similar Mods
New Posting Features Easy Forms v4.x - Create a form or multiple forms without php or html knowledge | vBulletin 4.x Add-ons |
New Posting Features Easy Forms - Create a form or multiple forms without php or html knowledge | vBulletin 3.8 Add-ons |