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

Reply
 
Thread Tools
Mark as Sold Details »»
Mark as Sold
Version: 1.1.0, by venom2124 venom2124 is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.7 Rating:
Released: 10-09-2011 Last Update: Never Installs: 20
Uses Plugins Template Edits
 
No support by the author.

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.
.

Current Version
1.1.0



Sounds cool. How do I install?

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

Code:
/
|_ sold.php

/images/
    /buttons/
    |_ marksold.gif

/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:
<if condition="$show['addpoll']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
        </if>
    </div>
    <!-- / thread tools -->

Replace with:

HTML Code:
<if condition="$show['addpoll']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
        </if>
        <if condition="$show['soldthread']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/marksold.gif" alt="$vbphrase[soldthread_marksold]" vspace="1" /> <a href="sold.php?$session[sessionurl]do=marksold&amp;t=$threadinfo[threadid]">$vbphrase[soldthread_marksold]</a></div>
        <else />
            <if condition="$show['soldthread_unsold']">
            <div><img class="inlineimg" src="$stylevar[imgdir_button]/marksold.gif" alt="$vbphrase[soldthread_markunsold]" vspace="1" /> <a href="sold.php?$session[sessionurl]do=markunsold&amp;t=$threadinfo[threadid]">$vbphrase[soldthread_markunsold]</a></div>
        </if>
    </if>
    </div>
    <!-- / thread tools -->
Find:
HTML Code:
<if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
    <if condition="$show['adminoptions']">

Replace with:

HTML Code:
<if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
    <if condition="$show['soldthread']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/marksold.gif" alt="$vbphrase[soldthread_marksold]" /> <a href="sold.php?$session[sessionurl]do=marksold&amp;t=$threadinfo[threadid]">$vbphrase[soldthread_marksold]</a></td>
    </tr>
        <else />
            <if condition="$show['soldthread_unsold']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/marksold.gif" alt="$vbphrase[soldthread_markunsold]" /> <a href="sold.php?$session[sessionurl]do=markunsold&amp;t=$threadinfo[threadid]">$vbphrase[soldthread_markunsold]</a></td>
    </tr>
        </if>
    </if>
    <if condition="$show['adminoptions']">
5. Set options in AdminCP > vBulletin Options > Sold Threads

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

7. Go the the Thread Prefix Manager and Edit the Sold Threads Prefix Set to select the forums this can be used in.

8. To set up the forums this will work 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 right. 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!

Donations are greatly appreciated.

Download Now

File Type: zip sold vB3.8.X V1.1.0.zip (8.7 KB, 84 views)

Screenshots

File Type: jpg pic1.jpg (63.0 KB, 0 views)
File Type: jpg pic2.jpg (14.5 KB, 0 views)
File Type: jpg pic3.jpg (27.0 KB, 0 views)
File Type: jpg pic4.jpg (37.8 KB, 0 views)
File Type: jpg pic5.jpg (46.7 KB, 0 views)
File Type: jpg pic6.jpg (39.6 KB, 0 views)
File Type: jpg pic8.jpg (36.7 KB, 0 views)
File Type: jpg pic9.jpg (34.8 KB, 0 views)
File Type: jpg pic10.jpg (34.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Hornstar

Comments
  #2  
Old 10-10-2011, 04:35 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As requested coded my vB4 mod to work with vB3.8. So enjoy and if you like it please nominate.
Reply With Quote
  #3  
Old 10-10-2011, 10:16 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod, would like to develop it to a larger scale to make certain forums suitable for trade
Reply With Quote
  #4  
Old 10-10-2011, 10:20 AM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, but you forget to make a little change at line 8:
Quote:
•You'll see: Solved Thread on the left, [Add Prefix] [Edit] [Delete] on the right. Choose Edit.
Should be "Sold Thread".
I changed the solved thread mod to a "sold" setting some time ago, works fine.
Reply With Quote
  #5  
Old 10-10-2011, 07:55 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just installed this and I have a couple issue. One is that the mark thread as sold is showing up twice (images attached) and second is the thread prefix should only show up after the thread is posted not during the posting of a new thread image attached also
Attached Images
File Type: bmp sold-thread.bmp (200.2 KB, 26 views)
File Type: bmp nre-thread.bmp (89.6 KB, 14 views)
Reply With Quote
  #6  
Old 10-10-2011, 08:22 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I was able to get 1/2 my issue resolved which was the mark thread as sold is showing up twice this was because the style I am using has the images folder located somewhere else so I fixed that but I need to be able to not show the thread prefix option when starting a new thread? Should should not show because the user would not be marking the sales thread SOLD if he is just now posting it, just confusing my members
Reply With Quote
  #7  
Old 10-11-2011, 12:03 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
OK I was able to get 1/2 my issue resolved which was the mark thread as sold is showing up twice this was because the style I am using has the images folder located somewhere else so I fixed that but I need to be able to not show the thread prefix option when starting a new thread? Should should not show because the user would not be marking the sales thread SOLD if he is just now posting it, just confusing my members
In order for the mod to work properly it has to show the prefix during posting. If it didn't show during posting it would not be able to add it after the fact. It may suck to see it initially during posting, but it's just an option that a member wouldn't select if they are trying to sell their items. I've been using this mod for a while on my forum and have never had a member say anything since I also have for sale, WTT, WTB prefixes and they just make the selection they need.

I can look in to it, but I just don't think there is a way around it.
Reply With Quote
  #8  
Old 10-11-2011, 02:18 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by venom2124 View Post
In order for the mod to work properly it has to show the prefix during posting. If it didn't show during posting it would not be able to add it after the fact. It may suck to see it initially during posting, but it's just an option that a member wouldn't select if they are trying to sell their items. I've been using this mod for a while on my forum and have never had a member say anything since I also have for sale, WTT, WTB prefixes and they just make the selection they need.

I can look in to it, but I just don't think there is a way around it.
Yea I can see this causing some confusion if this option is available during posting, also I have a selling forum which this mod fits in great but the word SOLD does not fit correctly in the Want to Trade and Want to Buy forums? curious how you are using this mod in the other two forums if the wordage is SOLD ?
Example is I post something in the want to buy forum, something like this ... Looking for this product xxxx.. How would SOLD fit in that thread?
Reply With Quote
  #9  
Old 10-11-2011, 02:52 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Yea I can see this causing some confusion if this option is available during posting, also I have a selling forum which this mod fits in great but the word SOLD does not fit correctly in the Want to Trade and Want to Buy forums? curious how you are using this mod in the other two forums if the wordage is SOLD ?
Example is I post something in the want to buy forum, something like this ... Looking for this product xxxx.. How would SOLD fit in that thread?
I only use this for items that are sold. If someone is looking to buy and they find it they usually just post they got it and then I can manual close it if I so choose. I think I have tried to run this mod or multiples of this add to give different options, but it didn't seem to work out well. Of course that was on vB4 not sure with vB3.8. I can try, but the question would be what other prefix would you be looking for?
Reply With Quote
  #10  
Old 10-11-2011, 03:10 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good mod

This mod can work in vb.3.8.4 ???
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 02:40 PM.


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.05319 seconds
  • Memory Usage 2,362KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_code
  • (4)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (12)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete