Back to vBulletin 4.x Add-ons

Classifieds: Mark Thread as "Sold"
Mod Version: 1.2, by venom2124

vB Version: 4.x.x Rating: (21 votes - 4.71 average) Installs: 184
Released: 20 Mar 2011 Last Update: 03 Apr 2011 Downloads: 595
Not Supported Uses Plugins Template Edits Re-usable Code Translations  

If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer <<

What is this!?

This modification will allow you & your members (based on usergroup permissions) to mark a thread as "Sold". It will add the prefix "SOLD" to the thread title, and if set in the admincp - it will also close the thread. If you run a classified forum for your members this will give you a way to let users add a Sold prefix when the item is gone. Admins and mods can using to make items sold as well.

This is a modification of code provided by Eric.

Current Version
1.2


Sounds cool. How do I install?


1. Extract the zip, you should have the following directories/files:

Code:
     
      /
      |_ install.html
      |_ product-soldthread.xml
      /upload/
      |_ sold.php
          /upload/images/
              /buttons/
              |_ marksold.gif
          /upload/includes/
              /xml/
              |_ bitfield_soldthread.xml
2. Upload: (in the below instructions 'yourforum' would be where you have vBulletin installed)
* /upload/sold.php to /yourforum/sold.php
* /upload/images/buttons/marksold.gif to /yourforum/images/buttons/marksold.gif (upload to each style folder, if you have more than one style)
* /upload/includes/xml/bitfield_soldthread.xml to /yourforum/includes/xml/bitfield_soldthread.xml

3. Import the product, product-soldthreads.xml by going to: AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]

4. Make the following template edits to all of your installed styles:

SHOWTHREAD

Find:
HTML Code:
                          <vb:if condition="$show['addpoll']">
						<li><a href="poll.php?{vb:raw session.sessionurl}do=newpoll&amp;t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}&hellip;</a></li>
					</vb:if>
Add after:
HTML Code:
                          <vb:if condition="$show['soldthread']">
                              <li><a href="sold.php?{vb:raw session.sessionurl}do=marksold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_marksold}&hellip;</a></li>
                          <vb:else />
                              <vb:if condition="$show['soldthread_unsold']">
                              <li><a href="sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
                              </vb:if>
                          </vb:if>
5. Set options in AdminCP > Settings > Options > Sold Threads

6. Edit Sold Threads Permissions > Can Mark Threads as Sold for each usergroup.

7. To setup the forums it can be used in, follow these instructions:
  • After installing, go to: Thread Prefixes >> Thread Prefix Manager
  • You'll see: Sold Thread on the left, [Add Prefix] [Edit] [Delete] on the righ
  • Choose Edit.Then you'll see: Use Prefix Set in These Forums, select the forums you want this used in. (Hold the CTRL button to select more than one)
That's it! Enjoy!

Upgrade:
  • Reupload files
  • Import product file and select overwrite

Changelog:

V1.0- Initial Release
V1.1- Updated bitfield_soldthread file
V1.2- Fixed permission issue

If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer <<

NOTE: This mod is marked "unsupported", but I'll try my best (as time permits) to help those who have marked as installed.

Download

File Type: %1$s Sold V1.2.zip (8.4 KB, 578 downloads)

Supporters / CoAuthors

  • Eric

Screenshots

Click image for larger version
Name:	1.jpg
Views:	892
Size:	63.6 KB
ID:	127570   Click image for larger version
Name:	2.jpg
Views:	716
Size:	26.3 KB
ID:	127571   Click image for larger version
Name:	3.jpg
Views:	735
Size:	79.5 KB
ID:	127572   Click image for larger version
Name:	4.jpg
Views:	865
Size:	55.6 KB
ID:	127573  

Click image for larger version
Name:	5.jpg
Views:	1738
Size:	29.6 KB
ID:	127574   Click image for larger version
Name:	6.jpg
Views:	2056
Size:	27.5 KB
ID:	127575   Click image for larger version
Name:	7.jpg
Views:	739
Size:	57.9 KB
ID:	127610  

Similar Mods

End-User Options Mark Thread as "Sold" Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024