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

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

Category: End-User Options - Version: 4.x.x Rating:
Released: 03-19-2011 Last Update: 04-02-2011 Installs: 184
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

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 Now

File Type: zip Sold V1.2.zip (8.4 KB, 576 views)

Screenshots

File Type: jpg 1.jpg (63.6 KB, 0 views)
File Type: jpg 2.jpg (26.3 KB, 0 views)
File Type: jpg 3.jpg (79.5 KB, 0 views)
File Type: jpg 4.jpg (55.6 KB, 0 views)
File Type: jpg 5.jpg (29.6 KB, 0 views)
File Type: jpg 6.jpg (27.5 KB, 0 views)
File Type: jpg 7.jpg (57.9 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

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

Quote:
Originally Posted by your24hourstore View Post
tested this and found the uninstall blew up, the xml must have a problem in that area.
also I couldn't get the post to close automatically. I dont want to give the whole board control to close threads , just the classifieds category
Not sure what the issue is with the uninstall since I could not duplicate it when I uninstalled the product on my board. So I'm not sure where to start with helping you with that issue.

As for closing the thread automatically, like the post above says you have to set it to that option for that feature to work. That is under the options-->Mark as Sold.

If you have screen shots of what the issue was during the uninstall I might be able to help. Also what version of the product did you have installed?

I would suggest trying to up load the current files and product file allowing for overwrite of previous files and see if that fixes the issue.
Reply With Quote
  #33  
Old 03-30-2011, 03:00 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kenjiwing View Post
Venom Just sent you a PM.. hope you will have time to check it! Thanks!
Still taking a look at coding to see if I can help with your request.
Reply With Quote
  #34  
Old 03-30-2011, 03:13 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you logged in . unfortunately I didn't have a good backup so had to reinstall the whole board, so not sure what mod was conflicting, it really doesnt matter as it just a test site for mods and features, reinstalled it and seems to be all good, except that i cant figure out how to get them to close after changing the prefix to sold.
Reply With Quote
  #35  
Old 03-30-2011, 03:22 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I set the settings to auto close in the settings options in admincp

see! :{ after i change the prefix still open to reply oh 4.1.2 is the version

I feel this is a worthwhile mod to develop has a lot of possibility,

i think i have all the settings set to auto close but just not doing it for me.
since you made an account log in and make a n ad then mark it sold :} with the user permissions i have enabled if you have time later.
added:
OK I'm sure its not working in this new version its all installed and prefix selection works manually on post and edit,

but the thread drop down control does not have the option to mark as sold, and I don't see any screens showing you giving the users permission to close a thread.

here is the thread control screen of my install, so i guess the prefix options are working but don't seem to be using any outside files I uploaded from the install zip like sold.php

PHP Code:
<vb:if condition="$show['addpoll']">
                        <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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> 
this is the vb if condition in the new version


changed your show template code to match the new version and it works now


PHP Code:
  <vb:if condition="$show['soldthread']">
                              <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
                              </
vb:if>
                          </
vb:if> 
Attached Images
File Type: jpg ww.jpg (73.7 KB, 0 views)
File Type: jpg mine.jpg (58.7 KB, 0 views)
Reply With Quote
  #36  
Old 03-30-2011, 04:11 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by your24hourstore View Post
I set the settings to auto close in the settings options in admincp

see! :{ after i change the prefix still open to reply oh 4.1.2 is the version

I feel this is a worthwhile mod to develop has a lot of possibility,

i think i have all the settings set to auto close but just not doing it for me.
since you made an account log in and make a n ad then mark it sold :} with the user permissions i have enabled if you have time later.
added:
OK I'm sure its not working in this new version its all installed and prefix selection works manually on post and edit,

but the thread drop down control does not have the option to mark as sold, and I don't see any screens showing you giving the users permission to close a thread.

here is the thread control screen of my install, so i guess the prefix options are working but don't seem to be using any outside files I uploaded from the install zip like sold.php

PHP Code:
<vb:if condition="$show['addpoll']">
                        <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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> 
this is the vb if condition in the new version


changed your show template code to match the new version and it works now


PHP Code:
  <vb:if condition="$show['soldthread']">
                              <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
                              </
vb:if>
                          </
vb:if> 
:up: OK its fixed with the New showthread code i posted just make a new version update and use this new code seems to work with 4.1.2 now

rated excellent and nominated :
Reply With Quote
  #37  
Old 03-30-2011, 11:21 PM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working, but not sure what coding you were changing. I've installed this on two seperate boards with 4.1.2 and it worked like a charm on both. I'm almost thinking you didn't make the template mod or something, but again I'm just not sure.
Reply With Quote
  #38  
Old 03-31-2011, 01:40 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes not sure what the heck was going on but I know for sure that the edit code you have showing is not whats in version 4.1.2

the code i posted here https://vborg.vbsupport.ru/showpost....8&postcount=35 has the code that is in this new version 4.1.2, its easy to see its not what you have posted at the top of this page. seems to work great though with this changed code for me. if for some reason it doesn't work for new installs im sure this code does work because that's what is in my show thread npw. so it does work
Reply With Quote
  #39  
Old 03-31-2011, 01:43 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this mod rocks by the way I'm really liking it and plan to install it for a few people now
I would like it to show the prefix in the recent thread mods for cms widget that would be super. now it doesn't show the prefix in the recent threads or recent posts
Reply With Quote
  #40  
Old 03-31-2011, 02:11 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol this is driving me nuts im going to try your code again and see if it works.
this new code doesn't refresh the show thread at the forum level. works everywhere else probably in the php
Reply With Quote
  #41  
Old 03-31-2011, 02:13 AM
venom2124 venom2124 is offline
 
Join Date: Feb 2009
Location: North Carolina
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by your24hourstore View Post
lol this is driving me nuts im going to try your code again and see if it works.
this new code doesn't refresh the show thread at the forum level. works everywhere else probably in the php
If you want to give me temp admin access I can take a look at it and see if I can figure out the disconnect.
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:31 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.08382 seconds
  • Memory Usage 2,393KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_html
  • (4)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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