Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #12  
Old 10-11-2011, 09:20 PM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should work will all the vB3.8 versions, but if someone runs into an issue with a version let me know.
Reply With Quote
  #13  
Old 11-16-2011, 12:12 AM
patracy patracy is offline
 
Join Date: Feb 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any possibility this could be implemented and allowed to let users operate the "sold" marker, but automatically send the buyer a PM with the buyer's contact info?
Reply With Quote
  #14  
Old 01-12-2012, 02:04 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah don't think I have enough knowledge to try and modify the mod that much to make it into more of a buy it now type feature.
Reply With Quote
  #15  
Old 01-16-2012, 11:34 AM
clarkstoncracke clarkstoncracke is offline
 
Join Date: Feb 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anybody have any ideas on how to make a thread that is marked "sold" to be automatically moved to another forum?

My marketplace has 6 forums. Let's call them 1,2,3,4,5,6. When any item is sold from any of those forums, I'd like it to automatically move to forum #7 which is my "completed sales" forum.

If anybody is willing to help me out, I can compensate for your time.
Reply With Quote
  #16  
Old 02-24-2012, 07:45 AM
Ov3rrun Ov3rrun is offline
 
Join Date: Apr 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, the script is not wrroking on 3.8.7, i have edited the template showthread but nothing happens, i dont see any item Mark this thread as sold or Mark this thread as unsold.

I check a lot of things, nothing happens.
Reply With Quote
  #17  
Old 03-03-2012, 04:54 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ov3rrun View Post
Hi, the script is not wrroking on 3.8.7, i have edited the template showthread but nothing happens, i dont see any item Mark this thread as sold or Mark this thread as unsold.

I check a lot of things, nothing happens.
Make sure that you have the permissions set correctly and also make sure that you have the prefix enabled for the forums you are trying to use the mod in. This was tested on 3.8.7 and was working fine.

Quote:
Originally Posted by clarkstoncracke View Post
Does anybody have any ideas on how to make a thread that is marked "sold" to be automatically moved to another forum?

My marketplace has 6 forums. Let's call them 1,2,3,4,5,6. When any item is sold from any of those forums, I'd like it to automatically move to forum #7 which is my "completed sales" forum.

If anybody is willing to help me out, I can compensate for your time.
I personally don't have the coding knowledge to be able to figure out how to make an auto prune feature. I don't personnally use vB3 I use vB4, but I do a search of the forums that I have this enabled on selecting the prefix sold and this will bring up all my sold items. I then select them and move them to the sold forums so that I can clean up the for sale sections of my forum and it seems to work pretty well that way. I'll do this like once a week and it keeps everything as clean as possible. If I could figure out an auto prune I would to incorporate it myself. So if anyone out there is willing to help let me know.
Reply With Quote
Reply

Thread Tools

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 03:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04151 seconds
  • Memory Usage 2,324KB
  • Queries Executed 22 (?)
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
  • (2)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
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (10)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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